
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --success: #34a853;
  --success-light: #e6f4ea;
  --warning: #f9ab00;
  --warning-light: #fef3e8;
  --danger: #ea4335;
  --danger-light: #fce8e6;
  --info: #4285f4;
  --info-light: #e8f0fe;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f4;
  --gray-200: #e8eaed;
  --gray-300: #dadce0;
  --gray-400: #bdc1c6;
  --gray-500: #9aa0a6;
  --gray-600: #80868b;
  --gray-700: #5f6368;
  --gray-800: #3c4043;
  --gray-900: #202124;
  --shadow-sm: 0 1px 2px rgba(60,64,67,0.1);
  --shadow: 0 2px 6px rgba(60,64,67,0.15);
  --shadow-lg: 0 8px 24px rgba(60,64,67,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  min-height: 100vh;
  line-height: 1.6;
}

/* ========== LOGIN ========== */
.login-bg {
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, #1a73e8 0%, #4285f4 40%, #34a853 100%);
  position:relative; overflow:hidden;
}
.login-bg::before {
  content:''; position:absolute; top:-50%; left:-50%; width:200%; height:200%;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(255,255,255,0.06) 0%, transparent 40%);
  animation: bgMove 20s linear infinite;
}
@keyframes bgMove { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }
.login-box {
  background:rgba(255,255,255,0.95); backdrop-filter:blur(20px);
  border-radius:24px; padding:48px 40px; width:100%; max-width:440px;
  box-shadow:0 25px 80px rgba(0,0,0,0.2); position:relative; z-index:1;
}
.login-box .logo { text-align:center; margin-bottom:8px; }
.login-box .logo svg { width:64px; height:64px; }
.login-box h1 { font-size:26px; font-weight:700; text-align:center; color:var(--gray-900); margin-bottom:4px; }
.login-box .subtitle { text-align:center; color:var(--gray-500); font-size:14px; margin-bottom:32px; }
.role-tabs {
  display:flex; gap:8px; margin-bottom:28px; background:var(--gray-100); padding:4px; border-radius:12px;
}
.role-tab {
  flex:1; padding:10px 0; border:none; background:transparent; border-radius:10px;
  font-size:14px; font-weight:500; color:var(--gray-600); cursor:pointer; transition:var(--transition);
  font-family:inherit;
}
.role-tab:hover { color:var(--gray-800); }
.role-tab.active { background:#fff; color:var(--primary); box-shadow:var(--shadow-sm); font-weight:600; }
.form-group { margin-bottom:20px; }
.form-group label { display:block; font-size:13px; font-weight:500; color:var(--gray-600); margin-bottom:6px; }
.form-group input {
  width:100%; padding:12px 16px; border:1.5px solid var(--gray-200); border-radius:12px;
  font-size:15px; font-family:inherit; transition:var(--transition); background:#fff;
}
.form-group input:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-light); }
.btn-primary {
  width:100%; padding:14px; background:var(--primary); color:#fff; border:none; border-radius:12px;
  font-size:16px; font-weight:600; cursor:pointer; transition:var(--transition); font-family:inherit;
}
.btn-primary:hover { background:var(--primary-dark); transform:translateY(-1px); box-shadow:0 4px 12px rgba(26,115,232,0.3); }
.btn-primary:disabled { opacity:0.6; cursor:not-allowed; transform:none; box-shadow:none; }
.login-error { color:var(--danger); font-size:13px; text-align:center; margin-top:12px; min-height:20px; }
.demo-accounts {
  margin-top:24px; padding:16px; background:var(--gray-50); border-radius:12px; font-size:12px; color:var(--gray-500);
}
.demo-accounts strong { color:var(--gray-700); }

