/* AskCollab Seller Fulfillment - M3 Design System */
:root {
  --m3-navy: #001d35; --m3-emerald: #00875a; --m3-gold: #b45309; --m3-red: #b91c1c;
  --m3-secondary: #535f70; --m3-surface: #f1f4f9; --m3-white: #ffffff;
  --m3-border: #c4c6d0; --m3-dashed: #8c939d;
  --radius-xl: 32px; --radius-md: 16px; --radius-sm: 8px;
  --font-human: 'Plus Jakarta Sans', sans-serif; --font-machine: 'IBM Plex Mono', monospace;
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-human); color: var(--m3-navy); background: var(--m3-white); line-height: 1.5; -webkit-font-smoothing: antialiased; padding: var(--space-lg); }
.mono { font-family: var(--font-machine); letter-spacing: -0.02em; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; color: var(--m3-navy); }
.page-header { margin-bottom: var(--space-xl); }
.page-title { font-size: 2.5rem; letter-spacing: -0.02em; margin-bottom: var(--space-sm); }
.page-desc { font-size: 1.125rem; color: var(--m3-secondary); max-width: 600px; margin-top: var(--space-sm); }
.section-label { font-size: 0.75rem; font-weight: 700; color: var(--m3-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-sm); display: block; }
.snapshot-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); margin-bottom: var(--space-xl); }
.snapshot-card { background: var(--m3-surface); border: 1px solid var(--m3-border); border-radius: var(--radius-md); padding: var(--space-md); display: flex; flex-direction: column; gap: 6px; min-height: 100px; }
.snap-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--m3-secondary); }
.snap-value { font-size: 1.375rem; font-weight: 800; font-family: var(--font-machine); color: var(--m3-navy); }
.snap-value.emerald { color: var(--m3-emerald); }
.snap-value.gold { color: var(--m3-gold); }
.snap-value.red { color: var(--m3-red); }
.snap-insight { font-size: 0.8125rem; color: var(--m3-secondary); line-height: 1.3; }
.operations-grid { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-xl); align-items: start; }
.sticky-sidebar { position: sticky; top: 40px; display: flex; flex-direction: column; gap: var(--space-lg); }
.nav-tabs { display: flex; flex-direction: column; gap: 4px; background: var(--m3-surface); padding: 8px; border-radius: var(--radius-xl); border: 1px solid var(--m3-border); }
.nav-tab { padding: 12px 16px; border-radius: var(--radius-md); font-weight: 700; font-size: 0.875rem; color: var(--m3-secondary); cursor: pointer; transition: all 0.2s; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.nav-tab:hover { background: var(--m3-white); color: var(--m3-navy); }
.nav-tab.active { background: var(--m3-navy); color: var(--m3-white); }
.nav-tab .count { background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-family: var(--font-machine); }
.nav-tab:not(.active) .count { background: var(--m3-border); color: var(--m3-navy); }
.bulk-panel { background: var(--m3-navy); color: white; padding: var(--space-md); border-radius: var(--radius-md); }
.bulk-panel h4 { font-size: 0.875rem; margin-bottom: var(--space-sm); }
.bulk-panel p { font-size: 0.75rem; opacity: 0.8; margin-bottom: var(--space-sm); }
.bulk-btn { width: 100%; padding: 10px; background: var(--m3-emerald); color: white; border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.75rem; cursor: pointer; margin-bottom: 6px; transition: all 0.2s; }
.bulk-btn:hover { background: #006b47; transform: translateY(-1px); }
.bulk-btn.secondary { background: rgba(255,255,255,0.15); }
.bulk-btn.secondary:hover { background: rgba(255,255,255,0.25); }
.sla-panel { border: 1px solid var(--m3-border); border-radius: var(--radius-xl); padding: var(--space-lg); background: var(--m3-surface); }
.sla-panel h4 { font-size: 0.875rem; margin-bottom: var(--space-md); }
.sla-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-sm); font-size: 0.8125rem; font-weight: 600; }
.sla-item:last-child { margin-bottom: 0; }
.sla-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.sla-dot.emerald { background: var(--m3-emerald); }
.sla-dot.gold { background: var(--m3-gold); }
.sla-dot.red { background: var(--m3-red); }
.scrolling-content { display: flex; flex-direction: column; gap: var(--space-lg); padding-bottom: 60px; }
.results-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--m3-dashed); padding-bottom: var(--space-md); margin-bottom: var(--space-md); }
.segmented-card { border: 1px solid var(--m3-border); border-radius: var(--radius-xl); overflow: hidden; background: var(--m3-white); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.card-header { padding: var(--space-lg); border-bottom: 1px dashed var(--m3-dashed); display: flex; align-items: center; gap: var(--space-md); }
.card-header h3 { font-size: 1.25rem; margin: 0; }
.card-icon { width: 40px; height: 40px; background: var(--m3-surface); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.card-body { padding: 0; }
.ops-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.ops-table th { text-align: left; padding: 12px 16px; background: var(--m3-surface); border-bottom: 1px dashed var(--m3-dashed); font-weight: 700; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--m3-secondary); }
.ops-table td { padding: 16px; border-bottom: 1px solid var(--m3-border); vertical-align: middle; }
.ops-table tr:last-child td { border-bottom: none; }
.ops-table tr:hover { box-shadow: inset 0 0 0 2px var(--m3-navy); }
.ops-table tr.warning { background: #fffdf5; }
.ops-table tr.overdue { background: #fef2f2; }
.ops-table tr.hidden { display: none; }
.checkbox-cell { width: 40px; text-align: center; }
.custom-checkbox { width: 18px; height: 18px; cursor: pointer; accent-color: var(--m3-navy); }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 32px; height: 32px; background: var(--m3-navy); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; }
.user-name { font-weight: 700; }
.user-id { font-size: 0.75rem; color: var(--m3-secondary); font-family: var(--font-machine); }
.sla-timer { font-family: var(--font-machine); font-weight: 700; font-size: 0.875rem; margin-bottom: 4px; }
.sla-timer.emerald { color: var(--m3-emerald); }
.sla-timer.gold { color: var(--m3-gold); }
.sla-timer.red { color: var(--m3-red); }
.sla-progress-track { height: 6px; background: var(--m3-surface); border-radius: 3px; overflow: hidden; border: 1px solid var(--m3-border); width: 100%; max-width: 120px; }
.sla-progress-fill { height: 100%; transition: width 1s linear, background 0.3s; }
.sla-progress-fill.emerald { background: var(--m3-emerald); }
.sla-progress-fill.gold { background: var(--m3-gold); }
.sla-progress-fill.red { background: var(--m3-red); }
.strike-preview { margin-top: 4px; font-size: 0.6875rem; color: var(--m3-red); font-weight: 700; display: none; }
.strike-preview.active { display: block; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.status-badge.claimed { background: #fef3c7; color: var(--m3-gold); }
.status-badge.shipped { background: #dbeafe; color: #1d4ed8; }
.status-badge.delivered { background: #d1fae5; color: var(--m3-emerald); }
.status-badge.overdue { background: #fee2e2; color: var(--m3-red); }
.tracking-group { display: flex; gap: 8px; }
.tracking-input { flex: 1; padding: 8px 10px; border: 1px solid var(--m3-border); border-radius: var(--radius-sm); font-family: var(--font-machine); font-size: 0.8125rem; color: var(--m3-navy); background: var(--m3-white); }
.tracking-input:focus { outline: none; border-color: var(--m3-navy); }
.tracking-input.error { border-color: var(--m3-red); background: #fff1f2; }
.carrier-select { padding: 8px; border: 1px solid var(--m3-border); border-radius: var(--radius-sm); font-size: 0.75rem; background: var(--m3-white); }
.btn { padding: 8px 14px; border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.75rem; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-primary { background: var(--m3-navy); color: white; }
.btn-primary:hover { background: #002a4a; transform: translateY(-1px); }
.btn-emerald { background: var(--m3-emerald); color: white; }
.btn-emerald:hover { background: #006b47; }
.btn-secondary { background: var(--m3-white); color: var(--m3-navy); border: 1px solid var(--m3-border); }
.btn-secondary:hover { background: var(--m3-surface); }
.toast { position: fixed; bottom: 30px; right: 30px; background: var(--m3-navy); color: white; padding: 14px 20px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.875rem; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: translateY(100px); opacity: 0; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: 9999; }
.toast.show { transform: translateY(0); opacity: 1; }
.card-connector { padding: var(--space-sm) var(--space-lg); background: var(--m3-surface); border-top: 1px dashed var(--m3-dashed); font-size: 0.75rem; color: var(--m3-secondary); display: flex; justify-content: space-between; }
@media (max-width: 1024px) { .snapshot-row { grid-template-columns: repeat(2, 1fr); } .operations-grid { grid-template-columns: 1fr; } .sticky-sidebar { position: relative; top: 0; } .nav-tabs { flex-direction: row; overflow-x: auto; } .nav-tab { white-space: nowrap; } }
@media (max-width: 640px) { .snapshot-row { grid-template-columns: 1fr; } .ops-table { display: block; overflow-x: auto; } .tracking-group { flex-direction: column; } body { padding: var(--space-md); } }
