  :root {
    --navy: #0d1f3c;
    --navy2: #162d52;
    --cyan: #00b4d8;
    --cyan2: #0077a8;
    --teal: #00c9a7;
    --light: #e8f4f8;
    --lighter: #f0f9ff;
    --white: #ffffff;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --text: #1e293b;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --info: #3b82f6;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f0f4f8;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ── HEADER ── */
  header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #1a3a6b 100%);
    color: white;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    position: sticky; top: 0; z-index: 100;
  }
  .logo { display: flex; align-items: center; gap: 12px; }
  .logo-icon {
    width: 40px; height: 40px; background: var(--cyan);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 18px; color: var(--navy);
  }
  .logo-text { font-size: 20px; font-weight: 700; letter-spacing: 0.5px; }
  .logo-sub { font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 1px; text-transform: uppercase; }

  .header-right { display: flex; align-items: center; gap: 16px; }
  #notif-btn {
    position: relative; cursor: pointer; background: rgba(255,255,255,0.1);
    border: none; color: white; width: 40px; height: 40px;
    border-radius: 8px; font-size: 18px; display: flex; align-items: center; justify-content: center;
  }
  #notif-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--danger); color: white; font-size: 10px;
    min-width: 18px; height: 18px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px; font-weight: 700;
  }
  .date-display { font-size: 13px; color: rgba(255,255,255,0.7); }

  /* ── NAV TABS ── */
  nav {
    background: var(--navy2);
    display: flex;
    padding: 0 20px;
    gap: 2px;
    border-bottom: 2px solid var(--cyan2);
    position: sticky;
    top: 64px;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  .tab-btn {
    background: none; border: none; color: rgba(255,255,255,0.65);
    padding: 12px 14px; font-size: 12.5px; font-weight: 600;
    cursor: pointer; white-space: nowrap; letter-spacing: 0.2px;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    transition: all 0.2s;
  }
  .tab-btn:hover { color: white; background: rgba(255,255,255,0.05); }
  .tab-btn.active { color: var(--cyan); border-bottom-color: var(--cyan); }

  /* ── MAIN CONTENT ── */
  main { padding: 16px 20px; max-width: 100%; box-sizing: border-box; }

  .tab-panel { display: none; }
  .tab-panel.active { display: block; }

  /* ── KPI CARDS ── */
  .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 12px; margin-bottom: 18px;
  }
  .kpi-card {
    background: white; border-radius: 10px;
    padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border-left: 4px solid var(--cyan);
    display: flex; flex-direction: column; gap: 3px;
  }
  .kpi-card.danger { border-left-color: var(--danger); }
  .kpi-card.warning { border-left-color: var(--warning); }
  .kpi-card.success { border-left-color: var(--success); }
  .kpi-label { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
  .kpi-value { font-size: 28px; font-weight: 800; color: var(--navy); }
  .kpi-sub { font-size: 12px; color: var(--gray); }

  /* ── SECTION HEADERS ── */
  .section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0; flex-wrap: wrap; gap: 8px;
    position: sticky; top: 104px; z-index: 20;
    background: #f0f4f8;
    padding: 10px 0 8px;
    border-bottom: 2px solid var(--gray-light);
  }
  .section-title { font-size: 16px; font-weight: 700; color: var(--navy); }

  /* ── FILTERS ── */
  .filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .filter-chip {
    background: var(--gray-light); border: none; padding: 6px 14px;
    border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer;
    transition: all 0.15s; color: var(--text);
  }
  .filter-chip:hover, .filter-chip.active { background: var(--cyan); color: white; }

  .search-input {
    border: 1px solid var(--gray-light); border-radius: 8px;
    padding: 8px 12px; font-size: 13px; outline: none;
    min-width: 220px; transition: border 0.2s;
  }
  .search-input:focus { border-color: var(--cyan); }

  /* ── TABLE ── */
  .table-wrap {
    background: white; border-radius: 0 0 12px 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-top: 0;
    /* overflow-x:auto enables horizontal scroll; overflow-y:clip (NOT visible/auto)
       prevents the browser from also creating a vertical scroll container,
       which would break the thead's position:sticky reference to the page viewport. */
    overflow-x: auto;
    overflow-y: clip;
    max-width: 100%;
  }
  .table-wrap table { min-width: 1500px; }
  .col-actions-sticky { position: sticky; right: 0; background: inherit; box-shadow: -4px 0 6px -2px rgba(0,0,0,0.08); }
  thead .col-actions-sticky { background: var(--navy); }
  table { width: 100%; border-collapse: collapse; font-size: 12px; }
  thead tr { background: var(--navy); color: white; }
  thead th {
    padding: 9px 10px; text-align: left; font-size: 10.5px;
    font-weight: 700; letter-spacing: 0.4px; white-space: nowrap;
    text-transform: uppercase;
    background: var(--navy);
    /* position:sticky removed — it conflicted with the table's horizontal
       scroll container (overflow-x:auto), causing the header to detach
       and overlap rows. Header now scrolls normally with the table. */
  }
  tbody tr { border-bottom: 1px solid var(--gray-light); transition: background 0.1s; }
  tbody tr:hover { background: var(--lighter); }
  tbody td { padding: 7px 10px; }

  /* ── GROUPED ROWS ── */
  tr.group-header { background: white; cursor: pointer; border-top: 2px solid #bfdbfe; }
  tr.group-header:hover { background: #f0f9ff; }
  tr.group-header td { font-weight: 600; }
  tr.group-header td:first-child { border-left: 3px solid var(--cyan2); }
  tr.sub-row td { background: #f8fbff; padding-left: 18px; font-size: 11.5px; }
  tr.sub-row:last-child { border-bottom: 2px solid #bfdbfe; }
  tr.sub-row { display: none; }
  tr.sub-row.open { display: table-row; }
  .expand-btn {
    background: none; border: 1px solid var(--cyan2); color: var(--cyan2);
    border-radius: 4px; padding: 2px 7px; font-size: 11px; font-weight: 700;
    cursor: pointer; margin-right: 6px; transition: all 0.15s;
  }
  .expand-btn:hover { background: var(--cyan2); color: white; }
  .product-stack { display: flex; flex-direction: column; gap: 3px; }
  .project-tag {
    display: inline-block; background: var(--navy); color: white;
    font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
    letter-spacing: 0.3px; margin-bottom: 3px;
  }

  /* ── BADGES ── */
  .badge {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 11px; font-weight: 700; white-space: nowrap;
  }
  .badge-danger { background: #fee2e2; color: #991b1b; }
  .badge-warning { background: #fef3c7; color: #92400e; }
  .badge-success { background: #d1fae5; color: #065f46; }
  .badge-info { background: #dbeafe; color: #1e40af; }
  .badge-gray { background: #f1f5f9; color: #475569; }
  .badge-cyan { background: #cffafe; color: #0e7490; }
  .badge-purple { background: #ede9fe; color: #5b21b6; }

  /* ── PRIORITY ── */
  .priority-1 { color: var(--danger); font-weight: 800; }
  .priority-2 { color: var(--warning); font-weight: 700; }
  .priority-3 { color: var(--success); font-weight: 600; }

  /* ── REGION CARDS ── */
  .region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px; margin-bottom: 24px;
  }
  .region-card {
    background: white; border-radius: 12px;
    padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
    border-top: 4px solid var(--cyan);
  }
  .region-card { cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s; }
  .region-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.14); }
  .region-card.canada { border-top-color: #dc2626; }
  .region-card.usa { border-top-color: #2563eb; }
  .region-name { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
  .region-card { position: relative; }
  .region-flag { position:absolute;top:8px;right:8px;width:32px;height:21px;border-radius:3px;object-fit:cover;box-shadow:0 1px 4px rgba(0,0,0,0.25); }
  .region-flag { font-size: 20px; margin-right: 6px; }
  .region-stats { display: flex; gap: 16px; }
  .region-stat { text-align: center; }
  .region-stat-val { font-size: 22px; font-weight: 800; color: var(--cyan2); }
  .region-stat-label { font-size: 10px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.3px; }

  /* ── SERVICE ALERTS ── */
  .alert-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
  .alert-item {
    background: white; border-radius: 8px; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-left: 4px solid var(--warning);
  }
  .alert-item.overdue { border-left-color: var(--danger); background: #fff5f5; }
  .alert-item[style*="cursor:pointer"]:hover { filter: brightness(0.96); transform: translateX(2px); transition: .15s; }
  .alert-item.upcoming { border-left-color: var(--warning); }
  .alert-item.ok { border-left-color: var(--success); background: #f0fdf4; }
  .alert-icon { font-size: 22px; flex-shrink: 0; }
  .alert-text { flex: 1; }
  .alert-title { font-weight: 700; font-size: 13px; color: var(--navy); }
  .alert-detail { font-size: 12px; color: var(--gray); margin-top: 2px; }
  .alert-due { font-size: 12px; font-weight: 600; white-space: nowrap; }

  /* ── R&D ── */
  .rnd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  @media(max-width:900px){ .rnd-layout { grid-template-columns: 1fr; } }
  .rnd-panel { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
  .rnd-panel h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-light); }

  .note-form { display: flex; flex-direction: column; gap: 10px; }
  .note-form input, .note-form select, .note-form textarea {
    border: 1px solid var(--gray-light); border-radius: 8px;
    padding: 9px 12px; font-size: 13px; outline: none; font-family: inherit;
    transition: border 0.2s;
  }
  .note-form input:focus, .note-form select:focus, .note-form textarea:focus { border-color: var(--cyan); }
  .note-form textarea { resize: vertical; min-height: 80px; }
  .btn {
    background: var(--cyan2); color: white; border: none;
    padding: 10px 20px; border-radius: 8px; font-size: 13px;
    font-weight: 600; cursor: pointer; transition: background 0.2s;
  }
  .btn:hover { background: var(--navy2); }
  .btn-sm { padding: 6px 14px; font-size: 12px; }

  .notes-list { display: flex; flex-direction: column; gap: 10px; max-height: 500px; overflow-y: auto; }
  .note-item {
    border: 1px solid var(--gray-light); border-radius: 8px; padding: 12px;
    font-size: 13px;
  }
  .note-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
  .note-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; }
  .note-date { font-size: 11px; color: var(--gray); }
  .note-title { font-weight: 600; margin-bottom: 4px; }
  .note-body { color: var(--gray); font-size: 12px; }

  /* chat */
  .chat-box { display: flex; flex-direction: column; height: 420px; }
  .chat-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--lighter); border-radius: 8px; margin-bottom: 10px; }
  .msg { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
  .msg.user { background: var(--cyan2); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
  .msg.ai { background: white; color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
  .chat-input-row { display: flex; gap: 8px; }
  .chat-input-row input { flex: 1; border: 1px solid var(--gray-light); border-radius: 8px; padding: 10px 14px; font-size: 13px; outline: none; }
  .chat-input-row input:focus { border-color: var(--cyan); }

  /* ── NOTIFICATION PANEL ── */
  #notif-panel {
    display: none; position: fixed; top: 70px; right: 24px; z-index: 200;
    background: white; border-radius: 12px; width: 360px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15); border: 1px solid var(--gray-light);
    max-height: 80vh; overflow-y: auto;
  }
  #notif-panel.open { display: block; }
  .notif-header {
    background: var(--navy); color: white; padding: 14px 16px;
    border-radius: 12px 12px 0 0; font-weight: 700; font-size: 14px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .notif-close { cursor: pointer; font-size: 18px; opacity: 0.7; }
  .notif-item { padding: 12px 16px; border-bottom: 1px solid var(--gray-light); font-size: 13px; }
  .notif-item:last-child { border-bottom: none; }
  .notif-item-title { font-weight: 600; color: var(--navy); }
  .notif-item-body { color: var(--gray); font-size: 12px; margin-top: 3px; }
  .notif-empty { padding: 24px; text-align: center; color: var(--gray); font-size: 13px; }

  /* ── PROD MGMT ── */
  .board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; min-height: 400px; }
  @media(max-width:1100px){ .board { grid-template-columns: repeat(2,1fr); } }
  @media(max-width:600px){ .board { grid-template-columns: 1fr; } }
  .board-col { background: var(--lighter); border-radius: 12px; padding: 14px; }
  .board-col-header {
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    color: white; padding: 8px 12px; border-radius: 8px; margin-bottom: 10px; text-align: center;
  }
  .board-col-header.backlog { background: var(--gray); }
  .board-col-header.prod { background: var(--cyan2); }
  .board-col-header.ship { background: var(--warning); color: #1e293b; }
  .board-col-header.done { background: var(--success); }
  .card {
    background: white; border-radius: 8px; padding: 12px;
    margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    font-size: 12px; cursor: pointer; transition: transform .15s, box-shadow .15s;
  }
  .card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,188,212,0.18); border-left: 3px solid var(--cyan); }
  .hover-row:hover td { background:#f0f9ff !important; }
  .th-sort { cursor:pointer; user-select:none; white-space:nowrap; }
  .th-sort:hover { color:var(--cyan); }
  .th-sort .sort-icon { font-size:10px; margin-left:3px; opacity:.5; }
  .th-sort.asc .sort-icon::after { content:"▲"; opacity:1; }
  .th-sort.desc .sort-icon::after { content:"▼"; opacity:1; }
  .th-sort:not(.asc):not(.desc) .sort-icon::after { content:"⇅"; }
  .card-customer { font-weight: 700; color: var(--navy); margin-bottom: 4px; font-size: 13px; }
  .card-desc { color: var(--gray); margin-bottom: 6px; }
  .card-meta { display: flex; justify-content: space-between; }

  /* ── SCROLLBAR ── */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: #f1f5f9; }
  ::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }

  /* ── FIREBASE SETUP BANNER ── */
  #firebase-banner {
    background: linear-gradient(135deg,#fef3c7,#fde68a);
    border: 1px solid #f59e0b; border-radius: 10px; padding: 14px 18px;
    margin-bottom: 20px; font-size: 13px; color: #78350f;
    display: flex; align-items: flex-start; gap: 12px;
  }
  #firebase-banner.hidden { display: none; }
  #firebase-banner strong { color: #92400e; }
  .sync-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #94a3b8; display: inline-block; margin-right: 6px;
    animation: pulse 2s infinite;
  }
  .sync-dot.connected { background: var(--success); animation: none; }
  .sync-dot.error { background: var(--danger); animation: none; }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

  /* ── R&D SUB-TABS ── */
  .rnd-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 2px solid var(--gray-light); }
  .rnd-tab {
    background: none; border: none; padding: 10px 18px; font-size: 13px;
    font-weight: 600; cursor: pointer; color: var(--gray);
    border-bottom: 3px solid transparent; margin-bottom: -2px;
  }
  .rnd-tab.active { color: var(--cyan2); border-bottom-color: var(--cyan2); }
  .rnd-section { display: none; }
  .rnd-section.active { display: block; }

  /* ── IMAGE GALLERY ── */
  .img-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 12px; margin-top: 14px; }
  .img-thumb {
    position: relative; border-radius: 10px; overflow: hidden;
    border: 2px solid var(--gray-light); cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    background: #f8fafc;
  }
  .img-thumb:hover { transform: scale(1.02); border-color: var(--cyan); }
  .img-thumb img { width: 100%; height: 130px; object-fit: cover; display: block; }
  .img-thumb-label { padding: 6px 8px; font-size: 11px; color: var(--gray); font-weight: 600; }
  .img-thumb-del {
    position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.6);
    color: white; border: none; border-radius: 4px; padding: 2px 6px;
    font-size: 11px; cursor: pointer;
  }
  .img-preview-overlay {
    display: none; position: fixed; inset: 0; z-index: 400;
    background: rgba(0,0,0,0.85); align-items: center; justify-content: center;
  }
  .img-preview-overlay.open { display: flex; }
  .img-preview-inner { position: relative; max-width: 90vw; max-height: 85vh; }
  .img-preview-inner img { max-width: 100%; max-height: 80vh; border-radius: 10px; display: block; }
  .img-preview-close {
    position: absolute; top: -36px; right: 0; background: rgba(255,255,255,0.2);
    color: white; border: none; border-radius: 6px; padding: 4px 12px;
    font-size: 14px; cursor: pointer; font-weight: 700;
  }
  .img-ai-result {
    background: white; border-radius: 8px; padding: 14px; margin-top: 10px;
    font-size: 13px; line-height: 1.6; max-height: 200px; overflow-y: auto;
  }
  .upload-zone {
    border: 2px dashed var(--cyan); border-radius: 10px;
    padding: 30px; text-align: center; cursor: pointer;
    transition: background 0.2s; color: var(--cyan2); font-weight: 600;
  }
  .upload-zone:hover { background: var(--lighter); }
  .upload-zone input { display: none; }

  /* ── CAD GENERATOR ── */
  .cad-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
  @media(max-width:900px){ .cad-layout { grid-template-columns: 1fr; } }
  .cad-controls { background: white; border-radius: 12px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
  .cad-controls h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
  .cad-preview {
    background: white; border-radius: 12px; padding: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08); display: flex; flex-direction: column; gap: 12px;
  }
  #cad-svg-container {
    border: 1px solid var(--gray-light); border-radius: 8px;
    background: #f8fafc; min-height: 400px; display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  #cad-svg-container svg { max-width: 100%; height: auto; }
  .cad-export-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .param-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
  .param-row label { font-size: 11px; color: var(--gray); font-weight: 600; min-width: 100px; }
  .param-row input, .param-row select { border: 1px solid var(--gray-light); border-radius: 6px; padding: 6px 10px; font-size: 12px; outline: none; flex: 1; }

  /* ── MODAL ── */
  .modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(3px);
    align-items: center; justify-content: center;
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: white; border-radius: 16px; width: 760px; max-width: 95vw;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.2s ease;
  }
  @keyframes slideUp { from { transform: translateY(30px); opacity:0; } to { transform: translateY(0); opacity:1; } }
  .modal-header {
    background: linear-gradient(135deg, var(--navy), var(--navy2));
    color: white; padding: 20px 24px;
    border-radius: 16px 16px 0 0;
    display: flex; align-items: center; justify-content: space-between;
  }
  .modal-header h2 { font-size: 16px; font-weight: 700; }
  .modal-close { background: none; border: none; color: white; font-size: 22px; cursor: pointer; opacity: 0.7; }
  .modal-close:hover { opacity: 1; }
  .modal-body { padding: 24px; }
  .modal-footer {
    padding: 16px 24px; border-top: 1px solid var(--gray-light);
    display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
  }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .form-group { display: flex; flex-direction: column; gap: 5px; }
  .form-group.full { grid-column: 1 / -1; }
  .form-group label { font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.4px; }
  .form-group input, .form-group select, .form-group textarea {
    border: 1px solid var(--gray-light); border-radius: 8px;
    padding: 9px 12px; font-size: 13px; outline: none; font-family: inherit;
    transition: border 0.2s; background: white;
  }
  .form-group input:focus, .form-group select:focus { border-color: var(--cyan); }
  .form-section-title {
    grid-column: 1 / -1; font-size: 12px; font-weight: 800;
    color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px;
    padding: 10px 0 4px; border-bottom: 2px solid var(--cyan);
    margin-top: 6px;
  }
  .tracking-highlight .form-group input {
    border-color: var(--cyan2); background: #f0f9ff;
  }
  .btn-ship {
    background: var(--success); color: white; border: none;
    padding: 10px 20px; border-radius: 8px; font-size: 13px;
    font-weight: 700; cursor: pointer; transition: background 0.2s;
  }
  .btn-ship:hover { background: #059669; }
  .btn-danger {
    background: #fee2e2; color: var(--danger); border: 1px solid #fca5a5;
    padding: 10px 20px; border-radius: 8px; font-size: 13px;
    font-weight: 600; cursor: pointer;
  }
  .btn-danger:hover { background: var(--danger); color: white; }
  .btn-secondary {
    background: var(--gray-light); color: var(--text); border: none;
    padding: 10px 20px; border-radius: 8px; font-size: 13px;
    font-weight: 600; cursor: pointer;
  }
  /* row action buttons */
  .row-actions { display: flex; gap: 4px; }
  .act-btn {
    background: none; border: 1px solid var(--gray-light); color: var(--gray);
    border-radius: 5px; padding: 3px 8px; font-size: 11px; cursor: pointer;
    white-space: nowrap; transition: all 0.15s;
  }
  .act-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
  .act-btn.ship { border-color: var(--success); color: var(--success); }
  .act-btn.ship:hover { background: var(--success); color: white; }
  .act-btn.del { border-color: #fca5a5; color: var(--danger); }
  .act-btn.del:hover { background: var(--danger); color: white; }
