﻿:root {
    color-scheme: dark;
    --bg: #07101d;
    --surface: #111a28;
    --surface-2: #0a1220;
    --text: #f7f8fb;
    --muted: #aeb6c5;
    --accent: #ffc928;
    --danger: #ff5d67;
    --success: #42db91;
    --border: rgba(255,255,255,.12);
    --font-scale: 1;
    --shadow: 0 24px 70px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
html, body { margin: 0; min-height: 100%; }
body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: radial-gradient(circle at top, #142238 0, var(--bg) 48%, #030811 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: calc(16px * var(--font-scale));
}
body.scanner-open { overflow: hidden; touch-action: none; }
body.has-session-strip { padding-top: 18px; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.page-shell { width: min(100%, 780px); margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom)); }
.global-session-strip {
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px max(8px, env(safe-area-inset-right)) 2px max(8px, env(safe-area-inset-left));
    background: rgba(3,8,17,.9);
    color: #cbd5e1;
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}
.global-session-strip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.global-session-strip span:last-child { text-align: right; }
.global-session-strip strong { color: #ffca3a; font-weight: 800; }

.branch-title-wrap { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.branch-debug { display: none; }
.scanner-depot-switcher { display: grid; gap: 2px; width: min(100%, 240px); }
.scanner-depot-switcher label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.scanner-depot-switcher select { width: 100%; min-height: 34px; border: 1px solid var(--border); border-radius: 10px; background: #0a1220; color: var(--text); padding: 0 10px; font: inherit; font-size: calc(12px * var(--font-scale)); font-weight: 800; outline: none; }
.scanner-depot-switcher select option,
.scanner-depot-switcher select optgroup { background: #ffffff; color: #111827; font-weight: 700; }
.scanner-depot-switcher .branch-title-select { min-height: 34px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; background: rgba(10,18,32,.8); color: #fff; padding: 0 28px 0 9px; font-size: clamp(.9rem, 3.3vw, 1.1rem); line-height: 1.05; font-weight: 950; text-transform: uppercase; cursor: pointer; }
.scanner-depot-switcher .branch-title-select:hover,
.scanner-depot-switcher .branch-title-select:focus { background: rgba(255,201,40,.08); box-shadow: 0 0 0 3px rgba(255,201,40,.12); }
.scanner-depot-switcher select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,201,40,.12); }
.scanner-depot-switcher select:disabled { opacity: .65; }
.scanner-depot-switcher span { min-height: 14px; color: var(--muted); font-size: calc(10px * var(--font-scale)); font-weight: 750; }
.scanner-depot-switcher span:empty { display: none; }
.scanner-depot-switcher span.error { color: var(--danger); }
.scanner-depot-switcher span.success { color: var(--success); }
.branch-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 2px;
}
@media (max-width: 560px) {
    .branch-header { align-items: flex-start; gap: 6px; }
    .scanner-depot-switcher { width: min(100%, 210px); }
}
h1 { margin: 0; font-size: clamp(1.35rem, 5.3vw, 2.15rem); line-height: 1.05; font-weight: 950; letter-spacing: -.02em; }
.display-controls { display: flex; gap: 5px; align-items: center; flex: 0 0 auto; padding-top: 1px; }
.display-button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(17,26,40,.9);
    color: var(--accent);
    font-size: .9rem;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,.2);
}
.icon-display-button { font-size: 1.05rem; }
.display-button:active { transform: scale(.96); }
.report-display-actions{display:flex!important;gap:8px!important;align-items:center!important;flex:0 0 auto!important}
.report-display-actions .display-button{
  width:42px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0!important;
  border:1px solid var(--border)!important;
  border-radius:12px!important;
  background:#101a2a!important;
  color:var(--accent)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-weight:900!important;
  font-size:.95rem!important;
  line-height:1!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}
