:root { 
    --primary: #D62828;
    --dark: #121212; 
    --glass: rgba(255,255,255,0.9); 
    --card: #ffffff; 
    --muted: #6b7280; 
    --border: #e5e7eb; 
    --success: #22c55e; 
    --error: #ef4444; 
    --bg-color: #f3f4f6;
  }
  body { 
    font-family: 'Outfit', sans-serif; 
    background-color: var(--bg-color); 
    margin: 0;
    padding: 0; 
    color: var(--dark); 
    padding-top: 190px; 
  }
  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }


  /* Sevkiyat banner */
  .sevk-banner { background: #eff6ff; border-top: 1px solid #bfdbfe; padding: 8px 14px; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .sevk-banner::-webkit-scrollbar { display: none; }
  .sevk-banner-label { font-size: 9px; color: #93c5fd; white-space: nowrap; flex-shrink: 0; font-weight: 600; }
  .sevk-chip { background: white; border: 1px solid #bfdbfe; border-radius: 8px; padding: 5px 10px; flex-shrink: 0; cursor: pointer; transition: 0.15s; }
  .sevk-chip:hover { background: #eff6ff; }
  .sevk-chip-no { font-size: 10px; font-weight: 700; color: #1d4ed8; }
  .sevk-chip-meta { font-size: 8px; color: #64748b; margin-top: 1px; }

  /* === DEPO v9 YENİ TEMA === */
  :root {
    --depo-primary: #1e40af;
    --depo-primary-light: #eff6ff;
    --depo-border: #e2e8f0;
    --depo-surface: #ffffff;
    --depo-bg: #f8fafc;
    --depo-text: #0f172a;
    --depo-text-2: #64748b;
  }
  .header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 10; 
    background: #1e40af;
    padding: 10px 16px 12px 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  }
  .header-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .logo-area { display: flex; align-items: center; gap: 8px; }
  .logo-text { display: flex; flex-direction: column; }
  .logo-text span:first-child { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #6b7280; }
  .logo-text span:last-child { font-size: 18px; font-weight: 800; color: #111827; }
  .user-pill {
    padding: 6px 10px; border-radius: 999px; background: rgba(15, 23, 42, 0.06);
    display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #111827;
  }
  .user-pill span.icon {
    width: 20px; height: 20px; border-radius: 999px; background: #111827; color: #f9fafb;
    display:flex; align-items:center; justify-content:center; font-size: 11px; font-weight: 700;
  }

  .invoice-bar { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
  .invoice-info { font-size:12px; color:#4b5563; display:flex; flex-wrap:wrap; gap:4px; align-items:center; }
  .invoice-info span:last-child { font-weight:600; color:#111827; }
  .invoice-btn {
    padding:6px 10px; border-radius:999px; border:1px solid rgba(148,163,184,0.7);
    background:#ffffff; font-size:11px; font-weight:600; cursor:pointer;
    white-space:nowrap; display:flex; align-items:center; gap:4px;
  }

  .progress-track { width: 100%; height: 6px; border-radius: 999px; background: rgba(15, 23, 42, 0.06); overflow: hidden; margin-bottom: 6px; }
  .progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #16a34a, #22c55e); transition: width 0.3s ease; }

  .summary-bar { font-size: 15px; color: #ffffff; font-weight: 600; margin-bottom: 10px; display:flex; align-items:center; gap:6px; }

  .dashboard { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .dashboard::-webkit-scrollbar { display: none; }

  .ring-card {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    cursor: pointer; padding: 4px 6px; border-radius: 10px;
    transition: background 0.2s; min-width: 56px;
  }
  .ring-card:hover { background: rgba(255,255,255,0.1); }
  .ring-card.selected { background: rgba(255,255,255,0.15); }
  .ring-card.selected { border-color: var(--primary); box-shadow: 0 10px 24px rgba(220, 38, 38, 0.18); }
  .ring-circle {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: white;
    position: relative;
  }
  .ring-label { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.85); text-align:center; white-space: nowrap; }
  .ring-irs { font-size: 8px; font-weight: 700; color: #fbbf24; text-align:center; white-space: nowrap; letter-spacing: 0.3px; }

  .container { padding: 15px; max-width: 600px; margin: 0 auto; padding-bottom: 100px; }
  .search-wrapper { position: relative; margin-bottom: 8px; }
  .search-box { 
    width: 100%; padding: 16px; padding-left: 50px; border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.4); background: rgba(255,255,255,0.96);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10); font-size: 18px; font-weight: 600; outline: none;
  }
  .search-box::placeholder { color: #9ca3af; font-weight: 400; }
  .search-icon { position: absolute; left: 15px; top: 16px; font-size: 20px; opacity: 0.5; }

  .status-bar { display: flex; gap: 8px; margin: 8px 0 12px 0; overflow-x: auto; scrollbar-width: none; }
  .status-bar::-webkit-scrollbar { display: none; }
  .status-chip { 
    padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.6); 
    font-size: 13px; font-weight: 600; background: white; cursor: pointer; white-space: nowrap;
  }
  .status-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

  /* ==========================================
     NORMAL ÜRÜN KARTI
     ========================================== */
  .product-card { 
    background: var(--glass); backdrop-filter: blur(16px); border-radius: 18px;
    padding: 10px 12px; margin-bottom: 10px; box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18); 
    display:flex; align-items:center; gap:15px; position: relative;
  }
  .product-card.done { opacity: 0.75; border: 1px solid rgba(34,197,94,0.4); }
  .product-card.recent { box-shadow: 0 0 0 2px rgba(248, 250, 252, 1), 0 0 0 4px rgba(37, 99, 235, 0.7); }

  /* ==========================================
     RAFTAN AYRILACAK ÜRÜN KARTI
     ========================================== */
  .product-card.raftan {
    background: #fff7f7;
    border: 1.5px solid rgba(214, 40, 40, 0.25);
    box-shadow: 0 8px 24px rgba(214, 40, 40, 0.12);
  }
  .raftan-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    margin-top: 5px;
    animation: raftanPulse 2s infinite;
  }
  @keyframes raftanPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
  }

  .prod-img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background:#e5e7eb; flex-shrink:0; }
  .prod-info { flex:1; min-width:0; }
  .prod-header { display:flex; align-items:flex-start; justify-content:space-between; gap:4px; }
  .prod-name { font-size: 15px; font-weight: 700; color:#111827; }
  .prod-badge { font-size: 11px; padding: 2px 8px; border-radius:999px; background: #f97316; color:#fff; font-weight:600; white-space: nowrap; }
  .prod-code { font-size: 12px; color:#6b7280; margin-top:2px; }
  .xray-bar { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
  .xray-item { display:inline-flex; align-items:center; gap:4px; padding: 2px 6px; border-radius:999px; font-size:11px; font-weight:500; }
  .xray-item .dot { width:6px; height:6px; border-radius:999px; background:#ef4444; }
  .xray-item.green { background: #ecfdf5; color:#166534; }
  .xray-item.green .dot { background:#16a34a; }
  .xray-item.red { background:#fef2f2; color:#b91c1c; }
  .xray-item.red .dot { background:#ef4444; }
  .stamp {
    position:absolute; top:8px; right:10px; font-size: 10px; letter-spacing:0.16em;
    text-transform:uppercase; color:#16a34a; font-weight:800; padding: 3px 6px;
    border-radius:999px; border:1px dashed rgba(22,163,74,0.6); background: rgba(240, 253, 250, 0.9);
  }

  /* ==========================================
     ANA MODAL (ÜRÜN DETAY)
     ========================================== */
  .modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.55); display:none; align-items: flex-end; justify-content: center; z-index: 200;
  }
  .modal-sheet {
    background: #f9fafb; width: 100%; max-width: 640px; border-radius: 20px 20px 0 0;
    padding: 16px 16px 22px 16px; box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.35); max-height: 90vh; overflow-y: auto;
  }
  .modal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; gap:8px; }
  .modal-title { font-size: 16px; font-weight: 800; color:#111827; }
  .close-modal {
    border:none; background: rgba(148,163,184,0.18); border-radius:999px;
    width:30px; height:30px; display:flex; align-items:center; justify-content:center;
    cursor:pointer; font-size:18px; color:#4b5563;
  }
  .modal-body { display:flex; gap:12px; }
  .modal-left { width:110px; flex-shrink:0; }
  .modal-img-box { border-radius:16px; background:#e5e7eb; overflow:hidden; position:relative; cursor:pointer; }
  .modal-img-box img { width:100%; height:110px; object-fit:cover; display:block; }
  .zoom-hint { position:absolute; bottom:4px; right:4px; font-size:10px; padding:2px 6px; border-radius:999px; background:rgba(15,23,42,0.76); color:#e5e7eb; }
  .modal-tools { margin-top:8px; display:flex; flex-direction:column; gap:4px; }
  .modal-tools button { width:100%; border-radius:999px; padding:5px 8px; border:none; font-size:11px; display:flex; align-items:center; justify-content:center; gap:4px; cursor:pointer; }
  .btn-photo { background:#0f172a; color:#f9fafb; }
  .btn-search { background:#e5e7eb; color:#111827; }

  .modal-right { flex:1; min-width:0; }
  .branch-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; margin-top:6px; }
  .branch-btn {
    background: white; border: 2px solid var(--depo-border); border-radius: 14px;
    padding: 16px; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; gap: 6px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
  }
  .branch-btn:hover { border-color: #93c5fd; background: #f8fafc; }
  .branch-btn.active { border-color:#22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.35); background:#ecfdf3; }
  .branch-btn.raftan-sube {
    border-color: rgba(214,40,40,0.4);
    background: #fff7f7;
  }
  .branch-btn.raftan-sube.active { border-color:#22c55e; background:#ecfdf3; }
  .branch-name-area { display:flex; justify-content:space-between; align-items:center; font-size:14px; font-weight:700; color:#111827; }
  .branch-desc { font-size:12px; color:#6b7280; }
  .branch-pill {
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
    background: #f1f5f9; color: #64748b; display: inline-block;
  }
  .branch-pill.ayrildi { background: #eff6ff; color: #1d4ed8; }
  .branch-pill.raftan { background:#fef2f2; color:#b91c1c; }

  /* ==========================================
     ADET POPUP (RAFTAN AYIR)
     ========================================== */
  .adet-popup-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    display: none; align-items: center; justify-content: center;
    z-index: 100; padding: 20px;
  }
  .adet-popup-box {
    background: white; border-radius: 24px; padding: 24px;
    width: 100%; max-width: 340px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.4);
  }
  .adet-popup-title {
    font-size: 14px; font-weight: 800; color: #111827; margin-bottom: 4px;
  }
  .adet-popup-sub {
    font-size: 12px; color: #6b7280; margin-bottom: 16px;
  }
  .adet-popup-sube {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    background: #fef2f2; color: var(--primary);
    font-size: 12px; font-weight: 700; margin-bottom: 16px;
  }
  .adet-popup-input {
    width: 100%; padding: 14px; border-radius: 14px;
    border: 2px solid rgba(214,40,40,0.3);
    font-size: 28px; font-weight: 800; text-align: center;
    color: #111827; outline: none; margin-bottom: 16px;
  }
  .adet-popup-input:focus { border-color: var(--primary); }
  .adet-popup-actions { display: flex; gap: 10px; }
  .adet-popup-btn-cancel {
    flex: 1; padding: 12px; border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.6);
    background: #f9fafb; font-size: 14px; font-weight: 700;
    cursor: pointer; color: #4b5563;
  }
  .adet-popup-btn-ok {
    flex: 2; padding: 12px; border-radius: 12px;
    border: none; background: var(--primary);
    font-size: 14px; font-weight: 800; cursor: pointer; color: white;
  }

  .toast {
    visibility: hidden; min-width: 220px; background-color: #111827; color: #fff;
    text-align: center; border-radius: 999px; padding: 10px 16px; position: fixed;
    z-index: 60; left: 50%; bottom: 40px; transform: translateX(-50%);
    font-size: 13px; display:flex; align-items:center; justify-content:center; gap:6px;
  }
  .toast.show { visibility: visible; animation: fadein 0.3s, fadeout 0.5s 2.4s; }
  .toast.error { background-color: #b91c1c; }
  .toast.success { background-color: var(--success); }
  @keyframes fadein { from { bottom:20px; opacity:0; } to { bottom:40px; opacity:1; } }
  @keyframes fadeout { from { bottom:40px; opacity:1; } to { bottom:20px; opacity:0; } }

  #splash-screen { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: radial-gradient(circle at top, #f97316 0, #b91c1c 40%, #020617 100%);
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    transition: opacity 0.5s ease; z-index: 100;
  }
  .splash-logo { width: 180px; margin-bottom: 20px; animation: popIn 0.8s; object-fit: contain; }
  .splash-text { font-size: 18px; font-weight: 800; color: #f9fafb; text-align: center; text-shadow: 0 10px 30px rgba(0,0,0,0.45); }
  #loading-msg { margin-top: 8px; color:#e5e7eb; font-size:12px; }
  #name-input-area { margin-top: 30px; display: none; width: 80%; text-align: center; animation: slideUp 0.5s; }
  .name-inp {
    padding: 15px; width: 100%; border: 2px solid #f97316; border-radius: 12px; 
    font-size: 18px; text-align: center; margin-bottom: 15px;
  }
  .name-btn {
    padding: 15px; width: 100%; background: #f97316; border-radius: 12px;
    font-size: 18px; font-weight: bold; cursor: pointer; border:none; color:#111827; box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  }

  #irsaliye-modal { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(15,23,42,0.75); display: none; justify-content: center; 
    align-items: center; padding: 20px; z-index: 80;
  }
  .irsaliye-sheet { 
    background: white; width: 100%; max-width: 420px; border-radius: 24px;
    padding: 20px; max-height: 80vh; overflow-y: auto; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
  }
  .irsaliye-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--dark); }
  .irsaliye-chips { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; }
  .irsaliye-chip {
    padding: 8px 10px; border-radius: 12px; background:#f3f4f6; border:1px solid #e5e7eb;
    font-size:13px; cursor:pointer; display:flex; justify-content:space-between; align-items:center;
  }
  .irsaliye-chip.selected { border-color:#4f46e5; background:#eef2ff; }
  .irsaliye-devam-btn {
    width: 100%; padding: 10px 0; border-radius: 999px; border: none;
    font-weight: 700; font-size: 14px; cursor: pointer; background:#e5e7eb; color:#9ca3af;
  }
  .irsaliye-devam-btn.enabled { background: #22c55e; color:#f9fafb; }

  .google-popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.7); z-index: 90; display: none; justify-content: center; align-items: center; padding: 20px; }
  .google-popup-box { background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 18px 40px rgba(15,23,42,0.5); max-width: 400px; width: 100%; text-align: center; font-size: 14px; }
  .google-popup-actions { margin-top: 15px; display: flex; justify-content: center; gap: 10px; }
  .btn { padding: 8px 14px; border-radius: 999px; border: none; font-weight: 600; cursor: pointer; font-size: 13px; }
  .btn-outline { background:#f3f4f6; color:#374151; }
  .btn-primary { background:var(--primary); color:#fff; }

  @keyframes popIn { 0% { transform: scale(0); opacity: 0; } 80% { transform: scale(1.02); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
  @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

  .camera-card {
    background: var(--glass); backdrop-filter: blur(14px); border-radius: 20px;
    padding: 12px 14px 10px 14px; box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
    margin-bottom: 12px; border: 1px solid rgba(15, 23, 42, 0.06);
  }
  .camera-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
  .camera-title { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
  .camera-sub { font-size: 12px; color: #6b7280; margin-top: 2px; }
  .camera-mode-pill {
    padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
    background: #ecfdf3; color: #166534; border: 1px solid rgba(22, 101, 52, 0.1); white-space: nowrap;
  }
  .camera-mode-pill.handheld { background: #fffbeb; color: #92400e; border-color: rgba(146, 64, 14, 0.2); }

  .camera-frame {
    position: relative;
    width: 100%;
    min-height: 250px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 16px;
  }
  .scan-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.1);
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .scan-guide {
    width: 80%;
    height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
  }
  .scan-laser {
    width: 100%;
    height: 2px;
    background: red;
    box-shadow: 0 0 4px red;
    position: absolute;
    top: 50%;
    animation: scanAnim 2s infinite linear;
  }
  @keyframes scanAnim {
    0% { transform: translateY(-70px); opacity: 0.5; }
    50% { opacity: 1; }
    100% { transform: translateY(70px); opacity: 0.5; }
  }
  .camera-toolbar { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
  .cam-btn {
    flex: 1; min-width: 0; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(15, 23, 42, 0.08);
    background: white; font-size: 13px; font-weight: 600; display: flex; align-items: center;
    justify-content: center; gap: 6px; cursor: pointer;
  }
  .cam-btn.secondary { background: #f9fafb; }
  .cam-btn.active { border-color: var(--primary); box-shadow: 0 0 0 1px rgba(214, 40, 40, 0.4); }

  .last-scanned-wrapper { margin-bottom: 10px; }
  .last-scanned-card {
    display: flex; align-items: center; gap: 10px; background: #ffffff;
    border-radius: 18px; padding: 8px 10px; box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.06); cursor: pointer;
  }
  .last-scanned-img-wrap {
    width: 44px; height: 44px; border-radius: 14px; overflow: hidden; background: #f3f4f6;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .last-scanned-img { width: 100%; height: 100%; object-fit: cover; }
  .last-scanned-info { flex: 1; min-width: 0; }
  .last-scanned-label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary); margin-bottom: 2px; }
  .last-scanned-name { font-size: 14px; font-weight: 700; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .last-scanned-code { font-size: 12px; color: #6b7280; margin-bottom: 2px; }
  .last-scanned-xray { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }

  .completed-panel { margin-top: 12px; }
  .completed-toggle {
    width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px dashed rgba(15, 23, 42, 0.25);
    background: #f9fafb; font-size: 13px; font-weight: 600; display: flex; align-items: center;
    justify-content: center; gap: 8px; cursor: pointer; color: #374151;
  }
  .completed-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
  .completed-chip {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; border-radius: 12px; background: #ffffff; border: 1px solid rgba(15, 23, 42, 0.06); font-size: 12px;
  }
  .completed-chip .inv-name { font-weight: 600; color: #111827; }
  .completed-chip .inv-meta { font-size: 11px; color: #6b7280; }
  .completed-empty { font-size: 12px; color: #9ca3af; text-align: center; padding: 6px 4px; }

  .user-chip-area {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; 
    margin-top: 20px; max-width: 80%;
  }
  .u-chip {
    background: rgba(255,255,255,0.15); color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 14px; border-radius: 20px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: 0.2s;
  }
  .u-chip:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }
  .u-del {
    width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center; font-size: 10px;
  }
  .u-del:hover { background: #ef4444; color: white; }

  .admin-btn {
    width: 100%; margin-top: 10px; padding: 12px 0; border-radius: 999px; border: none;
    font-weight: 800; font-size: 13px; cursor: pointer;
    background: #f59e0b; color: #78350f; display: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  }

  /* Header aksiyon butonları */
  .header-actions {
    display: flex; gap: 5px; margin-top: 8px;
  }
  .hdr-btn {
    flex: 1; padding: 8px 4px; border-radius: 8px; border: none;
    font-size: 10px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 3px;
    white-space: nowrap; transition: 0.15s;
  }
  .hdr-btn-sevk {
    background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.2);
  }
  .hdr-btn-sevk:hover { background: rgba(255,255,255,0.2); }
  .hdr-btn-icerik {
    background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.2);
  }
  .hdr-btn-icerik:hover { background: rgba(255,255,255,0.2); }
  .hdr-btn-kapat {
    background: #22c55e; color: white;
    border: 1px solid #16a34a;
    box-shadow: 0 2px 8px rgba(34,197,94,0.3);
  }
  .hdr-btn-kapat:hover { background: #16a34a; }

  /* YENİ: Yeni İrsaliye butonu */
  .hdr-btn-yeni-irs {
    background: rgba(251,191,36,0.15); color: #fbbf24;
    border: 1px solid rgba(251,191,36,0.4);
  }
  .hdr-btn-yeni-irs:hover { background: rgba(251,191,36,0.25); }

  /* Şube tamamlandı mesajı */
  .empty-state {
    text-align: center; padding: 40px 20px; color: #6b7280;
  }
  .empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
  .empty-state .empty-title { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 6px; }
  .empty-state .empty-sub { font-size: 13px; }

  .branch-adet { font-size: 38px; font-weight: 900; color: #0f172a; line-height: 1; }
  .branch-isim { font-size: 12px; font-weight: 700; }
  .branch-isim.ata { color: #1e40af; }
  .branch-isim.mer { color: #b91c1c; }
  .branch-isim.fet { color: #92400e; }
  .branch-isim.top { color: #6d28d9; }
  .branch-isim.dep { color: #166534; }
  .branch-isim.ktp { color: #0f766e; }

  /* Koli durumu kartı */
  .koli-status-card { background: #1e40af; border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
  .koli-status-no { font-size: 18px; font-weight: 800; color: white; font-family: monospace; }
  .koli-status-meta { font-size: 10px; color: #bfdbfe; margin-top: 2px; }
  .koli-kapat-btn { background: #1d4ed8; border: 1px solid #3b82f6; border-radius: 10px; padding: 10px 14px; font-size: 11px; font-weight: 700; color: white; cursor: pointer; white-space: nowrap; }

  /* Uyarı banner */
  .sevkiyat-uyari { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; }
  .sevkiyat-uyari-title { font-size: 11px; font-weight: 700; color: #92400e; }
  .sevkiyat-uyari-text { font-size: 10px; color: #b45309; margin-top: 2px; }

  /* Modal yeni yapı - override */
  .modal-sheet { background: var(--depo-bg); border-radius: 24px 24px 0 0; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; padding-bottom: 20px; box-shadow: 0 -16px 50px rgba(15,23,42,0.35); }
  .modal-topbar { background: white; padding: 16px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--depo-border); position: sticky; top: 0; z-index: 10; }
  .modal-img-small { width: 72px; height: 72px; background: #f1f5f9; border-radius: 10px; border: 1px solid var(--depo-border); object-fit: contain; flex-shrink: 0; }
  .modal-bottom-bar { padding: 14px 18px; display: flex; gap: 10px; background: white; border-top: 1px solid var(--depo-border); position: sticky; bottom: 0; box-shadow: 0 -4px 16px rgba(15,23,42,0.06); }
  .btn-sevkiyat-bitir { flex: 1; background: #f8fafc; border-radius: 12px; padding: 14px; text-align: center; font-size: 13px; font-weight: 700; color: #475569; cursor: pointer; border: 2px solid #e2e8f0; transition: 0.2s; }
  .btn-sevkiyat-bitir:hover { background: #f1f5f9; border-color: #cbd5e1; }
  .btn-koliye-ekle { background: #1e40af; border-radius: 12px; padding: 14px 22px; font-size: 13px; font-weight: 800; color: white; cursor: pointer; border: 2px solid #1e40af; white-space: nowrap; transition: 0.2s; box-shadow: 0 4px 12px rgba(30,64,175,0.25); }
  .btn-koliye-ekle:hover { background: #1d4ed8; border-color: #1d4ed8; }
  .btn-koli-icerik { background: #f8fafc; border-radius: 12px; padding: 14px 16px; font-size: 13px; font-weight: 700; color: #1e40af; cursor: pointer; border: 2px solid #bfdbfe; white-space: nowrap; transition: 0.2s; }
  .btn-koli-icerik:hover { background: #eff6ff; border-color: #93c5fd; }

  /* Etiket yazdırma */
  .etiket-kutu {
    border: 1.5px dashed #94a3b8; border-radius: 6px; padding: 8px 10px;
    display: flex; flex-direction: column; overflow: hidden; background: white;
  }
  .etiket-bos { border-color: #e2e8f0; background: #f8fafc; }
  .etiket-sayfa {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr;
    gap: 8px; margin-bottom: 16px; min-height: 400px;
  }

  /* ============================================
     BACKEND QUEUE BADGE — kritik istek kuyruğu göstergesi
     Sağ üstte sabit küçük pill — kuyruk boşsa display:none.
     ============================================ */
  .queue-badge {
    position: fixed;
    top: 60px;
    right: 12px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    pointer-events: auto;
    max-width: calc(100% - 24px);
  }
  .queue-badge-waiting {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
  }
  .queue-badge-active {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
  }
  .queue-badge-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
  }

/* === DEPO LOKAL DUZELTMELERI === */
/* Raftan adet popup, urun modalinin (z-index 200) ustunde kalsin */
.adet-popup-overlay { z-index: 1250 !important; }

/* Kamera flas (Transfer Kontrol motoru) — okuma aninda parlama */
.cam-flash { position:absolute; inset:0; border-radius:16px; opacity:0; pointer-events:none; transition:opacity .12s ease; z-index:12; }
.cam-flash.ok.show { opacity:.5; background:#22c55e; }
.cam-flash.err.show { opacity:.5; background:#ef4444; }

/* ============================================================
   DEPO TASARIM ROTUSU — sade / sik / kullanisli (mantik degismez)
   ============================================================ */
/* 1) KRITIK: fixed header (~276px) govde padding-top'undan (190px) uzundu ->
   "Acik sevkiyat" banneri ve icerigin ustu header altinda kaliyordu.
   Header'i akisa alip sabit padding'i kaldiriyoruz: hata biter + listeye yer acilir. */
body { padding-top: 0 !important; }
.header { position: relative !important; padding: 10px 14px 12px; }
.header-top { margin-bottom: 8px; }
.summary-bar { font-size: 13px; margin-bottom: 8px; }
.dashboard { gap: 7px; }
.header-actions { gap: 6px; }

/* 2) Kamera karti bos alani azalt (kapaliyken bu kadar yer kaplamasin) */
.camera-frame { min-height: 210px; }

/* 3) Urun kartlari: daha hafif/tutarli golge */
.product-card { box-shadow: 0 6px 16px rgba(15,23,42,0.10); }

/* ---- FAZ 3a: HEADER daha kompakt ---- */
.header { padding: 8px 12px 9px; }
.header-top { margin-bottom: 6px; }
.top-logo { height: 22px !important; }
.summary-bar { font-size: 12px; margin-bottom: 6px; }
.progress-track { height: 5px; margin-bottom: 6px; }
.dashboard { gap: 6px; }
.ring-card { min-width: 50px; padding: 2px 4px; gap: 3px; }
.ring-label { font-size: 9px; }
.ring-irs { font-size: 7px; }
.header-actions { gap: 5px; margin-top: 6px; }
.hdr-btn { padding: 8px 3px; font-size: 9px; border-radius: 9px; }
.invoice-btn { padding: 7px 11px; font-size: 15px; border-radius: 999px; line-height: 1; }

/* ---- FAZ 3b: URUN KARTLARI sik ---- */
.product-card { padding: 11px 12px; border-radius: 16px; gap: 12px; }
.prod-img { width: 56px; height: 56px; border-radius: 12px; }
.prod-name { font-size: 14px; line-height: 1.25; }
.prod-code { font-size: 11px; color: #94a3b8; margin-top: 3px; }
.prod-badge { font-size: 10px; padding: 2px 7px; }
.xray-item { font-size: 10px; padding: 3px 7px; border-radius: 8px; }

/* ---- FAZ 3c: KAMERA alani ---- */
.camera-card { padding: 10px 12px 8px; }
.camera-frame { min-height: 190px; background: #0f172a; }
.camera-frame::after { content: "📷"; position: absolute; font-size: 40px; opacity: 0.18; z-index: 0; }
.camera-title { font-size: 12px; }
.camera-sub { font-size: 11px; }

/* ---- FAZ 3d: toast tum popuplarin (z-index 1100-1300) ustunde gorunsun ---- */
.toast { z-index: 3000 !important; }

/* ===== ACİL SEVK (Stok Zeka işaretli) =====
   Ayrı bölüm halinde en üstte; tıklama davranışı normal kartlarla aynıdır. */
.acil-baslik{
  display:flex; align-items:center; gap:8px;
  margin:4px 0 8px; padding:8px 12px;
  background:linear-gradient(90deg,#dc2626,#b91c1c); color:#fff;
  border-radius:10px; font-weight:900; font-size:13px; letter-spacing:.03em;
  box-shadow:0 2px 8px rgba(220,38,38,.35);
}
.acil-baslik .acil-sayi{
  margin-left:auto; background:rgba(255,255,255,.22);
  border-radius:99px; padding:1px 9px; font-size:12px;
}
.product-card.acil{
  border:2px solid #dc2626 !important;
  box-shadow:0 0 0 3px rgba(220,38,38,.12), 0 2px 10px rgba(220,38,38,.18);
  background:linear-gradient(180deg,#fff5f5 0%,#fff 55%);
}
.product-card.acil .prod-name{ color:#991b1b; }
.acil-not{
  margin-top:5px; font-size:11px; font-weight:800; color:#b91c1c;
  background:#fef2f2; border:1px solid #fecaca; border-radius:7px; padding:3px 8px;
}
.acil-not-metin{ font-weight:600; font-style:italic; color:#7f1d1d; margin-top:2px; }
.acil-ayrac{ height:1px; background:#e5e7eb; margin:10px 0 12px; }