/* ========== APP LAYOUT ========== */
.app-layout { display:none; min-height:100vh; }
.app-layout.active { display:flex; }
.sidebar {
  width:260px; background:#fff; border-right:1px solid var(--gray-200);
  display:flex; flex-direction:column; position:fixed; height:100vh; z-index:100;
  transition:var(--transition);
}
.sidebar-header {
  padding:20px 20px 16px; display:flex; align-items:center; gap:12px;
  border-bottom:1px solid var(--gray-100);
}
.sidebar-header .logo-icon {
  width:40px; height:40px; background:linear-gradient(135deg,var(--primary),#4285f4);
  border-radius:12px; display:flex; align-items:center; justify-content:center;
}
.sidebar-header .logo-icon svg { width:22px; height:22px; }
.sidebar-header .brand { font-size:16px; font-weight:700; color:var(--gray-900); }
.sidebar-header .brand small { display:block; font-size:11px; font-weight:400; color:var(--gray-500); }
.sidebar-nav { flex:1; padding:12px 12px; overflow-y:auto; }
.nav-group { margin-bottom:20px; }
.nav-group-title {
  font-size:11px; font-weight:600; color:var(--gray-400); text-transform:uppercase;
  letter-spacing:0.5px; padding:0 12px 8px;
}
.nav-item {
  display:flex; align-items:center; gap:12px; padding:10px 14px; border-radius:10px;
  cursor:pointer; transition:var(--transition); color:var(--gray-600); font-size:14px;
  margin-bottom:2px; user-select:none;
}
.nav-item:hover { background:var(--gray-50); color:var(--gray-800); }
.nav-item.active { background:var(--primary-light); color:var(--primary); font-weight:500; }
.nav-item .nav-icon { width:20px; height:20px; display:flex; align-items:center; justify-content:center; }
.nav-item .nav-icon svg { width:18px; height:18px; }
.nav-item .badge {
  margin-left:auto; background:var(--danger); color:#fff; font-size:11px; font-weight:600;
  padding:2px 8px; border-radius:10px; min-width:20px; text-align:center;
}
.sidebar-footer {
  padding:16px 20px; border-top:1px solid var(--gray-100); font-size:13px; color:var(--gray-500);
}
.sidebar-footer .user-info { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.sidebar-footer .user-avatar {
  width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,var(--primary),#4285f4);
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:14px; font-weight:600;
}
.sidebar-footer .user-name { font-weight:600; color:var(--gray-800); font-size:14px; }
.sidebar-footer .user-role { font-size:12px; color:var(--gray-500); }
.btn-logout {
  width:100%; padding:8px; background:var(--gray-100); border:none; border-radius:8px;
  color:var(--gray-600); font-size:13px; cursor:pointer; transition:var(--transition); font-family:inherit;
}
.btn-logout:hover { background:var(--danger-light); color:var(--danger); }

.main-content { flex:1; margin-left:260px; min-height:100vh; }
.topbar {
  height:64px; background:#fff; border-bottom:1px solid var(--gray-200);
  display:flex; align-items:center; justify-content:space-between; padding:0 32px;
  position:sticky; top:0; z-index:50;
}
.topbar h2 { font-size:20px; font-weight:600; color:var(--gray-900); }
.topbar-actions { display:flex; align-items:center; gap:16px; }
.sound-toggle {
  display:flex; align-items:center; gap:8px; padding:8px 14px; background:var(--gray-50);
  border-radius:10px; cursor:pointer; font-size:13px; color:var(--gray-600); border:1px solid var(--gray-200);
}
.sound-toggle.on { background:var(--success-light); color:var(--success); border-color:var(--success); }
.sound-toggle svg { width:18px; height:18px; }
.page-content { padding:24px 32px 40px; }

/* ========== CARDS ========== */
.card-grid { display:grid; gap:20px; }
.card-grid.cols-4 { grid-template-columns:repeat(4,1fr); }
.card-grid.cols-3 { grid-template-columns:repeat(3,1fr); }
.card-grid.cols-2 { grid-template-columns:repeat(2,1fr); }
@media(max-width:1200px){ .card-grid.cols-4{grid-template-columns:repeat(2,1fr)} }
@media(max-width:768px){ .card-grid.cols-4,.card-grid.cols-3,.card-grid.cols-2{grid-template-columns:1fr} }

.stat-card {
  background:#fff; border-radius:var(--radius); padding:24px; box-shadow:var(--shadow-sm);
  border:1px solid var(--gray-200); transition:var(--transition); position:relative; overflow:hidden;
}
.stat-card:hover { box-shadow:var(--shadow); transform:translateY(-2px); }
.stat-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px; border-radius:var(--radius) var(--radius) 0 0;
}
.stat-card.primary::before { background:var(--primary); }
.stat-card.success::before { background:var(--success); }
.stat-card.warning::before { background:var(--warning); }
.stat-card.danger::before { background:var(--danger); }
.stat-card.info::before { background:var(--info); }
.stat-card.purple::before { background:#9c27b0; }
.stat-card.teal::before { background:#009688; }
.stat-card.orange::before { background:#ff6d00; }
.stat-card .stat-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.stat-card .stat-label { font-size:13px; color:var(--gray-500); font-weight:500; }
.stat-card .stat-icon {
  width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center;
}
.stat-card .stat-icon svg { width:20px; height:20px; }
.stat-card.primary .stat-icon { background:var(--primary-light); color:var(--primary); }
.stat-card.success .stat-icon { background:var(--success-light); color:var(--success); }
.stat-card.warning .stat-icon { background:var(--warning-light); color:var(--warning); }
.stat-card.danger .stat-icon { background:var(--danger-light); color:var(--danger); }
.stat-card.info .stat-icon { background:var(--info-light); color:var(--info); }
.stat-card.purple .stat-icon { background:#f3e5f5; color:#9c27b0; }
.stat-card.teal .stat-icon { background:#e0f2f1; color:#009688; }
.stat-card.orange .stat-icon { background:#fff3e0; color:#ff6d00; }
.stat-card .stat-value { font-size:32px; font-weight:700; color:var(--gray-900); line-height:1.2; }
.stat-card .stat-change {
  display:flex; align-items:center; gap:4px; margin-top:8px; font-size:13px; font-weight:500;
}
.stat-card .stat-change.up { color:var(--success); }
.stat-card .stat-change.down { color:var(--danger); }
.stat-card .stat-change svg { width:14px; height:14px; }

/* ========== CHART CARDS ========== */
.chart-card {
  background:#fff; border-radius:var(--radius); padding:24px; box-shadow:var(--shadow-sm);
  border:1px solid var(--gray-200);
}
.chart-card .chart-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.chart-card .chart-title { font-size:16px; font-weight:600; color:var(--gray-900); }
.chart-card .chart-filters { display:flex; gap:8px; }
.chart-card .chart-filter {
  padding:6px 14px; border-radius:8px; border:1px solid var(--gray-200); background:#fff;
  font-size:13px; cursor:pointer; font-family:inherit; color:var(--gray-600); transition:var(--transition);
}
.chart-card .chart-filter:hover { border-color:var(--primary); color:var(--primary); }
.chart-card .chart-filter.active { background:var(--primary); color:#fff; border-color:var(--primary); }

/* ========== PROGRESS RING ========== */
.progress-ring-container { display:flex; align-items:center; justify-content:center; padding:20px; }
.progress-ring { position:relative; width:160px; height:160px; }
.progress-ring svg { transform:rotate(-90deg); }
.progress-ring-bg { fill:none; stroke:var(--gray-100); stroke-width:10; }
.progress-ring-fill { fill:none; stroke:var(--primary); stroke-width:10; stroke-linecap:round; transition:stroke-dashoffset 1s ease; }
.progress-ring-text { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); text-align:center; }
.progress-ring-text .pr-value { font-size:28px; font-weight:700; color:var(--gray-900); }
.progress-ring-text .pr-label { font-size:12px; color:var(--gray-500); }

/* ========== TABLES ========== */
.data-table-wrap { background:#fff; border-radius:var(--radius); box-shadow:var(--shadow-sm); border:1px solid var(--gray-200); overflow:hidden; }
.table-header {
  display:flex; align-items:center; justify-content:space-between; padding:16px 20px;
  border-bottom:1px solid var(--gray-100);
}
.table-header h3 { font-size:16px; font-weight:600; color:var(--gray-900); }
.table-toolbar { display:flex; gap:10px; align-items:center; }
.search-box {
  display:flex; align-items:center; gap:8px; padding:8px 14px; border:1px solid var(--gray-200);
  border-radius:10px; background:var(--gray-50); min-width:200px;
}
.search-box input { border:none; background:transparent; font-size:13px; outline:none; font-family:inherit; width:100%; }
.search-box svg { width:16px; height:16px; color:var(--gray-400); flex-shrink:0; }
.btn-sm {
  padding:8px 16px; border-radius:10px; border:none; font-size:13px; font-weight:500;
  cursor:pointer; transition:var(--transition); font-family:inherit; display:inline-flex; align-items:center; gap:6px;
}
.btn-sm svg { width:14px; height:14px; }
.btn-sm-primary { background:var(--primary); color:#fff; }
.btn-sm-primary:hover { background:var(--primary-dark); }
.btn-sm-success { background:var(--success); color:#fff; }
.btn-sm-success:hover { background:#2d8a47; }
.btn-sm-danger { background:var(--danger); color:#fff; }
.btn-sm-danger:hover { background:#c53929; }
.btn-sm-secondary { background:var(--gray-100); color:var(--gray-600); }
.btn-sm-secondary:hover { background:var(--gray-200); }

table { width:100%; border-collapse:collapse; font-size:13px; }
thead th {
  padding:12px 16px; text-align:left; font-size:12px; font-weight:600; color:var(--gray-500);
  text-transform:uppercase; letter-spacing:0.3px; background:var(--gray-50); border-bottom:1px solid var(--gray-200);
}
tbody td { padding:14px 16px; border-bottom:1px solid var(--gray-100); color:var(--gray-700); }
tbody tr:hover { background:var(--gray-50); }
tbody tr:last-child td { border-bottom:none; }
.status-badge {
  display:inline-flex; align-items:center; gap:4px; padding:4px 10px; border-radius:20px;
  font-size:12px; font-weight:500;
}
.status-badge::before { content:''; width:6px; height:6px; border-radius:50%; }
.status-pending { background:var(--warning-light); color:#b06000; }
.status-pending::before { background:var(--warning); }
.status-received { background:var(--info-light); color:#1557b0; }
.status-received::before { background:var(--info); }
.status-added { background:var(--success-light); color:#1e7e34; }
.status-added::before { background:var(--success); }
.status-rejected { background:var(--danger-light); color:#b71c1c; }
.status-rejected::before { background:var(--danger); }
.status-invalid { background:#e2e3e5; color:#5f6368; }
.status-invalid::before { background:var(--gray-500); }
.status-ordered { background:#e8f5e9; color:#2e7d32; }
.status-ordered::before { background:var(--success); }
.status-refunded { background:#fce4ec; color:#c2185b; }
.status-refunded::before { background:#e91e63; }

.table-pagination {
  display:flex; align-items:center; justify-content:space-between; padding:12px 20px;
  border-top:1px solid var(--gray-100); font-size:13px; color:var(--gray-500);
}
.pagination-btns { display:flex; gap:6px; }
.pagination-btns button {
  padding:6px 12px; border:1px solid var(--gray-200); background:#fff; border-radius:8px;
  font-size:13px; cursor:pointer; font-family:inherit; color:var(--gray-600); transition:var(--transition);
}
.pagination-btns button:hover:not(:disabled) { border-color:var(--primary); color:var(--primary); }
.pagination-btns button:disabled { opacity:0.4; cursor:not-allowed; }

/* ========== MODALS ========== */
.modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.5); backdrop-filter:blur(4px);
  display:none; align-items:center; justify-content:center; z-index:1000; padding:20px;
}
.modal-overlay.active { display:flex; }
.modal-box {
  background:#fff; border-radius:var(--radius); width:100%; max-width:560px; max-height:90vh;
  overflow-y:auto; box-shadow:var(--shadow-lg); animation:modalIn 0.3s ease;
}
@keyframes modalIn { from{opacity:0;transform:translateY(20px)scale(0.96)} to{opacity:1;transform:translateY(0)scale(1)} }
.modal-header {
  display:flex; align-items:center; justify-content:space-between; padding:20px 24px;
  border-bottom:1px solid var(--gray-100);
}
.modal-header h3 { font-size:18px; font-weight:600; }
.modal-close {
  width:32px; height:32px; border-radius:8px; border:none; background:var(--gray-50);
  cursor:pointer; display:flex; align-items:center; justify-content:center; transition:var(--transition);
}
.modal-close:hover { background:var(--gray-200); }
.modal-close svg { width:16px; height:16px; }
.modal-body { padding:24px; }
.modal-footer {
  display:flex; gap:12px; justify-content:flex-end; padding:16px 24px;
  border-top:1px solid var(--gray-100); background:var(--gray-50); border-radius:0 0 var(--radius) var(--radius);
}
.modal-footer .btn-sm { padding:10px 20px; }

/* ========== FORM ELEMENTS ========== */
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.form-row .form-group { margin-bottom:0; }
.form-group textarea {
  width:100%; padding:12px 16px; border:1.5px solid var(--gray-200); border-radius:12px;
  font-size:14px; font-family:inherit; resize:vertical; min-height:80px; transition:var(--transition);
}
.form-group textarea:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-light); }
.form-group select {
  width:100%; padding:12px 16px; border:1.5px solid var(--gray-200); border-radius:12px;
  font-size:14px; font-family:inherit; background:#fff; transition:var(--transition); cursor:pointer;
}
.form-group select:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-light); }
.form-group input[type="file"] { padding:8px; }
.file-preview { margin-top:8px; max-width:200px; border-radius:8px; overflow:hidden; }
.file-preview img { width:100%; display:block; }

/* ========== TABS ========== */
.tabs { display:flex; gap:4px; border-bottom:2px solid var(--gray-200); margin-bottom:24px; }
.tab {
  padding:12px 20px; font-size:14px; font-weight:500; color:var(--gray-500); cursor:pointer;
  border-bottom:2px solid transparent; margin-bottom:-2px; transition:var(--transition); user-select:none;
}
.tab:hover { color:var(--gray-700); }
.tab.active { color:var(--primary); border-bottom-color:var(--primary); }

/* ========== NOTIFICATION ========== */
.notification-toast {
  position:fixed; top:20px; right:20px; z-index:2000;
  background:#fff; border-radius:var(--radius); padding:16px 20px;
  box-shadow:var(--shadow-lg); border-left:4px solid var(--success);
  display:none; align-items:flex-start; gap:12px; max-width:360px; animation:slideIn 0.4s ease;
}
.notification-toast.show { display:flex; }
.notification-toast.error { border-left-color:var(--danger); }
.notification-toast.warning { border-left-color:var(--warning); }
@keyframes slideIn { from{opacity:0;transform:translateX(100px)} to{opacity:1;transform:translateX(0)} }
@keyframes slideInRight { from{opacity:0;transform:translateX(100%)} to{opacity:1;transform:translateX(0)} }
@keyframes slideOutRight { from{opacity:1;transform:translateX(0)} to{opacity:0;transform:translateX(100%)} }
.notification-toast .nt-icon { width:24px; height:24px; flex-shrink:0; margin-top:2px; }
.notification-toast .nt-content { flex:1; }
.notification-toast .nt-title { font-size:14px; font-weight:600; color:var(--gray-900); margin-bottom:2px; }
.notification-toast .nt-msg { font-size:13px; color:var(--gray-500); }

/* ========== SECTIONS ========== */
.section-title { font-size:20px; font-weight:600; color:var(--gray-900); margin-bottom:20px; }
.section-subtitle { font-size:14px; color:var(--gray-500); margin-bottom:24px; }

/* ========== EMPTY STATE ========== */
.empty-state { text-align:center; padding:60px 20px; color:var(--gray-400); }
.empty-state svg { width:64px; height:64px; margin-bottom:16px; opacity:0.5; }
.empty-state p { font-size:14px; }

.status-landed { background:#e0f2f1; color:#00695c; }
.status-landed::before { background:#009688; }
.status-unlanded { background:#fff8e1; color:#f57f17; }
.status-unlanded::before { background:#ff6d00; }

/* ========== RANKING LIST ========== */
.ranking-item {
  display:flex; align-items:center; gap:16px; padding:14px 16px; border-bottom:1px solid var(--gray-100);
}
.ranking-item:last-child { border-bottom:none; }
.rank-num {
  width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:700; color:var(--gray-500); background:var(--gray-100); flex-shrink:0;
}
.rank-num.top1 { background:linear-gradient(135deg,#ffd700,#ffaa00); color:#fff; }
.rank-num.top2 { background:linear-gradient(135deg,#c0c0c0,#a0a0a0); color:#fff; }
.rank-num.top3 { background:linear-gradient(135deg,#cd7f32,#b87333); color:#fff; }
.rank-info { flex:1; }
.rank-name { font-size:14px; font-weight:600; color:var(--gray-800); }
.rank-detail { font-size:12px; color:var(--gray-500); }
.rank-value { font-size:16px; font-weight:700; color:var(--primary); }

/* ========== RESPONSIVE ========== */
@media(max-width:1024px){
  .sidebar { transform:translateX(-100%); }
  .sidebar.open { transform:translateX(0); }
  .main-content { margin-left:0; }
  .menu-toggle { display:flex; }
}
.menu-toggle {
  display:none; width:36px; height:36px; border-radius:8px; border:none; background:var(--gray-100);
  align-items:center; justify-content:center; cursor:pointer;
}

/* ========== FILTER BAR ========== */
.filter-bar {
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  padding:12px 16px; background:var(--gray-50); border-bottom:1px solid var(--gray-100);
}
.filter-bar .filter-item {
  display:flex; align-items:center; gap:6px;
}
.filter-bar .filter-item label {
  font-size:12px; color:var(--gray-500); font-weight:500; white-space:nowrap;
}
.filter-bar .filter-item select,
.filter-bar .filter-item input[type="date"] {
  padding:6px 10px; border:1px solid var(--gray-200); border-radius:8px;
  font-size:13px; font-family:inherit; color:var(--gray-700); background:#fff;
  min-width:100px;
}
.filter-bar .filter-item select:focus,
.filter-bar .filter-item input[type="date"]:focus {
  outline:none; border-color:var(--primary);
}
.filter-bar .filter-actions {
  margin-left:auto; display:flex; gap:6px;
}
.btn-xs {
  padding:5px 10px; border-radius:6px; border:none; font-size:12px; font-weight:500;
  cursor:pointer; font-family:inherit;
}
.btn-xs-primary { background:var(--primary); color:#fff; }
.btn-xs-secondary { background:var(--gray-100); color:var(--gray-600); }

/* ========== SUMMARY BAR ========== */
.summary-bar {
  display:flex; flex-wrap:wrap; gap:16px;
  padding:12px 16px; background:var(--primary-light); border-bottom:1px solid var(--gray-100);
}
.summary-bar .summary-item {
  display:flex; align-items:center; gap:6px; font-size:13px;
}
.summary-bar .summary-item .summary-label {
  color:var(--gray-500); font-weight:500;
}
.summary-bar .summary-item .summary-value {
  color:var(--primary-dark); font-weight:700;
}

/* ========== TABLE TOTAL ROW ========== */
.table-total-row {
  background:var(--gray-50); font-weight:600;
}
.table-total-row td {
  border-top:2px solid var(--gray-300); color:var(--gray-900);
}



.follow-badge { display:inline-block; min-width:18px; height:18px; padding:0 5px; border-radius:9px;
  background:var(--danger); color:#fff; font-size:11px; line-height:18px; text-align:center; margin-left:5px;
  font-weight:600; vertical-align:middle; }
.follow-time-hint { font-size:11px; color:var(--gray-400); }
.overdue-text { color:var(--danger); font-weight:500; }


@keyframes spin{to{transform:rotate(360deg)}}


      .order-section { background:var(--gray-50); padding:12px 16px; border-radius:8px; margin-bottom:12px; }
      .order-section-title { font-size:13px; font-weight:600; color:var(--gray-700); margin-bottom:10px; border-left:3px solid var(--primary); padding-left:8px; }
      .calc-field { background:var(--primary-light); border-color:var(--primary-light); color:var(--primary-dark); font-weight:500; }
    


      .order-section { background:var(--gray-50); padding:12px 16px; border-radius:8px; margin-bottom:12px; }
      .order-section-title { font-size:13px; font-weight:600; color:var(--gray-700); margin-bottom:10px; border-left:3px solid var(--primary); padding-left:8px; }
      .calc-field { background:var(--primary-light); border-color:var(--primary-light); color:var(--primary-dark); font-weight:500; }
    

/* 诊断按钮 */
.btn-diagnose {
  display: block; width: 100%; margin-top: 12px; padding: 9px;
  background: transparent; border: 1px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.9);
  border-radius: 8px; font-size: 13px; cursor: pointer; font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.btn-diagnose:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); }
.btn-diagnose:disabled { opacity: 0.6; cursor: wait; }
.diagnose-result {
  display: none; margin-top: 12px; padding: 12px; max-height: 260px; overflow: auto;
  background: rgba(0,0,0,0.55); color: #c8f7c5; border-radius: 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px;
  line-height: 1.65; text-align: left; white-space: pre-wrap; word-break: break-all;
}
.diagnose-result.show { display: block; }