.report-display-actions .icon-display-button{font-size:1.05rem!important}
body.has-session-strip .report-display-actions,
body.has-session-strip .display-controls{
  position:fixed!important;
  top:22px!important;
  right:16px!important;
  z-index:1200!important;
  justify-content:flex-end!important;
}
body.has-session-strip .branch-header,
body.has-session-strip .movement-report-header,
body.has-session-strip .sales-report-header{padding-right:240px!important}
@media(max-width:760px){
  body.has-session-strip .report-display-actions,
  body.has-session-strip .display-controls{top:24px!important;right:8px!important}
  body.has-session-strip .branch-header,
  body.has-session-strip .movement-report-header,
  body.has-session-strip .sales-report-header{padding-right:0!important;padding-top:44px!important}
}
.barcode-entry-row { position: relative; }
.scanner-product-suggestions {
    position: absolute;
    z-index: 1400;
    top: calc(100% + 6px);
    left: calc(62px + 8px);
    right: calc(62px + 8px);
    max-height: 330px;
    overflow-y: auto;
    background: #0d1725;
    border: 1px solid #46566d;
    border-radius: 13px;
    box-shadow: 0 18px 42px rgba(0,0,0,.5);
}
.scanner-product-suggestions[hidden] { display: none; }
.scanner-product-suggestion {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 54px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #334359;
    background: #0d1725;
    color: #fff;
    text-align: left;
    cursor: pointer;
}
.scanner-product-suggestion:nth-child(even) { background: #111d2d; }
.scanner-product-suggestion:last-child { border-bottom: 0; }
.scanner-product-suggestion:hover,
.scanner-product-suggestion:focus { background: #1a2b42; outline: none; }
.scanner-product-suggestion strong { display: block; width: 100%; font-size: .92rem; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
.scanner-product-suggestion small,
.scanner-product-suggestion-empty { color: #aeb9c8; font-size: .75rem; line-height: 1.2; }
.scanner-product-suggestion-empty { padding: 12px 13px; }
.card, .scan-list-card {
    background: linear-gradient(145deg, rgba(18,28,43,.98), rgba(11,19,31,.98));
    border: 1px solid var(--border);
    border-radius: 25px;
    box-shadow: var(--shadow);
}
.form-card { padding: 22px; }
.barcode-entry-row { display: grid; grid-template-columns: 72px minmax(0,1fr) 72px; gap: 12px; align-items: stretch; }
.camera-entry-button, .add-entry-button {
    min-width: 0;
    min-height: 64px;
    border-radius: 17px;
    cursor: pointer;
}
.camera-entry-button {
width:72px;height:72px;border-radius:50%;
background:#1a2230;
border:4px solid #f5c842;
box-shadow:0 0 0 2px rgba(245,200,66,.15);
display:flex;align-items:center;justify-content:center;
padding:0;
}
.add-entry-button {
    border: 0;
    background: var(--accent);
    color: #090d14;
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 500;
}
#barcodeInput {
    width: 100%; min-width: 0; min-height: 64px; padding: 0 18px;
    border-radius: 17px; border: 1px solid var(--border); outline: none;
    background: #070d16; color: var(--text); font-size: 1.04rem; font-weight: 700;
}
#barcodeInput:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,201,40,.12); }
#barcodeInput::placeholder { color: #8f96a3; font-weight: 600; }
.message { min-height: 22px; margin: 13px 2px 0; color: var(--muted); font-size: .9rem; }
.message.success { color: var(--success); }
.message.error { color: var(--danger); }
.scan-list-card { margin-top: 18px; min-height: 420px; overflow: hidden; }
.list-heading {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 21px 22px 17px; border-bottom: 1px solid var(--border);
}
.list-heading > div { display: flex; flex-direction: column; gap: 4px; }
.list-heading strong { font-size: 1.1rem; font-weight: 950; }
.list-heading small { color: #c5cad3; font-size: .8rem; }
.bottom-count { color: var(--accent); white-space: nowrap; font-size: 1rem !important; }
.scan-list { padding: 12px 12px 18px; }
.scan-item {
    position: relative; overflow: hidden; margin-bottom: 9px;
    border: 1px solid rgba(255,255,255,.09); border-radius: 18px;
    background: #0b1422; touch-action: pan-y;
}
.scan-item.undefined { border-color: rgba(255,93,103,.75); background: #631a22; }
.delete-reveal {
    position: absolute; inset: 0 0 0 auto; width: 104px; display: grid; place-items: center;
    background: var(--danger); color: #fff; font-weight: 950;
}
.scan-item-content {
    position: relative; z-index: 2; min-height: 84px; display: grid;
    grid-template-columns: minmax(0,1fr) minmax(82px,22%); align-items: center; gap: 12px;
    padding: 12px 14px; background: linear-gradient(90deg, #101a2a, #111b2a);
    transition: transform .18s ease, opacity .18s ease;
}
.scan-item.undefined .scan-item-content { background: linear-gradient(90deg, #7c1f29, #58161e); }
.delete-icon { color: var(--danger); font-size: 1.55rem; line-height: 1; text-align: center; }
.scan-item.undefined .delete-icon { color: #fff; }
.scan-text { min-width: 0; }
.barcode-value { display: block; color: #fff; font-size: 1.18rem; line-height: 1.15; font-weight: 900; letter-spacing: .01em; overflow-wrap: anywhere; }
.stock-name { display: block; margin-top: 5px; color: #c8ced8; font-size: .72rem; line-height: 1.25; font-weight: 700; text-transform: uppercase; overflow-wrap: anywhere; }
.scan-item.undefined .stock-name { color: #fff; font-weight: 950; }
.row-chevron { color: #fff; font-size: 1.8rem; text-align: right; }
.scan-item.deleting .scan-item-content { transform: translateX(-100%) !important; opacity: 0; }
.empty-state { padding: 34px 16px; text-align: center; color: var(--muted); }

.scanner-backdrop[hidden] { display: none !important; }
.scanner-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.72); backdrop-filter: blur(7px); opacity: 0; transition: opacity .18s ease; }
.scanner-backdrop.is-open { opacity: 1; }
.scanner-sheet { width: min(100%,780px); height: min(92dvh,900px); display:flex; flex-direction:column; overflow:hidden; border:1px solid rgba(255,255,255,.13); border-bottom:0; border-radius:28px 28px 0 0; background:#090d15; box-shadow:0 -24px 80px rgba(0,0,0,.58); transform:translateY(28px); transition:transform .2s ease; }
.scanner-backdrop.is-open .scanner-sheet { transform:translateY(0); }
.scanner-toolbar { min-height:78px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; padding-top:max(14px,env(safe-area-inset-top)); background:#111722; border-bottom:1px solid var(--border); }
.scanner-toolbar strong { display:block; font-size:1.08rem; }
.scanner-toolbar span { display:block; margin-top:3px; color:var(--muted); font-size:.83rem; }
.round-button { width:46px; height:46px; border:1px solid var(--border); border-radius:50%; background:#222b3a; color:#fff; font-size:1.7rem; line-height:1; cursor:pointer; }
.scanner-result-panel { padding:12px 16px 14px; background:#0d1420; border-bottom:1px solid var(--border); }
.scanner-result-panel > label { display:block; margin-bottom:6px; color:var(--muted); font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
#scannerBarcodeValue { width:100%; min-height:48px; padding:10px 14px; border:1px solid rgba(255,213,74,.45); border-radius:13px; background:#070b12; color:#fff; font-size:1.08rem; font-weight:800; outline:none; }
.scanner-product-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:stretch; margin-top:10px; }
.scanner-product-name, .scanner-stock-quantity { min-height:68px; padding:10px 12px; border:1px solid var(--border); border-radius:13px; background:#111a28; }
.scanner-product-name span, .scanner-stock-quantity span { display:block; margin-bottom:4px; color:var(--muted); font-size:.76rem; font-weight:700; text-transform:uppercase; }
.scanner-product-name strong { display:block; color:#fff; font-size:.96rem; line-height:1.25; overflow-wrap:anywhere; }
.scanner-stock-quantity { min-width:92px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.scanner-stock-quantity strong { color:var(--accent); font-size:1.35rem; line-height:1; }
.scanner-stock-quantity.stock-ok { border-color:rgba(70,210,120,.55); }
.scanner-stock-quantity.stock-ok strong { color:#57dc8b; }
.scanner-stock-quantity.stock-low { border-color:rgba(255,166,57,.65); }
.scanner-stock-quantity.stock-low strong { color:#ffad4d; }
.scanner-stock-quantity.stock-empty { border-color:rgba(255,87,105,.65); }
.scanner-stock-quantity.stock-empty strong { color:#ff6476; }
.scanner-stock-quantity.stock-unknown strong { color:var(--muted); }
.camera-viewport { position:relative; flex:1 1 auto; min-height:0; overflow:hidden; background:#000; }
.camera-viewport video { width:100%; height:100%; display:block; object-fit:cover; }
.scan-overlay { position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; background:linear-gradient(rgba(0,0,0,.18),rgba(0,0,0,.05)); }
.scan-box { position:relative; width:min(86%,560px); height:min(36%,240px); box-shadow:0 0 0 999px rgba(0,0,0,.48); }
.corner { position:absolute; width:34px; height:34px; border-color:var(--accent); border-style:solid; }
.corner.top-left { top:0; left:0; border-width:4px 0 0 4px; border-radius:12px 0 0 0; }
.corner.top-right { top:0; right:0; border-width:4px 4px 0 0; border-radius:0 12px 0 0; }
.corner.bottom-left { bottom:0; left:0; border-width:0 0 4px 4px; border-radius:0 0 0 12px; }
.corner.bottom-right { bottom:0; right:0; border-width:0 4px 4px 0; border-radius:0 0 12px 0; }
.scan-line { position:absolute; left:7%; right:7%; top:10%; height:2px; background:var(--accent); box-shadow:0 0 15px 2px rgba(255,201,40,.78); animation:scan 1.55s ease-in-out infinite; }
@keyframes scan { 0%,100% { top:10%; } 50% { top:90%; } }
.camera-loading { position:absolute; inset:0; z-index:4; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; background:#05070c; color:#fff; }
.camera-loading[hidden] { display:none; }
.spinner { width:44px; height:44px; border:4px solid rgba(255,255,255,.18); border-top-color:var(--accent); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.scanner-actions { min-height:90px; display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:10px 14px max(10px,env(safe-area-inset-bottom)); background:#111722; border-top:1px solid var(--border); }
.scanner-action { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; border:0; border-radius:14px; background:transparent; color:#fff; cursor:pointer; }
.scanner-action span { font-size:1.45rem; }
.scanner-action small { color:var(--muted); }
.scanner-action.active { background:rgba(255,201,40,.12); color:var(--accent); }
.scanner-action:disabled { opacity:.35; }
.scanner-toggle input { position:absolute; opacity:0; pointer-events:none; }

@media (max-width: 620px) {
    .page-shell { padding-left: 10px; padding-right: 10px; }
    .branch-header { align-items: flex-start; gap: 8px; }
    .display-controls { gap: 5px; }
    .display-button { width: 34px; height: 34px; border-radius: 10px; font-size: .82rem; }
    .icon-display-button { font-size: .98rem; }
    .form-card { padding: 14px; }
    .barcode-entry-row { grid-template-columns: 54px minmax(0,1fr) 54px; gap: 7px; }
    .camera-entry-button, .add-entry-button, #barcodeInput { min-height: 56px; border-radius: 14px; }
    .camera-entry-button { font-size: 1.4rem; }
    .add-entry-button { font-size: 2rem; }
    #barcodeInput { padding: 0 12px; font-size: .87rem; }
    .list-heading { padding: 17px 16px 14px; }
    .scan-list { padding: 9px; }
    .scan-item-content { grid-template-columns: minmax(0,1fr) minmax(70px,24%); min-height: 76px; gap: 8px; padding: 10px 11px; }
    .barcode-value { font-size: 1.02rem; }
    .stock-name { font-size: .67rem; }
    .row-chevron { font-size: 1.5rem; }
}
@media (max-width: 560px) {
    .branch-header { align-items: flex-start; }
    .branch-title-wrap { width: auto; min-width: 0; }
}
@media (max-width: 390px) {
    h1 { font-size: 1.15rem; }
    .display-button { width: 31px; height: 31px; border-radius: 9px; font-size: .76rem; }
    .icon-display-button { font-size: .9rem; }
    .scanner-depot-switcher { width: min(100%, 190px); }
    .barcode-entry-row { grid-template-columns: 48px minmax(0,1fr) 48px; }
    #barcodeInput { font-size: .78rem; padding: 0 9px; }
}

/* Gelişmiş kamera seçimi ve küçük barkod odaklama */
.camera-controls-panel {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.3fr);
    gap: 10px;
    padding: 10px 14px;
    background: #0d131d;
    border-top: 1px solid var(--border);
}
.camera-select-wrap { display: grid; gap: 5px; color: var(--muted); font-size: .76rem; }
.camera-select-wrap select {
    width: 100%; min-height: 42px; padding: 0 38px 0 12px;
    border: 1px solid rgba(255,255,255,.15); border-radius: 12px;
    background: #171e2a; color: #fff; font: inherit;
}
.zoom-controls { display: grid; grid-template-columns: 42px minmax(80px,1fr) 42px 52px; align-items: center; gap: 7px; }
.zoom-controls button {
    min-width: 42px; min-height: 42px; border: 0; border-radius: 12px;
    background: #202838; color: #fff; font-size: 1.45rem; font-weight: 800;
}
.zoom-controls button:disabled { opacity: .35; }
.zoom-controls input { width: 100%; accent-color: var(--accent); }
.zoom-controls output { color: var(--accent); font-weight: 800; text-align: center; }
.camera-viewport video { touch-action: none; }
.scan-box { width: min(78%, 500px); height: min(25%, 155px); }

@media (max-width: 560px) {
    .camera-controls-panel { grid-template-columns: 1fr; }
    .scanner-sheet { height: min(96dvh, 940px); }
    .scan-box { width: 84%; height: 22%; }
}

/* Manuel ekleme, sürüklenebilir kamera düğmesi ve stok miktarı */
.entry-action-row { display:flex; align-items:center; justify-content:flex-start; gap:10px; margin-bottom:12px; min-height:58px; }
.manual-entry-button { min-height:56px; padding:0 20px; border:0; border-radius:16px; background:var(--accent); color:#090d14; font-weight:900; cursor:pointer; }
.draggable-camera-button { width:58px; height:58px; min-height:58px; flex:0 0 58px; touch-action:none; user-select:none; z-index:900; box-shadow:0 12px 30px rgba(0,0,0,.35); }
.draggable-camera-button.is-floating { position:fixed; margin:0; }
.draggable-camera-button.is-dragging { transform:scale(1.08); opacity:.92; }
.barcode-entry-row { grid-template-columns:72px minmax(0,1fr) 72px; }
.scan-item-content { grid-template-columns:minmax(0,1fr) minmax(82px,22%); }
.stock-name { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:1.8em; }
.stock-quantity { align-self:stretch; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; border-left:1px solid rgba(255,255,255,.12); padding-left:10px; }
.stock-quantity strong { color:var(--accent); font-size:1.25rem; line-height:1.05; font-weight:950; overflow-wrap:anywhere; }
.stock-quantity small { margin-top:4px; color:var(--muted); font-size:.68rem; font-weight:800; text-transform:uppercase; }
.scan-item.undefined .stock-quantity strong, .scan-item.undefined .stock-quantity small { color:#fff; }
.quantity-reveal{position:absolute;left:0;top:0;bottom:0;width:110px;display:flex;align-items:center;justify-content:center;background:#1f7a4d;color:#fff;font-weight:950;letter-spacing:.04em}
.scan-item.label-list-item{touch-action:pan-y;user-select:none}
.scan-item.label-list-item .stock-quantity strong{color:#57dc8b}
.scan-item.label-list-item .stock-quantity small{color:var(--muted)}
@media (max-width:620px) {
    .entry-action-row { min-height:52px; }
    .manual-entry-button { min-height:50px; padding:0 14px; font-size:.82rem; }
    .draggable-camera-button { width:52px; height:52px; min-height:52px; flex-basis:52px; }
    .barcode-entry-row { grid-template-columns:54px minmax(0,1fr) 54px; }
    .scan-item-content { grid-template-columns:minmax(0,1fr) minmax(70px,24%); }
    .stock-quantity strong { font-size:1.08rem; }
}


/* Açılış ekranı cihaz/şube tanılama bilgileri */
.branch-debug-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .2rem .9rem;
    margin-top: .35rem;
    font-size: .78rem;
    line-height: 1.35;
    color: #c9d3e3;
}
.branch-debug-grid span { white-space: nowrap; }
.branch-debug-grid strong { color: #ffffff; font-weight: 700; }
@media (max-width: 640px) {
    .branch-debug-grid { grid-template-columns: 1fr; }
}

/* Kamera ekranı: tarama alanını büyüt, bilgi/status alanlarını sıkıştır */
.scanner-sheet {
    position: relative;
    height: min(98dvh, 980px);
    border-radius: 22px 22px 0 0;
}
.scanner-close-overlay {
    position: absolute;
    z-index: 8;
    top: max(10px, env(safe-area-inset-top));
    right: 12px;
    width: 42px;
    height: 42px;
    background: rgba(20, 28, 42, .88);
    backdrop-filter: blur(8px);
}
.camera-viewport {
    flex: 1 1 52%;
    min-height: 230px;
    order: 1;
}
.scanner-result-panel {
    order: 2;
    flex: 0 0 auto;
    padding: 8px 12px 9px;
}
.scanner-result-panel > label {
    margin-bottom: 4px;
    font-size: .64rem;
}
#scannerBarcodeValue {
    min-height: 40px;
    padding: 7px 11px;
    font-size: 1rem;
}
.scanner-product-row {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 8px;
    margin-top: 7px;
}
.scanner-product-name,
.scanner-stock-quantity {
    min-height: 62px;
    padding: 7px 10px;
}
.scanner-product-name span,
.scanner-stock-quantity span {
    margin-bottom: 3px;
    font-size: .63rem;
}
.scanner-product-name strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 2.45em;
    max-height: 2.45em;
    font-size: .91rem;
    line-height: 1.225;
    overflow-wrap: anywhere;
}
.scanner-stock-quantity { min-width: 78px; }
.scanner-stock-quantity strong { font-size: 1.45rem; }
.camera-controls-panel {
    order: 3;
    flex: 0 0 auto;
    padding: 6px 10px;
    gap: 7px;
}
.camera-select-wrap { gap: 2px; font-size: .62rem; }
.camera-select-wrap select { min-height: 34px; border-radius: 9px; }
.zoom-controls { grid-template-columns: 34px minmax(65px,1fr) 34px 46px; gap: 5px; }
.zoom-controls button { min-width: 34px; min-height: 34px; border-radius: 9px; font-size: 1.15rem; }
.zoom-controls output { font-size: .76rem; }
.scanner-actions {
    order: 4;
    min-height: 56px;
    padding: 4px 10px;
}
.scanner-action { gap: 1px; }
.scanner-action span { font-size: 1.15rem; }
.scanner-action small { font-size: .61rem; }
.scanner-status-line {
    order: 5;
    flex: 0 0 auto;
    min-height: 22px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px max(3px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,.06);
    background: #080c13;
    color: #52d882;
}
.scanner-status-line small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #98a4b5;
    font-size: .58rem;
    line-height: 1.1;
}
.scan-box { width: min(86%, 560px); height: min(34%, 210px); }

@media (max-width: 560px) {
    .scanner-sheet { height: 100dvh; border-radius: 0; }
    .camera-viewport { min-height: 190px; flex-basis: 58%; }
    .camera-controls-panel { grid-template-columns: minmax(125px, .9fr) minmax(180px, 1.3fr); }
    .scan-box { width: 88%; height: 32%; }
}

@media (max-height: 650px) {
    .camera-viewport { min-height: 150px; flex-basis: 64%; }
    .scanner-result-panel { padding-top: 5px; padding-bottom: 6px; }
    .scanner-product-name, .scanner-stock-quantity { min-height: 54px; }
    .camera-controls-panel { padding-top: 4px; padding-bottom: 4px; }
    .scanner-actions { min-height: 48px; }
}


/* Şube açıklaması sayfanın sonunda gösterilir. */
.inventory-page { min-height: 100dvh; display: flex; flex-direction: column; }
.inventory-page main { flex: 1 0 auto; }
.branch-explanation {
    flex: 0 0 auto;
    margin: 18px 2px 0;
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.45;
}
.branch-explanation strong { color: #fff; }
.branch-explanation[hidden] { display: none; }

/* NamliMobil kullanıcı, karşılama ve admin ekranları */
.portal-shell,.auth-shell{min-height:100vh;background:radial-gradient(circle at top,#18304c 0,#0b1626 45%,#07111d 100%);color:#f6f8fb;padding:24px;box-sizing:border-box}.portal-shell{max-width:1100px;margin:auto}.portal-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:28px}.portal-header h1,.auth-card h1{margin:6px 0 8px}.portal-header p,.auth-card p{color:#b9c4d3;margin:0}.eyebrow{color:#ffc72c;font-weight:900;letter-spacing:.12em;font-size:.78rem}.portal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.portal-card{min-height:180px;border:1px solid #263750;border-radius:24px;padding:24px;background:#101e30;color:#fff;text-decoration:none;display:flex;flex-direction:column;gap:10px;box-shadow:0 16px 40px #0004}.portal-card.primary{border-color:#ffc72c}.portal-card.admin{background:#201c31}.portal-card:hover{transform:translateY(-2px)}.portal-card strong{font-size:1.35rem}.portal-card small{color:#b9c4d3;line-height:1.45}.portal-icon{font-size:2rem;color:#ffc72c}.ghost-btn,.main-btn{border:0;border-radius:14px;padding:13px 18px;font-weight:800;text-decoration:none;cursor:pointer}.ghost-btn{background:#17263a;color:#fff;border:1px solid #34445b}.main-btn{background:#ffc72c;color:#111827;width:100%}.main-btn.compact{width:auto;padding:10px 14px}.auth-shell{display:grid;place-items:center}.auth-card{width:min(430px,100%);background:#101e30;border:1px solid #263750;border-radius:26px;padding:28px;box-shadow:0 22px 60px #0007}.auth-card form{display:grid;gap:16px;margin-top:24px}.auth-card label{display:grid;gap:7px;font-weight:700}.auth-card input,.user-row select{background:#091422;border:1px solid #34445b;border-radius:12px;padding:13px;color:#fff;font:inherit}.auth-link{text-align:center;margin-top:20px;color:#b9c4d3}.auth-link a{color:#ffc72c}.validation{color:#ff8b8b}.notice{background:#173a2d;border:1px solid #2f8c69;padding:13px;border-radius:12px;margin-top:18px}.user-list{display:grid;gap:12px}.user-row{display:grid;grid-template-columns:minmax(190px,1fr) 130px 110px 90px;gap:12px;align-items:center;background:#101e30;border:1px solid #263750;border-radius:18px;padding:16px}.user-row div{display:grid;gap:5px}.user-row small{color:#b9c4d3}.approval{white-space:nowrap}.empty-panel{background:#101e30;border:1px solid #263750;border-radius:22px;padding:32px;color:#b9c4d3}@media(max-width:700px){.portal-header{align-items:stretch}.user-row{grid-template-columns:1fr}.portal-shell,.auth-shell{padding:16px}.auth-card{padding:22px}}

/* Kullanıcı yönetimi sayaç ve filtre görünümü */
.user-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:18px 0 24px; }
.user-stat-card { display:flex; flex-direction:column; gap:5px; padding:16px 18px; border:1px solid var(--border); border-radius:18px; background:rgba(17,26,40,.88); color:var(--text); text-decoration:none; box-shadow:0 10px 28px rgba(0,0,0,.18); }
.user-stat-card small { color:var(--muted); font-weight:800; }
.user-stat-card strong { color:var(--accent); font-size:1.65rem; line-height:1; }
.user-stat-card.active { border-color:rgba(255,201,40,.75); box-shadow:0 0 0 3px rgba(255,201,40,.1); }
.user-filter-section h2 { margin:0 0 14px; }
.user-info { min-width:0; display:flex; flex-direction:column; gap:4px; }
@media (max-width:720px) { .user-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Yok Ürün Analizi */
.missing-report{min-height:100dvh;width:100%;padding:max(18px,env(safe-area-inset-top)) clamp(14px,3vw,36px) max(28px,env(safe-area-inset-bottom));overflow:visible;background:#f7f9fc;color:#10213a;touch-action:pan-y pinch-zoom}.missing-report:fullscreen{overflow:auto;background:#f7f9fc}.missing-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.missing-header p{color:#65758b}.missing-actions{display:flex;gap:8px}.missing-actions a,.missing-actions button{border:1px solid #cad5e3;border-radius:12px;background:white;color:#10213a;padding:11px 14px;text-decoration:none;font-weight:750}.missing-summary{margin:18px 0;display:flex;justify-content:flex-end;gap:8px;align-items:center}.missing-summary span,.missing-summary strong{background:#fee2e2;color:#a7191f;padding:12px 16px}.missing-summary span{border-radius:14px 0 0 14px}.missing-summary strong{border-radius:0 14px 14px 0;font-size:1.25rem}.missing-filters{display:grid;grid-template-columns:repeat(3,minmax(180px,360px));gap:14px;margin-bottom:20px}.missing-filters label{display:grid;gap:6px;font-weight:800}.missing-filters select,.missing-filters input{min-height:48px;border:1px solid #c9d5e5;border-radius:12px;background:white;color:#10213a;padding:0 14px;font:inherit}.missing-breadcrumb{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0 18px}.missing-breadcrumb button{border:0;background:transparent;color:#195fb3;font-weight:800;padding:4px}.missing-report h2{font-size:clamp(1.3rem,3vw,2rem)}.missing-list{display:grid;gap:10px;padding-bottom:40px}.missing-row{width:100%;display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid #d0dae7;border-radius:12px;background:#eef3f9;color:#10213a;padding:15px;text-align:left;cursor:pointer}.missing-row span{display:grid;gap:3px}.missing-row small{color:#63748b}.missing-row b{min-width:48px;text-align:center;background:#b51e24;color:white;border-radius:999px;padding:7px 11px}.missing-loading,.missing-empty,.missing-warning{padding:18px;border-radius:12px}.missing-loading,.missing-empty{background:#edf2f7}.missing-warning{background:#fff3cd;color:#664d03;margin:12px 0}.missing-warning[hidden]{display:none}@media(max-width:760px){.missing-header{flex-direction:column}.missing-filters{grid-template-columns:1fr}.missing-actions{width:100%}.missing-actions>*{flex:1;text-align:center}.missing-summary{justify-content:stretch}.missing-summary span,.missing-summary strong{flex:1}.missing-row{min-height:62px}}

.missing-row.product-row{align-items:flex-start}.product-entry{display:flex!important;flex-wrap:wrap;gap:8px 18px;margin-top:7px;color:#44566f;font-size:.88rem}.product-entry em{font-style:normal}.product-entry strong{font-size:.92rem;color:#10213a}@media(max-width:600px){.product-entry{display:grid!important;gap:5px}.missing-row.product-row>b{margin-top:4px}}


/* Yok Ürün Analizi: 3 karakter sonrası 5 sonuç autocomplete + barkod kamera */
.product-search-label{position:relative}.product-search-wrap{position:relative;display:grid;grid-template-columns:minmax(0,1fr)46px;align-items:center}.product-search-wrap input{padding-right:72px!important}.search-camera-button{position:absolute;right:5px;width:38px;height:38px;border:0;border-radius:10px;background:#10213a;color:#fff;font-size:1.15rem;cursor:pointer}.search-busy{position:absolute;right:48px;top:50%;transform:translateY(-50%);font-size:1.35rem;color:#65758b;animation:searchPulse .8s infinite alternate}.search-suggestions{position:absolute;z-index:120;top:100%;left:0;right:0;margin-top:6px;background:#fff;border:1px solid #c9d5e5;border-radius:14px;box-shadow:0 18px 46px rgba(16,33,58,.2);overflow:hidden;max-height:340px}.search-suggestions[hidden]{display:none}.search-suggestion{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid #edf1f6;background:#fff;color:#10213a;padding:12px 14px;text-align:left;cursor:pointer}.search-suggestion:last-child{border-bottom:0}.search-suggestion:hover,.search-suggestion:focus{background:#eef5ff}.search-suggestion span{display:grid;gap:3px;min-width:0}.search-suggestion strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-suggestion small{color:#65758b}.search-suggestion em{font-style:normal;font-size:.76rem;font-weight:800;background:#edf2f7;padding:5px 7px;border-radius:999px;white-space:nowrap}.search-no-result{display:block;padding:13px;color:#65758b;font-weight:650}.report-scanner{position:fixed;inset:0;z-index:2000;background:rgba(3,8,16,.82);display:grid;place-items:center;padding:18px}.report-scanner[hidden]{display:none}.report-scanner-card{width:min(720px,100%);background:#0c1624;border:1px solid #263750;border-radius:22px;overflow:hidden;color:#fff;box-shadow:0 24px 80px #0009}.report-scanner-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px}.report-scanner-head button{width:40px;height:40px;border:0;border-radius:12px;background:#19283b;color:#fff}.report-video-wrap{position:relative;background:#000;aspect-ratio:4/3;overflow:hidden}.report-video-wrap video{width:100%;height:100%;object-fit:cover}.report-video-wrap:after{content:"";position:absolute;left:10%;right:10%;top:34%;height:32%;border:2px solid #ffc72c;border-radius:16px;box-shadow:0 0 0 999px rgba(0,0,0,.2)}.report-scan-line{position:absolute;z-index:2;left:12%;right:12%;top:50%;height:2px;background:#ffc72c;box-shadow:0 0 14px #ffc72c}.report-scanner-card p{margin:0;padding:12px 14px;color:#c9d3e3}.report-scanner-open{overflow:hidden}@keyframes searchPulse{from{opacity:.3}to{opacity:1}}@media(max-width:760px){.product-search-label{z-index:5}.search-suggestions{max-height:300px}.report-scanner{padding:0}.report-scanner-card{width:100%;height:100dvh;border-radius:0;display:flex;flex-direction:column}.report-video-wrap{flex:1;aspect-ratio:auto}}

.remember-login{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:10px!important;font-weight:600!important;color:#d5ddea;cursor:pointer}.remember-login input{width:18px;height:18px;margin:0;padding:0;accent-color:#ffc72c}.remember-login span{line-height:1.3}
.login-auth-shell{place-items:start center!important;align-content:start!important;padding-top:max(10px,env(safe-area-inset-top))!important}
.login-auth-shell .auth-card{margin-top:0!important}
@media(max-width:700px){.login-auth-shell{padding-top:max(6px,env(safe-area-inset-top))!important}}

/* Scanner compact sales summary - 2026-08-08 */
.scanner-barcode-price-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
}
.scanner-price-box,
.scanner-barcode-box {
    min-width: 0;
}
.scanner-price-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6px 9px;
    border: 1px solid rgba(255,213,74,.45);
    border-radius: 12px;
    background: #111a28;
}
.scanner-price-box span,
.scanner-barcode-box label {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: .61rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.scanner-price-box strong {
    color: var(--accent);
    font-size: 1.06rem;
    line-height: 1.1;
    white-space: nowrap;
}
.scanner-sales-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 5px;
    margin-top: 6px;
}
.scanner-sales-grid > div {
    min-width: 0;
    padding: 5px 4px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #111a28;
    text-align: center;
}
.scanner-sales-grid span {
    display: block;
    color: var(--muted);
    font-size: .56rem;
    font-weight: 700;
    white-space: nowrap;
}
.scanner-sales-grid strong {
    display: block;
    margin-top: 1px;
    color: #fff;
    font-size: .85rem;
    line-height: 1.1;
}
/* Kamera alanını biraz daralt; sonuç/satış bilgilerine daha fazla yer bırak. */
.camera-viewport {
    flex-basis: 43%;
    min-height: 190px;
}
.scanner-result-panel {
    padding-top: 7px;
    padding-bottom: 7px;
}
.scanner-product-row {
    margin-top: 6px;
}
.scanner-product-name,
.scanner-stock-quantity {
    min-height: 56px;
}
@media (max-width: 390px) {
    .scanner-barcode-price-row { grid-template-columns: 100px minmax(0,1fr); }
    .scanner-price-box strong { font-size: .94rem; }
    .scanner-sales-grid { gap: 3px; }
    .scanner-sales-grid span { font-size: .5rem; }
    .scanner-sales-grid strong { font-size: .76rem; }
    .camera-viewport { min-height: 175px; }
}
.scan-box { height: min(28%, 180px); }

/* 2026-08-08 Kamera görünümü: viewport daha kompakt, sarı tarama çerçevesi daha büyük */
.camera-viewport {
    flex: 0 0 clamp(180px, 30dvh, 235px);
    min-height: 180px;
    max-height: 235px;
}
.scan-box {
    width: min(90%, 620px);
    height: 52%;
    min-height: 96px;
    max-height: 150px;
}

@media (max-width: 560px) {
    .camera-viewport {
        flex: 0 0 clamp(155px, 28dvh, 185px);
        min-height: 155px;
        max-height: 185px;
    }
    .scan-box {
        width: 90%;
        height: 58%;
        min-height: 92px;
        max-height: 125px;
    }
}

@media (max-height: 650px) {
    .camera-viewport {
        flex: 0 0 155px;
        min-height: 145px;
        max-height: 165px;
    }
    .scan-box {
        width: 90%;
        height: 62%;
        min-height: 88px;
        max-height: 112px;
    }
}

/* 2026-08-08 Kamera görünümü: referans sürüm korunarak viewport yüksekliği artırıldı */
.camera-viewport {
    flex: 0 0 clamp(215px, 36dvh, 280px);
    min-height: 215px;
    max-height: 280px;
}

@media (max-width: 560px) {
    .camera-viewport {
        flex: 0 0 clamp(185px, 34dvh, 225px);
        min-height: 185px;
        max-height: 225px;
    }
}

@media (max-height: 650px) {
    .camera-viewport {
        flex: 0 0 180px;
        min-height: 170px;
        max-height: 190px;
    }
}

/* 2026-08-08: Tüm şubelerde ortak stok bandı ve rapor aksiyonları */
.scanner-product-name-only { grid-template-columns: 1fr; }
.scanner-stock-band {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:5px;
    margin-top:6px;
}
.scanner-stock-tile {
    min-width:0;
    min-height:58px;
    padding:6px 5px;
    border:1px solid var(--border);
    border-radius:10px;
    background:#111a28;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}
.scanner-stock-tile span {
    width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--muted);
    font-size:.55rem;
    font-weight:800;
    text-transform:uppercase;
}
.scanner-stock-tile strong {
    margin-top:3px;
    color:var(--accent);
    font-size:1rem;
    line-height:1;
}
.scanner-report-band {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
    margin-top:6px;
}
.scanner-report-button {
    min-height:38px;
    border:1px solid var(--border);
    border-radius:10px;
    background:#111a28;
    color:#fff;
    font-weight:800;
    cursor:pointer;
}
.scanner-report-button.primary { border-color:rgba(255,213,74,.55); color:var(--accent); }
.scanner-report-button:disabled { opacity:.45; cursor:default; }
@media (max-width:560px) {
    .scanner-stock-band { gap:3px; }
    .scanner-stock-tile { min-height:52px; padding:5px 3px; }
    .scanner-stock-tile span { font-size:.47rem; }
    .scanner-stock-tile strong { font-size:.82rem; }
    .scanner-report-button { min-height:34px; font-size:.75rem; }
}

/* Satış raporu tam ekran / pinch zoom uyumlu */
.sales-report-page { min-height:100dvh; background:#f6f7fa; color:#111827; padding:12px; overflow:auto; }
.sales-report-shell { width:max-content; min-width:100%; }
.sales-report-header { position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:12px; background:#f6f7fa; padding:4px 0 10px; }
.sales-report-header h1 { margin:0; font-size:1.25rem; }
.sales-report-back { border:1px solid #cbd5e1; border-radius:10px; padding:8px 12px; background:#fff; color:#111827; font-weight:700; text-decoration:none; }
.sales-report-product { margin:0 0 10px; padding:10px 12px; border:1px solid #d8dee9; border-radius:10px; background:#fff; }
.sales-report-product strong { display:block; }
.sales-report-table { border-collapse:collapse; background:#fff; font-size:.9rem; min-width:760px; }
.sales-report-table th,.sales-report-table td { border:1px dotted #6b7280; padding:7px 8px; text-align:center; white-space:nowrap; }
.sales-report-table thead th { background:#e7edf5; font-weight:800; }
.sales-report-table .date-cell { text-align:left; background:#fff; }
.sales-report-loading { padding:20px; background:#fff; border-radius:10px; }

/* Satış raporu - dikey telefonda 3 mağaza / 6 kolon aynı anda görünsün */
.sales-report-page { padding:6px; }
.sales-report-shell { width:100%; min-width:0; }
.sales-report-table { width:100%; min-width:0; table-layout:fixed; font-size:clamp(.48rem, 2.05vw, .72rem); }
.sales-report-table th,.sales-report-table td { padding:4px 1px; line-height:1.12; overflow:hidden; text-overflow:ellipsis; }
.sales-report-table th:first-child,.sales-report-table td:first-child { width:25%; }
.sales-report-table th:not(:first-child),.sales-report-table td:not(:first-child) { width:12.5%; }
.sales-report-table .date-cell { white-space:normal; overflow:visible; text-overflow:clip; font-size:clamp(.46rem, 1.9vw, .68rem); }
.sales-report-table thead th { white-space:normal; overflow-wrap:anywhere; }
@media (max-width:560px) {
  .sales-report-page { padding:3px; }
  .sales-report-header { gap:5px; padding-bottom:5px; }
  .sales-report-header h1 { font-size:.95rem; }
  .sales-report-back { padding:5px 7px; border-radius:7px; font-size:.68rem; }
  .sales-report-product { margin-bottom:5px; padding:6px 7px; font-size:.72rem; }
  .sales-report-table { font-size:clamp(.43rem, 1.9vw, .62rem); }
  .sales-report-table th,.sales-report-table td { padding:3px 0; letter-spacing:-.02em; }
  .sales-report-table th:first-child,.sales-report-table td:first-child { width:24%; }
  .sales-report-table th:not(:first-child),.sales-report-table td:not(:first-child) { width:12.666%; }
}


/* 2026-08-08 Scanner ürün adı autocomplete: 3+ karakter, kelime bazlı eşleşme, en fazla 5 sonuç */
.scanner-product-search-box { position: relative; overflow: visible; }
.scanner-product-search-box input { cursor: text; }
.scanner-product-suggestions {
    position: absolute;
    z-index: 2300;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    max-height: min(260px, 38dvh);
    overflow-y: auto;
    border: 1px solid #34445b;
    border-radius: 11px;
    background: #0b1421;
    box-shadow: 0 18px 44px rgba(0,0,0,.55);
}
.scanner-product-suggestions[hidden] { display: none; }
.scanner-product-suggestion {
    width: 100%;
    display: grid;
    gap: 2px;
    padding: 9px 10px;
    border: 0;
    border-bottom: 1px solid #243247;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
}
.scanner-product-suggestion:last-child { border-bottom: 0; }
.scanner-product-suggestion:hover,
.scanner-product-suggestion:focus { background: #172337; outline: none; }
.scanner-product-suggestion strong { font-size: .78rem; line-height: 1.2; overflow-wrap: anywhere; }
.scanner-product-suggestion small { color: #aeb9ca; font-size: .66rem; }
.scanner-product-suggestion-empty { padding: 10px; color: #aeb9ca; font-size: .72rem; font-weight: 650; }


/* 2026-08-08 Satış raporu tarih kolonu daha dar */
.sales-report-table th:first-child,.sales-report-table td:first-child { width:16% !important; }
.sales-report-table th:not(:first-child),.sales-report-table td:not(:first-child) { width:14% !important; }
@media (max-width:560px) {
  .sales-report-table th:first-child,.sales-report-table td:first-child { width:15% !important; }
  .sales-report-table th:not(:first-child),.sales-report-table td:not(:first-child) { width:14.166% !important; }
  .sales-report-table .date-cell { font-size:clamp(.40rem,1.65vw,.58rem); line-height:1.05; }
}
.scanner-add-confirm { position:fixed; inset:0; z-index:4000; display:grid; place-items:center; background:rgba(0,0,0,.55); padding:18px; }
.scanner-add-confirm-card { width:min(330px,92vw); padding:18px; border:1px solid #34445b; border-radius:14px; background:#101b2b; color:#fff; box-shadow:0 20px 60px rgba(0,0,0,.6); text-align:center; }
.scanner-add-confirm-card strong { display:block; margin-bottom:16px; font-size:1rem; }
.scanner-add-confirm-card div { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.scanner-add-confirm-card button { min-height:44px; border:1px solid #46566e; border-radius:10px; background:#18263a; color:#fff; font-weight:800; }
.scanner-add-confirm-card button[data-answer="yes"] { border-color:#d7b52d; background:#3a3215; }

/* Stok hareket raporu - Yok Urun Analizi ile ayni tam sayfa davranisi */
body.movement-report-body{
  overflow:auto!important;
  overscroll-behavior:auto;
  touch-action:pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling:touch;
  background:#f7f9fc;
}
body.movement-report-body main{
  width:100%;
  min-width:100%;
  min-height:100dvh;
  overflow:visible;
}
.movement-report-page{
  min-height:100dvh;
  width:100%;
  min-width:0;
  padding:max(18px,env(safe-area-inset-top)) clamp(14px,3vw,44px) max(28px,env(safe-area-inset-bottom));
  overflow:visible;
  background:#f7f9fc;
  color:#10213a;
  touch-action:pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling:touch;
}
.movement-report-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;width:100%;max-width:1680px;margin:0 auto}
.movement-eyebrow{font-size:.73rem;font-weight:900;letter-spacing:.12em;color:#b51e24;margin-bottom:5px}
.movement-report-header h1{margin:0;font-size:clamp(1.8rem,2.2vw,3rem);line-height:1.08}
.movement-report-header p{margin:7px 0 0;color:#65758b;max-width:860px;font-size:clamp(.95rem,1vw,1.12rem)}
.movement-actions{display:flex;gap:8px;flex:0 0 auto}
.movement-actions a,.movement-actions button{border:1px solid #cad5e3;border-radius:12px;background:#fff;color:#10213a;padding:11px 14px;text-decoration:none;font-weight:750;font:inherit;white-space:nowrap}
.movement-summary{margin:18px auto;display:flex;justify-content:flex-start;gap:0;align-items:center;width:100%;max-width:1680px}
.movement-summary span,.movement-summary strong{background:#e8eef7;color:#10213a;padding:12px 16px}
.movement-summary span{border-radius:14px 0 0 14px;color:#65758b;font-weight:800}
.movement-summary strong{border-radius:14px;font-size:1.06rem;max-width:min(100%,780px);width:100%}
.movement-summary strong small{display:block;margin-top:3px;color:#65758b;font-size:.72rem;font-weight:800;white-space:normal}
.movement-filter{display:grid;grid-template-columns:minmax(160px,220px) minmax(160px,220px) minmax(240px,1fr) minmax(140px,180px);gap:14px;align-items:end;margin:0 auto 16px;width:100%;max-width:1680px}
.movement-filter label{display:grid;gap:6px;font-weight:800;min-width:0}
.movement-filter input,.movement-filter select{min-height:48px;border:1px solid #c9d5e5;border-radius:12px;background:#fff;color:#10213a;padding:0 14px;font:inherit}
.movement-filter input,.movement-filter select,.movement-actions a,.movement-actions button,.movement-filter button{-webkit-appearance:none;appearance:none}
.movement-actions a,.movement-actions button,.movement-filter button{min-height:48px;display:inline-flex;align-items:center;justify-content:center}
.movement-filter select[multiple]{height:92px;padding:7px 10px}
.movement-filter button{min-height:48px;border:0;border-radius:12px;background:#195fb3;color:#fff;padding:0 24px;font-weight:850;font:inherit;cursor:pointer}
.movement-report-loading{padding:15px 18px;border-radius:12px;background:#edf2f7;color:#42546c;margin:0 auto 14px;max-width:1680px}
.movement-table-section{overflow:visible;padding-bottom:40px;width:100%;max-width:1680px;margin:0 auto}
.movement-table-title-row{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:8px 0 10px}
.movement-table-title-row h2{margin:0;font-size:clamp(1.3rem,3vw,2rem)}
.movement-table-title-row small{color:#65758b;font-weight:700;white-space:nowrap}
.movement-table-wrap{
  width:100%;
  min-width:0;
  max-width:100%;
  max-height:none;
  overflow-x:auto;
  overflow-y:visible;
  border:1px solid #d0dae7;
  border-radius:12px;
  background:#fff;
  box-shadow:0 4px 18px rgba(16,33,58,.05);
  touch-action:pan-x pan-y pinch-zoom;
}
.movement-table{border-collapse:separate;border-spacing:0;background:#fff;font-size:clamp(.86rem,.82vw,1rem);white-space:nowrap;table-layout:fixed;min-width:1120px;width:100%;border-radius:12px;overflow:hidden}
.movement-table th,.movement-table td{border-right:1px solid #d7e0eb;border-bottom:1px solid #d7e0eb;padding:8px 6px;line-height:1.2;vertical-align:middle}
.movement-table th:last-child,.movement-table td:last-child{border-right:0}
.movement-table tbody tr:last-child td{border-bottom:0}
.movement-table th{background:#eef3f9;color:#10213a;font-weight:900;text-align:left;white-space:normal;font-size:clamp(.82rem,.78vw,.96rem);min-width:0}
.movement-table .movement-total-row th{background:#dfe8f4;color:#195fb3;text-align:right;font-weight:950}
.movement-table .movement-total-row th:empty{background:#eef3f9}
.movement-table tbody tr:nth-child(even){background:#f9fbfd}
.movement-table td:nth-child(3),
.movement-table td:nth-child(4),
.movement-table td:nth-child(5){text-align:right;font-variant-numeric:tabular-nums}
.movement-table th:nth-child(1),.movement-table td:nth-child(1){width:8%}
.movement-table th:nth-child(2),.movement-table td:nth-child(2){width:13%;white-space:normal}
.movement-table th:nth-child(3),.movement-table td:nth-child(3){width:7%}
.movement-table th:nth-child(4),.movement-table td:nth-child(4){width:7%}
.movement-table th:nth-child(5),.movement-table td:nth-child(5){width:8%}
.movement-table th:nth-child(6),.movement-table td:nth-child(6){width:8%}
.movement-table th:nth-child(7),.movement-table td:nth-child(7){width:12%}
.movement-table th:nth-child(8),.movement-table td:nth-child(8){width:12%}
.movement-table th:nth-child(9),.movement-table td:nth-child(9){width:17%;white-space:normal}
.movement-table th:nth-child(10),.movement-table td:nth-child(10){width:8%}
.movement-col-button{width:100%;border:0;background:transparent;color:inherit;font:inherit;font-weight:900;text-align:inherit;padding:0;cursor:pointer}
.movement-col-button.is-filtered{color:#b51e24}
.movement-filter-popup{position:fixed;inset:0;z-index:9999;background:rgba(8,16,28,.42);display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto;-webkit-overflow-scrolling:touch}
.movement-filter-card{width:min(96vw,720px);max-height:calc(100dvh - 36px);display:flex;flex-direction:column;background:#fff;color:#10213a;border:1px solid #cad5e3;border-radius:16px;box-shadow:0 18px 45px rgba(15,23,42,.25);overflow:hidden}
.movement-filter-head,.movement-filter-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:#f4f7fb}
.movement-filter-head strong{font-size:1.05rem}.movement-filter-head button{border:0;background:#10213a;color:#fff;border-radius:10px;width:34px;height:34px;font-size:1.2rem}
.movement-filter-sort{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 14px;border-bottom:1px solid #e1e7f0}
.movement-filter-sort button,.movement-filter-foot button{border:1px solid #cad5e3;border-radius:10px;background:#fff;color:#10213a;padding:10px 12px;font-weight:850}
.movement-filter-foot button:last-child{background:#2368bd;color:#fff;border-color:#2368bd}
.movement-filter-list{overflow:auto;-webkit-overflow-scrolling:touch;padding:8px 14px;display:grid;gap:6px;min-height:0;flex:1 1 auto}
.movement-filter-list label{display:flex;align-items:center;gap:9px;min-height:38px;border:1px solid #e1e7f0;border-radius:10px;padding:8px 10px;background:#fff;font-weight:750}
.movement-filter-list input{width:18px;height:18px;accent-color:#2368bd}.movement-filter-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:1440px){
  .movement-report-page{padding-left:clamp(44px,4vw,72px);padding-right:clamp(44px,4vw,72px)}
  .movement-table{font-size:1rem}
  .movement-table th,.movement-table td{padding:10px 8px}
}
@media(min-width:761px) and (max-width:991px){
  .movement-filter{grid-template-columns:repeat(2,minmax(0,1fr))}
  .movement-filter button{grid-column:1/-1}
  .movement-table{min-width:1080px;width:max-content;font-size:.82rem}
  .movement-table th,.movement-table td{padding:7px 5px}
}
@media(max-width:760px){
  .report-display-actions{width:100%!important;display:flex!important;justify-content:flex-end!important}
  .report-display-actions .display-button{width:38px!important;height:38px!important;min-height:38px!important;border-radius:11px!important;font-size:.86rem!important}
  .report-display-actions .icon-display-button{font-size:.98rem!important}
  .movement-report-page{width:100%!important;max-width:100%!important;padding:max(14px,env(safe-area-inset-top)) 10px max(24px,env(safe-area-inset-bottom));overflow-x:hidden}
  .movement-report-header{flex-direction:column}
  .movement-actions{width:100%}
  .movement-actions>*{min-width:0;text-align:center}
  .movement-summary{display:grid!important;grid-template-columns:minmax(0,1fr)!important;justify-content:stretch;max-width:100%;width:100%;gap:0}
  .movement-summary span,.movement-summary strong{display:block;width:100%;min-width:0}
  .movement-summary span{border-radius:14px 14px 0 0;padding:9px 12px}
  .movement-summary strong{border-radius:0 0 14px 14px;padding:10px 12px}
  .movement-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px}
  .movement-filter label{min-width:0}
  .movement-filter button{grid-column:1/-1}
  .movement-table-section{width:100%;max-width:100%;overflow:hidden}
  .movement-table-title-row{align-items:flex-start;flex-direction:column;gap:4px}
  .movement-table-title-row small{white-space:normal}
  .movement-table-wrap{display:block;width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom}
  .movement-table{font-size:.74rem;min-width:860px;width:860px;table-layout:fixed}
  .movement-table th,.movement-table td{padding:6px 4px}
  .movement-table th{font-size:.70rem}
  .movement-table th:nth-child(1),.movement-table td:nth-child(1){width:72px}
  .movement-table th:nth-child(2),.movement-table td:nth-child(2){width:112px}
  .movement-table th:nth-child(3),.movement-table td:nth-child(3){width:72px}
  .movement-table th:nth-child(4),.movement-table td:nth-child(4){width:72px}
  .movement-table th:nth-child(5),.movement-table td:nth-child(5){width:78px}
  .movement-table th:nth-child(6),.movement-table td:nth-child(6){width:72px}
  .movement-table th:nth-child(7),.movement-table td:nth-child(7){width:104px}
  .movement-table th:nth-child(8),.movement-table td:nth-child(8){width:104px}
  .movement-table th:nth-child(9),.movement-table td:nth-child(9){width:116px}
  .movement-table th:nth-child(10),.movement-table td:nth-child(10){width:58px}
  .movement-filter-popup{align-items:flex-start;padding:8px}
  .movement-filter-card{width:100%;max-height:calc(100dvh - 16px);border-radius:14px}
  .movement-filter-head,.movement-filter-foot{padding:10px}
  .movement-filter-sort{padding:10px;grid-template-columns:1fr;gap:7px}
  .movement-filter-list{padding:8px 10px}
}

/* Scanner urun/satis fiyat yerlesimi - 2026-08-09 */
.scanner-barcode-only-row{grid-template-columns:minmax(0,1fr)!important;}
.scanner-product-price-row{grid-template-columns:minmax(0,1fr) auto!important;align-items:stretch;}
.scanner-inline-price{min-width:96px;display:flex;flex-direction:column;justify-content:center;align-items:flex-end;text-align:right;padding:7px 10px;border:1px solid rgba(255,213,74,.45);border-radius:12px;background:#111a28;}
.scanner-inline-price span{color:var(--muted);font-size:.58rem;font-weight:800;text-transform:uppercase;white-space:nowrap;}
.scanner-inline-price strong{margin-top:3px;color:var(--accent);font-size:1.05rem;line-height:1.1;white-space:nowrap;}
.scanner-stock-band-without-main{grid-template-columns:repeat(4,minmax(0,1fr));}
@media(max-width:390px){.scanner-inline-price{min-width:82px;padding:6px 7px}.scanner-inline-price strong{font-size:.94rem}.scanner-stock-band-without-main{gap:4px}.scanner-stock-band-without-main .scanner-stock-tile{padding-left:4px;padding-right:4px}.scanner-stock-band-without-main .scanner-stock-tile span{font-size:.48rem}}

/* Satis raporu - Yok Urun Analizi / Hareket ile ayni tam sayfa davranisi - 2026-08-09 */
body.sales-report-body{
  overflow:auto!important;
  overscroll-behavior:auto;
  touch-action:pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling:touch;
  background:#f7f9fc;
}
body.sales-report-body main{
  width:100%;
  min-width:100%;
  min-height:100dvh;
  overflow:visible;
}
.sales-report-page{
  min-height:100dvh!important;
  width:100%!important;
  min-width:0!important;
  padding:max(18px,env(safe-area-inset-top)) clamp(14px,3vw,44px) max(28px,env(safe-area-inset-bottom))!important;
  overflow:visible!important;
  background:#f7f9fc!important;
  color:#10213a!important;
  touch-action:pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling:touch;
}
.sales-report-header{
  position:static!important;
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  width:100%;
  max-width:1680px;
  margin:0 auto;
  background:transparent!important;
  padding:0!important;
}
.sales-report-eyebrow{font-size:.73rem;font-weight:900;letter-spacing:.12em;color:#b51e24;margin-bottom:5px}
.sales-report-header h1{margin:0!important;font-size:clamp(1.8rem,2.2vw,3rem)!important;line-height:1.08}
.sales-report-header p{margin:7px 0 0;color:#65758b;max-width:860px;font-size:clamp(.95rem,1vw,1.12rem)}
.sales-report-actions{display:flex;gap:8px;flex:0 0 auto}
.sales-report-actions a,.sales-report-actions button{
  border:1px solid #cad5e3;
  border-radius:12px;
  background:#fff;
  color:#10213a;
  padding:11px 14px;
  text-decoration:none;
  font-weight:750;
  font:inherit;
  white-space:nowrap;
}
.sales-report-product{
  margin:18px 0 16px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  align-items:stretch;
  width:100%;
  max-width:1680px;
  margin-left:auto!important;
  margin-right:auto!important;
}
.sales-report-product>div{display:grid;gap:4px;background:#e8eef7;color:#10213a;padding:11px 16px;border-radius:14px;min-width:0;width:min(100%,760px)}
.sales-report-product span{color:#65758b;font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.03em}
.sales-report-product strong{display:block!important;font-size:1.04rem;white-space:normal;overflow-wrap:anywhere}.sales-report-product small{display:block;color:#42546c;font-size:.92rem;font-weight:800;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
.sales-report-top-stores{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 auto 12px;max-width:1680px;width:100%}
.sales-report-top-store{display:grid;gap:4px;background:#fff;border:1px solid #d8dee9;border-radius:12px;padding:10px 12px;min-width:0}
.sales-report-top-store span{color:#65758b;font-size:.68rem;font-weight:850;text-transform:uppercase}
.sales-report-top-store strong{color:#10213a;font-size:.88rem;line-height:1.12;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-report-top-store b{color:#b51e24;font-size:1rem;font-variant-numeric:tabular-nums}
.sales-report-loading{padding:15px 18px!important;border-radius:12px!important;background:#edf2f7!important;color:#42546c!important;margin:0 auto 14px!important;max-width:1680px}
.sales-report-table-section{overflow:visible;padding-bottom:40px;width:100%;max-width:1680px;margin:0 auto}
.sales-report-table-title-row{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:8px 0 10px}
.sales-report-table-title-row h2{margin:0;font-size:clamp(1.3rem,3vw,2rem)}
.sales-report-table-title-row small{color:#65758b;font-weight:700;white-space:nowrap}
.sales-report-table-wrap{
  width:100%;
  min-width:100%;
  max-width:100%;
  max-height:none;
  overflow-x:auto;
  overflow-y:visible;
  border:1px solid #d0dae7;
  border-radius:12px;
  background:#fff;
  box-shadow:0 4px 18px rgba(16,33,58,.05);
  touch-action:pan-x pan-y pinch-zoom;
}
.sales-report-table{
  border-collapse:separate!important;
  border-spacing:0!important;
  background:#fff!important;
  font-size:clamp(.86rem,.82vw,1rem)!important;
  white-space:nowrap!important;
  table-layout:fixed!important;
  min-width:760px!important;
  width:100%!important;
  border-radius:12px;
  overflow:hidden;
}
.sales-report-table col.date-col{width:10%!important}
.sales-report-table col.number-col{width:15%!important}
.sales-report-table th,.sales-report-table td{
  border:0!important;
  border-right:1px solid #d7e0eb!important;
  border-bottom:1px solid #d7e0eb!important;
  padding:8px 5px!important;
  line-height:1.22!important;
  text-align:center;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  width:auto!important;
}
.sales-report-table th:last-child,.sales-report-table td:last-child{border-right:0!important}
.sales-report-table tbody tr:last-child td{border-bottom:0!important}
.sales-report-table thead th{background:#eef3f9!important;color:#10213a!important;font-weight:900!important}
.sales-report-table thead .sales-report-total-row th{background:#fff6df!important;color:#10213a!important;font-weight:950!important}
.sales-report-table thead .sales-report-total-row th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.sales-report-table tbody tr:nth-child(even){background:#f9fbfd}
.sales-report-table .date-cell{
  text-align:left!important;
  background:inherit!important;
  min-width:0!important;
  width:auto!important;
  font-size:.82rem!important;
  white-space:normal!important;
  line-height:1.08!important;
}
.sales-report-table .date-cell span,.sales-report-table .date-cell small{display:block}
.sales-report-table .date-cell small{font-size:.86em;color:#65758b;margin-top:1px}
.sales-report-table th:first-child{min-width:0!important;width:auto!important}
.sales-report-table th.number-cell,.sales-report-table td.number-cell{min-width:0!important;width:auto!important;padding-left:3px!important;padding-right:3px!important;text-align:right!important;font-variant-numeric:tabular-nums}
.sales-report-table th:not(:first-child),.sales-report-table td:not(:first-child){font-variant-numeric:tabular-nums}
@media(min-width:1440px){
  .sales-report-page{padding-left:clamp(44px,4vw,72px)!important;padding-right:clamp(44px,4vw,72px)!important}
  .sales-report-table th,.sales-report-table td{padding:10px 7px!important}
}
@media(max-width:760px){
  .sales-report-page{padding:max(14px,env(safe-area-inset-top)) 12px max(24px,env(safe-area-inset-bottom))!important}
  .sales-report-header{flex-direction:column}
  .sales-report-actions{width:100%}
  .sales-report-actions>*{min-width:0;text-align:center;overflow:hidden;text-overflow:ellipsis}
  .sales-report-product{justify-content:stretch;max-width:100vw;flex-wrap:wrap}
  .sales-report-product>div{flex:1 1 160px;min-width:0}
  .sales-report-top-stores{gap:5px}
  .sales-report-top-store{padding:7px 6px;border-radius:9px}
  .sales-report-top-store span{font-size:.54rem}
  .sales-report-top-store strong{font-size:.66rem}
  .sales-report-top-store b{font-size:.76rem}
  .sales-report-table-title-row{align-items:flex-start;flex-direction:column;gap:4px}
  .sales-report-table{font-size:.68rem!important;min-width:320px!important;width:max-content!important}
  .sales-report-table col.date-col{width:54px!important}
  .sales-report-table col.number-col{width:40px!important}
  .sales-report-table th,.sales-report-table td{padding:5px 2px!important}
  .sales-report-table .date-cell,.sales-report-table th:first-child{min-width:54px!important;width:54px!important;font-size:.62rem!important}
  .sales-report-table th.number-cell,.sales-report-table td.number-cell{min-width:40px!important;width:40px!important;padding-left:1px!important;padding-right:1px!important}
}

/* Listeler ikinci karşılama ekranı */
.portal-card-button {
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.portal-card-button:hover { transform: translateY(-2px); }
.listeler-notice {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #42536b;
    border-radius: 14px;
    background: #101e30;
    color: #d9e1eb;
    font-weight: 700;
}

/* MERKEZ kullanıcıları için tüm ekranlarda zorunlu veritabanı / şube seçimi */
.merkez-selection-shell{position:relative;z-index:1000;background:#081524;border-bottom:2px solid #ffc52f;padding:10px 14px;color:#fff;box-shadow:0 3px 14px rgba(0,0,0,.25)}
.merkez-selection-form{max-width:1500px;margin:0 auto;display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.merkez-selection-title{font-weight:900;letter-spacing:.08em;color:#ffc52f;font-size:16px;align-self:center;margin-right:4px}
.merkez-selection-form label{display:flex;flex-direction:column;gap:3px;min-width:220px;font-size:11px;font-weight:800;color:#c9d4e4}
.merkez-selection-form select{height:38px;min-width:220px;border:1px solid #42536a;border-radius:9px;background:#101f33;color:#fff;padding:0 10px;font-size:13px;font-weight:700}
.merkez-selection-form button{height:38px;border:0;border-radius:9px;background:#ffc52f;color:#07111e;padding:0 20px;font-weight:900;cursor:pointer}
.merkez-selection-current{font-size:11px;align-self:center;color:#c9d4e4;min-width:220px}
.merkez-selection-current strong{color:#ff8b8b}
.merkez-selection-error{max-width:1500px;margin:6px auto 0;color:#ff8b8b;font-size:12px;font-weight:800}
@media(max-width:720px){.merkez-selection-shell{padding:8px}.merkez-selection-form{gap:7px}.merkez-selection-form label{min-width:calc(50% - 4px);flex:1}.merkez-selection-form select{min-width:0;width:100%;height:36px}.merkez-selection-form button{width:100%}.merkez-selection-current{width:100%;min-width:0}}


/* Login sonrası zorunlu çalışma alanı seçimi */
.workspace-shell { min-height:100dvh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at top,#20293a 0,#101722 42%,#090d14 100%); }
.workspace-card { width:min(100%,620px); padding:34px; border:1px solid rgba(255,255,255,.1); border-radius:28px; background:rgba(14,20,31,.96); box-shadow:0 28px 80px rgba(0,0,0,.42); color:#fff; }
.workspace-brand { color:var(--accent); font-size:.78rem; font-weight:950; letter-spacing:.18em; }
.workspace-card h1 { margin:8px 0 8px; font-size:clamp(1.65rem,5vw,2.35rem); }
.workspace-lead { margin:0 0 24px; color:#b9c1cf; line-height:1.55; }
.workspace-form { display:grid; gap:16px; }
.workspace-field { display:grid; gap:7px; }
.workspace-field span { color:#d7dce5; font-size:.82rem; font-weight:850; }
.workspace-field select { width:100%; min-height:58px; padding:0 16px; border:1px solid rgba(255,255,255,.14); border-radius:16px; background:#151e2d; color:#fff; font-size:1rem; font-weight:750; outline:none; }
.workspace-field select:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(255,201,40,.12); }
.workspace-field select:disabled { opacity:.55; }
.workspace-continue { min-height:60px; margin-top:4px; border:0; border-radius:16px; background:var(--accent); color:#0a0d13; font-size:1rem; font-weight:950; cursor:pointer; }
.workspace-error { margin:0 0 18px; padding:13px 15px; border:1px solid rgba(255,90,105,.4); border-radius:14px; background:rgba(255,90,105,.12); color:#ffbdc4; font-weight:750; }
.workspace-logout { margin-top:14px; text-align:center; }
.workspace-logout button { border:0; background:transparent; color:#aeb6c5; text-decoration:underline; cursor:pointer; }
@media (max-width:620px) { .workspace-shell { padding:14px; } .workspace-card { padding:24px 18px; border-radius:22px; } }


/* NamliMobil genel responsive ekran standardi - 2026-08-13
   Iceride bagimsiz scrollbar yok; sığmayan durumda tum sayfa kayar. */
html,body{max-width:100%;overflow-x:hidden}
.portal-shell{width:100%;max-width:none;margin:0;min-height:100dvh;padding:clamp(12px,2.4vw,36px);overflow:visible}
.portal-shell .auth-card{max-height:none;overflow:visible}
.portal-header{width:100%}
@media(min-width:1200px){.portal-shell{padding-left:clamp(32px,4vw,72px);padding-right:clamp(32px,4vw,72px)}}

/* Muaf IP Adresleri - tam ekran, tek sayfa scroll, mobil kart gorunumu */
.muaf-ip-page{box-sizing:border-box}
.muaf-ip-header{margin-bottom:clamp(14px,2vw,26px)}
.muaf-ip-panel{width:100%;max-width:none!important;margin:0 0 clamp(14px,2vw,22px)!important;padding:clamp(16px,2vw,26px);box-sizing:border-box}
.muaf-ip-panel h2{margin:0 0 14px;font-size:clamp(1.2rem,2vw,1.65rem)}
.muaf-ip-form{display:grid!important;grid-template-columns:minmax(170px,1.15fr) minmax(110px,.55fr) minmax(220px,1.7fr) auto auto;gap:12px!important;align-items:end;margin-top:0!important}
.muaf-ip-form label{min-width:0}
.muaf-ip-form input,.muaf-ip-form select{width:100%;min-width:0;box-sizing:border-box;background:#091422;border:1px solid #34445b;border-radius:12px;padding:13px;color:#fff;font:inherit}
.muaf-check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important;min-height:48px;white-space:nowrap;padding:0 4px}
.muaf-check input{width:auto!important;margin:0;flex:0 0 auto}
.muaf-add-btn{width:auto!important;min-width:84px;min-height:48px}
.muaf-ip-list-panel{padding:0;overflow:visible!important}
.muaf-ip-table{width:100%;display:grid;overflow:visible}
.muaf-ip-row{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(72px,.45fr) minmax(180px,1.6fr) minmax(92px,.55fr) minmax(80px,.5fr) minmax(190px,1fr);align-items:center;gap:0;border-bottom:1px solid #263750;min-width:0}
.muaf-ip-row:last-child{border-bottom:0}
.muaf-ip-head{font-weight:900;background:#0c1929}
.muaf-ip-head>div,.muaf-cell{padding:13px 12px;min-width:0;overflow-wrap:anywhere}
.muaf-cell-ip{white-space:nowrap;overflow-wrap:normal}
.muaf-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.muaf-actions form{margin:0!important;display:block!important}
.muaf-actions .ghost-btn{padding:10px 12px;white-space:nowrap}

@media(max-width:980px){
  .muaf-ip-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .muaf-field-desc{grid-column:1/-1}
  .muaf-check{align-self:center}
  .muaf-add-btn{width:100%!important}
  .muaf-ip-head{display:none}
  .muaf-ip-table{gap:10px}
  .muaf-ip-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:14px;border:1px solid #263750;border-radius:16px;background:#0d1b2c}
  .muaf-cell{padding:0;display:grid;grid-template-columns:minmax(74px,.55fr) minmax(0,1fr);gap:8px;align-items:start}
  .muaf-cell::before{content:attr(data-label);color:#9eacbf;font-size:.76rem;font-weight:850}
  .muaf-cell-desc,.muaf-actions{grid-column:1/-1}
  .muaf-actions{display:flex;grid-template-columns:none;justify-content:flex-end;padding-top:6px;border-top:1px solid #263750}
  .muaf-actions::before{display:none}
}
@media(max-width:620px){
  .portal-shell{padding:12px!important}
  .muaf-ip-header{flex-direction:column;gap:12px;align-items:stretch}
  .muaf-ip-header .ghost-btn{text-align:center}
  .muaf-ip-panel{padding:14px}
  .muaf-ip-form{grid-template-columns:1fr}
  .muaf-field-desc{grid-column:auto}
  .muaf-check{min-height:auto;padding:4px 0}
  .muaf-ip-row{grid-template-columns:1fr;padding:13px}
  .muaf-cell,.muaf-cell-desc{grid-column:auto;grid-template-columns:92px minmax(0,1fr)}
  .muaf-actions{grid-column:auto;justify-content:stretch;display:grid;grid-template-columns:1fr 1fr}
  .muaf-actions form,.muaf-actions .ghost-btn{width:100%}
}
@media(max-width:380px){
  .muaf-cell{grid-template-columns:78px minmax(0,1fr);font-size:.92rem}
  .muaf-actions{grid-template-columns:1fr}
}


/* Global 10 saniye istek hatasi bildirimi */
.namli-global-error-toast{position:fixed;z-index:2147483000;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(620px,calc(100vw - 28px));padding:14px 16px;border-radius:14px;background:#991b1b;color:#fff;font-weight:800;line-height:1.4;box-shadow:0 18px 50px rgba(15,23,42,.3);text-align:center}.namli-global-error-toast[hidden]{display:none!important}

/* NAMLI - Kalici hata bildirimi: kullanıcı Tamam demeden kapanmaz. */
.namli-global-error-overlay[hidden]{display:none!important}
.namli-global-error-overlay{position:fixed;inset:0;z-index:2147483647;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(7,18,35,.62);backdrop-filter:blur(3px)}
.namli-global-error-dialog{width:min(92vw,480px);background:#fff;color:#132238;border-radius:20px;box-shadow:0 24px 70px rgba(0,0,0,.35);padding:24px;text-align:center;display:grid;gap:14px;justify-items:center}
.namli-global-error-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#b51e24;color:#fff;font-size:32px;font-weight:900;line-height:1}
.namli-global-error-dialog strong{font-size:1.18rem}
.namli-global-error-message{font-size:1rem;line-height:1.5;color:#42546c;overflow-wrap:anywhere}
.namli-global-error-ok{min-width:150px;min-height:48px;border:0;border-radius:12px;background:#b51e24;color:#fff;font:inherit;font-weight:800;cursor:pointer;padding:10px 22px}
.namli-global-error-ok:focus-visible{outline:3px solid rgba(181,30,36,.28);outline-offset:3px}
body.namli-error-dialog-open{overflow:hidden}

/* Rapor menüsünden açılan Satış/Hareket ekranları - ürün autosearch ve sola hizalama */
.sales-report-header,
.sales-report-product,
.sales-report-top-stores,
.sales-report-loading,
.sales-report-table-section,
.movement-report-header,
.movement-summary,
.movement-filter,
.movement-report-loading,
.movement-table-section{
  margin-left:0!important;
  margin-right:auto!important;
}
.sales-report-product{justify-content:flex-start!important}

.report-product-picker{position:relative;z-index:30}
.report-product-picker-card{
  position:relative;
  width:min(100%,780px)!important;
  max-width:780px;
  display:grid!important;
  gap:8px!important;
  padding:12px 14px!important;
  border:1px solid #d4deea!important;
  border-radius:14px!important;
  background:#e8eef7!important;
  color:#10213a!important;
  box-sizing:border-box;
}
.report-product-picker-card>label{
  display:block;
  padding:0!important;
  background:transparent!important;
  color:#10213a!important;
  font-size:.76rem!important;
  font-weight:900!important;
}
.report-product-search-wrap{position:relative;min-width:0}
.report-product-search-wrap>input{
  width:100%;
  min-width:0;
  min-height:46px;
  padding:0 13px;
  border:1px solid #bdcce0;
  border-radius:11px;
  background:#fff;
  color:#10213a;
  font:inherit;
  font-weight:750;
  outline:none;
  box-sizing:border-box;
}
.report-product-search-wrap>input:focus{border-color:#2368bd;box-shadow:0 0 0 3px rgba(35,104,189,.13)}
.report-product-suggestions{
  position:absolute;
  z-index:200;
  top:calc(100% + 5px);
  left:0;
  right:0;
  max-height:320px;
  overflow:auto;
  border:1px solid #c8d5e5;
  border-radius:12px;
  background:#fff;
  box-shadow:0 16px 36px rgba(16,33,58,.18);
}
.report-product-suggestion{
  width:100%;
  display:grid;
  gap:3px;
  padding:10px 12px;
  border:0;
  border-bottom:1px solid #e3e9f1;
  background:#fff;
  color:#10213a;
  text-align:left;
  cursor:pointer;
  font:inherit;
}
.report-product-suggestion:last-child{border-bottom:0}
.report-product-suggestion:hover,.report-product-suggestion:focus{background:#eef5ff;outline:none}
.report-product-suggestion strong{display:block!important;padding:0!important;background:transparent!important;color:#10213a!important;font-size:.92rem!important;font-weight:900!important}
.report-product-suggestion small{display:block!important;margin:0!important;color:#66768b!important;font-size:.75rem!important;font-weight:750!important}
.report-product-suggestion-empty{padding:12px;color:#66768b;font-weight:750}
.report-selected-product{display:flex;align-items:baseline;gap:10px;min-width:0;padding-top:2px}
.report-selected-product strong{display:block!important;padding:0!important;background:transparent!important;color:#10213a!important;font-size:.92rem!important;white-space:nowrap!important}
.report-selected-product small{display:block!important;margin:0!important;padding:0!important;background:transparent!important;color:#42546c!important;font-size:.82rem!important;font-weight:800!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}

.movement-summary{display:block!important;margin-top:18px!important;margin-bottom:18px!important}
.movement-summary .report-product-picker-card{width:min(100%,780px)!important;max-width:780px!important}
.movement-filter{grid-template-columns:minmax(160px,220px) minmax(160px,220px) minmax(240px,1fr)!important}

@media(max-width:760px){
  .report-product-picker-card{width:100%!important;max-width:none!important;padding:10px!important}
  .report-selected-product{display:grid;gap:2px}
  .report-selected-product small{white-space:normal!important}
  .movement-filter{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .movement-filter button{grid-column:1/-1!important}
}
.customer-search-wrap{grid-template-columns:minmax(0,1fr)}.customer-search-wrap input{padding-right:42px!important}.customer-search-busy{right:14px}
