:root {
  --bg: #f3f6f8;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #152335;
  --muted: #64748b;
  --line: #dbe3ea;
  --navy: #0d1b2a;
  --navy-2: #17324f;
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --success: #149c6a;
  --warning: #d97706;
  --danger: #dc3848;
  --info: #2563eb;
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  background: var(--navy);
}
.login-visual {
  position: relative;
  overflow: hidden;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(245,158,11,.25), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(37,99,235,.2), transparent 34%),
    linear-gradient(145deg, #0b1724, #132d46 60%, #0d1b2a);
}
.login-visual::before,
.login-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.08);
  transform: rotate(-12deg);
}
.login-visual::before { width: 620px; height: 220px; right: -130px; top: 25%; }
.login-visual::after { width: 780px; height: 320px; left: -240px; bottom: 5%; }
.brand-mark { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.brand-badge { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: var(--accent); color: var(--navy); font-weight: 900; letter-spacing: -1px; box-shadow: 0 12px 32px rgba(245,158,11,.22); }
.brand-title { font-size: 18px; font-weight: 800; letter-spacing: .08em; }
.brand-subtitle { font-size: 12px; opacity: .6; margin-top: 4px; letter-spacing: .11em; }
.hero-copy { position: relative; z-index: 1; max-width: 680px; }
.hero-copy h1 { font-size: clamp(46px, 5vw, 76px); line-height: .98; margin: 0 0 24px; letter-spacing: -.05em; }
.hero-copy h1 span { color: var(--accent-2); }
.hero-copy p { font-size: 18px; line-height: 1.75; color: rgba(255,255,255,.68); max-width: 590px; }
.hero-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-pill { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); padding: 9px 13px; border-radius: 999px; font-size: 12px; color: rgba(255,255,255,.78); }
.login-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; color: rgba(255,255,255,.4); font-size: 12px; }
.login-panel { background: #fff; display: grid; place-items: center; padding: 54px; }
.login-card { width: min(440px, 100%); }
.login-card h2 { font-size: 34px; margin: 0 0 8px; letter-spacing: -.035em; }
.login-card > p { margin: 0 0 34px; color: var(--muted); line-height: 1.6; }
.demo-note { background: #fff8e8; border: 1px solid #f7db94; border-radius: 14px; padding: 14px 16px; margin-bottom: 20px; color: #865a00; font-size: 13px; line-height: 1.55; }
.demo-note strong { color: #5f4100; }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 700; color: #334155; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus { border-color: #8aa4bd; box-shadow: 0 0 0 4px rgba(37,99,235,.08); }
.textarea { min-height: 100px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent; font-weight: 800; font-size: 13px;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 7px 18px rgba(13,27,42,.16); }
.btn-accent { background: var(--accent); color: #2a1a00; box-shadow: 0 7px 18px rgba(245,158,11,.2); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-danger { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-block { width: 100%; min-height: 48px; }
.btn-icon { width: 40px; min-width: 40px; padding: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { background: var(--navy); color: #fff; padding: 22px 16px; position: fixed; inset: 0 auto 0 0; width: 250px; overflow: auto; z-index: 20; }
.sidebar .brand-mark { padding: 4px 8px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .brand-badge { width: 44px; height: 44px; border-radius: 12px; font-size: 13px; }
.sidebar .brand-title { font-size: 15px; }
.nav-section { margin-top: 24px; }
.nav-label { padding: 0 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.33); font-weight: 800; margin-bottom: 8px; }
.nav-item { width: 100%; border: 0; background: transparent; color: rgba(255,255,255,.66); display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 11px; margin: 4px 0; text-align: left; font-weight: 700; font-size: 13px; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(245,158,11,.14); color: #ffc84f; }
.nav-icon { width: 22px; text-align: center; font-size: 16px; }
.sidebar-bottom { margin-top: 32px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }
.user-mini { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, var(--accent), #ffd369); color: #2c1c00; display: grid; place-items: center; font-weight: 900; }
.user-mini strong { display: block; font-size: 13px; }
.user-mini span { font-size: 10px; color: rgba(255,255,255,.45); }

.main { grid-column: 2; min-width: 0; }
.topbar { height: 76px; background: rgba(255,255,255,.93); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 15; }
.topbar-title h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.topbar-title p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.mode-badge { padding: 7px 10px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .05em; background: #fff4d7; color: #845800; border: 1px solid #f4d685; }
.live-badge { background: #eafaf3; color: #08794f; border-color: #b9efd7; }
.content { padding: 26px 28px 48px; }
.page-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 22px; }
.page-head h2 { margin: 0 0 6px; font-size: 27px; letter-spacing: -.035em; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 5px 18px rgba(15,23,42,.035); }
.metric-top { display: flex; justify-content: space-between; align-items: flex-start; }
.metric-icon { width: 38px; height: 38px; border-radius: 12px; background: #eef3f7; display: grid; place-items: center; }
.metric-card strong { display: block; font-size: 30px; margin-top: 14px; letter-spacing: -.04em; }
.metric-card small { color: var(--muted); font-weight: 700; }
.metric-trend { font-size: 10px; font-weight: 800; border-radius: 999px; padding: 4px 7px; background: #eefaf5; color: var(--success); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); gap: 20px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(15,23,42,.035); overflow: hidden; }
.panel-head { padding: 17px 19px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h3 { margin: 0; font-size: 15px; }
.panel-head p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.panel-body { padding: 18px; }
.map-panel { min-height: 370px; background: linear-gradient(180deg, #e8f1f5 0%, #dfeaf0 100%); position: relative; overflow: hidden; }
.map-panel::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(13,27,42,.12) .8px, transparent .8px); background-size: 22px 22px; opacity: .35; pointer-events: none; }
.world-map { width: 100%; height: 100%; min-height: 370px; display: block; position: relative; z-index: 1; }
.map-land { fill: #b8cbd3; stroke: #a8bec8; stroke-width: 1; }
.route-line { fill: none; stroke: #f59e0b; stroke-width: 3; stroke-dasharray: 8 7; filter: drop-shadow(0 2px 2px rgba(13,27,42,.12)); }
.route-line-done { fill: none; stroke: #12324f; stroke-width: 3.5; }
.map-marker { filter: drop-shadow(0 4px 5px rgba(15,23,42,.25)); }
.map-label { fill: #0d1b2a; font-size: 11px; font-weight: 800; paint-order: stroke; stroke: #f0f5f7; stroke-width: 4px; }
.vessel-card { position: absolute; left: 18px; bottom: 18px; z-index: 3; width: min(310px, calc(100% - 36px)); background: rgba(255,255,255,.93); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.8); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; }
.vessel-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.vessel-card h4 { margin: 0 0 4px; font-size: 14px; }
.vessel-card p { margin: 0; font-size: 11px; color: var(--muted); }
.vessel-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.vessel-meta div { background: #f4f7f9; border-radius: 9px; padding: 8px; }
.vessel-meta span { display: block; color: var(--muted); font-size: 9px; }
.vessel-meta strong { font-size: 11px; }

.alert-list, .activity-list { display: grid; gap: 10px; }
.alert-item { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 12px; border-radius: 12px; background: var(--panel-soft); border: 1px solid #edf1f4; }
.alert-dot { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #fff4e5; color: var(--warning); }
.alert-item strong { font-size: 12px; display: block; margin-bottom: 4px; }
.alert-item p { margin: 0; font-size: 11px; line-height: 1.45; color: var(--muted); }

.toolbar { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 12px; display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1 1 260px; }
.search-wrap .input { padding-left: 38px; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter-select { min-width: 150px; }
.table-shell { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 5px 18px rgba(15,23,42,.035); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th { text-align: left; padding: 12px 16px; background: #f8fafb; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid #edf1f4; font-size: 12px; vertical-align: middle; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fbfcfd; }
tbody tr:last-child td { border-bottom: 0; }
.container-id { font-weight: 900; letter-spacing: .03em; }
.cell-main { font-weight: 800; }
.cell-sub { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-in_transit { background: #eaf2ff; color: #1d5bc5; }
.status-arriving { background: #fff4d9; color: #a46600; }
.status-delayed { background: #fff0f0; color: #c43145; }
.status-discharged { background: #eafaf3; color: #078258; }
.status-ready_pickup { background: #ede9fe; color: #6d28d9; }
.status-completed { background: #eff2f4; color: #64748b; }
.status-tracking { background: #ecfeff; color: #0e7490; }
.status-draft { background: #f1f5f9; color: #64748b; }
.row-actions { display: flex; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: #475569; }
.icon-btn:hover { background: #f8fafc; }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.person-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 17px; }
.person-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.person-card .avatar { width: 44px; height: 44px; }
.person-card h3 { margin: 12px 0 3px; font-size: 15px; }
.person-card p { margin: 0; color: var(--muted); font-size: 11px; }
.role-tag { font-size: 9px; font-weight: 900; padding: 5px 7px; border-radius: 999px; background: #eef2f6; color: #475569; }
.role-admin { background: #fff2cf; color: #845800; }
.person-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.person-meta div { padding: 10px; background: #f8fafb; border-radius: 10px; }
.person-meta span { display: block; color: var(--muted); font-size: 9px; }
.person-meta strong { font-size: 11px; }

.log-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px; display: grid; grid-template-columns: 40px 1fr auto; align-items: start; gap: 12px; }
.log-icon { width: 40px; height: 40px; border-radius: 12px; background: #eef3f7; display: grid; place-items: center; }
.log-item strong { font-size: 12px; }
.log-item p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.log-time { color: var(--muted); font-size: 10px; white-space: nowrap; }

.overlay { position: fixed; inset: 0; background: rgba(7,17,29,.52); backdrop-filter: blur(5px); display: grid; place-items: center; z-index: 100; padding: 18px; }
.modal { width: min(760px, 100%); max-height: calc(100vh - 36px); overflow: auto; background: #fff; border-radius: 20px; box-shadow: 0 25px 80px rgba(4,13,23,.32); }
.modal-wide { width: min(980px, 100%); }
.modal-head { padding: 20px 22px; display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-head h3 { margin: 0; font-size: 19px; }
.modal-head p { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: #fff; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: 18px; }
.detail-section { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.detail-section h4 { margin: 0; padding: 12px 14px; background: #f8fafb; border-bottom: 1px solid var(--line); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.detail-grid div { padding: 12px 14px; border-bottom: 1px solid #edf1f4; }
.detail-grid div:nth-child(odd) { border-right: 1px solid #edf1f4; }
.detail-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.detail-grid span { display: block; color: var(--muted); font-size: 9px; margin-bottom: 4px; }
.detail-grid strong { font-size: 11px; }
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: #dbe3ea; }
.timeline-item { position: relative; padding: 0 0 18px 10px; }
.timeline-item::before { content: ""; position: absolute; left: -19px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 3px solid #9fb1bf; }
.timeline-item.current::before { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
.timeline-item strong { display: block; font-size: 11px; }
.timeline-item span { color: var(--muted); font-size: 9px; }

.empty { padding: 52px 20px; text-align: center; color: var(--muted); }
.empty-icon { font-size: 34px; margin-bottom: 10px; }
.mobile-menu { display: none; }

#toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 10px; }
.toast { min-width: 270px; max-width: 380px; background: #0d1b2a; color: #fff; border-radius: 13px; padding: 13px 15px; box-shadow: var(--shadow); font-size: 12px; animation: toast-in .25s ease both; }
.toast.success { border-left: 4px solid #21c489; }
.toast.error { border-left: 4px solid #fb7185; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 30px 20px; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .22s; width: 270px; box-shadow: 20px 0 40px rgba(5,15,25,.2); }
  .sidebar.open { transform: translateX(0); }
  .main { display: block; }
  .topbar { height: 66px; padding: 0 16px; }
  .mobile-menu { display: inline-flex; }
  .topbar-title p { display: none; }
  .content { padding: 18px 14px 40px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .metric-card { padding: 14px; }
  .metric-card strong { font-size: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .card-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .mode-badge { display: none; }
}

@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card small { font-size: 10px; }
  .topbar-actions .btn span { display: none; }
  .modal-body { padding: 16px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid div:nth-child(odd) { border-right: 0; }
  .detail-grid div:nth-last-child(-n+2) { border-bottom: 1px solid #edf1f4; }
  .detail-grid div:last-child { border-bottom: 0; }
}

/* Authentication and registration */
.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 5px; margin: 0 0 22px; border-radius: 13px; background: #f1f5f9; }
.auth-tab { min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 800; }
.auth-tab.active { background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(15,23,42,.08); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 17px; color: #94a3b8; font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.google-auth { display: grid; justify-items: center; gap: 8px; }
#google-signin-button { width: 100%; min-height: 44px; display: grid; place-items: center; }
.google-auth small { color: var(--muted); font-size: 10px; }
.google-unconfigured { margin-top: 18px; padding: 11px 13px; border: 1px dashed #cbd5e1; border-radius: 11px; color: var(--muted); background: #f8fafc; font-size: 11px; line-height: 1.55; }
.pending-note { margin: 0 0 18px; padding: 13px 15px; border: 1px solid #f5d27f; border-radius: 12px; background: #fff8e7; color: #825400; font-size: 12px; line-height: 1.55; }

/* User approval */
.pending-card { border-color: #f3c869; box-shadow: 0 7px 22px rgba(245,158,11,.10); }
.user-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.role-tag.status-pending { background: #fff4d6; color: #946200; }
.role-tag.status-approved { background: #eafaf3; color: #08794f; }
.role-tag.status-rejected { background: #fff0f1; color: #be123c; }
.provider-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.provider-line span { padding: 4px 7px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 9px; font-weight: 800; }
.avatar-img { object-fit: cover; background: #e2e8f0; }
.approval-summary { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; padding: 14px; margin-bottom: 18px; border-radius: 12px; background: #f8fafc; font-size: 12px; }
.approval-summary strong { color: #475569; }

@media (max-width: 480px) {
  .login-card h2 { font-size: 28px; }
  .approval-summary { grid-template-columns: 1fr; gap: 4px; }
}

/* Public vessel tracking */
.vessel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vessel-track-card { background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 18px; box-shadow: 0 8px 24px rgba(15,23,42,.04); display: grid; gap: 14px; }
.vessel-track-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vessel-track-head h3 { margin: 4px 0 3px; font-size: 18px; }
.vessel-track-head p, .vessel-summary { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.eyebrow { color: #64748b; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.vessel-track-location { padding: 13px 14px; border-radius: 13px; background: linear-gradient(135deg,#0d1b2a,#17324d); color: #fff; }
.vessel-track-location strong { display: block; font-size: 15px; }
.vessel-track-location span { display: block; margin-top: 4px; color: #b8c8d8; font-size: 10px; }
.vessel-track-meta { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.vessel-track-meta div { padding: 10px; border-radius: 11px; background: #f8fafc; min-width: 0; }
.vessel-track-meta span { display: block; color: var(--muted); font-size: 8px; }
.vessel-track-meta strong { display: block; margin-top: 4px; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.confidence { flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; font-size: 9px; font-weight: 900; }
.confidence-high { color: #08794f; background: #e7f9f1; }
.confidence-medium { color: #7c5700; background: #fff4d6; }
.confidence-low { color: #be123c; background: #fff0f1; }
.confidence-unknown { color: #475569; background: #eef2f6; }
.vessel-source-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 9px; }
.vessel-source-row > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.vessel-source-row a, .source-links a { color: #075f9d; text-decoration: none; font-weight: 800; }
.vessel-source-row a:hover, .source-links a:hover { text-decoration: underline; }
.source-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 10px; }
.source-links span { color: var(--muted); font-weight: 800; margin-right: 4px; }

@media (max-width: 980px) {
  .vessel-grid { grid-template-columns: 1fr; }
  .vessel-track-meta { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .vessel-track-card { padding: 14px; }
  .vessel-track-meta { grid-template-columns: 1fr 1fr; }
  .vessel-source-row { display: grid; }
  .vessel-source-row > div { justify-content: flex-start; }
}

/* V0.4 Excel manifest import */
.modal-manifest{width:min(1180px,96vw);max-height:95vh}
.manifest-upload{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:16px 18px;border:1px dashed #b9c8da;border-radius:16px;background:#f8fbff;margin-bottom:18px}
.manifest-upload-copy{display:flex;flex-direction:column;gap:4px}.manifest-upload-copy strong{font-size:14px;color:#142235}.manifest-upload-copy span{font-size:12px;color:#64748b}
.manifest-imported{grid-column:1/-1;display:flex;gap:10px;align-items:center;justify-content:space-between;padding:10px 12px;border-radius:10px;background:#ecfdf5;color:#166534;font-size:12px}.manifest-imported strong{font-size:12px}
.cargo-editor{margin-top:22px;border-top:1px solid #e2e8f0;padding-top:18px}.cargo-editor-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.cargo-editor-head h4{margin:0;color:#172437}.cargo-editor-head p{margin:4px 0 0;font-size:12px;color:#64748b}
.cargo-table-wrap{overflow:auto;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.cargo-table{min-width:1180px;width:100%;border-collapse:separate;border-spacing:0}.cargo-table th{position:sticky;top:0;background:#f1f5f9;color:#475569;font-size:11px;white-space:nowrap;padding:10px;border-bottom:1px solid #dbe4ee}.cargo-table td{padding:7px;border-bottom:1px solid #edf2f7;vertical-align:middle}.cargo-table tbody tr:last-child td{border-bottom:0}.cargo-table td:first-child,.cargo-table th:first-child{text-align:center;width:38px}.cargo-table td:last-child,.cargo-table th:last-child{width:42px;text-align:center}
.cargo-input{width:100%;min-width:92px;border:1px solid #d7e0ea;border-radius:8px;padding:8px 9px;font:inherit;font-size:12px;color:#142235;background:#fff}.cargo-input:focus{outline:2px solid rgba(245,158,11,.22);border-color:#f59e0b}.cargo-table td:nth-child(2) .cargo-input{min-width:132px}.cargo-table td:nth-child(7) .cargo-input{min-width:145px}.cargo-table td:nth-child(10) .cargo-input{min-width:120px}.cargo-total{display:flex;justify-content:flex-end;gap:5px;padding:10px 4px 0;font-size:12px;color:#64748b}.cargo-total strong{color:#172437}.icon-btn.danger{color:#b91c1c;background:#fff1f2}
.cargo-table-read{min-width:980px}.cargo-table-read td{font-size:12px;color:#334155;white-space:nowrap}
@media (max-width:720px){.manifest-upload{grid-template-columns:1fr}.manifest-upload .btn{width:100%}.manifest-imported{align-items:flex-start;flex-direction:column}.cargo-editor-head{align-items:flex-start;flex-direction:column}.cargo-editor-head .btn{width:100%}.modal-manifest{width:100vw;max-height:100vh;border-radius:0}.cargo-table-wrap{margin-left:-4px;margin-right:-4px}}

/* =========================================================
   AC STONE GROUP UI SYSTEM - V0.6.0
   White / blue corporate interface based on the AC Stone
   internal state portal design supplied by the business.
   ========================================================= */
:root {
  --bg: #f3f8fd;
  --panel: #ffffff;
  --panel-soft: #f7fbff;
  --ink: #16324a;
  --muted: #68829c;
  --line: #d9e7f5;
  --navy: #0f4c81;
  --navy-2: #1f6fb2;
  --accent: #0f4c81;
  --accent-2: #1f6fb2;
  --blue: #16324a;
  --blue-soft: #1f6fb2;
  --blue-light: #eaf4ff;
  --success: #12805c;
  --warning: #b66b00;
  --danger: #c33b50;
  --info: #1f6fb2;
  --shadow: 0 20px 60px rgba(15, 76, 129, 0.11);
  --shadow-soft: 0 10px 32px rgba(15, 76, 129, 0.07);
  --radius: 22px;
}

html, body {
  background:
    radial-gradient(circle at 92% 2%, rgba(31, 111, 178, 0.10), transparent 24%),
    linear-gradient(180deg, #f9fcff 0%, #eef6fd 100%);
  color: var(--ink);
}

body::selection { background: #cde5fb; color: #0f3d67; }
button, input, select, textarea { font-family: inherit; }

/* Brand system */
.brand-mark { gap: 14px; min-width: 0; }
.brand-logo { display: block; object-fit: contain; flex: 0 0 auto; }
.brand-copy { min-width: 0; }
.brand-title { color: #17344e; font-size: 14px; font-weight: 800; letter-spacing: .075em; white-space: normal; line-height: 1.15; }
.brand-subtitle { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .15em; white-space: normal; line-height: 1.25; }
.brand-caption { color: #8aa0b6; font-size: 10px; font-weight: 700; letter-spacing: .06em; margin-top: 5px; white-space: normal; line-height: 1.25; }
.brand-badge { display: none; }

/* Login */
.login-shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  background: #fff;
}
.login-visual {
  color: var(--ink);
  padding: clamp(34px, 5vw, 70px);
  background:
    radial-gradient(circle at 88% 8%, rgba(31, 111, 178, .17), transparent 28%),
    radial-gradient(circle at 2% 88%, rgba(15, 76, 129, .09), transparent 32%),
    linear-gradient(145deg, #f9fcff 0%, #eaf4ff 55%, #f5faff 100%);
  border-right: 1px solid var(--line);
}
.login-visual::before {
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -260px;
  top: -250px;
  border: 1px solid rgba(31, 111, 178, .12);
  transform: none;
}
.login-visual::after {
  width: 680px;
  height: 260px;
  left: -230px;
  bottom: -120px;
  border-radius: 50%;
  border: 1px solid rgba(31, 111, 178, .10);
  transform: rotate(-8deg);
}
.brand-mark-login { position: relative; z-index: 2; align-items: center; gap: 10px; max-width: 100%; }
.brand-logo-login { width: 92px; height: 58px; object-position: left center; }
.brand-mark-login .brand-copy { flex: 1; min-width: 0; padding-left: 12px; border-left: 1px solid rgba(15, 76, 129, .18); }
.brand-mark-login .brand-title { font-size: 14px; letter-spacing: .12em; }
.brand-mark-login .brand-subtitle { font-size: 9px; letter-spacing: .16em; margin-top: 4px; }
.brand-mark-login .brand-caption { font-size: 9px; letter-spacing: .05em; margin-top: 6px; }
.hero-copy { max-width: 720px; }
.hero-copy .eyebrow,
.auth-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--blue-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-copy .eyebrow {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(15, 76, 129, .08);
  margin-bottom: 18px;
}
.hero-copy h1 {
  color: var(--ink);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin-bottom: 22px;
}
.hero-copy h1 span { color: #76b7e8; }
.hero-copy p { color: var(--muted); font-size: 17px; line-height: 1.78; max-width: 720px; }
.login-footer { color: var(--muted); font-size: 11px; }
.login-panel {
  position: relative;
  padding: clamp(32px, 5vw, 72px);
  background: rgba(255,255,255,.96);
}
.login-panel::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(217,231,245,.55);
  border-radius: 34px;
  pointer-events: none;
}
.login-panel-brand { display: none; }
.login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
}
.auth-kicker { margin-bottom: 13px; }
.login-card h2 { color: var(--ink); font-size: 34px; margin-bottom: 8px; }
.login-card > p { margin-bottom: 26px; color: var(--muted); }
.auth-security-note { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: #89a0b7; font-size: 9px; text-align: center; }
.demo-note { color: #6b5200; background: #fff9e9; border-color: #f0dda4; }
.pending-note { color: #654c00; background: #fff9e9; border-color: #efd99a; }
.auth-tabs { background: #edf5fc; border: 1px solid #e0edf8; }
.auth-tab { color: var(--muted); }
.auth-tab.active { color: var(--blue); box-shadow: 0 5px 16px rgba(15,76,129,.08); }
.google-auth {
  gap: 10px;
  margin-top: 2px;
}
.google-company-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid #d5e5f2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 76, 129, .07);
  text-align: left;
  cursor: pointer;
}
.google-company-btn:hover {
  border-color: #b7d3e9;
  background: #f8fbff;
}
.google-company-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dce9f8;
  color: #2d5f9a;
  font-weight: 800;
  flex: 0 0 auto;
}
.google-company-copy {
  display: grid;
  gap: 3px;
}
.google-company-copy strong {
  color: var(--ink);
  font-size: 14px;
}
.google-company-copy small {
  color: var(--muted);
  font-size: 11px;
}
.google-signin-button {
  width: 100%;
}
.google-signin-button.is-hidden,
.google-company-btn.is-hidden {
  display: none;
}
.google-unconfigured { border-color: #bfd7ec; background: #f5faff; }

/* Inputs and buttons */
.field { gap: 7px; }
.field label { color: #36536d; font-size: 12px; }
.input, .select, .textarea, .cargo-input {
  border-color: #cfdfed;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
}
.input:hover, .select:hover, .textarea:hover, .cargo-input:hover { border-color: #a9c6df; }
.input:focus, .select:focus, .textarea:focus, .cargo-input:focus {
  border-color: var(--blue-soft);
  box-shadow: 0 0 0 4px rgba(31,111,178,.10);
  outline: none;
}
.btn { border-radius: 12px; letter-spacing: .005em; }
.btn-accent, .btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-soft));
  color: #fff;
  box-shadow: 0 9px 22px rgba(15,76,129,.18);
}
.btn-accent:hover, .btn-primary:hover { box-shadow: 0 12px 28px rgba(15,76,129,.24); }
.btn-outline { color: #31516c; border-color: #cfe0ee; background: #fff; }
.btn-outline:hover { color: var(--blue); border-color: #9fc0dc; background: #f7fbff; }
.btn-ghost { color: var(--muted); }

/* Main application */
.app-shell { grid-template-columns: 272px minmax(0, 1fr); }
.sidebar {
  width: 272px;
  padding: 18px 14px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.98));
  border-right: 1px solid var(--line);
  box-shadow: 10px 0 40px rgba(15,76,129,.045);
}
.brand-mark-sidebar {
  display: block;
  min-height: auto;
  padding: 5px 10px 18px;
  border-bottom: 1px solid var(--line) !important;
}
.brand-logo-sidebar { display: block; width: 84px; height: 46px; object-position: left center; margin-bottom: 10px; }
.brand-mark-sidebar .brand-copy { padding-left: 0; border-left: 0; }
.brand-mark-sidebar .brand-title { font-size: 13px; letter-spacing: .1em; }
.brand-mark-sidebar .brand-subtitle { margin-top: 5px; font-size: 9px; white-space: normal; letter-spacing: .12em; }
.brand-mark-sidebar .brand-caption { margin-top: 5px; font-size: 9px; white-space: normal; }
.nav-section { margin-top: 20px; }
.nav-label { color: #91a7ba; padding: 0 13px; font-size: 9px; }
.nav-item {
  min-height: 46px;
  color: #58738b;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 13px;
}
.nav-item:hover { color: var(--blue); background: #f0f7fd; }
.nav-item.active {
  color: var(--blue);
  background: linear-gradient(135deg, #eaf4ff, #f5faff);
  border-color: #cfe4f5;
  box-shadow: 0 7px 18px rgba(15,76,129,.075);
}
.nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #eef5fb;
  color: #5e7b94;
}
.nav-item.active .nav-icon { color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-soft)); }
.sidebar-support {
  display: grid;
  gap: 5px;
  margin: 24px 8px 0;
  padding: 13px;
  border: 1px solid #d7e8f6;
  border-radius: 14px;
  background: #f2f8fd;
}
.sidebar-support span { color: var(--blue-soft); font-size: 8px; font-weight: 900; letter-spacing: .10em; }
.sidebar-support strong { color: var(--muted); font-size: 9px; font-weight: 700; }
.sidebar-bottom { margin-top: 18px; padding-top: 15px; border-top-color: var(--line); }
.user-mini { border-radius: 15px; }
.user-mini:hover { background: #f0f7fd; }
.avatar {
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--blue-soft));
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(15,76,129,.16);
}
.user-mini strong { color: var(--ink); }
.user-mini span { color: var(--muted); }
.user-mini .btn-ghost { color: #7a93aa; }

.main { grid-column: 2; }
.topbar {
  height: 84px;
  padding: 0 30px;
  background: rgba(255,255,255,.88);
  border-bottom-color: rgba(207,224,238,.86);
  box-shadow: 0 8px 26px rgba(15,76,129,.035);
}
.topbar-left { display: flex; align-items: center; gap: 13px; }
.page-kicker { display: block; margin-bottom: 2px; font-size: 8px; }
.topbar-title h1 { color: var(--ink); font-size: 20px; }
.topbar-title p { color: var(--muted); }
.warehouse-badge, .mode-badge {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid #cfe3f4;
  background: #f3f9fe;
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
}
.mode-badge { background: #f2f6f9; color: #6d8295; border-color: #dce7ef; }
.live-badge { background: #eaf9f3; color: #08794f; border-color: #b9ead6; }
.content { max-width: none; width: 100%; padding: 30px 32px 54px; box-sizing: border-box; }
.page-head { margin-bottom: 24px; }
.page-head h2 { color: var(--ink); font-size: 29px; }
.page-head p { color: var(--muted); line-height: 1.6; }

/* Cards, panels and metrics */
.metric-grid { gap: 17px; }
.metric-card, .panel, .toolbar, .table-shell, .person-card, .log-item, .vessel-track-card {
  border-color: rgba(209,226,240,.95);
  box-shadow: var(--shadow-soft);
}
.metric-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fcff 100%);
}
.metric-card::after {
  content: "";
  position: absolute;
  width: 95px;
  height: 95px;
  right: -42px;
  bottom: -45px;
  border-radius: 50%;
  background: rgba(31,111,178,.055);
}
.metric-icon { color: var(--blue); background: #eaf4ff; border: 1px solid #d7eafb; }
.metric-card strong { color: var(--ink); }
.metric-trend { color: var(--blue); background: #edf7ff; }
.panel { background: rgba(255,255,255,.96); }
.panel-head { padding: 18px 20px; background: linear-gradient(180deg,#fff,#fbfdff); }
.panel-head h3 { color: var(--ink); }
.map-panel { background: linear-gradient(180deg, #edf7fd 0%, #dcecf6 100%); }
.map-panel::after { background-image: radial-gradient(rgba(15,76,129,.14) .8px, transparent .8px); }
.map-land { fill: #bfd5e2; stroke: #a9c7d8; }
.route-line { stroke: #1f6fb2; }
.route-line-done { stroke: #0f4c81; }
.map-label { fill: #0f4c81; stroke: #f5fbff; }
.vessel-card { border-color: rgba(207,228,244,.95); box-shadow: 0 18px 46px rgba(15,76,129,.15); }
.vessel-meta div { background: #f1f8fd; }
.alert-item { background: #f8fbfe; border-color: #e2edf6; }
.alert-dot { color: var(--blue); background: #eaf4ff; }
.vessel-track-location { background: linear-gradient(135deg, var(--blue), var(--blue-soft)); }
.vessel-track-location span { color: #d7eafa; }

/* Tables and list controls */
.toolbar { padding: 13px; border-radius: 18px; background: rgba(255,255,255,.92); }
.table-shell { border-radius: 20px; }
th { color: #69849b; background: #f3f8fc; border-bottom-color: #dbe8f3; }
td { border-bottom-color: #eaf1f7; }
tbody tr:hover { background: #f7fbff; }
.container-id { color: #153f65; }
.icon-btn { color: var(--blue); border-color: #d0e2f0; border-radius: 10px; }
.icon-btn:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.icon-btn.danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.table-foot { border-top-color: #deebf4; background: #fbfdff; }
.status-in_transit { background: #e8f3ff; color: #1761a0; }
.status-arriving { background: #fff6dc; color: #9d6400; }
.status-delayed { background: #fff0f2; color: #b82f46; }
.status-discharged { background: #e9f9f2; color: #087752; }
.status-ready_pickup { background: #eef0ff; color: #4c50a6; }
.status-completed { background: #eef4f7; color: #647d91; }
.status-tracking { background: #eaf8fb; color: #14748a; }

/* People and activity */
.person-card { border-radius: 20px; background: linear-gradient(145deg,#fff,#fafdff); }
.person-meta div { background: #f2f8fc; }
.role-admin { color: #165c91; background: #e8f3ff; }
.log-icon { color: var(--blue); background: #eaf4ff; }
.provider-line span { color: #58758e; background: #eef6fc; }
.approval-summary { background: #f1f8fd; }
.pending-card { border-color: #c8dff2; box-shadow: 0 12px 32px rgba(15,76,129,.08); }

/* Modals and details */
.overlay { background: rgba(20,49,73,.42); backdrop-filter: blur(9px); }
.modal { border: 1px solid rgba(212,229,242,.95); border-radius: 24px; box-shadow: 0 28px 90px rgba(15,49,75,.24); }
.modal-head, .modal-foot { background: rgba(255,255,255,.96); border-color: var(--line); backdrop-filter: blur(14px); }
.modal-head h3 { color: var(--ink); }
.detail-section { border-color: #d9e8f3; border-radius: 16px; }
.detail-section h4 { color: #234762; background: #f1f8fd; border-color: #dae8f3; }
.detail-grid div { border-color: #e4eef6 !important; }
.timeline::before { background: #cddfeb; }
.timeline-item::before { border-color: #8fb6d2; }
.timeline-item.current::before { border-color: var(--blue-soft); box-shadow: 0 0 0 4px rgba(31,111,178,.14); }
.source-links { border-color: var(--line); }
.source-links a, .vessel-source-row a { color: var(--blue-soft); }

/* Excel loading list */
.manifest-upload {
  border-color: #a9cce5;
  background: linear-gradient(135deg,#f5faff,#edf7ff);
  border-radius: 18px;
}
.manifest-upload-copy strong, .cargo-editor-head h4, .cargo-total strong { color: var(--ink); }
.manifest-imported { color: #0b6c4b; background: #e9f9f2; }
.cargo-editor { border-top-color: var(--line); }
.cargo-table-wrap { border-color: #d5e5f1; border-radius: 15px; }
.cargo-table th { color: #526f88; background: #edf5fb; border-color: #d5e5f1; }
.cargo-table td { border-color: #e7eff6; }
.cargo-input:focus { border-color: var(--blue-soft); outline: none; box-shadow: 0 0 0 3px rgba(31,111,178,.10); }

/* Toast */
.toast { background: #173b59; box-shadow: 0 18px 48px rgba(15,76,129,.20); }

/* Responsive refinements */
@media (max-width: 1100px) {
  .login-shell { grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr); }
  .login-visual { padding: 44px; }
}

@media (max-width: 800px) {
  .login-shell { display: block; min-height: 100vh; background: linear-gradient(180deg,#eef7ff,#fff 42%); }
  .login-visual { display: block; min-height: auto; padding: 25px 20px 18px; background: transparent; border: 0; }
  .brand-mark-login { justify-content: center; }
  .brand-logo-login { width: 92px; height: 58px; }
  .brand-mark-login .brand-copy { display: none; }
  .hero-copy { display: block; margin-top: 18px; }
  .hero-copy .eyebrow { margin-bottom: 14px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-copy p { font-size: 15px; line-height: 1.65; }
  .login-footer { display: none; }
  .login-panel { min-height: auto; padding: 12px 16px 34px; background: transparent; }
  .login-panel::before { display: none; }
  .login-card { margin: 0 auto; padding: 26px 22px; border-radius: 24px; }
  .app-shell { display: block; }
  .sidebar {
    width: 280px;
    box-shadow: 18px 0 52px rgba(15,76,129,.18);
    transform: translateX(-102%);
  }
  .sidebar.open { transform: translateX(0); }
  .main { display: block; }
  .topbar { height: 70px; padding: 0 15px; }
  .mobile-menu { display: inline-flex; }
  .page-kicker, .topbar-title p, .warehouse-badge { display: none; }
  .topbar-title h1 { font-size: 17px; }
  .content { padding: 20px 14px 42px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head h2 { font-size: 25px; }
  .mode-badge { display: none; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .topbar-actions { gap: 7px; }
  .topbar-actions .btn span { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { padding: 15px; }
  .metric-card strong { font-size: 25px; }
  .metric-card small { font-size: 10px; }
  .login-card h2 { font-size: 28px; }
  .modal { border-radius: 18px; }
  .modal-body { padding: 16px; }
}


/* V0.5.8 bilingual application interface */
.brand-title,
.brand-title-cn,
.brand-subtitle {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
}
.brand-title span,
.brand-subtitle span {
  display: block;
}
.brand-title-cn {
  margin-top: 6px;
  color: #17344e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.25;
}
.brand-mark-login .brand-title-cn {
  font-size: 12px;
}
.brand-mark-sidebar {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: start !important;
  gap: 0 !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 4px 10px 18px !important;
}
.brand-mark-sidebar .brand-logo-sidebar {
  display: block !important;
  width: 86px !important;
  height: 44px !important;
  margin: 0 0 12px 0 !important;
  object-position: left center !important;
}
.brand-mark-sidebar .brand-copy {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 12px 0 0 !important;
  border-left: 0 !important;
  border-top: 1px solid #d3e3f1 !important;
}
.brand-mark-sidebar .brand-title {
  color: #17344e !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .11em !important;
  line-height: 1.28 !important;
}
.brand-mark-sidebar .brand-title-cn {
  margin-top: 7px !important;
  color: #31516c !important;
  font-size: 12px !important;
  letter-spacing: .08em !important;
}
.brand-mark-sidebar .brand-subtitle {
  margin-top: 9px !important;
  color: #8aa0b6 !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  letter-spacing: .10em !important;
  line-height: 1.45 !important;
}
.brand-mark-sidebar .brand-subtitle span + span {
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: .06em;
}

/* V0.5.8 bilingual interface */
.login-language-row {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 18px;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #d4e4f1;
  border-radius: 999px;
  background: #eef6fc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.language-option {
  min-width: 48px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b849a;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.language-option:hover {
  color: #0f4c81;
}
.language-option.active {
  background: #fff;
  color: #0f4c81;
  box-shadow: 0 4px 12px rgba(15,76,129,.12);
}
.language-switch-compact {
  flex: 0 0 auto;
}
.language-switch-compact .language-option {
  min-width: 38px;
  height: 28px;
  padding: 0 9px;
  font-size: 10px;
}
@media (max-width: 800px) {
  .login-language-row { margin-bottom: 14px; }
  .topbar .language-switch { display: inline-flex; }
}
@media (max-width: 520px) {
  .language-switch-compact .language-option { min-width: 34px; padding: 0 7px; }
}


/* V0.6.0 real AIS map, supervisor-only sync, and shared IMO vessel updates */
.osm-map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 370px;
  border: 0;
  z-index: 1;
  background: #dcecf6;
}
.map-panel-compact {
  min-height: 230px;
  margin: 14px 0;
  border: 1px solid #d9e8f3;
  border-radius: 16px;
}
.map-panel-compact .osm-map-frame { min-height: 230px; }
.map-panel-compact .map-coordinate-badge { top: 10px; left: 10px; }
.map-panel-compact .map-open-link { right: 10px; top: 10px; }
.map-panel-compact .map-attribution { font-size: 8px; }
.map-coordinate-badge {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 16px;
  display: grid;
  gap: 3px;
  max-width: calc(100% - 180px);
  padding: 10px 12px;
  border: 1px solid rgba(207,228,244,.95);
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 28px rgba(15,76,129,.16);
  backdrop-filter: blur(8px);
}
.map-coordinate-badge strong { color: var(--ink); font-size: 12px; }
.map-coordinate-badge > span { color: var(--muted); font-size: 10px; }
.position-age { font-weight: 800; }
.position-age-recent { color: #0b8757 !important; }
.position-age-delayed { color: #ad6b00 !important; }
.position-age-stale { color: #c33c54 !important; }
.position-age-unknown { color: #6b7f90 !important; }
.map-open-link {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 16px;
  padding: 9px 11px;
  border: 1px solid #d0e2f0;
  border-radius: 10px;
  color: var(--blue);
  background: rgba(255,255,255,.95);
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15,76,129,.12);
}
.map-attribution {
  position: absolute;
  z-index: 4;
  right: 8px;
  bottom: 5px;
  padding: 2px 5px;
  border-radius: 4px;
  color: #4c6578;
  background: rgba(255,255,255,.84);
  font-size: 9px;
}
.map-no-position {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 34px;
  text-align: center;
  color: var(--muted);
}
.map-no-position strong { color: var(--ink); font-size: 14px; }
.map-no-position span { max-width: 620px; font-size: 11px; line-height: 1.6; }
.map-no-position-icon { font-size: 38px; color: var(--blue); }
.map-freshness-line { margin-top: 10px; font-size: 10px; font-weight: 800; }
.sync-policy-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d9e8f3;
  border-radius: 11px;
  background: #f5faff;
  color: #5d7890;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}
.modal-policy-text { margin-right: auto; color: var(--muted); font-size: 11px; font-weight: 700; }
@media (max-width: 680px) {
  .map-coordinate-badge { max-width: calc(100% - 32px); right: 16px; }
  .map-open-link { top: auto; bottom: 30px; }
  .vessel-card { bottom: 58px; }
  .map-panel-compact .map-open-link { top: auto; bottom: 28px; }
}

/* V0.6.2 IMO auto-fill and archive workspace */
.input-action-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
.btn-small { padding: 9px 11px; min-height: 40px; white-space: nowrap; font-size: 11px; }
.field-help { color: var(--muted); font-size: 10px; line-height: 1.45; }
.imo-lookup-empty { margin: 2px 0 18px; padding: 12px 14px; border: 1px dashed #c9dcea; border-radius: 12px; color: var(--muted); background: #f8fbfe; font-size: 11px; }
.imo-lookup-card { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 2px 0 18px; padding: 14px; border: 1px solid #cfe1ee; border-radius: 14px; background: linear-gradient(180deg,#f8fcff,#f1f8fd); }
.imo-lookup-card div { min-width: 0; display: grid; gap: 5px; }
.imo-lookup-card span { color: var(--muted); font-size: 10px; font-weight: 750; }
.imo-lookup-card strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.status-awaiting_vessel { color: #78580a; background: #fff7d6; border-color: #f2d984; }
@media (max-width: 900px) { .imo-lookup-card { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .input-action-row { grid-template-columns: 1fr; } .btn-small { width: 100%; } .imo-lookup-card { grid-template-columns: 1fr; } }

/* V0.6.3 responsive cargo detail layout */
.cargo-edit-list,
.cargo-read-list {
  display: grid;
  gap: 12px;
}
.cargo-edit-card,
.cargo-read-card {
  overflow: hidden;
  border: 1px solid #d7e6f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(15,76,129,.045);
}
.cargo-item-head {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 11px 13px;
  border-bottom: 1px solid #dfebf4;
  background: linear-gradient(180deg,#f8fcff,#f1f8fd);
}
.cargo-item-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg,var(--blue),var(--blue-soft));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(15,76,129,.15);
}
.cargo-item-kicker,
.cargo-read-title span,
.cargo-read-quantity span,
.cargo-edit-field > span,
.cargo-read-field > span {
  display: block;
  margin-bottom: 5px;
  color: #6d879e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}
.cargo-item-head strong,
.cargo-read-title strong {
  display: block;
  overflow-wrap: anywhere;
  color: #173b59;
  font-size: 13px;
  line-height: 1.35;
}
.cargo-remove { justify-self: end; }
.cargo-edit-grid,
.cargo-read-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px 12px;
  padding: 13px;
}
.cargo-edit-field { display: block; min-width: 0; }
.cargo-edit-field .cargo-input {
  min-width: 0 !important;
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 12px;
}
.cargo-span-2 { grid-column: span 2; }
.cargo-read-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid #d9e8f3;
  color: #69839a;
  background: #fbfdff;
  font-size: 10px;
  font-weight: 700;
}
.cargo-read-summary strong {
  color: #173b59;
  font-size: 11px;
}
.cargo-read-list { padding: 13px; }
.cargo-read-card { box-shadow: none; }
.cargo-read-quantity {
  min-width: 72px;
  padding: 8px 12px;
  border: 1px solid #cfe3f2;
  border-radius: 12px;
  background: #fff;
  text-align: right;
}
.cargo-read-quantity strong {
  color: var(--blue-soft);
  font-size: 18px;
  line-height: 1;
}
.cargo-read-field {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e1ebf3;
  border-radius: 11px;
  background: #f8fbfe;
}
.cargo-read-field strong {
  display: block;
  overflow-wrap: anywhere;
  color: #334d64;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 1050px) {
  .cargo-edit-grid,
  .cargo-read-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .cargo-edit-grid,
  .cargo-read-grid { grid-template-columns: 1fr; }
  .cargo-span-2 { grid-column: span 1; }
  .cargo-item-head { grid-template-columns: auto minmax(0,1fr) auto; padding: 10px; }
  .cargo-read-quantity { min-width: 62px; padding: 7px 9px; }
  .cargo-read-list { padding: 10px; }
  .cargo-read-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
}


/* V0.6.4 dashboard vessel summary and map height correction */
.dashboard-vessel-list { display: grid; gap: 10px; }
.dashboard-vessel-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(150px,.8fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.dashboard-vessel-item:hover { transform: translateY(-1px); border-color: #b9d7ec; box-shadow: 0 8px 22px rgba(15,76,129,.08); }
.dashboard-vessel-main, .dashboard-vessel-eta { min-width: 0; display: grid; gap: 4px; }
.dashboard-vessel-main strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-vessel-main span, .dashboard-vessel-eta span { color: var(--muted); font-size: 10px; font-weight: 750; }
.dashboard-vessel-eta { justify-items: end; text-align: right; }
.dashboard-vessel-eta strong { color: var(--ink); font-size: 11px; line-height: 1.4; }
.dashboard-vessel-arrow { color: var(--blue); font-size: 18px; font-weight: 900; }
@media (max-width: 620px) {
  .dashboard-vessel-item { grid-template-columns: minmax(0,1fr) auto; }
  .dashboard-vessel-eta { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .dashboard-vessel-arrow { grid-column: 2; grid-row: 1; }
}

/* V0.6.6 password reset, multi-region access and dashboard filtering */
.auth-form-links { display:flex; justify-content:flex-end; margin:-4px 0 14px; }
.auth-text-link { border:0; background:transparent; color:var(--blue); cursor:pointer; font:inherit; font-size:12px; font-weight:800; padding:8px 0; }
.auth-text-link:hover { text-decoration:underline; }
.dashboard-region-select { min-width:150px; background:#fff; }
.warehouse-check-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:8px; }
.warehouse-check { position:relative; cursor:pointer; }
.warehouse-check input { position:absolute; opacity:0; pointer-events:none; }
.warehouse-check span { display:flex; align-items:center; justify-content:center; min-height:44px; border:1px solid var(--line); border-radius:12px; background:#f8fbfe; color:var(--muted); font-size:12px; font-weight:900; transition:.18s ease; }
.warehouse-check input:checked + span { border-color:#73acd3; background:#e8f4fc; color:var(--blue); box-shadow:0 0 0 2px rgba(15,76,129,.08); }
.field label small { color:var(--muted); font-size:10px; font-weight:700; margin-left:6px; }
.person-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px; }
.person-actions .btn { padding-left:10px; padding-right:10px; }
@media (max-width:560px) {
  .warehouse-check-grid { grid-template-columns:1fr; }
  .dashboard-region-select { width:100%; }
  .person-actions { grid-template-columns:1fr; }
}

/* V0.6.7 vessel tracking reliability */
.map-location-evidence-note {
  position: absolute;
  z-index: 4;
  left: 16px;
  bottom: 28px;
  display: grid;
  gap: 3px;
  max-width: min(520px, calc(100% - 32px));
  padding: 9px 12px;
  border: 1px solid rgba(208,226,240,.95);
  border-radius: 10px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 24px rgba(15,76,129,.12);
  backdrop-filter: blur(8px);
}
.map-location-evidence-note strong { color: var(--ink); font-size: 10px; }
.map-location-evidence-note span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.map-panel-compact .map-location-evidence-note { left: 10px; bottom: 24px; max-width: calc(100% - 20px); }
.map-no-position .map-location-evidence-note { position: static; margin-top: 8px; text-align: left; }
.vessel-track-meta { grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); }


/* V0.7.0 Flexport-only vessel reference */
.flexport-map-link { margin-top: 10px; text-decoration: none; justify-content: center; }
.map-external-action { width: min(460px, 100%); margin-top: 10px; position: relative; z-index: 3; }
.map-external-action .flexport-map-link { background: rgba(255,255,255,.94); }
.map-flexport-overlay { position: absolute; right: 10px; bottom: 28px; z-index: 5; width: min(290px, calc(100% - 20px)); }
.map-flexport-overlay .flexport-map-link { margin-top: 0; background: rgba(255,255,255,.96); box-shadow: 0 6px 18px rgba(15,23,42,.12); }
@media (max-width: 720px) {
  .map-flexport-overlay { left: 10px; right: 10px; width: auto; bottom: 28px; }
}

/* V0.7.2 container workflow status colours */
.status-quarantine { background: #fff7d6; color: #8a5b00; }
.status-berthing { background: #e8f3ff; color: #175b8f; }
.status-ready_to_deliver { background: #eef0ff; color: #4c50a6; }
.status-scheduled_for_delivery { background: #f2ecff; color: #6b43a8; }
.status-delivered { background: #e9f9f2; color: #087752; }
.status-unloaded { background: #edf8f5; color: #0b6d5c; }
.status-dehired { background: #eef4f7; color: #647d91; }

/* V0.8.1 Warehouse Receiving / mobile & iPad tally workflow */
.receiving-metrics { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.receiving-metric { padding:14px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:var(--shadow-sm); display:grid; gap:7px; }
.receiving-metric span { color:var(--muted); font-size:10px; font-weight:800; }
.receiving-metric strong { color:var(--ink); font-size:24px; line-height:1; }
.receiving-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.receiving-card { padding:18px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:var(--shadow-sm); }
.receiving-card-head,.receiving-card-foot,.receiving-progress>div:first-child { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.receiving-card-head h3 { margin:4px 0 0; font-size:18px; letter-spacing:.02em; }
.receiving-kicker { color:var(--muted); font-size:10px; font-weight:850; }
.receiving-status-group { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.receiving-status { display:inline-flex; align-items:center; padding:6px 9px; border-radius:999px; font-size:10px; font-weight:900; white-space:nowrap; background:#edf3f7; color:#526a7d; }
.receiving-overdue { display:inline-flex; align-items:center; gap:5px; padding:6px 9px; border:1px solid #f2c3c0; border-radius:999px; background:#fff0f0; color:#b42318; font-size:10px; font-weight:950; white-space:nowrap; }
.receiving-overdue::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; box-shadow:0 0 0 3px rgba(180,35,24,.10); }
.receiving-card-overdue { border-color:#efc7c4; }
.receiving-counting { background:#e8f3ff; color:#175b8f; }
.receiving-variance { background:#fff1e8; color:#9a4300; }
.receiving-pending_putaway { background:#eef0ff; color:#4c50a6; }
.receiving-scheduled_putaway { background:#f2ecff; color:#6b43a8; }
.receiving-putaway_complete { background:#e9f9f2; color:#087752; }
.receiving-progress { display:grid; gap:7px; margin:16px 0; }
.receiving-progress span,.receiving-progress strong { font-size:11px; }
.receiving-progress-track { position:relative; height:7px; overflow:hidden; border-radius:999px; background:#edf2f6; }
.receiving-progress-track i { display:block; height:100%; border-radius:inherit; background:var(--blue); }
.receiving-warning { margin:0 0 14px; padding:9px 11px; border-radius:10px; background:#fff5ec; color:#9a4300; font-size:11px; font-weight:850; }
.receiving-card-foot { padding-top:12px; border-top:1px solid var(--line); }
.receiving-card-foot>span { color:var(--muted); font-size:10px; }
.receiving-empty-start { max-width:560px; margin:48px auto; padding:32px; border:1px solid var(--line); border-radius:20px; background:#fff; text-align:center; box-shadow:var(--shadow-sm); }
.receiving-empty-start h3 { margin:0 0 8px; }
.receiving-empty-start p { color:var(--muted); font-size:12px; line-height:1.7; }
.receiving-detail-shell { max-width:980px; margin:0 auto; padding-bottom:100px; }
.receiving-detail-head { margin-bottom:12px; }
.text-back { border:0; background:transparent; color:var(--blue); padding:0 0 8px; cursor:pointer; font:inherit; font-size:11px; font-weight:850; }
.receiving-sticky-summary { position:sticky; top:8px; z-index:8; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:12px; margin-bottom:14px; border:1px solid rgba(205,220,232,.96); border-radius:16px; background:rgba(255,255,255,.96); box-shadow:0 8px 24px rgba(15,76,129,.10); backdrop-filter:blur(10px); }
.receiving-sticky-summary>div { display:grid; gap:3px; padding:2px 8px; }
.receiving-sticky-summary span { color:var(--muted); font-size:9px; font-weight:800; }
.receiving-sticky-summary strong { font-size:16px; }
.receiving-sticky-summary .has-variance strong { color:#a64600; }
.receiving-sticky-summary .receiving-progress-track { grid-column:1/-1; padding:0; }
.receiving-item-list { display:grid; gap:12px; }
.receiving-item { border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:var(--shadow-sm); overflow:hidden; transition:.16s ease; }
.receiving-item.checked { border-color:#badfd2; }
.receiving-item.variance { border-color:#f3c6a4; box-shadow:0 7px 18px rgba(154,67,0,.08); }
.receiving-item-head { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px 16px; border-bottom:1px solid var(--line); }
.receiving-line { display:flex; width:28px; height:28px; align-items:center; justify-content:center; border-radius:9px; background:#edf4f9; color:var(--blue); font-size:11px; font-weight:900; }
.receiving-item-head div { display:grid; gap:2px; min-width:0; }
.receiving-item-head div>span,.receiving-item-head small { color:var(--muted); font-size:9px; }
.receiving-item-head strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.condition-pill { padding:6px 8px; border-radius:999px; font-size:9px; font-weight:900; white-space:nowrap; }
.condition-ok { background:#e9f9f2; color:#087752; }
.condition-short,.condition-over,.condition-damaged { background:#fff1e8; color:#9a4300; }
.receiving-item-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; background:var(--line); }
.receiving-item-meta>div { display:grid; gap:3px; padding:10px 14px; background:#f9fbfc; }
.receiving-item-meta span { color:var(--muted); font-size:9px; }
.receiving-item-meta strong { font-size:11px; overflow-wrap:anywhere; }
.receiving-qty-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:14px; }
.receiving-qty-grid label { display:grid; gap:6px; }
.receiving-qty-grid label>span,.receiving-note>span { color:var(--muted); font-size:9px; font-weight:800; }
.receiving-qty-grid label>strong { display:flex; min-height:42px; align-items:center; font-size:20px; }
.receiving-number { min-height:48px; font-size:17px; font-weight:850; text-align:center; }
.receiving-note { display:grid; gap:6px; padding:0 14px 12px; }
.receiving-note .textarea { min-height:64px; }
.receiving-check { display:flex; align-items:center; gap:10px; margin:0 14px 14px; padding:12px; border-radius:12px; background:#f3f8fb; cursor:pointer; font-size:12px; font-weight:850; }
.receiving-check input { width:21px; height:21px; accent-color:var(--blue); }
.receiving-action-panel,.receiving-signed-panel { margin-top:18px; padding:18px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:var(--shadow-sm); }
.receiving-action-panel h3,.putaway-form h3 { margin:0 0 6px; }
.receiving-action-panel p { margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.receiving-bottom-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:14px; }
.signature-panel { display:grid; gap:14px; margin-top:16px; padding-top:16px; border-top:1px solid var(--line); }
.signature-panel[hidden] { display:none; }
.signature-label { display:block; margin-bottom:7px; color:var(--muted); font-size:10px; font-weight:850; }
.signature-canvas { width:100%; height:190px; display:block; border:2px dashed #b8cbd8; border-radius:14px; background:#fff; touch-action:none; cursor:crosshair; }
.signature-image { display:block; width:min(420px,100%); max-height:150px; object-fit:contain; object-position:left center; margin:14px 0; padding:8px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.receiving-result { display:grid; gap:5px; padding:13px; border-radius:12px; }
.receiving-result strong { font-size:12px; }
.receiving-result span { font-size:10px; }
.ok-result { background:#e9f9f2; color:#087752; }
.variance-result { background:#fff1e8; color:#9a4300; }
.putaway-form { display:grid; gap:14px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.putaway-form>.btn { justify-self:start; margin-right:8px; }
.putaway-complete { margin-top:16px; padding:14px; border-radius:12px; background:#e9f9f2; color:#087752; font-size:12px; font-weight:900; }
.btn-large { min-height:48px; font-size:13px; }

@media (max-width: 1100px) {
  .receiving-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .receiving-list { grid-template-columns:1fr; }
  .receiving-sticky-summary { top:4px; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .receiving-item-meta { grid-template-columns:1fr 1fr; }
  .receiving-qty-grid { grid-template-columns:1fr 1fr; }
  .receiving-qty-grid label:first-child { grid-column:1/-1; }
  .receiving-bottom-actions { position:sticky; bottom:8px; z-index:7; padding:8px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.97); box-shadow:0 8px 24px rgba(15,23,42,.12); }
  .receiving-bottom-actions .btn { flex:1; }
}
@media (max-width: 520px) {
  .receiving-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .receiving-metric { padding:11px; }
  .receiving-metric strong { font-size:20px; }
  .receiving-card { padding:14px; border-radius:16px; }
  .receiving-card-foot { align-items:stretch; flex-direction:column; }
  .receiving-card-foot .btn { width:100%; }
  .receiving-item-head { grid-template-columns:auto minmax(0,1fr); }
  .receiving-item-head .condition-pill { grid-column:2; justify-self:start; }
  .receiving-item-meta { grid-template-columns:1fr; }
  .receiving-qty-grid { grid-template-columns:1fr; }
  .receiving-qty-grid label:first-child { grid-column:auto; }
  .receiving-qty-grid label>strong { min-height:auto; padding:8px 0; }
  .receiving-number { min-height:54px; font-size:20px; }
  .signature-canvas { height:220px; }
  .receiving-bottom-actions { flex-direction:column; }
}

/* V0.9.0 Warehouse location + batch inventory */
.receiving-batch-input { min-height: 40px; padding: 9px 10px; font-size: 12px; }
.warehouse-page { display: grid; gap: 18px; }
.warehouse-page .page-head { margin-bottom: 0; }
.warehouse-badge { min-height: 42px; display:inline-flex; align-items:center; padding:0 14px; border-radius:11px; border:1px solid var(--line); background:#fff; font-size:12px; font-weight:900; }
.warehouse-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.warehouse-metrics article { background:var(--panel); border:1px solid var(--line); border-radius:15px; padding:15px 17px; box-shadow:0 5px 18px rgba(15,23,42,.035); }
.warehouse-metrics span { display:block; color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.03em; }
.warehouse-metrics strong { display:block; margin-top:8px; font-size:26px; letter-spacing:-.04em; }
.warehouse-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:11px; border:1px solid var(--line); border-radius:15px; background:#fff; }
.warehouse-zone-tabs { display:flex; gap:4px; padding:4px; border-radius:11px; background:#edf2f5; }
.warehouse-zone-tabs button { min-height:34px; padding:0 12px; border:0; border-radius:8px; background:transparent; color:var(--muted); font-size:11px; font-weight:900; }
.warehouse-zone-tabs button.active { background:#fff; color:var(--ink); box-shadow:0 2px 8px rgba(15,23,42,.08); }
.warehouse-search-control { display:flex; gap:8px; width:min(440px,100%); }
.warehouse-workspace { display:grid; grid-template-columns:280px minmax(480px,1fr) 350px; gap:16px; align-items:start; }
.warehouse-queue-panel,.warehouse-map-panel,.warehouse-inspector-panel { background:#fff; border:1px solid var(--line); border-radius:17px; box-shadow:0 5px 18px rgba(15,23,42,.035); min-width:0; overflow:hidden; }
.warehouse-queue-panel,.warehouse-inspector-panel { position:sticky; top:94px; max-height:calc(100vh - 118px); overflow:auto; }
.warehouse-panel-head,.warehouse-map-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:16px 17px; border-bottom:1px solid var(--line); }
.warehouse-panel-head span,.warehouse-map-head>div>span,.warehouse-inspector-head>span { display:block; color:#8998a8; font-size:9px; font-weight:900; letter-spacing:.12em; }
.warehouse-panel-head h3,.warehouse-map-head h3,.warehouse-inspector-head h3 { margin:4px 0 0; font-size:15px; }
.warehouse-panel-head b { display:grid; place-items:center; min-width:29px; height:29px; border-radius:9px; background:#fff4d7; color:#7c5300; font-size:11px; }
.warehouse-panel-note { margin:0; padding:12px 16px; color:var(--muted); background:#f8fafc; border-bottom:1px solid var(--line); font-size:10px; line-height:1.55; }
.warehouse-queue-list { display:grid; gap:9px; padding:12px; }
.warehouse-queue-card { width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; text-align:left; border:1px solid var(--line); border-radius:13px; padding:12px; background:#fff; color:var(--ink); }
.warehouse-queue-card:hover { border-color:#b9c9d6; background:#fbfcfd; }
.warehouse-queue-card.selected { border-color:#f4b62d; box-shadow:0 0 0 3px rgba(245,158,11,.12); background:#fffaf0; }
.warehouse-queue-card div>span,.warehouse-queue-card div>small { display:block; color:var(--muted); font-size:9px; line-height:1.5; }
.warehouse-queue-card div>strong { display:block; margin:3px 0; font-size:13px; }
.warehouse-queue-card>b { align-self:center; text-align:right; font-size:18px; }
.warehouse-queue-card>b small { display:block; color:var(--muted); font-size:8px; font-weight:800; }
.warehouse-map-head { align-items:center; }
.warehouse-map-legend { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; font-size:9px; color:var(--muted); }
.warehouse-map-legend span { display:inline-flex; align-items:center; gap:5px; }
.legend-dot { width:8px; height:8px; border-radius:99px; background:#cbd5e1; }
.legend-dot.occupied { background:var(--success); }
.legend-dot.mixed { background:var(--warning); }
.legend-dot.spare { background:#94a3b8; }
.warehouse-zones { display:grid; grid-template-columns:repeat(2,minmax(540px,1fr)); gap:14px; padding:14px; overflow:auto; background:#f4f7f9; }
.warehouse-zones.single-zone { grid-template-columns:minmax(640px,1fr); }
.warehouse-zone-map { min-width:540px; border:1px solid #d3dde5; border-radius:14px; background:#fff; overflow:hidden; }
.warehouse-zone-map>header { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-bottom:1px solid var(--line); background:#f9fbfc; }
.warehouse-zone-map>header strong { font-size:11px; }
.warehouse-zone-map>header span { color:var(--muted); font-size:9px; }
.warehouse-zone-canvas { position:relative; height:900px; min-width:620px; background:linear-gradient(90deg,rgba(15,23,42,.035) 1px,transparent 1px),linear-gradient(rgba(15,23,42,.035) 1px,transparent 1px),#f8fbfc; background-size:24px 24px; }
.warehouse-frame { position:absolute; transform:translate(-50%,-50%); width:66px; z-index:1; }
.warehouse-frame:hover { z-index:6; }
.warehouse-frame-code { display:block; text-align:center; margin-bottom:2px; color:#64748b; font-size:7px; font-weight:900; }
.warehouse-frame>div { display:grid; grid-template-columns:1fr 1fr; gap:2px; padding:2px; border:1px solid #aebdca; border-radius:6px; background:#dbe4ea; box-shadow:0 1px 3px rgba(15,23,42,.12); }
.warehouse-face { position:relative; min-width:0; height:25px; padding:2px 2px; border:1px solid #d5dee5; border-radius:4px; background:#fff; overflow:hidden; color:#475569; }
.warehouse-face b { display:block; font-size:7px; line-height:1; }
.warehouse-face span { display:block; margin-top:2px; font-size:6.5px; line-height:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.warehouse-face em { position:absolute; right:1px; top:1px; border-radius:3px; padding:1px 2px; background:#d97706; color:#fff; font-size:5px; font-style:normal; font-weight:900; }
.warehouse-face.occupied { background:#e9f9f2; border-color:#9ad9c0; color:#087752; }
.warehouse-face.mixed { background:#fff2df; border-color:#f1bb67; color:#8a4a00; }
.warehouse-face.face-spare,.warehouse-face.face-empty { background:#f2f5f7; color:#8a98a7; }
.warehouse-face.face-unavailable { background:#eef0f2; color:#a0a8b0; opacity:.55; cursor:not-allowed; }
.warehouse-face.selected { outline:2px solid #0d1b2a; outline-offset:1px; z-index:5; }
.warehouse-face.search-hit { box-shadow:0 0 0 3px rgba(37,99,235,.22); border-color:#2563eb; }
.warehouse-empty-layout,.warehouse-inspector-empty { min-height:420px; display:grid; place-items:center; align-content:center; text-align:center; padding:36px; color:var(--muted); }
.warehouse-empty-layout h3,.warehouse-inspector-empty h3 { margin:0 0 8px; color:var(--ink); }
.warehouse-empty-layout p,.warehouse-inspector-empty p { max-width:500px; margin:0 0 14px; font-size:12px; line-height:1.65; }
.warehouse-inspector { padding-bottom:14px; }
.warehouse-inspector-head { padding:16px; border-bottom:1px solid var(--line); }
.warehouse-inspector-head p { margin:6px 0 0; color:var(--muted); font-size:10px; line-height:1.5; }
.warehouse-mixed-warning { margin:12px 12px 0; padding:10px 11px; border:1px solid #f4c477; border-radius:10px; background:#fff4e3; color:#8a4a00; font-size:10px; font-weight:900; }
.warehouse-capacity { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:12px; }
.warehouse-capacity span { padding:9px 10px; border-radius:10px; background:#f6f8fa; color:var(--muted); font-size:9px; }
.warehouse-capacity strong { display:block; margin-top:4px; color:var(--ink); font-size:16px; }
.warehouse-lot-section { padding:0 12px 12px; }
.section-mini-head { display:flex; justify-content:space-between; align-items:center; margin:4px 0 9px; }
.section-mini-head h4 { margin:0; font-size:11px; }
.section-mini-head span { color:var(--muted); font-size:9px; }
.warehouse-empty-face { padding:14px; border:1px dashed #ced8e0; border-radius:11px; color:var(--muted); font-size:10px; text-align:center; }
.warehouse-lot-card { padding:11px; margin-bottom:8px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.warehouse-lot-title { display:flex; justify-content:space-between; gap:8px; align-items:flex-start; }
.warehouse-lot-title span { display:block; color:var(--muted); font-size:8px; }
.warehouse-lot-title strong { display:block; margin-top:2px; font-size:13px; }
.warehouse-lot-title>b { font-size:18px; }
.warehouse-lot-meta { display:flex; gap:6px; flex-wrap:wrap; margin:8px 0; }
.warehouse-lot-meta span { padding:4px 6px; border-radius:6px; background:#f4f7f9; color:#526273; font-size:8px; }
.btn-small { min-height:31px; padding:0 10px; font-size:10px; }
.warehouse-action-box { display:grid; gap:10px; margin:0 12px 12px; padding:12px; border:1px solid var(--line); border-radius:12px; background:#fbfcfd; }
.warehouse-action-box h4 { margin:0; font-size:11px; }
.warehouse-action-box p { margin:0; color:var(--muted); font-size:9px; line-height:1.55; }
.warehouse-action-box label,.warehouse-inline-form label { display:grid; gap:5px; color:#536273; font-size:9px; font-weight:800; }
.warehouse-action-box .input,.warehouse-inline-form .input,.warehouse-inline-form .select { min-height:38px; padding:8px 10px; border-radius:9px; font-size:11px; }
.warehouse-inline-form { display:grid; grid-template-columns:1fr 1.45fr; gap:8px; margin-top:9px; padding-top:9px; border-top:1px solid var(--line); }
.warehouse-inline-form .span-2,.warehouse-action-box .span-2 { grid-column:1/-1; }
.warehouse-move-frame-status { padding:10px; border:1px solid #d9e4ec; border-radius:10px; background:#f8fbfd; color:#617487; font-size:10px; }
.warehouse-move-frame-status-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.warehouse-move-frame-status-head strong { color:#22384b; font-size:12px; }
.warehouse-move-face-status-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.warehouse-move-face-status { display:grid; gap:2px; padding:8px; border:1px solid #dbe4eb; border-radius:9px; background:#fff; }
.warehouse-move-face-status b { color:#22384b; font-size:11px; }
.warehouse-move-face-status span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#41596c; font-weight:800; }
.warehouse-move-face-status small { color:#788a99; line-height:1.35; }
.warehouse-move-face-status.is-target { border-color:#8fb5d0; box-shadow:0 0 0 1px #8fb5d0 inset; }
.warehouse-move-face-status.is-source { background:#f2f4f6; opacity:.78; }
.warehouse-move-face-status.is-blocked { border-style:dashed; opacity:.62; }
.warehouse-move-status-warning { color:#9a5d16; font-weight:800; }
.stocktake-lines { display:grid; gap:8px; }
.stocktake-lines>label { grid-template-columns:minmax(0,1fr) 72px; gap:7px; align-items:center; padding:8px; border-radius:9px; background:#fff; border:1px solid #e6ebef; }
.stocktake-lines>label span { font-size:9px; font-weight:900; }
.stocktake-lines>label small { display:block; margin-top:2px; color:var(--muted); font-size:8px; font-weight:700; }
.stocktake-lines>label [name="stocktakeNote"] { grid-column:1/-1; }
.warehouse-section { background:#fff; border:1px solid var(--line); border-radius:17px; box-shadow:0 5px 18px rgba(15,23,42,.035); overflow:hidden; }
.section-heading { display:flex; justify-content:space-between; padding:15px 17px; border-bottom:1px solid var(--line); }
.section-heading h2 { margin:0; font-size:15px; }
.section-heading p { margin:4px 0 0; color:var(--muted); font-size:10px; }
.warehouse-adjustment-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:13px; }
.warehouse-adjustment-grid>article { padding:12px; border:1px solid #f2c77e; border-radius:12px; background:#fffaf0; }
.warehouse-adjustment-grid header { display:flex; justify-content:space-between; gap:10px; padding-bottom:8px; border-bottom:1px solid #f1dfbd; }
.warehouse-adjustment-grid header span,.warehouse-adjustment-grid header strong { display:block; font-size:9px; }
.warehouse-adjustment-grid header b { color:var(--muted); font-size:8px; }
.warehouse-adjustment-grid p { display:flex; justify-content:space-between; gap:8px; margin:8px 0; font-size:9px; }
.warehouse-adjustment-grid p strong { font-size:9px; }
.warehouse-adjustment-grid p span { color:#8a4a00; }
.warehouse-movement-list { display:grid; }
.warehouse-movement-list article { display:grid; grid-template-columns:66px minmax(0,1fr) 135px; gap:11px; align-items:center; padding:11px 15px; border-bottom:1px solid #edf1f4; }
.warehouse-movement-list article:last-child { border-bottom:0; }
.warehouse-movement-list article>div strong { font-size:10px; }
.warehouse-movement-list article>div p { margin:3px 0 0; color:var(--muted); font-size:9px; }
.warehouse-movement-list article>span:last-child { text-align:right; color:#526273; font-size:9px; }
.warehouse-movement-list article>span:last-child small { display:block; margin-top:2px; color:var(--muted); font-size:8px; }
.movement-type { display:inline-flex; justify-content:center; padding:5px 7px; border-radius:7px; background:#edf2f5; font-size:8px; font-weight:900; }
.movement-inbound { background:#e9f9f2; color:#087752; }
.movement-move { background:#edf4ff; color:#2457a6; }
.movement-adjust { background:#fff1e8; color:#9a4300; }

@media (max-width: 1500px) {
  .warehouse-workspace { grid-template-columns:250px minmax(430px,1fr) 320px; }
}
@media (max-width: 1180px) {
  .warehouse-workspace { grid-template-columns:250px minmax(0,1fr); }
  .warehouse-inspector-panel { grid-column:1/-1; position:static; max-height:none; }
  .warehouse-queue-panel { position:sticky; }
  .warehouse-inspector { display:grid; grid-template-columns:minmax(230px,.7fr) minmax(0,1.3fr); align-items:start; }
  .warehouse-inspector-head,.warehouse-mixed-warning,.warehouse-capacity { grid-column:1; }
  .warehouse-lot-section,.warehouse-action-box { grid-column:2; }
  .warehouse-adjustment-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .warehouse-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .warehouse-toolbar,.warehouse-search-control { width:100%; }
  .warehouse-zone-tabs { flex:1; }
  .warehouse-zone-tabs button { flex:1; }
  .warehouse-workspace { grid-template-columns:1fr; }
  .warehouse-queue-panel,.warehouse-inspector-panel { position:static; max-height:none; }
  .warehouse-map-panel { order:1; }
  .warehouse-queue-panel { order:2; }
  .warehouse-inspector-panel { order:3; }
  .warehouse-zones,.warehouse-zones.single-zone { grid-template-columns:minmax(620px,1fr); }
  .warehouse-inspector { display:block; }
  .warehouse-adjustment-grid { grid-template-columns:1fr; }
  .warehouse-movement-list article { grid-template-columns:58px minmax(0,1fr); }
  .warehouse-movement-list article>span:last-child { grid-column:2; text-align:left; }
}
@media (max-width: 520px) {
  .warehouse-metrics { gap:8px; }
  .warehouse-metrics article { padding:12px; }
  .warehouse-metrics strong { font-size:22px; }
  .warehouse-search-control { display:grid; grid-template-columns:1fr auto; }
  .warehouse-map-head { align-items:flex-start; flex-direction:column; }
  .warehouse-map-legend { justify-content:flex-start; }
  .warehouse-zones { padding:9px; }
  .warehouse-action-box,.warehouse-lot-section { margin-left:10px; margin-right:10px; }
  .warehouse-inline-form { grid-template-columns:1fr; }
  .warehouse-inline-form .span-2 { grid-column:auto; }
}

/* V0.9.1 Flexport public-area display: internal vessel map removed */
.public-area-overview { padding: 18px; display: grid; gap: 14px; }
.public-area-hero { padding: 18px; border: 1px solid #cfe1ef; border-radius: 15px; background: linear-gradient(135deg,#f7fbfe,#edf6fc); }
.public-area-hero > span, .vessel-area-label { display: block; color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.public-area-hero > strong { display: block; margin-top: 7px; color: var(--ink); font-size: 24px; line-height: 1.2; }
.public-area-hero > small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }
.public-area-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.public-area-grid > div, .public-area-freshness { padding: 11px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); min-width: 0; }
.public-area-grid span, .public-area-freshness span { display: block; color: var(--muted); font-size: 9px; }
.public-area-grid strong, .public-area-freshness strong { display: block; margin-top: 5px; color: var(--ink); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.public-area-freshness { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 12px; }
.public-area-freshness small { grid-column: 1 / -1; margin-top: 5px; color: var(--muted); font-size: 9px; }
.area-status.area-recent, .public-area-freshness.area-recent small { color: #177245; }
.area-status.area-delayed, .public-area-freshness.area-delayed small { color: #9a6700; }
.area-status.area-stale, .public-area-freshness.area-stale small { color: #b54708; }
.area-status.area-unknown, .public-area-freshness.area-unknown small { color: var(--muted); }
.public-area-action .flexport-map-link { margin-top: 0; }
.dashboard-vessel-link { text-decoration: none; color: inherit; }
@media (max-width: 760px) {
  .public-area-grid { grid-template-columns: 1fr 1fr; }
  .public-area-hero > strong { font-size: 20px; }
}

.public-area-link { display:block; text-decoration:none; color:inherit; border:1px solid var(--line); border-radius:22px; padding:22px; background:linear-gradient(180deg,#f8fbfd 0%,#ffffff 100%); transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.public-area-link:hover { border-color:#bfd0dc; box-shadow:0 10px 24px rgba(15,23,42,.06); transform:translateY(-1px); }
.public-area-link-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; color:var(--muted); font-size:11px; font-weight:800; }
.public-area-open { display:inline-flex; align-items:center; gap:5px; color:var(--blue); font-weight:900; }
.public-area-grid-compact { margin-top:16px; }
.public-area-action { display:none; }
.warehouse-zones { padding:18px; align-items:start; }
.warehouse-zone-map { min-width:560px; }
.warehouse-zone-canvas { height:980px; min-width:660px; padding:34px 34px 88px; box-sizing:border-box; background-size:28px 28px; }
.warehouse-frame { width:76px; }
.warehouse-frame-code { margin-bottom:4px; font-size:10px; color:#5c6f82; text-shadow:0 1px 0 #fff; }
.warehouse-frame>div { gap:4px; padding:4px; border-radius:10px; }
.warehouse-face { height:35px; padding:4px 3px; border-radius:6px; }
.warehouse-face b { font-size:9px; }
.warehouse-face span { margin-top:3px; font-size:8px; line-height:1.1; }
.warehouse-face em { right:2px; top:2px; font-size:6px; }


/* V0.9.5 dashboard vessel overview */
.dashboard-vessel-panel { width:100%; }
.dashboard-vessel-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.dashboard-vessel-card { display:grid; gap:14px; min-width:0; padding:18px; border:1px solid var(--line); border-radius:16px; background:linear-gradient(180deg,#fbfdff 0%,#f6f9fb 100%); color:inherit; text-decoration:none; transition:.16s ease; }
.dashboard-vessel-card:hover { transform:translateY(-2px); border-color:#adc8da; box-shadow:0 10px 26px rgba(15,76,129,.08); }
.dashboard-vessel-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.dashboard-vessel-card-head div { min-width:0; }
.dashboard-vessel-card-head span { display:block; color:#8a99a8; font-size:9px; font-weight:900; letter-spacing:.12em; }
.dashboard-vessel-card-head strong { display:block; margin-top:4px; overflow:hidden; color:var(--ink); font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-vessel-card-arrow { color:var(--blue)!important; font-size:20px!important; letter-spacing:0!important; }
.dashboard-vessel-area { padding:13px 14px; border-radius:12px; background:#edf6fc; }
.dashboard-vessel-area span { display:block; color:var(--muted); font-size:9px; font-weight:800; }
.dashboard-vessel-area strong { display:block; margin-top:5px; color:var(--ink); font-size:15px; }
.dashboard-vessel-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.dashboard-vessel-card-grid div { min-width:0; padding:10px 11px; border:1px solid #e2e9ee; border-radius:10px; background:#fff; }
.dashboard-vessel-card-grid span { display:block; color:var(--muted); font-size:8px; font-weight:800; }
.dashboard-vessel-card-grid strong { display:block; margin-top:4px; overflow:hidden; font-size:10px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:1280px){.dashboard-vessel-board{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:720px){.dashboard-vessel-board{grid-template-columns:1fr;}}

/* V0.9.5 warehouse layout readability: full-width zones with scrollable canvas */
.warehouse-zones,.warehouse-zones.single-zone { display:grid; grid-template-columns:1fr; gap:20px; padding:16px; overflow:visible; }
.warehouse-zone-map { width:100%; min-width:0; overflow:hidden; }
.warehouse-zone-scroll { width:100%; overflow:auto; overscroll-behavior:contain; background:#f5f8fa; }
.warehouse-zone-canvas { position:relative; width:1280px; min-width:1280px; height:1120px; padding:0; background:linear-gradient(90deg,rgba(15,23,42,.035) 1px,transparent 1px),linear-gradient(rgba(15,23,42,.035) 1px,transparent 1px),#f8fbfc; background-size:28px 28px; }
.warehouse-frame { width:68px; transform:translate(-50%,-50%); }
.warehouse-frame-code { margin-bottom:4px; font-size:9px; line-height:1; color:#53687a; text-shadow:0 1px 0 #fff; }
.warehouse-frame>div { gap:3px; padding:3px; border-radius:8px; }
.warehouse-face { height:30px; padding:3px 2px; border-radius:5px; }
.warehouse-face b { font-size:8px; line-height:1; }
.warehouse-face span { margin-top:3px; font-size:7px; line-height:1; }

/* V0.9.9 mixed cargo classification */
.cargo-classification-note {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel-soft);
}
.cargo-classification-note strong { font-size:12px; }
.cargo-classification-note span { padding:5px 9px; border-radius:999px; background:#fff; border:1px solid var(--line); font-size:11px; font-weight:700; }
.cargo-classification-note small { width:100%; color:var(--muted); font-size:11px; line-height:1.5; }
.cargo-classification-note.compact { margin-bottom:12px; }

.receiving-category { margin-bottom:18px; }
.receiving-category-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:10px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel-soft);
}
.receiving-category-head div { display:grid; gap:3px; }
.receiving-category-head span { color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.receiving-category-head h3 { margin:0; font-size:16px; }
.receiving-category-head p { margin:0; color:var(--muted); font-size:11px; line-height:1.5; }
.receiving-category-head > strong { white-space:nowrap; font-size:12px; }
.receiving-category-sample .receiving-category-head { border-style:dashed; }
.receiving-category-misc .receiving-category-head { border-style:dashed; }
.receiving-item-sample,
.receiving-item-misc { box-shadow:none; }

@media (max-width: 720px) {
  .cargo-classification-note { align-items:flex-start; }
  .receiving-category-head { padding:12px 13px; }
}

/* V0.9.13 tracking table + role permissions + search stability hotfix */
.tracking-table-wrap { width:100%; overflow-x:auto; }
.tracking-table { min-width:1480px; table-layout:fixed; }
.tracking-table th:nth-child(1), .tracking-table td:nth-child(1) { width:185px; }
.tracking-table th:nth-child(2), .tracking-table td:nth-child(2) { width:150px; }
.tracking-table th:nth-child(3), .tracking-table td:nth-child(3) { width:205px; }
.tracking-table th:nth-child(4), .tracking-table td:nth-child(4) { width:145px; }
.tracking-table th:nth-child(5), .tracking-table td:nth-child(5) { width:190px; }
.tracking-table th:nth-child(6), .tracking-table td:nth-child(6) { width:260px; }
.tracking-table th:nth-child(7), .tracking-table td:nth-child(7) { width:150px; }
.tracking-table th:nth-child(8), .tracking-table td:nth-child(8) { width:150px; }
.tracking-table th:nth-child(9), .tracking-table td:nth-child(9) { width:150px; }
.tracking-table td { height:70px; }

.quick-select {
  width:100%;
  min-height:34px;
  padding:6px 28px 6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  outline:none;
  background:#fff;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}
.quick-select:focus { box-shadow:0 0 0 3px rgba(37,99,235,.08); }
.quick-status.status-in_transit { background:#eaf2ff; color:#1d5bc5; border-color:#cbdcff; }
.quick-status.status-arriving { background:#fff4d9; color:#a46600; border-color:#f1d694; }
.quick-status.status-delayed { background:#fff0f0; color:#c43145; border-color:#f3cbd1; }
.quick-status.status-discharged,
.quick-status.status-delivered,
.quick-status.status-unloaded,
.quick-status.status-dehired { background:#eafaf3; color:#078258; border-color:#c8ebdc; }
.quick-status.status-ready_pickup,
.quick-status.status-ready_to_deliver,
.quick-status.status-scheduled_for_delivery { background:#ede9fe; color:#6d28d9; border-color:#ddd5fa; }
.quick-status.status-quarantine,
.quick-status.status-berthing { background:#fff7e8; color:#9a5c00; border-color:#f3d9a4; }

.goods-tags { display:flex; flex-wrap:wrap; gap:5px; align-items:center; }
.goods-tags > span {
  display:inline-flex;
  align-items:center;
  max-width:118px;
  min-height:24px;
  padding:4px 7px;
  border:1px solid #dce6ed;
  border-radius:7px;
  background:#f5f8fa;
  color:#30465a;
  font-size:9px;
  font-weight:800;
  line-height:1.15;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.goods-tags .goods-more { background:#eef4ff; color:#2457a6; border-color:#d8e5fb; }

.priority-badge,
.priority-select { min-width:118px; }
.priority-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}
.priority-super_urgent { background:#fff0f0; color:#b42332; border-color:#f3c8ce; }
.priority-urgent { background:#fff6e5; color:#9a5a00; border-color:#eed59c; }
.priority-no_rush { background:#eef7f2; color:#21714f; border-color:#cfe6d9; }

.warehouse-lookup-toolbar { align-items:stretch; }
.lookup-table { min-width:960px; }

.cargo-permission-lock {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:16px;
  padding:12px 14px;
  border:1px solid #d8e3eb;
  border-radius:13px;
  background:#f7fafc;
}
.cargo-permission-lock strong { white-space:nowrap; font-size:11px; }
.cargo-permission-lock span { color:var(--muted); font-size:10px; line-height:1.55; }
.cargo-locked-wrap { border:1px solid var(--line); border-radius:14px; }
.cargo-locked-table { min-width:1040px; }
.cargo-locked-table td { background:#fbfcfd; }

.operator-cargo-permission { margin-top:4px; }
.permission-toggle {
  display:flex;
  gap:11px;
  align-items:flex-start;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#f8fafc;
  cursor:pointer;
}
.permission-toggle input { width:17px; height:17px; margin:2px 0 0; accent-color:var(--navy); }
.permission-toggle span { display:grid; gap:3px; }
.permission-toggle strong { color:var(--ink); font-size:11px; }
.permission-toggle small { color:var(--muted); font-size:9px; line-height:1.5; }
.operator-cargo-permission.is-disabled { opacity:.48; }
.operator-cargo-permission.is-disabled .permission-toggle { cursor:not-allowed; }

@media (max-width: 1100px) {
  .tracking-table { min-width:1380px; }
  .tracking-table th:nth-child(6), .tracking-table td:nth-child(6) { width:220px; }
}
@media (max-width: 720px) {
  .cargo-permission-lock { display:grid; gap:4px; }
}

/* V0.9.14 tracking list refinement */
.tracking-toolbar {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
  padding:9px;
  border:1px solid var(--line);
  border-radius:15px;
  background:rgba(255,255,255,.94);
  box-shadow:0 4px 14px rgba(15,23,42,.025);
}
.tracking-search {
  position:relative;
  flex:1 1 auto;
  min-width:260px;
}
.tracking-search .input {
  min-height:40px;
  padding:9px 12px 9px 36px;
  border-radius:10px;
  font-size:11px;
}
.tracking-search .search-icon { left:12px; }
.tracking-filters {
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
.tracking-filter {
  width:156px;
  min-width:0;
  min-height:40px;
  padding:8px 31px 8px 11px;
  border-radius:10px;
  font-size:11px;
  font-weight:700;
  background-color:#fbfdff;
}
.tracking-filter:disabled { opacity:.58; cursor:not-allowed; }

.tracking-table { min-width:1540px; }
.tracking-table th:nth-child(9), .tracking-table td:nth-child(9) { width:210px; }
.delivery-arrangement-text {
  display:block;
  max-width:190px;
  color:#334155;
  font-size:10px;
  font-weight:700;
  line-height:1.4;
  white-space:normal;
  overflow-wrap:anywhere;
}

.container-edit-foot {
  justify-content:space-between;
  align-items:center;
}
.modal-foot-left,
.modal-foot-right {
  display:flex;
  align-items:center;
  gap:10px;
}

@media (max-width: 900px) {
  .tracking-toolbar { align-items:stretch; flex-wrap:wrap; }
  .tracking-search { flex-basis:100%; }
  .tracking-filters { width:100%; }
  .tracking-filter { flex:1 1 0; width:auto; }
}
@media (max-width: 620px) {
  .tracking-toolbar { padding:8px; gap:8px; }
  .tracking-filters { gap:7px; }
  .tracking-filter { font-size:10px; padding-left:9px; }
  .container-edit-foot { align-items:stretch; gap:10px; flex-direction:column; }
  .modal-foot-left, .modal-foot-right { width:100%; }
  .modal-foot-left .btn, .modal-foot-right .btn { flex:1 1 0; }
}
.tracking-table tbody tr { cursor:pointer; }
.tracking-table select { cursor:pointer; }

/* V0.9.16 - Container cleaning video evidence */
.cleaning-video-card{border:1px solid var(--border,#dbe2ea);border-radius:18px;padding:18px;background:var(--surface,#fff);display:grid;gap:14px;margin-top:18px}.cleaning-video-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.cleaning-video-card__head h3{margin:3px 0 6px}.cleaning-video-card__head p{margin:0;color:var(--muted,#667085);font-size:13px;line-height:1.55;max-width:820px}.cleaning-video-capture{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:68px;border:1px dashed var(--border,#cbd5e1);border-radius:14px;font-weight:750;cursor:pointer;background:var(--surface-soft,#f8fafc);text-align:center;padding:10px}.cleaning-video-capture small{font-weight:500;color:var(--muted,#667085)}.cleaning-video-capture:hover{border-style:solid}.cleaning-video-readonly{padding:12px 14px;border-radius:12px;background:#f8fafc;color:#64748b;font-size:13px}.cleaning-video-progress{display:grid;gap:7px}.cleaning-video-progress__bar{height:9px;border-radius:99px;background:#e5e7eb;overflow:hidden}.cleaning-video-progress__bar i{display:block;width:0;height:100%;background:currentColor;transition:width .2s ease}.cleaning-video-list{display:grid;gap:10px}.cleaning-video-row{display:flex;justify-content:space-between;gap:14px;align-items:center;border-top:1px solid var(--border,#e5e7eb);padding-top:12px}.cleaning-video-row__main{min-width:0}.cleaning-video-row__main strong{display:block;overflow-wrap:anywhere}.cleaning-video-row__actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.cleaning-video-meta,.cleaning-video-empty{color:var(--muted,#667085);font-size:12px;margin-top:4px}.cleaning-video-error{font-size:12px;margin-top:4px;color:#b42318;overflow-wrap:anywhere}@media(max-width:720px){.cleaning-video-card{padding:14px}.cleaning-video-card__head,.cleaning-video-row{align-items:stretch;flex-direction:column}.cleaning-video-card__head .btn,.cleaning-video-row__actions .btn,.cleaning-video-row__actions a{width:100%;text-align:center;justify-content:center}.cleaning-video-row__actions{width:100%}}

/* V0.9.18 independent receiving sections + manifest remarks */
.receiving-split-note {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0 0 16px;
  padding:12px 14px;
  border:1px solid #cfe1ee;
  border-radius:14px;
  background:#f3f8fc;
}
.receiving-split-note strong { flex:0 0 auto; font-size:11px; color:var(--blue); }
.receiving-split-note span { color:var(--muted); font-size:11px; line-height:1.6; }
.receiving-section-head-status { display:flex !important; align-items:flex-end; gap:7px !important; text-align:right; }
.receiving-section-status { display:inline-flex; align-items:center; padding:5px 8px; border-radius:999px; font-size:9px !important; font-weight:900 !important; letter-spacing:0 !important; text-transform:none !important; white-space:nowrap; }
.receiving-section-counting { background:#e8f3ff; color:#175b8f !important; }
.receiving-section-completed { background:#e9f9f2; color:#087752 !important; }
.receiving-section-variance { background:#fff1e8; color:#9a4300 !important; }
.receiving-section-actions,
.receiving-section-completed,
.inventory-putaway-block,
.receiving-section-readonly {
  margin-top:12px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.receiving-section-actions h4 { margin:0 0 4px; font-size:13px; }
.receiving-section-actions p,
.receiving-section-readonly { color:var(--muted); font-size:11px; line-height:1.6; }
.receiving-section-completed { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.receiving-section-completed>div { display:grid; gap:4px; }
.receiving-section-completed strong { font-size:12px; }
.receiving-section-completed span { font-size:10px; }
.inventory-putaway-block { margin-top:12px; }
.receiving-manifest-note {
  display:grid;
  gap:5px;
  margin:12px 14px 0;
  padding:11px 12px;
  border-left:4px solid #4c8fbd;
  border-radius:10px;
  background:#eef6fb;
}
.receiving-manifest-note span { color:#507089; font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.receiving-manifest-note strong { color:#173b57; font-size:11px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
@media (max-width: 720px) {
  .receiving-split-note { flex-direction:column; }
  .receiving-category-head { align-items:stretch; flex-direction:column; }
  .receiving-section-head-status { align-items:flex-start; text-align:left; }
  .receiving-section-completed { align-items:stretch; flex-direction:column; }
  .receiving-section-completed .btn { width:100%; }
}
.receiving-card-sections { display:flex; flex-wrap:wrap; gap:6px; margin:-4px 0 12px; }
.receiving-card-sections span { display:inline-flex; padding:5px 8px; border-radius:999px; font-size:9px; font-weight:850; }

/* V0.9.21 Natural Stone Sheet 2 / per-slab receiving detail */
.natural-stone-detail{margin:18px 0 20px;border:1px solid #dbe3ec;border-radius:14px;background:#fff;overflow:hidden}
.natural-stone-detail>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;cursor:pointer;background:#f8fafc;list-style:none}
.natural-stone-detail>summary::-webkit-details-marker{display:none}
.natural-stone-detail>summary>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.natural-stone-detail>summary span{font-size:11px;font-weight:800;letter-spacing:.08em;color:#64748b;text-transform:uppercase}
.natural-stone-detail>summary strong{font-size:16px;color:#0f172a}
.natural-stone-detail>summary small{font-size:12px;line-height:1.55;color:#64748b;font-weight:500}
.natural-stone-detail-count{display:flex;flex-direction:column;align-items:flex-end;gap:2px;white-space:nowrap;padding:7px 10px;border-radius:10px;background:#ecfdf5;color:#166534}
.natural-stone-detail-count.mismatch{background:#fff7ed;color:#9a3412}
.natural-stone-detail-count b{font-size:13px}
.natural-stone-detail-count span{font-size:11px;letter-spacing:0;text-transform:none;color:inherit}
.natural-stone-table-wrap{overflow:auto;max-height:560px;border-top:1px solid #e2e8f0}
.natural-stone-table{width:100%;min-width:1120px;border-collapse:separate;border-spacing:0;font-size:12px}
.natural-stone-table th{position:sticky;top:0;z-index:2;padding:10px 12px;text-align:left;white-space:nowrap;background:#f1f5f9;color:#475569;border-bottom:1px solid #cbd5e1}
.natural-stone-table td{padding:10px 12px;vertical-align:top;color:#334155;border-bottom:1px solid #eef2f7}
.natural-stone-table tbody tr:last-child td{border-bottom:0}
.natural-stone-table tbody tr:hover td{background:#f8fafc}
.natural-stone-table td:nth-child(1),.natural-stone-table th:nth-child(1){width:54px;text-align:center}
.natural-stone-table td:nth-child(5),.natural-stone-table th:nth-child(5),.natural-stone-table td:nth-child(8),.natural-stone-table th:nth-child(8){text-align:center}
.natural-stone-remark{max-width:320px;white-space:pre-wrap;line-height:1.55;color:#9a3412}
@media (max-width:720px){
  .natural-stone-detail>summary{align-items:flex-start;padding:14px;flex-direction:column}
  .natural-stone-detail-count{align-items:flex-start}
  .natural-stone-table-wrap{max-height:480px}
}

/* V0.9.24 Machinery PDF document-only cargo */
.cargo-edit-card .machinery-pdf-panel{display:none}
.cargo-edit-card.is-machinery .cargo-standard-field{display:none}
.cargo-edit-card.is-machinery .machinery-pdf-panel{display:block}
.cargo-edit-card.is-machinery .cargo-edit-grid{grid-template-columns:1fr 1fr}
.machinery-pdf-panel{border:1px dashed #b8cee5;border-radius:16px;background:#f7fbff;padding:16px 18px;margin-top:2px}
.machinery-pdf-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.machinery-pdf-panel-head>div{display:flex;flex-direction:column;gap:5px}
.machinery-pdf-panel-head strong{font-size:14px;color:#17324d}
.machinery-pdf-panel-head small{font-size:12px;line-height:1.6;color:#64809b;max-width:820px}
.machinery-pdf-pending{display:flex;flex-direction:column;gap:5px;margin-top:12px}
.machinery-pdf-pending span{font-size:12px;color:#496986;background:#fff;border:1px solid #dbe8f4;border-radius:10px;padding:8px 10px}
.machinery-pdf-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.machinery-pdf-row{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #dbe8f4;border-radius:12px;background:#fff;padding:12px 14px}
.machinery-pdf-row>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.machinery-pdf-row strong{font-size:13px;color:#17324d;overflow-wrap:anywhere}
.machinery-pdf-row span{font-size:11px;color:#6b8197}
.machinery-pdf-row small{font-size:11px;color:#b42318;overflow-wrap:anywhere}
.machinery-pdf-actions{display:flex;gap:8px;flex-shrink:0}
.machinery-pdf-empty{font-size:12px;color:#7a90a6;border:1px dashed #cad9e7;border-radius:12px;padding:16px;text-align:center;background:#f8fbfe}
.machinery-detail-note{display:flex;flex-direction:column;gap:4px;background:#f3f8fd;border:1px solid #d7e5f2;border-radius:12px;padding:12px 14px}
.machinery-detail-note strong{font-size:13px;color:#17324d}
.machinery-detail-note span{font-size:12px;color:#667f97;line-height:1.55}
@media (max-width:720px){.machinery-pdf-panel-head,.machinery-pdf-row{flex-direction:column;align-items:stretch}.machinery-pdf-actions{width:100%}.machinery-pdf-actions .btn{flex:1}}


/* V0.9.28 - distinct colour for every container workflow status */
.status-in_transit,
.quick-status.status-in_transit,
.status-select.status-in_transit { background:#dbeafe; color:#1d4ed8; border-color:#93c5fd; }
.status-arriving,
.quick-status.status-arriving,
.status-select.status-arriving { background:#fef3c7; color:#a16207; border-color:#fcd34d; }
.status-delayed,
.quick-status.status-delayed,
.status-select.status-delayed { background:#ffe4e6; color:#be123c; border-color:#fda4af; }
.status-quarantine,
.quick-status.status-quarantine,
.status-select.status-quarantine { background:#ffedd5; color:#c2410c; border-color:#fdba74; }
.status-berthing,
.quick-status.status-berthing,
.status-select.status-berthing { background:#cffafe; color:#0e7490; border-color:#67e8f9; }
.status-ready_to_deliver,
.quick-status.status-ready_to_deliver,
.status-select.status-ready_to_deliver { background:#f3e8ff; color:#7e22ce; border-color:#d8b4fe; }
.status-scheduled_for_delivery,
.quick-status.status-scheduled_for_delivery,
.status-select.status-scheduled_for_delivery { background:#e0e7ff; color:#4338ca; border-color:#a5b4fc; }
.status-delivered,
.quick-status.status-delivered,
.status-select.status-delivered { background:#d1fae5; color:#047857; border-color:#6ee7b7; }
.status-unloaded,
.quick-status.status-unloaded,
.status-select.status-unloaded { background:#ccfbf1; color:#0f766e; border-color:#5eead4; }
.status-dehired,
.quick-status.status-dehired,
.status-select.status-dehired { background:#e2e8f0; color:#475569; border-color:#94a3b8; }

.quick-status option.status-option,
.status-select option.status-option { font-weight:800; }
.quick-status option.status-option-in_transit,
.status-select option.status-option-in_transit { background:#dbeafe; color:#1d4ed8; }
.quick-status option.status-option-arriving,
.status-select option.status-option-arriving { background:#fef3c7; color:#a16207; }
.quick-status option.status-option-delayed,
.status-select option.status-option-delayed { background:#ffe4e6; color:#be123c; }
.quick-status option.status-option-quarantine,
.status-select option.status-option-quarantine { background:#ffedd5; color:#c2410c; }
.quick-status option.status-option-berthing,
.status-select option.status-option-berthing { background:#cffafe; color:#0e7490; }
.quick-status option.status-option-ready_to_deliver,
.status-select option.status-option-ready_to_deliver { background:#f3e8ff; color:#7e22ce; }
.quick-status option.status-option-scheduled_for_delivery,
.status-select option.status-option-scheduled_for_delivery { background:#e0e7ff; color:#4338ca; }
.quick-status option.status-option-delivered,
.status-select option.status-option-delivered { background:#d1fae5; color:#047857; }
.quick-status option.status-option-unloaded,
.status-select option.status-option-unloaded { background:#ccfbf1; color:#0f766e; }
.quick-status option.status-option-dehired,
.status-select option.status-option-dehired { background:#e2e8f0; color:#475569; }

/* V0.9.31 - mobile cleaning video picker + receiving PDF actions */
.cleaning-video-upload-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cleaning-video-upload-actions .cleaning-video-capture{min-height:82px}
.receiving-section-completed__actions,.putaway-pdf-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.putaway-pdf-actions{margin-top:12px}
@media(max-width:720px){.cleaning-video-upload-actions{grid-template-columns:1fr}.receiving-section-completed__actions,.putaway-pdf-actions{width:100%}.receiving-section-completed__actions .btn,.putaway-pdf-actions .btn{width:100%;justify-content:center}}
.receiving-pdf-archive{border:1px solid var(--border,#dbe2ea);border-radius:18px;padding:18px;background:var(--surface,#fff);display:grid;gap:14px;margin-top:18px}.receiving-pdf-archive__head h3{margin:3px 0 6px}.receiving-pdf-archive__head p{margin:0;color:var(--muted,#667085);font-size:13px;line-height:1.55}.receiving-pdf-list{display:grid;gap:10px}.receiving-pdf-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--border,#e5e7eb);padding-top:12px}.receiving-pdf-row>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}.receiving-pdf-row strong{font-size:13px;color:#17324d;overflow-wrap:anywhere}.receiving-pdf-row span{font-size:11px;color:#6b8197}.receiving-pdf-row small{font-size:11px;color:#b42318;overflow-wrap:anywhere}.receiving-pdf-row__actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}@media(max-width:720px){.receiving-pdf-archive{padding:14px}.receiving-pdf-row{align-items:stretch;flex-direction:column}.receiving-pdf-row__actions{width:100%}.receiving-pdf-row__actions .btn{width:100%;justify-content:center}}

/* V0.9.32 - receiving PDF now renders handwritten warehouse signatures from signed receiving sections. */

/* V0.9.34 - compact container preview + samples in tracking */
.tracking-table { min-width:1500px; }
.tracking-table th:nth-child(1), .tracking-table td:nth-child(1) { width:185px; }
.tracking-table th:nth-child(2), .tracking-table td:nth-child(2) { width:150px; }
.tracking-table th:nth-child(3), .tracking-table td:nth-child(3) { width:210px; }
.tracking-table th:nth-child(4), .tracking-table td:nth-child(4) { width:190px; }
.tracking-table th:nth-child(5), .tracking-table td:nth-child(5) { width:230px; }
.tracking-table th:nth-child(6), .tracking-table td:nth-child(6) { width:190px; }
.tracking-table th:nth-child(7), .tracking-table td:nth-child(7) { width:150px; }
.tracking-table th:nth-child(8), .tracking-table td:nth-child(8) { width:145px; }
.tracking-table th:nth-child(9), .tracking-table td:nth-child(9) { width:210px; }
.eta-vessel-cell{display:flex;flex-direction:column;gap:4px;min-width:0}
.eta-vessel-cell .cell-main{font-weight:850;color:#173b59}
.eta-vessel-cell .cell-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#607d96;font-weight:700}
.sample-cell{display:grid;gap:4px}
.sample-tags span{background:#f3f0ff;border-color:#ded5f6;color:#604a89}
.cargo-read-summary-split{align-items:center;flex-wrap:wrap}
.cargo-read-summary-split>span{display:flex;gap:4px;align-items:baseline;flex-wrap:wrap}
.cargo-preview-group{border-top:1px solid #d9e8f3;background:#fff}
.cargo-preview-group:first-of-type{border-top:0}
.cargo-preview-group-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px 0;color:#173b59}
.cargo-preview-group-head strong{font-size:12px}
.cargo-preview-group-head span{font-size:10px;color:#69839a;font-weight:750}
.cargo-preview-sample-group{background:#fcfbff}
.cargo-read-card-sample .cargo-item-number{background:linear-gradient(135deg,#66509a,#8f78c4)}
.cargo-read-grid-preview{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
.cargo-read-grid-preview .cargo-span-2{grid-column:span 1}
@media(max-width:720px){
  .cargo-read-summary-split{align-items:flex-start;flex-direction:column}
  .cargo-preview-group-head{align-items:flex-start;flex-direction:column;gap:3px}
  .cargo-read-grid-preview{grid-template-columns:1fr}
}

/* V0.9.36 - keep compact controls, but give Status enough room for full labels */
.tracking-table { min-width:1480px; }
.tracking-table th:nth-child(2), .tracking-table td:nth-child(2) { width:158px; text-align:center; }
.tracking-table th:nth-child(7), .tracking-table td:nth-child(7) { width:126px; text-align:center; }
.tracking-table th:nth-child(2), .tracking-table th:nth-child(7) { vertical-align:middle; }
.tracking-table td:nth-child(2) .quick-select,
.tracking-table td:nth-child(7) .quick-select,
.tracking-table td:nth-child(2) .status-pill,
.tracking-table td:nth-child(7) .priority-badge { margin-left:auto; margin-right:auto; }
.quick-status {
  display:block;
  width:144px;
  min-width:144px;
  max-width:144px;
  min-height:32px;
  padding-top:5px;
  padding-bottom:5px;
  padding-left:16px;
  padding-right:28px;
  text-align:center;
  text-align-last:center;
}
.priority-select {
  display:block;
  width:112px;
  min-width:112px;
  max-width:112px;
  min-height:32px;
  padding-top:5px;
  padding-bottom:5px;
  padding-left:18px;
  padding-right:24px;
  text-align:center;
  text-align-last:center;
}
.priority-badge { min-width:112px; max-width:112px; min-height:32px; padding:5px 10px; }
.quick-status option,
.priority-select option { text-align:left; }
@media (max-width:1200px) {
  .tracking-table { min-width:1450px; }
  .tracking-table th:nth-child(2), .tracking-table td:nth-child(2) { width:146px; }
  .tracking-table th:nth-child(7), .tracking-table td:nth-child(7) { width:120px; }
  .quick-status { width:132px; min-width:132px; max-width:132px; }
  .priority-select,.priority-badge { width:106px; min-width:106px; max-width:106px; }
}

/* V0.9.37 - compact container preview and collapsed operational detail panels */
.detail-collapsible { background:#fff; }
.detail-collapsible .detail-collapse-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  color:#234762;
  background:#f1f8fd;
  border-bottom:0;
  cursor:pointer;
  list-style:none;
  user-select:none;
  font-size:12px;
  font-weight:800;
}
.detail-collapsible .detail-collapse-summary::-webkit-details-marker { display:none; }
.detail-collapsible .detail-collapse-summary i {
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  flex:0 0 24px;
  border:1px solid #cfe1ee;
  border-radius:8px;
  background:#fff;
  color:#37617e;
  font-style:normal;
  font-size:16px;
  line-height:1;
  transition:transform .18s ease;
}
.detail-collapsible[open] .detail-collapse-summary { border-bottom:1px solid #dae8f3; }
.detail-collapsible[open] .detail-collapse-summary i { transform:rotate(180deg); }
.detail-collapse-content { min-width:0; }

.cargo-preview-table-wrap { padding:10px 14px 14px; overflow-x:auto; }
.cargo-preview-table {
  width:100%;
  min-width:520px;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  border:1px solid #d9e8f3;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.cargo-preview-table th,
.cargo-preview-table td {
  padding:9px 11px;
  border-right:1px solid #e4eef6;
  border-bottom:1px solid #e4eef6;
  text-align:left;
  vertical-align:middle;
  font-size:11px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.cargo-preview-table th:last-child,
.cargo-preview-table td:last-child { border-right:0; }
.cargo-preview-table tbody tr:last-child td { border-bottom:0; }
.cargo-preview-table th {
  color:#607d96;
  background:#f7fbfe;
  font-size:9px;
  font-weight:850;
  letter-spacing:.03em;
}
.cargo-preview-table td { color:#284761; }
.cargo-preview-table td strong { color:#173b59; font-size:11px; }
.cargo-preview-table th:nth-child(1) { width:27%; }
.cargo-preview-table th:nth-child(2) { width:22%; }
.cargo-preview-table th:nth-child(3) { width:38%; }
.cargo-preview-table th:nth-child(4) { width:13%; }
.cargo-preview-table .cargo-preview-qty { text-align:center; font-weight:900; color:#1268ad; }
.cargo-preview-sample-table { min-width:420px; }
.cargo-preview-sample-table th:nth-child(1) { width:34%; }
.cargo-preview-sample-table th:nth-child(2) { width:50%; }
.cargo-preview-sample-table th:nth-child(3) { width:16%; }
.cargo-preview-sample-table td:nth-child(3) { text-align:center; font-weight:900; color:#604a89; }

@media(max-width:720px){
  .detail-collapsible .detail-collapse-summary { padding:11px 12px; }
  .cargo-preview-table-wrap { padding:8px 10px 12px; }
}


/* V0.9.43 Warehouse Layout Editor */
.warehouse-layout-edit-banner{margin:0 0 14px;padding:12px 16px;border:1px solid #f1d18a;border-radius:14px;background:#fff9e9;display:flex;align-items:center;gap:12px;color:#664b13}.warehouse-layout-edit-banner strong{font-size:13px}.warehouse-layout-edit-banner span{flex:1;font-size:11px}.warehouse-layout-edit-banner em{padding:4px 8px;border-radius:999px;background:#f6e2a9;font-size:10px;font-style:normal;font-weight:900}.warehouse-workspace.layout-editing{grid-template-columns:220px minmax(0,1fr) 260px}.warehouse-layout-zone-list{display:grid;gap:8px;padding:10px}.warehouse-layout-zone-card{border:1px solid #d9e3eb;background:#fff;border-radius:12px;padding:10px;text-align:left;display:grid;gap:2px;cursor:pointer;color:#284761}.warehouse-layout-zone-card strong{font-size:13px}.warehouse-layout-zone-card span{font-size:11px}.warehouse-layout-zone-card small{font-size:9px;color:#71869a}.warehouse-layout-zone-card.selected{border-color:#3180b9;box-shadow:0 0 0 2px rgba(49,128,185,.12);background:#f3f9fd}.warehouse-master-scroll{overflow:auto;padding:16px;background:#f2f5f7}.warehouse-master-canvas{position:relative;width:1280px;height:900px;border:1px solid #cdd9e2;border-radius:14px;overflow:hidden;background:linear-gradient(90deg,rgba(15,23,42,.04) 1px,transparent 1px),linear-gradient(rgba(15,23,42,.04) 1px,transparent 1px),#fbfcfd;background-size:28px 28px}.warehouse-edit-zone{position:absolute;border:2px solid #87a9bf;border-radius:12px;background:rgba(226,239,247,.48);min-width:90px;min-height:80px;overflow:hidden}.warehouse-edit-zone.selected{border-color:#176ca8;box-shadow:0 0 0 3px rgba(23,108,168,.12)}.warehouse-zone-drag-handle{height:34px;padding:0 10px;display:flex;align-items:center;gap:8px;background:rgba(220,235,244,.92);border-bottom:1px solid #bcd0dc;cursor:move;user-select:none}.warehouse-zone-drag-handle strong{font-size:12px;color:#174d73}.warehouse-zone-drag-handle span{font-size:10px;color:#55738a}.warehouse-edit-zone-body{position:absolute;inset:34px 0 0;overflow:hidden}.warehouse-zone-resize-handle{position:absolute;right:0;bottom:0;width:18px;height:18px;background:linear-gradient(135deg,transparent 48%,#176ca8 49%,#176ca8 58%,transparent 59%,transparent 68%,#176ca8 69%,#176ca8 78%,transparent 79%);cursor:nwse-resize}.warehouse-frame-draggable{border:0;background:transparent;cursor:grab;padding:0}.warehouse-frame-draggable:active{cursor:grabbing}.warehouse-frame-draggable.layout-selected{z-index:20}.warehouse-frame-draggable.layout-selected>div{outline:3px solid rgba(23,108,168,.28);border-color:#176ca8}.warehouse-frame-draggable>div{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:4px;border:1px solid #8fa6b5;border-radius:8px;background:#dce6ec;box-shadow:0 2px 5px rgba(15,23,42,.16)}.warehouse-frame-draggable>div span{font-size:9px;font-weight:900;color:#29475c}.warehouse-frame.orientation-horizontal,.warehouse-frame-draggable.orientation-horizontal{transform:translate(-50%,-50%) rotate(90deg)}.warehouse-layout-help{font-size:10px;color:#6b7f8e}.warehouse-layout-inspector{padding:14px;display:grid;gap:10px}.warehouse-layout-inspector>span{font-size:9px;font-weight:900;letter-spacing:.08em;color:#6f8392}.warehouse-layout-inspector h3{margin:0;color:#244c67}.warehouse-layout-inspector label{display:grid;gap:5px;font-size:10px;font-weight:750;color:#627889}.warehouse-layout-coords{display:grid;grid-template-columns:1fr 1fr;gap:8px}.warehouse-layout-coords label{min-width:0}.warehouse-layout-inspector .btn-danger{margin-top:4px;background:#fff1f1;color:#a33232;border:1px solid #efb9b9}.warehouse-layout-inspector .btn-danger:hover{background:#ffe5e5}
@media(max-width:1050px){.warehouse-workspace.layout-editing{grid-template-columns:1fr}.warehouse-master-canvas{width:1100px;height:820px}}


/* V0.9.44 Status colour alignment with warehouse reference palette.
   Arriving Soon, Delayed and Ready to Deliver intentionally retain their existing colours. */
.status-in_transit, .quick-status.status-in_transit, .status-select.status-in_transit { background:#ffe1a0; color:#3f3523; border-color:#ffe1a0; }
.status-berthing, .quick-status.status-berthing, .status-select.status-berthing { background:#cce8fb; color:#0b5ca8; border-color:#cce8fb; }
.status-unloaded, .quick-status.status-unloaded, .status-select.status-unloaded { background:#e9e9e9; color:#333333; border-color:#e9e9e9; }
.status-scheduled_for_delivery, .quick-status.status-scheduled_for_delivery, .status-select.status-scheduled_for_delivery { background:#d8f0c8; color:#16733d; border-color:#d8f0c8; }
.status-delivered, .quick-status.status-delivered, .status-select.status-delivered { background:#16804c; color:#ffffff; border-color:#16804c; }
.status-quarantine, .quick-status.status-quarantine, .status-select.status-quarantine { background:#c40000; color:#ffffff; border-color:#c40000; }
.status-dehired, .quick-status.status-dehired, .status-select.status-dehired { background:#10ee00; color:#001a00; border-color:#10ee00; }


/* V0.9.46 Warehouse A-frame B/F stacked face layout */
.warehouse-frame.warehouse-frame-stacked{width:100px}
.warehouse-frame-stacked>.warehouse-frame-stack{display:grid;grid-template-columns:1fr;gap:0;padding:0;border:1px solid #9fb0bd;border-radius:5px;background:#dce4e9;box-shadow:0 1px 4px rgba(15,23,42,.14);overflow:visible}
.warehouse-frame-stacked .warehouse-face-row{display:grid;grid-template-columns:39px minmax(0,1fr);align-items:center;width:100%;height:20px;padding:0;border:0;border-bottom:1px solid #aebbc5;border-radius:0;background:#fff;color:#334155;text-align:left;overflow:visible}
.warehouse-frame-stacked .warehouse-face-row:last-child{border-bottom:0}
.warehouse-frame-stacked .warehouse-face-location{display:flex;align-items:center;align-self:stretch;padding:0 5px;border-right:1px solid #b8c4cd;background:rgba(226,232,240,.72);font-size:8px;line-height:1;font-weight:900;letter-spacing:-.02em;white-space:nowrap}
.warehouse-frame-stacked .warehouse-face-product{display:block;min-width:0;margin:0;padding:0 5px;font-size:8px;line-height:1.05;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.warehouse-frame-stacked .warehouse-face-row.occupied{background:#e9f9f2;color:#087752}
.warehouse-frame-stacked .warehouse-face-row.occupied .warehouse-face-location{background:#e9f9f2;color:#087752}
.warehouse-frame-stacked .warehouse-face-row.mixed{background:#fff2df;color:#8a4a00}
.warehouse-frame-stacked .warehouse-face-row.mixed .warehouse-face-location{background:#fbe4bd;color:#7c4b08}
.warehouse-frame-stacked .warehouse-face-row.face-spare,.warehouse-frame-stacked .warehouse-face-row.face-empty{background:#f3f5f7;color:#657789}
.warehouse-frame-stacked .warehouse-face-row.face-unplanned{background:#fff;color:#657789}
.warehouse-frame-stacked .warehouse-face-row.face-unavailable{background:#59616c;color:#fff;opacity:1}
.warehouse-frame-stacked .warehouse-face-row.face-unavailable .warehouse-face-location{background:#4b535d;color:#fff;border-right-color:#727983}
.warehouse-frame-stacked .warehouse-face-row.selected{position:relative;outline:2px solid #176ca8;outline-offset:2px;z-index:6}
.warehouse-frame-stacked .warehouse-face-row.search-hit{box-shadow:0 0 0 3px rgba(37,99,235,.2);border-color:#2563eb}
.warehouse-frame-stacked .warehouse-face-row em{right:3px;top:3px;font-size:5px}
.warehouse-frame-stacked.orientation-horizontal,.warehouse-frame-draggable.warehouse-frame-stacked.orientation-horizontal{transform:translate(-50%,-50%) rotate(90deg)}
.warehouse-frame-draggable.warehouse-frame-stacked{width:72px}
.warehouse-frame-draggable.warehouse-frame-stacked>.warehouse-layout-frame-stack{display:grid;grid-template-columns:1fr;gap:0;padding:0;border:1px solid #8fa6b5;border-radius:5px;background:#eef3f6;box-shadow:0 2px 5px rgba(15,23,42,.16);overflow:hidden}
.warehouse-layout-face-row{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;min-height:16px;border-bottom:1px solid #b8c6cf;color:#29475c;text-align:left}
.warehouse-layout-face-row:last-child{border-bottom:0}
.warehouse-layout-face-row b{display:flex;align-items:center;align-self:stretch;padding:0 4px;border-right:1px solid #b8c6cf;background:#dce6ec;font-size:7px;font-weight:900}
.warehouse-layout-face-row span{padding:0 4px;font-size:7px!important;font-weight:800!important;color:#61798a!important}
.warehouse-frame-draggable.layout-selected>.warehouse-layout-frame-stack{outline:3px solid rgba(23,108,168,.28);outline-offset:2px;border-color:#176ca8}
.warehouse-face-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:12px;border-bottom:1px solid var(--line);background:#fbfcfd}
.warehouse-face-switch button{min-width:0;padding:9px 10px;border:1px solid #d6e0e7;border-radius:9px;background:#fff;color:#526679;text-align:left;cursor:pointer}
.warehouse-face-switch button strong{display:block;font-size:10px}
.warehouse-face-switch button span{display:block;margin-top:4px;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#8493a1}
.warehouse-face-switch button.active{border-color:#14243a;background:#14243a;color:#fff;box-shadow:0 2px 7px rgba(20,36,58,.18)}
.warehouse-face-switch button.active span{color:#d9e2eb}
.warehouse-selected-face-summary{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;padding:12px;border-bottom:1px solid var(--line)}
.warehouse-selected-face-summary>div{min-width:0;padding:10px;border:1px solid #e0e7ec;border-radius:10px;background:#f8fafc}
.warehouse-selected-face-summary span{display:block;color:#8998a8;font-size:8px;font-weight:900;letter-spacing:.08em}
.warehouse-selected-face-summary strong{display:block;margin-top:4px;color:#1f3e56;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.warehouse-selected-face-summary small{display:block;margin-top:4px;color:#728495;font-size:8px;line-height:1.35;overflow-wrap:anywhere}
.warehouse-location-id{margin:2px 12px 0;padding:8px 10px;border-radius:9px;background:#f4f7f9;color:#7b8c9a;font-size:8px;overflow-wrap:anywhere}
@media(max-width:720px){.warehouse-frame.warehouse-frame-stacked{width:94px}.warehouse-frame-draggable.warehouse-frame-stacked{width:68px}.warehouse-frame-stacked .warehouse-face-row{grid-template-columns:37px minmax(0,1fr)}.warehouse-frame-stacked .warehouse-face-location,.warehouse-frame-stacked .warehouse-face-product{font-size:7.5px}}

.warehouse-zone-scroll>.warehouse-zone-canvas{margin-left:28px;margin-right:12px}


/* V0.9.47 zone auto-arrange controls */
.warehouse-layout-arrange{display:grid;gap:7px;padding:10px;border:1px solid #dbe5ec;border-radius:10px;background:#f8fbfd}
.warehouse-layout-arrange>span{font-size:9px;font-weight:900;letter-spacing:.06em;color:#5f7687;text-transform:uppercase}
.warehouse-layout-arrange>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.warehouse-layout-arrange .btn{min-width:0;padding:7px 6px;font-size:10px;white-space:nowrap}
.warehouse-layout-arrange small{font-size:9px;line-height:1.45;color:#718494;font-weight:600}
@media(max-width:720px){.warehouse-layout-arrange>div{grid-template-columns:1fr}.warehouse-layout-arrange .btn{width:100%}}

/* V0.9.48 Warehouse layout multi-select + group arrange/move */
.warehouse-layout-editor-head{gap:14px}
.warehouse-layout-editor-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.warehouse-layout-editor-tools>span{display:inline-flex;align-items:center;min-height:28px;padding:0 8px;border-radius:999px;background:#e9f4fb;color:#176ca8;font-size:9px;font-weight:900}
.warehouse-layout-editor-tools>small{flex-basis:100%;text-align:right;color:#6b7f8e;font-size:9px}
.warehouse-layout-editor-tools .btn.active{border-color:#176ca8;background:#eaf5fc;color:#176ca8;box-shadow:0 0 0 2px rgba(23,108,168,.10)}
.warehouse-frame-draggable.layout-selected>.warehouse-layout-frame-stack{outline:3px solid rgba(23,108,168,.34);outline-offset:2px;border-color:#176ca8;background:#eaf5fb}
.warehouse-frame-draggable.layout-primary>.warehouse-layout-frame-stack{outline-color:rgba(13,27,42,.46);border-color:#0d1b2a}
.warehouse-layout-selection-card{display:grid;gap:9px;padding:11px;border:1px solid #cfe0eb;border-radius:12px;background:#f7fbfe}
.warehouse-layout-selection-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}
.warehouse-layout-selection-card>div:first-child span{font-size:8px;font-weight:950;letter-spacing:.08em;color:#678093}
.warehouse-layout-selection-card>div:first-child strong{font-size:12px;color:#1f577a}
.warehouse-layout-selected-chips{display:flex;gap:5px;flex-wrap:wrap;max-height:96px;overflow:auto}
.warehouse-layout-selected-chips b{display:inline-flex;align-items:center;padding:4px 7px;border:1px solid #c3d7e4;border-radius:999px;background:#fff;color:#365d75;font-size:9px}
.warehouse-layout-selection-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.warehouse-layout-selection-actions .btn{min-width:0;padding:8px 6px;font-size:10px;white-space:nowrap}
.warehouse-layout-selection-card>small{font-size:9px;line-height:1.55;color:#688091}
@media(max-width:720px){.warehouse-layout-editor-tools{width:100%;justify-content:flex-start}.warehouse-layout-editor-tools>small{text-align:left}.warehouse-layout-selection-actions{grid-template-columns:1fr}}

/* V0.9.53 sidebar visibility */
.app-shell.sidebar-hidden{grid-template-columns:minmax(0,1fr)}
.app-shell.sidebar-hidden .sidebar{display:none}
.app-shell.sidebar-hidden .main{grid-column:1}
.sidebar-hide-btn{width:calc(100% - 16px);margin:10px 8px 0;min-height:36px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#607a90;font-size:10px;font-weight:850;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}
.sidebar-hide-btn:hover{background:#f3f8fc;color:var(--blue)}
.sidebar-show-btn{min-height:36px;padding:0 12px;white-space:nowrap}

/* V0.9.53 warehouse search results */
.warehouse-search-results,.warehouse-putaway-task-board{margin-top:12px;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(15,23,42,.035)}
.warehouse-search-results .section-mini-head,.warehouse-putaway-task-board .section-mini-head{padding:12px 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}
.warehouse-search-results .section-mini-head span,.warehouse-putaway-task-board .section-mini-head span{display:block;font-size:8px;font-weight:950;letter-spacing:.10em;color:#6c8394}
.warehouse-search-results .section-mini-head h3,.warehouse-putaway-task-board .section-mini-head h3{margin:2px 0 0;font-size:14px;color:#244c67}
.warehouse-search-results .section-mini-head>b,.warehouse-putaway-task-board .section-mini-head>b{min-width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#eef6fb;color:#176ca8;font-size:12px}
.warehouse-search-table-wrap{overflow:auto}
.warehouse-search-table{width:100%;border-collapse:collapse;min-width:720px;font-size:10px}
.warehouse-search-table th{padding:9px 12px;text-align:left;color:#6c8394;background:#f8fbfd;border-bottom:1px solid var(--line);font-size:8px;letter-spacing:.06em;text-transform:uppercase}
.warehouse-search-table td{padding:10px 12px;border-bottom:1px solid #edf2f5;color:#3c5a70}
.warehouse-search-table tbody tr{cursor:pointer}
.warehouse-search-table tbody tr:hover{background:#f3f9fd}
.warehouse-search-table td strong{display:block;color:#173f5d;font-size:11px}
.warehouse-search-table td small{display:block;margin-top:2px;color:#7d91a0;font-size:8px}
.warehouse-search-empty{padding:18px;color:#718494;font-size:10px;text-align:center}

/* V0.9.53 preferred A-frame recommendations */
.warehouse-recommendation{display:block!important;margin-top:5px!important;color:#176ca8!important;font-weight:900!important}
.warehouse-recommendation.is-match{color:#08794f!important}
.warehouse-face.recommended-putaway{box-shadow:0 0 0 3px rgba(23,108,168,.18);border-color:#176ca8}
.warehouse-face.recommended-putaway .warehouse-face-location::after{content:'★';margin-left:3px;color:#176ca8;font-size:7px}
.warehouse-layout-inspector label>small{font-size:8px;line-height:1.45;color:#718494;font-weight:600}

/* V0.9.53 putaway execution */
.warehouse-putaway-task-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;padding:12px}
.warehouse-putaway-task{border:1px solid #d7e3eb;border-radius:13px;padding:12px;background:#fff;display:grid;gap:9px}
.warehouse-putaway-task.is-placed{border-color:#bfe2d2;background:#fbfffd}
.warehouse-putaway-task header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.warehouse-putaway-task header span{display:block;color:#718494;font-size:8px}
.warehouse-putaway-task header strong{display:block;margin-top:2px;color:#173f5d;font-size:13px}
.warehouse-putaway-task header>b{font-size:20px;color:#173f5d}
.warehouse-putaway-task-meta{display:grid;gap:4px;font-size:9px;color:#6b7f8e}
.warehouse-putaway-task-meta span{display:flex;justify-content:space-between;gap:8px}
.warehouse-putaway-task-meta strong{color:#31516c;text-align:right}
.warehouse-task-status{padding:7px 9px;border-radius:9px;font-size:9px;font-weight:900}
.warehouse-task-status.assigned{background:#fff7e5;color:#8a5b00}
.warehouse-task-status.placed{background:#eaf8f2;color:#08794f}
.warehouse-task-actions{display:flex;gap:7px;flex-wrap:wrap}
.warehouse-task-actions .btn{flex:1;min-width:105px}
.warehouse-task-reassign{display:grid;gap:8px;padding:10px;border:1px solid #cfe0ee;border-radius:11px;background:#f7fbff}
.warehouse-task-reassign label{display:grid;gap:4px;font-size:8px;font-weight:900;color:#607a90}
.warehouse-task-reassign>div{display:flex;gap:7px;flex-wrap:wrap}
.warehouse-task-reassign>div .btn{flex:1;min-width:110px}
.warehouse-task-reassign>small{font-size:8px;line-height:1.45;color:#718494}

/* V0.9.55 layout movement safety lock */
.warehouse-frame-draggable.layout-locked{cursor:not-allowed;border-style:solid;box-shadow:0 0 0 2px rgba(96,122,144,.16)}
.warehouse-frame-lock{position:absolute;right:-7px;top:-9px;z-index:4;width:19px;height:19px;border-radius:999px;display:grid;place-items:center;background:#fff;border:1px solid #c9d8e3;font-style:normal;font-size:9px;box-shadow:0 3px 8px rgba(15,23,42,.12);pointer-events:none}
.warehouse-layout-selected-chips b.is-locked{border-color:#c9d8e3;background:#f3f6f8;color:#526b7e}
.warehouse-layout-lock-state{display:inline-flex;margin-left:6px;padding:3px 6px;border-radius:999px;background:#f3f6f8;color:#526b7e;font-size:7px;letter-spacing:.06em;vertical-align:middle}
.warehouse-layout-lock-state.is-unlocked{background:#fff3df;color:#9a5a00}
.warehouse-layout-global-lock{font-weight:900}
.warehouse-layout-global-lock.is-unlocked{border-color:#e7aa52;background:#fff7e8;color:#915200;box-shadow:0 0 0 2px rgba(231,170,82,.12)}
.warehouse-layout-inspector :is(input,select,button):disabled{cursor:not-allowed;opacity:.62}

/* V0.9.54 tablet portrait sidebar: use the same off-canvas menu pattern as mobile. */
@media(max-width:1024px){
  .app-shell,.app-shell.sidebar-hidden{display:block}
  .sidebar,.app-shell.sidebar-hidden .sidebar{display:block;width:280px;transform:translateX(-102%);transition:transform .22s;box-shadow:18px 0 52px rgba(15,76,129,.18)}
  .sidebar.open,.app-shell.sidebar-hidden .sidebar.open{transform:translateX(0)}
  .main,.app-shell.sidebar-hidden .main{display:block;grid-column:auto}
  .mobile-menu{display:inline-flex}
  .sidebar-show-btn{display:none}
  .warehouse-putaway-task-grid{grid-template-columns:1fr}
}


/* V0.9.56 warehouse map controls + collapsible putaway queue + unified occupied face */
.warehouse-workspace.queue-hidden{grid-template-columns:minmax(480px,1fr) 350px}
.warehouse-panel-head-actions{display:flex;align-items:center;gap:7px}
.warehouse-panel-head-actions .btn{min-height:29px;padding:0 9px}
.warehouse-map-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
.warehouse-map-title{min-width:max-content}
.warehouse-map-head-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;flex-wrap:wrap}
.warehouse-map-head-tools .warehouse-search-control{width:min(360px,100%)}
.warehouse-map-head-tools .warehouse-zone-tabs{flex:0 0 auto}
.warehouse-show-queue{white-space:nowrap}
.warehouse-frame-stacked .warehouse-face-row.occupied,
.warehouse-frame-stacked .warehouse-face-row.occupied .warehouse-face-location{background:#e9f9f2;color:#087752}
@media(max-width:1180px){
  .warehouse-workspace.queue-hidden{grid-template-columns:1fr}
  .warehouse-map-head{grid-template-columns:1fr auto}
  .warehouse-map-head-tools{grid-column:2}
  .warehouse-map-legend{grid-column:1/-1;justify-content:flex-start}
}
@media(max-width:820px){
  .warehouse-map-head{grid-template-columns:1fr}
  .warehouse-map-head-tools,.warehouse-map-legend{grid-column:1;width:100%;justify-content:flex-start}
  .warehouse-map-head-tools .warehouse-search-control{width:min(460px,100%)}
}
@media(max-width:520px){
  .warehouse-map-head-tools{display:grid;grid-template-columns:1fr;align-items:stretch}
  .warehouse-map-head-tools .warehouse-zone-tabs{width:100%}
  .warehouse-map-head-tools .warehouse-zone-tabs button{flex:1}
  .warehouse-map-head-tools .warehouse-search-control{width:100%}
  .warehouse-show-queue{width:100%}
}

/* V0.9.57 - per-face availability controls in Warehouse Layout Editor */
.warehouse-face-availability-editor{display:grid;gap:9px;padding:12px;border:1px solid #dbe4eb;border-radius:12px;background:#f8fbfd}
.warehouse-face-availability-head{display:flex;align-items:end;justify-content:space-between;gap:10px}
.warehouse-face-availability-head span{font-size:10px;font-weight:800;letter-spacing:.08em;color:#7d8e9e}
.warehouse-face-availability-head strong{font-size:12px;color:#263d50}
.warehouse-face-availability-list{display:grid;gap:7px}
.warehouse-face-availability-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid #dbe4eb;border-radius:10px;background:#fff}
.warehouse-face-availability-row>div{display:grid;gap:2px;min-width:0}
.warehouse-face-availability-row b{font-size:12px;color:#22384b}
.warehouse-face-availability-row span{font-size:11px;font-weight:800;color:#476073}
.warehouse-face-availability-row small,.warehouse-face-availability-editor>small{font-size:10px;line-height:1.4;color:#7a8b99}
.warehouse-face-availability-row.is-unavailable{background:#eef0f2;border-style:dashed}
.warehouse-face-availability-row.is-unavailable b,.warehouse-face-availability-row.is-unavailable span{color:#626b75}
.warehouse-face-availability-row button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:720px){.warehouse-face-availability-row{align-items:stretch;flex-direction:column}.warehouse-face-availability-row button{width:100%}}

/* V0.9.61 A-frame visual classification colours */
.warehouse-frame-stacked>.warehouse-frame-stack,.warehouse-frame-draggable.warehouse-frame-stacked>.warehouse-layout-frame-stack{border-color:var(--frame-accent,#8fa6b5);box-shadow:0 0 0 2px color-mix(in srgb,var(--frame-accent,#8fa6b5) 24%,transparent),0 2px 5px rgba(15,23,42,.14)}
.warehouse-frame-stacked .warehouse-face-row:not(.occupied):not(.mixed):not(.face-unavailable){border-left:4px solid var(--frame-accent,#8fa6b5)}
.warehouse-frame-color-select{border-left:12px solid currentColor}
.receiving-recommended-location strong{color:#176ca8}
.warehouse-queue-card span:first-child{font-weight:700}


/* V0.9.62 Cloud Inventory Reconciliation */
.cloud-reconciliation-panel{background:#fff;border:1px solid #dce6ed;border-radius:15px;overflow:hidden;box-shadow:0 5px 18px rgba(15,23,42,.035)}
.cloud-reconciliation-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid #edf1f4;background:#f8fbfd}
.cloud-reconciliation-panel>header span{display:block;color:#71869a;font-size:8px;font-weight:900;letter-spacing:.12em}.cloud-reconciliation-panel>header h3{margin:3px 0 0;font-size:14px}.cloud-reconciliation-panel>header b{padding:6px 9px;border-radius:9px;background:#fff0d6;color:#945b00;font-size:10px}.cloud-reconciliation-panel.has-error>header{background:#fff4f2}.cloud-recon-status{margin:0;padding:10px 16px;color:#526579;font-size:10px;border-bottom:1px solid #edf1f4}
.cloud-recon-exceptions{display:grid;gap:8px;padding:11px 14px;background:#fffaf0}.cloud-recon-exceptions article{display:grid;gap:4px;padding:10px 11px;border:1px solid #f0d59e;border-radius:10px;background:#fff}.cloud-recon-exceptions b{font-size:10px;color:#855000}.cloud-recon-exceptions span{font-size:10px;line-height:1.5;color:#354b5f}.cloud-recon-exceptions small{font-size:9px;color:#8a5c18}.cloud-recon-ok{padding:11px 16px;color:#16724e;font-size:10px;background:#effaf5}
.cloud-recon-display,.cloud-recon-candidates{border-top:1px solid #edf1f4}.cloud-recon-display summary,.cloud-recon-candidates summary{cursor:pointer;padding:10px 16px;font-size:10px;font-weight:900;color:#31566f}.cloud-recon-display>div,.cloud-recon-candidates>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 14px 12px}.cloud-recon-display p,.cloud-recon-candidates p{display:grid;gap:2px;margin:0;padding:8px 10px;border:1px solid #e4ebf0;border-radius:9px;background:#fbfdfe}.cloud-recon-display strong,.cloud-recon-candidates strong{font-size:10px}.cloud-recon-display span,.cloud-recon-candidates span,.cloud-recon-display small{font-size:9px;color:#64788b}.cloud-recon-candidates summary{color:#8a5a00}.cloud-reconciliation-panel footer{padding:9px 16px;background:#f8fafc;color:#718094;font-size:9px;border-top:1px solid #edf1f4}
@media(max-width:820px){.cloud-recon-display>div,.cloud-recon-candidates>div{grid-template-columns:1fr}}


/* V0.9.63 Cloud reconciliation action workflow */
.cloud-recon-exceptions article{grid-template-columns:minmax(0,1fr) auto;align-items:center}.cloud-recon-exceptions article>div{display:grid;gap:4px}.cloud-recon-exceptions .btn{min-width:86px}.cloud-display-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px!important;align-items:center}.cloud-display-card>div:first-child{display:grid;gap:3px}.cloud-display-card em{grid-column:1/-1;color:#9a5d16;font-size:8px}.cloud-display-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.cloud-display-actions .btn{min-width:130px}.cloud-display-card.is-done{opacity:.65}.cloud-stocktake-banner{display:grid;gap:4px;padding:10px;margin-bottom:9px;border:1px solid #efc66e;border-radius:10px;background:#fff8e8}.cloud-stocktake-banner b{color:#8a5700;font-size:11px}.cloud-stocktake-banner span{color:#334e63;font-size:10px;font-weight:800}.cloud-stocktake-banner small{color:#6d7f8d;font-size:9px;line-height:1.45}
@media(max-width:820px){.cloud-recon-exceptions article,.cloud-display-card{grid-template-columns:1fr}.cloud-recon-exceptions .btn,.cloud-display-actions .btn{width:100%}.cloud-display-actions{justify-content:stretch}}


/* V0.9.64 total inventory reconciliation + warehouse stocktake roles */
.cloud-total-reconciliation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 12px;margin:8px 0;border:1px solid #d8e5ee;border-radius:10px;background:#f8fbfd}.cloud-total-reconciliation>div{display:grid;gap:3px;padding:8px 10px;border-radius:8px;background:#fff}.cloud-total-reconciliation span{font-size:8px;color:#718393;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.cloud-total-reconciliation strong{font-size:14px;color:#173d5c}.cloud-total-reconciliation small{font-size:8px;color:#718393}.cloud-total-reconciliation.is-aligned{border-color:#b8dfc1;background:#f3fbf4}.cloud-total-reconciliation.is-aligned>div:last-child strong{color:#19833b}.cloud-total-reconciliation.has-difference{border-color:#efd08c;background:#fffaf0}.cloud-total-reconciliation.has-difference>div:last-child strong{color:#9a5d16}
@media(max-width:820px){.cloud-total-reconciliation{grid-template-columns:1fr}}

/* V0.9.64.1 pending stocktake navigation */
.warehouse-adjustment-card.is-clickable{cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}.warehouse-adjustment-card.is-clickable:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(24,61,92,.09);border-color:#d2a74f}.pending-locate-hint{display:block;margin-top:8px;color:#6f8190;font-size:9px;font-weight:700}
.cloud-recon-exceptions article.has-place-issue{border-color:#e5a04b;background:#fff8ee}.cloud-place-issue-badge{display:inline-block;margin-left:7px;padding:2px 6px;border-radius:999px;background:#ffedd2;color:#a45c00;font-size:8px;font-style:normal;font-weight:900;vertical-align:middle}.cloud-recon-exceptions small.cloud-place-issue-text{color:#a45c00;font-weight:800}

/* V0.9.74 inventory category management */
.warehouse-metrics{grid-template-columns:repeat(5,minmax(0,1fr));}
.warehouse-metric-card{cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;}
.warehouse-metric-card:hover{border-color:#9cc3dc;box-shadow:0 8px 22px rgba(15,76,129,.09);transform:translateY(-1px);}
.warehouse-metric-card.is-active{border-color:#4f9ccc;box-shadow:0 0 0 2px rgba(79,156,204,.10),0 8px 22px rgba(15,76,129,.08);}
.warehouse-metric-card small{display:block;margin-top:5px;color:#6f8798;font-size:8px;font-weight:800;}
.warehouse-category-inventory{margin-top:12px;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(15,23,42,.035);}
.warehouse-category-inventory .section-mini-head{padding:12px 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px;}
.warehouse-category-inventory .section-mini-head span{display:block;font-size:8px;font-weight:950;letter-spacing:.10em;color:#6c8394;}
.warehouse-category-inventory .section-mini-head h3{margin:2px 0 0;font-size:14px;color:#244c67;}
.warehouse-category-inventory .section-mini-head small{display:block;margin-top:3px;color:#71899a;font-size:9px;}
.warehouse-category-tabs{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;}
@media(max-width:1100px){.warehouse-metrics{grid-template-columns:repeat(3,minmax(0,1fr));}.warehouse-category-inventory .section-mini-head{align-items:flex-start;flex-direction:column;}.warehouse-category-tabs{justify-content:flex-start;}}
@media(max-width:700px){.warehouse-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* V0.9.75 category-first inventory navigation */
.warehouse-category-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.warehouse-category-search-row{padding:10px 14px;border-bottom:1px solid var(--line);background:#fbfdfe}
.warehouse-category-search{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:8px;align-items:center}
.warehouse-category-search-summary{padding:8px 14px;background:#f7fbfe;border-bottom:1px solid #edf2f5;color:#587286;font-size:9px;font-weight:800}
.warehouse-category-inventory.is-collapsed .warehouse-category-search-row{border-bottom:0}
.warehouse-category-inventory.is-collapsed .warehouse-category-search-row{display:none}
.warehouse-lot-row{cursor:pointer;transition:background .12s ease}
.warehouse-lot-row:hover{background:#f2f8fc}
.warehouse-lot-row td:last-child{width:120px;text-align:right}
.cloud-total-reconciliation .cloud-recon-category-card{appearance:none;border:0;text-align:left;font:inherit;display:grid;gap:3px;padding:8px 10px;border-radius:8px;background:#fff;cursor:pointer;transition:box-shadow .14s ease,transform .14s ease}
.cloud-total-reconciliation .cloud-recon-category-card:hover{box-shadow:0 6px 16px rgba(15,76,129,.10);transform:translateY(-1px)}
.cloud-total-reconciliation .cloud-recon-category-card em{margin-top:3px;color:#1f6f9f;font-size:8px;font-style:normal;font-weight:900}
@media(max-width:900px){.warehouse-category-head-actions{justify-content:flex-start}.warehouse-category-search{grid-template-columns:1fr auto}.warehouse-category-search .btn:last-child{grid-column:2}}
@media(max-width:600px){.warehouse-category-search{grid-template-columns:1fr}.warehouse-category-search .btn,.warehouse-category-search .btn:last-child{grid-column:1;width:100%}.warehouse-lot-row td:last-child{width:auto}}

/* V0.9.79 Physical stocktake compact import */
.physical-stocktake-panel{margin-top:18px;padding:0;overflow:hidden}.physical-stocktake-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fbfdff)}.physical-stocktake-head>div:first-child>span{display:block;font-size:8px;font-weight:950;letter-spacing:.12em;color:#6c8394}.physical-stocktake-head h2{margin:3px 0 2px;font-size:16px;color:#173d5c}.physical-stocktake-head p{margin:0;color:#71899a;font-size:10px}.physical-stocktake-latest{min-width:250px;display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;padding:9px 11px;border:1px solid #cfe0ec;border-radius:12px;background:#f7fbfe}.physical-stocktake-latest span{grid-row:1/3;padding:4px 7px;border-radius:999px;background:#e8f7ee;color:#207343;font-size:8px;font-weight:950}.physical-stocktake-latest strong{font-size:10px;color:#294e68;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.physical-stocktake-latest small{font-size:8px;color:#7890a1}.physical-stocktake-latest.is-empty span{background:#eef4f8;color:#617789}.physical-stocktake-import{display:grid;grid-template-columns:auto minmax(220px,1fr) auto;gap:10px;align-items:center;padding:14px 18px}.physical-stocktake-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.physical-stocktake-file-button{margin:0;white-space:nowrap}.physical-stocktake-file-meta{min-width:0;display:grid;gap:2px}.physical-stocktake-file-meta strong{font-size:11px;color:#274b64;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.physical-stocktake-file-meta span{font-size:9px;color:#7890a1}.physical-stocktake-preview-button{min-width:110px}.physical-stocktake-preview{margin:0 18px 14px;padding:14px 16px;border:1px solid #bfd6e8;border-radius:14px;background:#f6fbff;display:grid;gap:12px}.physical-stocktake-preview.has-errors{border-color:#e7b4aa;background:#fff8f6}.physical-stocktake-preview>div:first-child{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.physical-stocktake-summary{display:flex;gap:10px;flex-wrap:wrap}.physical-stocktake-summary span{padding:6px 9px;border-radius:999px;background:#fff;border:1px solid #d7e3ec}.physical-stocktake-errors{max-height:180px;overflow:auto;padding:8px 10px;border-radius:10px;background:#fff}.physical-stocktake-errors p{margin:4px 0;color:#9b3f31;font-size:12px}.physical-stocktake-history{margin:0 18px 14px;padding:9px 11px;border-radius:10px;background:#f8fbfd;border:1px solid #e3edf3}.physical-stocktake-history summary{cursor:pointer;color:#587286;font-size:9px;font-weight:900}.physical-stocktake-history>div{display:grid;gap:6px;margin-top:8px}.physical-stocktake-history span{font-size:10px;color:var(--muted,#6b7280)}.inventory-class-tag{display:inline-block;margin-left:6px;padding:2px 6px;border-radius:999px;font-size:10px;font-style:normal;font-weight:700;letter-spacing:.04em}.inventory-class-tag.display{background:#e8f2ff;color:#245a89}.inventory-class-tag.exception{background:#fff0e8;color:#a64b23}.warehouse-lot-card.inventory-display{border-left:3px solid #7ca9cf}.warehouse-lot-card.inventory-exception{border-left:3px solid #d78152}@media(max-width:760px){.physical-stocktake-head{align-items:flex-start;flex-direction:column}.physical-stocktake-latest{min-width:0;width:100%}.physical-stocktake-import{grid-template-columns:1fr}.physical-stocktake-file-button,.physical-stocktake-preview-button{width:100%}}

/* V0.9.81 - Physical Intake zone baseline review/apply */
.baseline-review-panel{margin-top:18px;padding:0;overflow:hidden}.baseline-review-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fbfdff)}.baseline-review-head span{display:block;font-size:8px;font-weight:950;letter-spacing:.12em;color:#6c8394}.baseline-review-head h2{margin:3px 0 2px;font-size:16px;color:#173d5c}.baseline-review-head p{margin:0;color:#71899a;font-size:10px}.baseline-review-panel.is-idle .baseline-review-head{border-bottom:0}.baseline-review-summary{display:flex;gap:8px;flex-wrap:wrap;padding:14px 18px 8px}.baseline-review-summary span{padding:7px 10px;border:1px solid #d8e5ee;border-radius:10px;background:#f8fbfd;color:#587286;font-size:10px}.baseline-review-summary b{margin-left:5px;color:#173d5c;font-size:13px}.baseline-review-summary .is-review{background:#fff8eb;border-color:#efd8a9}.baseline-review-summary .is-review b{color:#936109}.baseline-review-summary .is-protected{background:#f1f8f4;border-color:#cfe4d7}.baseline-review-summary .is-protected b{color:#2f6d48}.baseline-review-note,.baseline-review-warning,.baseline-review-ok{margin:6px 18px 12px;padding:10px 12px;border-radius:10px;font-size:10px;line-height:1.5}.baseline-review-note{background:#f7fafc;border:1px solid #dce7ee;color:#5f7688}.baseline-review-warning{background:#fff5ef;border:1px solid #efc9b5;color:#9b4b25}.baseline-review-ok{background:#f0f8f3;border:1px solid #cee4d6;color:#35714d}.baseline-review-details{margin:0 18px 12px;border:1px solid #dce7ee;border-radius:12px;background:#fff;overflow:hidden}.baseline-review-details summary{cursor:pointer;padding:10px 12px;background:#f8fbfd;color:#4f6d82;font-size:10px;font-weight:900}.baseline-review-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;padding:10px}.baseline-review-grid article{padding:10px;border:1px solid #e4edf3;border-radius:10px;background:#fffaf2}.baseline-review-grid article.is-protected{background:#f4faf6}.baseline-review-grid article header{display:flex;align-items:center;justify-content:space-between;gap:8px}.baseline-review-grid article strong{font-size:11px;color:#274b64}.baseline-review-grid article b{font-size:11px;color:#9a650b}.baseline-review-grid article.is-protected b{color:#32704b}.baseline-review-grid article p{margin:5px 0;color:#7890a1;font-size:9px}.baseline-review-grid article small{display:block;color:#5e7486;font-size:9px;line-height:1.45}@media(max-width:760px){.baseline-review-head{align-items:flex-start;flex-direction:column}.baseline-review-head .btn{width:100%}.baseline-review-summary{display:grid;grid-template-columns:1fr 1fr}.baseline-review-grid{grid-template-columns:1fr}}

/* V0.9.81 baseline actions + delivery availability */
.baseline-review-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.inventory-delivery-blocked{display:block;margin-top:2px;color:#a45d1b;font-size:8px;font-weight:900;letter-spacing:.03em}.baseline-review-warning b{color:inherit}@media(max-width:760px){.baseline-review-actions{width:100%;display:grid;grid-template-columns:1fr}.baseline-review-actions .btn{width:100%}}


/* V0.9.92 - Daily Movement Stock Check */
.warehouse-daily-check{margin-top:12px;}
.warehouse-daily-check .section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid var(--line);background:#fbfdff;}
.warehouse-daily-check .section-heading>div:first-child>span{display:block;font-size:8px;font-weight:950;letter-spacing:.12em;color:#6c8394;}
.warehouse-daily-check .section-heading h2{margin:3px 0 2px;font-size:16px;color:#244c67;}
.warehouse-daily-check .section-heading p{margin:0;color:#71899a;font-size:9px;}
.warehouse-daily-check-summary{text-align:right;white-space:nowrap;}
.warehouse-daily-check-summary strong{display:block;font-size:26px;color:#244c67;line-height:1;}
.warehouse-daily-check-summary span{display:block;margin-top:4px;font-size:8px;color:#71899a;font-weight:800;}
.warehouse-daily-check-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px;}
.warehouse-daily-check-card{appearance:none;text-align:left;border:1px solid #d9e4eb;background:#fff;border-radius:13px;padding:12px;cursor:pointer;transition:.16s ease;box-shadow:0 3px 10px rgba(15,23,42,.025);}
.warehouse-daily-check-card:hover,.warehouse-daily-check-card:focus{border-color:#8eb4ca;box-shadow:0 7px 20px rgba(45,92,118,.10);transform:translateY(-1px);outline:none;}
.warehouse-daily-check-card strong{display:block;margin:8px 0 3px;font-size:15px;color:#244c67;}
.warehouse-daily-check-card small{display:block;color:#71899a;font-size:8px;}
.warehouse-daily-check-card>div{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px;}
.warehouse-daily-check-card em{font-style:normal;font-size:8px;font-weight:900;padding:4px 7px;border-radius:999px;background:#f3f7fa;color:#47667a;}
.warehouse-daily-check-card b{display:block;margin-top:9px;font-size:8px;color:#2e6f95;}
.daily-check-type{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:950;letter-spacing:.04em;background:#edf5fa;color:#2f6d92;}
.daily-check-type.is-outbound{background:#fff2e8;color:#a65b1a;}
.daily-check-type.is-both{background:#f4efff;color:#6947a7;}
.warehouse-daily-check-note{padding:0 12px 12px;color:#71899a;font-size:8px;}
@media(max-width:1100px){.warehouse-daily-check-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){.warehouse-daily-check .section-heading{align-items:flex-start;}.warehouse-daily-check-grid{grid-template-columns:1fr;}.warehouse-daily-check-summary strong{font-size:22px;}}

/* V0.9.94 strict Item + Batch + Place guard */
.warehouse-strict-warning,.warehouse-strict-ok{display:block;margin-top:6px;font-weight:700;line-height:1.35}.warehouse-strict-warning{color:#a61b1b}.warehouse-strict-ok{color:#176b45}.warehouse-strict-alert{margin:8px 0;padding:9px 10px;border:1px solid #e3b4b4;border-radius:8px;background:#fff6f6;color:#8d1717;font-size:12px;font-weight:700;line-height:1.4}.warehouse-strict-alert.is-ok{border-color:#b8d9ca;background:#f4fbf7;color:#176b45}.warehouse-strict-alert.is-error{border-color:#df9090;background:#fff0f0;color:#9c1111}

/* V0.9.95 delivery in-transit inventory */
.warehouse-delivery-transit{border:1px solid #b9d8ec;background:#f7fbfe}.warehouse-delivery-transit.has-exception{border-color:#efb3b3}.delivery-transit-summary{display:flex;align-items:baseline;gap:8px}.delivery-transit-summary strong{font-size:28px}.delivery-transit-summary span{font-size:12px;color:var(--muted)}.delivery-transit-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;margin-top:14px}.delivery-transit-card{border:1px solid #cfe2ef;border-radius:12px;background:#fff;padding:12px;display:grid;gap:7px}.delivery-transit-card.is-exception{border-color:#e69a9a;background:#fff7f7}.delivery-transit-card header{display:flex;align-items:center;justify-content:space-between;gap:8px}.delivery-transit-status{font-size:11px;font-weight:800;padding:3px 7px;border-radius:999px;background:#e5f3fb;color:#176083}.delivery-transit-card.is-exception .delivery-transit-status{background:#fde6e6;color:#a22727}.delivery-transit-card>div{display:flex;gap:8px;font-size:12px}.delivery-transit-card>div b{min-width:48px;color:var(--muted)}.delivery-transit-card small{color:var(--muted);line-height:1.4}.warehouse-daily-check-card .daily-check-day{display:inline-block;font-size:10px;font-weight:800;padding:2px 6px;margin-right:5px;border-radius:999px;background:#eaf5fb;color:#24627c}.warehouse-daily-check-card.is-previous-day{border-style:dashed}.warehouse-daily-check-card.is-previous-day .daily-check-day{background:#f3f0e9;color:#6d6250}


/* V0.9.96 daily movement review workflow */
.warehouse-daily-check-card{display:flex;flex-direction:column;gap:12px;text-align:left;background:#fff;border:1px solid #d8e4ec;border-radius:14px;padding:14px;min-height:150px}
.warehouse-daily-check-card.is-previous-day{border-style:dashed;background:#fffdf9}
.daily-check-card-main{display:grid;grid-template-columns:auto auto 1fr;gap:8px;align-items:center}
.daily-check-card-main>strong{grid-column:1/-1;font-size:18px}.daily-check-card-main>small{grid-column:1/-1}.daily-check-card-main>div{grid-column:1/-1;display:flex;gap:8px}.daily-check-card-main em{font-style:normal;font-weight:700}
.daily-check-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.warehouse-daily-check-empty{padding:18px;border:1px dashed #cbd9e4;border-radius:14px;color:#617487;background:#fbfdff}
.warehouse-daily-exception-area{margin-top:18px;padding:16px;border:1px solid #f0c7c7;border-radius:16px;background:#fff8f8}
.warehouse-daily-exception-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;margin-top:12px}
.warehouse-daily-exception-card{border:1px solid #efb4b4;background:#fff;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px}
.warehouse-daily-exception-card header{display:flex;justify-content:space-between;gap:10px;align-items:center}.warehouse-daily-exception-card header span{color:#b42318;font-weight:700}.warehouse-daily-exception-card p{margin:0;white-space:pre-wrap}.warehouse-daily-exception-card small{color:#6b7280}
@media (max-width:760px){.daily-check-card-main{grid-template-columns:1fr}.daily-check-card-main>*{grid-column:1!important}.daily-check-actions .btn{flex:1 1 auto}}

/* V0.9.98 delivery in-transit responsive card layout */
.warehouse-delivery-transit .section-heading{align-items:center;gap:18px;background:#fbfdff}
.warehouse-delivery-transit .section-heading>div:first-child>span{display:block;font-size:8px;font-weight:950;letter-spacing:.12em;color:#6c8394}
.warehouse-delivery-transit .section-heading h2{margin:3px 0 2px;font-size:17px;color:#244c67}
.warehouse-delivery-transit .section-heading p{margin:0;color:#71899a;font-size:10px}
.delivery-transit-summary{margin-left:auto;flex:0 0 auto;text-align:right;display:grid;justify-items:end;gap:0}
.delivery-transit-summary strong{font-size:30px;line-height:1;color:#244c67}
.delivery-transit-summary span{margin-top:4px;font-size:10px;color:#71899a;font-weight:700}
.delivery-transit-grid{display:grid;grid-template-columns:repeat(var(--transit-cols,4),minmax(0,1fr));gap:12px;margin:0;padding:14px 16px 16px}
.delivery-transit-card{min-width:0;border:1px solid #cfe2ef;border-radius:14px;background:#fff;padding:13px 14px;display:grid;grid-template-rows:auto auto auto 1fr;gap:10px;box-shadow:0 2px 8px rgba(30,81,112,.04)}
.delivery-transit-card.is-exception{border-color:#e69a9a;background:#fff7f7}
.delivery-transit-card header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.delivery-transit-status{font-size:10px;font-weight:900;padding:4px 8px;border-radius:999px;background:#e5f3fb;color:#176083;white-space:nowrap}
.delivery-transit-card.is-exception .delivery-transit-status{background:#fde6e6;color:#a22727}
.delivery-transit-qty{font-size:12px;font-weight:900;color:#244c67;background:#f2f7fb;border-radius:999px;padding:4px 8px;white-space:nowrap}
.delivery-transit-item{font-size:17px;font-weight:900;color:#244c67;line-height:1.15;overflow-wrap:anywhere}
.delivery-transit-meta{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.delivery-transit-meta>div{min-width:0;background:#f8fbfd;border:1px solid #e4eef4;border-radius:9px;padding:7px 8px}
.delivery-transit-meta dt{margin:0 0 3px;font-size:9px;font-weight:800;color:#7c91a0}
.delivery-transit-meta dd{margin:0;font-size:11px;font-weight:800;color:#34576d;overflow-wrap:anywhere}
.delivery-transit-card small{align-self:end;color:#71899a;line-height:1.4;font-size:10px;border-top:1px solid #edf3f6;padding-top:8px}
@media(max-width:1180px){.delivery-transit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.warehouse-delivery-transit .section-heading{align-items:flex-start;flex-direction:column}.delivery-transit-summary{margin-left:0;justify-items:start;text-align:left}.delivery-transit-grid{grid-template-columns:1fr;padding:12px}.delivery-transit-meta{grid-template-columns:1fr 1fr}.delivery-transit-meta>div:last-child{grid-column:1/-1}}

/* V0.9.98 delivery in-transit responsive card layout */
.warehouse-delivery-transit .section-heading{align-items:center;gap:18px;background:#fbfdff}
.warehouse-delivery-transit .section-heading>div:first-child>span{display:block;font-size:8px;font-weight:950;letter-spacing:.12em;color:#6c8394}
.warehouse-delivery-transit .section-heading h2{margin:3px 0 2px;font-size:17px;color:#244c67}
.warehouse-delivery-transit .section-heading p{margin:0;color:#71899a;font-size:10px}
.delivery-transit-summary{margin-left:auto;flex:0 0 auto;text-align:right;display:grid;justify-items:end;gap:0}
.delivery-transit-summary strong{font-size:30px;line-height:1;color:#244c67}
.delivery-transit-summary span{margin-top:4px;font-size:10px;color:#71899a;font-weight:700}
.delivery-transit-grid{display:grid;grid-template-columns:repeat(var(--transit-cols,4),minmax(0,1fr));gap:12px;margin:0;padding:14px 16px 16px}
.delivery-transit-card{min-width:0;border:1px solid #cfe2ef;border-radius:14px;background:#fff;padding:13px 14px;display:grid;grid-template-rows:auto auto auto 1fr;gap:10px;box-shadow:0 2px 8px rgba(30,81,112,.04)}
.delivery-transit-card.is-exception{border-color:#e69a9a;background:#fff7f7}
.delivery-transit-card header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.delivery-transit-status{font-size:10px;font-weight:900;padding:4px 8px;border-radius:999px;background:#e5f3fb;color:#176083;white-space:nowrap}
.delivery-transit-card.is-exception .delivery-transit-status{background:#fde6e6;color:#a22727}
.delivery-transit-qty{font-size:12px;font-weight:900;color:#244c67;background:#f2f7fb;border-radius:999px;padding:4px 8px;white-space:nowrap}
.delivery-transit-item{font-size:17px;font-weight:900;color:#244c67;line-height:1.15;overflow-wrap:anywhere}
.delivery-transit-meta{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.delivery-transit-meta>div{min-width:0;background:#f8fbfd;border:1px solid #e4eef4;border-radius:9px;padding:7px 8px}
.delivery-transit-meta dt{margin:0 0 3px;font-size:9px;font-weight:800;color:#7c91a0}
.delivery-transit-meta dd{margin:0;font-size:11px;font-weight:800;color:#34576d;overflow-wrap:anywhere}
.delivery-transit-card small{align-self:end;color:#71899a;line-height:1.4;font-size:10px;border-top:1px solid #edf3f6;padding-top:8px}
@media(max-width:1180px){.delivery-transit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.warehouse-delivery-transit .section-heading{align-items:flex-start;flex-direction:column}.delivery-transit-summary{margin-left:0;justify-items:start;text-align:left}.delivery-transit-grid{grid-template-columns:1fr;padding:12px}.delivery-transit-meta{grid-template-columns:1fr 1fr}.delivery-transit-meta>div:last-child{grid-column:1/-1}}
.delivery-transit-card-actions{display:flex!important;justify-content:flex-end;gap:8px;border-top:1px solid #edf3f6;padding-top:8px}.delivery-transit-card-actions .btn{width:100%;justify-content:center}


/* V0.9.106 daily movement current inventory summary */
.daily-check-current-stock{border:1px solid #dce8ef;border-radius:10px;background:#f8fbfd;padding:9px;display:grid;gap:6px}
.daily-check-current-stock-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:5px;border-bottom:1px solid #e4edf3}
.daily-check-current-stock-head span{font-size:9px;font-weight:900;letter-spacing:.03em;color:#526f82}
.daily-check-current-stock-head b{margin:0!important;font-size:10px!important;font-weight:900!important;color:#1d5b7e!important}
.daily-check-stock-line{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;gap:8px!important;align-items:center;margin:0!important;padding:4px 0;border-bottom:1px dashed #e6edf2}
.daily-check-stock-line:last-child{border-bottom:0}
.daily-check-stock-item{min-width:0;font-size:10px;font-weight:900;color:#244c67;overflow-wrap:anywhere}
.daily-check-stock-batch{min-width:0;font-size:9px;font-weight:700;color:#71899a;overflow-wrap:anywhere}
.daily-check-stock-line b{margin:0!important;white-space:nowrap;font-size:10px!important;font-weight:900!important;color:#173f5a!important}
.daily-check-stock-empty{font-size:9px;font-weight:700;color:#8a9dab;padding:3px 0}
@media(max-width:650px){.daily-check-stock-line{grid-template-columns:1fr auto}.daily-check-stock-batch{grid-column:1/2}.daily-check-stock-line b{grid-column:2/3;grid-row:1/3}}

.daily-check-face-stock{display:grid;gap:4px;padding:5px 0;border-bottom:1px solid #e4edf3}
.daily-check-face-stock:last-child{border-bottom:0;padding-bottom:0}
.daily-check-face-stock-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:1px 0 3px}
.daily-check-face-stock-head strong{font-size:10px;color:#204e6b}
.daily-check-face-stock-head b{font-size:10px!important;color:#1d5b7e!important}


/* V0.9.108 daily movement check UI cleanup */
.warehouse-daily-check-grid{align-items:start;gap:12px}
.warehouse-daily-check-card{padding:12px;gap:10px;min-height:0;box-shadow:0 2px 8px rgba(24,59,82,.035)}
.warehouse-daily-check-card>.daily-check-card-main{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;margin-top:0!important}
.daily-check-card-topline{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.daily-check-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.daily-check-title-row>strong{margin:0!important;font-size:18px!important;line-height:1.15;color:#244c67}
.daily-check-face-summary{font-size:10px;font-weight:900;color:#315f79;background:#edf6fb;border:1px solid #d5e9f5;border-radius:999px;padding:4px 8px;white-space:nowrap}
.daily-check-movement-counts{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.daily-check-movement-counts em{margin:0!important;padding:3px 7px!important;font-size:9px!important}
.warehouse-daily-check-card>.daily-check-current-stock{display:grid!important;gap:7px!important;margin-top:0!important;padding:0!important;border:0!important;background:transparent!important}
.daily-check-face-stock{display:grid!important;gap:0!important;margin:0!important;padding:0!important;border:1px solid #dce8ef!important;border-radius:10px;background:#f8fbfd;overflow:hidden}
.daily-check-face-stock-head{display:flex!important;align-items:center;justify-content:space-between;gap:10px;padding:8px 9px!important;background:#f1f7fa;border-bottom:1px solid #dfeaf0}
.daily-check-face-stock-head>div{display:flex;align-items:center;gap:7px;min-width:0}
.daily-check-face-badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 7px;border-radius:7px;background:#244f6b;color:#fff;font-size:10px;font-weight:900;line-height:1}
.daily-check-face-stock-head strong{margin:0!important;font-size:10px!important;color:#315b73!important;white-space:nowrap}
.daily-check-face-stock-head b{margin:0!important;font-size:12px!important;color:#173f5a!important;white-space:nowrap}
.daily-check-stock-list{display:grid;padding:2px 9px 4px}
.daily-check-stock-line{display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr) auto;gap:10px!important;align-items:center;margin:0!important;padding:7px 0!important;border-bottom:1px solid #e7eef2!important}
.daily-check-stock-line:last-child{border-bottom:0!important}
.daily-check-stock-item{font-size:10px!important;font-weight:900!important;color:#204b66!important;overflow-wrap:anywhere}
.daily-check-stock-batch{font-size:9px!important;font-weight:750!important;color:#6d8494!important;overflow-wrap:anywhere}
.daily-check-stock-batch:before{content:'Batch ';font-weight:650;color:#91a2ae}
.daily-check-stock-line b{margin:0!important;padding-left:4px;font-size:10px!important;color:#173f5a!important;white-space:nowrap;text-align:right}
.daily-check-stock-empty{padding:10px!important;font-size:9px!important;color:#8296a4!important}
.warehouse-daily-check-card>.daily-check-actions{display:grid!important;grid-template-columns:1fr 1fr 1fr;gap:7px!important;margin-top:0!important}
.daily-check-actions .btn{min-width:0;justify-content:center;padding-left:8px;padding-right:8px}
@media(max-width:1350px){.warehouse-daily-check-card>.daily-check-actions{grid-template-columns:1fr 1fr}.warehouse-daily-check-card>.daily-check-actions .btn:first-child{grid-column:1/-1}}
@media(max-width:650px){.daily-check-stock-line{grid-template-columns:1fr auto!important}.daily-check-stock-batch{grid-column:1/2}.daily-check-stock-line b{grid-column:2/3;grid-row:1/3}.warehouse-daily-check-card>.daily-check-actions{grid-template-columns:1fr}.warehouse-daily-check-card>.daily-check-actions .btn:first-child{grid-column:auto}}

/* V0.9.109 putaway dynamic location search */
.warehouse-inspector-empty>.putaway-box { width:min(100%,430px); margin:18px auto 0; text-align:left; place-self:stretch center; }


/* V0.9.114 machinery receiving video-only */
.receiving-machinery-only-note{display:grid;gap:4px;padding:12px 14px;border:1px solid #d9e8f1;border-radius:12px;background:#f5f9fc}
.receiving-machinery-only-note strong{font-size:13px;color:#173f5a}
.receiving-machinery-only-note span{font-size:11px;line-height:1.5;color:#687f90}
.receiving-machinery-only-hero{display:grid;gap:8px;padding:18px 20px;border:1px solid #d7e7f0;border-radius:16px;background:linear-gradient(180deg,#f8fbfd,#f3f8fb)}
.receiving-machinery-only-hero h3{margin:0;font-size:21px;color:#173f5a}
.receiving-machinery-only-hero p{margin:0;max-width:840px;line-height:1.7;color:#5f7788}
.cleaning-video-card-machinery{border-color:#cfe3ee;background:#fbfdfe}
@media(max-width:650px){.receiving-machinery-only-hero{padding:15px}.receiving-machinery-only-hero h3{font-size:18px}}
