/* ============================================================
   CHARITY SYSTEM — Design System v12.1 CLEAN
   ✅ One :root | ✅ Zero @extend | ✅ Zero conflicts
   ============================================================ */

/* ── ONE :root ─────────────────────────────────────────────── */
:root {
  /* Brand */
  --brand:        #0f766e;
  --brand-dark:   #0c5f58;
  --brand-darker: #094e47;
  --brand-light:  #14b8a6;
  --brand-bg:     #f0fdfa;
  --brand-bg2:    #ccfbf1;

  /* Layout dims */
  --sidebar-w: 260px;
  --topbar-h:  64px;

  /* Sidebar palette */
  --sidebar-bg:            #0f172a;
  --sidebar-text:          #94a3b8;
  --sidebar-text-active:   #ffffff;
  --sidebar-active-bg:     rgba(20,184,166,0.15);
  --sidebar-active-border: #14b8a6;
  --sidebar-hover-bg:      rgba(255,255,255,0.05);
  --sidebar-section-text:  #475569;
  --sidebar-border:        rgba(255,255,255,0.06);

  /* Topbar */
  --topbar-bg:     #ffffff;
  --topbar-border: #e2e8f0;

  /* Color scales */
  --success-50: #ecfdf5; --success-100:#d1fae5; --success-200:#a7f3d0;
  --success-500:#10b981; --success-600:#059669; --success-700:#047857; --success-800:#065f46;

  --warning-50: #fffbeb; --warning-100:#fef3c7; --warning-200:#fde68a;
  --warning-500:#f59e0b; --warning-600:#d97706; --warning-700:#b45309; --warning-800:#92400e;

  --danger-50:  #fef2f2; --danger-100:#fee2e2; --danger-200:#fecaca;
  --danger-500: #ef4444; --danger-600:#dc2626; --danger-700:#b91c1c; --danger-800:#991b1b;

  --info-50:    #eff6ff; --info-100:#dbeafe; --info-200:#bfdbfe;
  --info-500:   #3b82f6; --info-600:#2563eb; --info-700:#1d4ed8; --info-800:#1e40af;

  --gray-50:#f9fafb; --gray-100:#f3f4f6; --gray-200:#e5e7eb; --gray-300:#d1d5db;
  --gray-400:#9ca3af; --gray-500:#6b7280; --gray-600:#4b5563; --gray-700:#374151;
  --gray-800:#1f2937; --gray-900:#111827;

  /* Semantic */
  --accent:      var(--brand);
  --accent-dark: var(--brand-dark);
  --success:     var(--success-600);
  --danger:      var(--danger-600);
  --warning:     var(--warning-600);
  --info:        var(--info-600);
  --c-green:     var(--success-500);
  --c-amber:     var(--warning-500);
  --c-red:       var(--danger-500);
  --c-blue:      var(--info-500);
  --c-indigo:    #4F46E5;
  --c-pink:      #EC4899;
  --c-mint:      var(--success-500);
  --c-mint-dark: var(--success-600);

  /* Surfaces */
  --surface:           #ffffff;
  --surface-primary:   #ffffff;
  --surface-secondary: var(--gray-50);
  --content-bg:        #f4f6f9;

  /* Text */
  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted:     var(--gray-400);
  --text-inverse:   #ffffff;

  /* Border */
  --border:       1px solid var(--gray-200);
  --border-color: var(--gray-200);
  --border-width: 1px;
  --border-focus: var(--brand-light);

  /* Typography */
  --font:        'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family: var(--font);
  --text-xs:   0.75rem;  --text-sm:  0.875rem; --text-base: 1rem;
  --text-md:   0.9375rem;--text-lg:  1.125rem; --text-xl:   1.25rem;
  --text-2xl:  1.5rem;   --text-3xl: 1.875rem; --text-4xl:  2.25rem;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;
  --font-weight-extrabold:800;
  --line-height-tight:  1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed:1.625;

  /* Spacing */
  --space-1:0.25rem; --space-2:0.5rem;  --space-3:0.75rem; --space-4:1rem;
  --space-5:1.25rem; --space-6:1.5rem;  --space-8:2rem;    --space-10:2.5rem;
  --space-12:3rem;   --space-16:4rem;

  /* Radius */
  --radius-sm:  6px;  --radius-md:  8px;  --radius-lg:  10px;
  --radius-xl:  14px; --radius-2xl: 18px; --radius-3xl: 24px;
  --radius-full:9999px;
  --card-radius:  14px;
  --btn-radius:   10px;
  --input-radius: 10px;
  --badge-radius:  8px;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);
  --shadow-card: 0 1px 4px rgba(0,0,0,.04),0 4px 16px rgba(0,0,0,.06);
  --shadow-hover:0 4px 12px rgba(0,0,0,.08),0 8px 28px rgba(0,0,0,.08);
  --shadow-modal:0 24px 64px rgba(0,0,0,.18);

  /* Transitions */
  --transition:       220ms cubic-bezier(.4,0,.2,1);
  --transition-fast:  150ms ease-in-out;
  --transition-normal:300ms ease-in-out;

  /* Z-index */
  --z-dropdown:1000; --z-sticky:1020; --z-fixed:1030;
  --z-modal-backdrop:1040; --z-modal:1050; --z-toast:1080;

  /* Breakpoints (reference only) */
  --bp-sm:640px; --bp-md:768px; --bp-lg:1024px; --bp-xl:1280px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box}
html{font-family:var(--font);font-size:16px;line-height:1.5;
  -webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;scroll-behavior:smooth}
body{margin:0;padding:0;background:var(--content-bg);color:var(--text-primary);
  font-family:var(--font);font-size:var(--text-base);overflow-x:hidden}
h1,h2,h3,h4,h5,h6{margin:0;font-weight:700;line-height:1.25;color:var(--text-primary)}
h1{font-size:var(--text-4xl)} h2{font-size:var(--text-3xl)} h3{font-size:var(--text-2xl)}
h4{font-size:var(--text-xl)}  h5{font-size:var(--text-lg)}  h6{font-size:var(--text-base)}
p{margin:0 0 var(--space-4);line-height:var(--line-height-relaxed)}
a{color:var(--brand);text-decoration:none;transition:color var(--transition-fast)}
a:hover{color:var(--brand-dark)}
button,input,select,textarea{font-family:var(--font)}
img{max-width:100%;display:block}
table{border-collapse:collapse}
html,body{height:100%}

/* ── SIDEBAR ─────────────────────────────────────────────────
   IMPORTANT: transform:translateX(0) = always visible on desktop
   Only mobile @media hides it and requires .open class
   ──────────────────────────────────────────────────────────── */
.sidebar{
  position:fixed;top:0;right:0;
  width:var(--sidebar-w);height:100vh;
  background:var(--sidebar-bg);
  box-shadow:-2px 0 20px rgba(0,0,0,.15);
  z-index:var(--z-fixed);
  transform:translateX(0);
  transition:transform var(--transition);
  overflow:hidden;
  display:flex;flex-direction:column;
  border-left:none;
}
.sidebar-header{flex-shrink:0;border-bottom:1px solid var(--sidebar-border)}
.sidebar-brand{display:flex;align-items:center;gap:12px;padding:16px 20px;text-decoration:none}
.sidebar-logo{
  width:40px;height:40px;
  background:linear-gradient(135deg,var(--brand-light),var(--brand));
  border-radius:11px;display:flex;align-items:center;justify-content:center;
  font-size:20px;flex-shrink:0;overflow:hidden
}
.sidebar-logo img{width:100%;height:100%;object-fit:cover;border-radius:9px}
.brand-logo,.brand-logo-fallback{
  width:40px;height:40px;
  background:linear-gradient(135deg,var(--brand-light),var(--brand));
  border-radius:11px;display:flex;align-items:center;justify-content:center;
  font-size:20px;color:#fff;font-weight:800;flex-shrink:0;overflow:hidden
}
.brand-logo-img{width:100%;height:100%;object-fit:cover;border-radius:9px}
.sidebar-brand-text,.brand-info{flex:1;min-width:0}
.sidebar-brand-name,.brand-name{
  font-size:14px;font-weight:800;color:#f1f5f9;margin:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.sidebar-brand-tagline,.brand-tagline{font-size:11px;color:var(--sidebar-text);margin:2px 0 0}

.sidebar-user,.user-card{
  display:flex;align-items:center;gap:10px;
  padding:12px 20px;
  border-bottom:1px solid var(--sidebar-border);
  background:rgba(255,255,255,.02);flex-shrink:0
}
.sidebar-avatar,.user-card-avatar{
  width:34px;height:34px;
  background:linear-gradient(135deg,var(--brand-light),var(--brand-dark));
  border-radius:9px;display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;font-size:13px;flex-shrink:0
}
.sidebar-user-name,.user-card-name{
  font-size:13px;font-weight:700;color:#e2e8f0;margin:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.sidebar-user-role,.user-card-role{font-size:11px;color:var(--sidebar-text);margin:2px 0 0}
.user-card-info{flex:1;min-width:0}

.sidebar-nav,.sidebar-nav-scrollable{
  flex:1;overflow-y:auto;padding:10px 0;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.1) transparent
}
.sidebar-nav::-webkit-scrollbar{width:3px}
.sidebar-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);border-radius:2px}

.nav-section{
  padding:10px 20px 4px;
  font-size:10px;font-weight:700;letter-spacing:.08em;
  color:var(--sidebar-section-text);text-transform:uppercase
}
.nav-link{
  display:flex;align-items:center;gap:10px;
  padding:9px 12px 9px 20px;
  margin:1px 8px;border-radius:9px;
  color:var(--sidebar-text);text-decoration:none;
  font-size:13px;font-weight:600;
  transition:all var(--transition);
  border-right:3px solid transparent;
  position:relative
}
.nav-link:hover{background:var(--sidebar-hover-bg);color:#e2e8f0}
.nav-link.active{background:var(--sidebar-active-bg);color:var(--sidebar-text-active);border-right-color:var(--sidebar-active-border)}
.nav-link-icon{
  width:30px;height:30px;
  display:flex;align-items:center;justify-content:center;
  font-size:15px;border-radius:8px;
  background:rgba(255,255,255,.05);flex-shrink:0;transition:all var(--transition)
}
.nav-link:hover .nav-link-icon{background:rgba(255,255,255,.08)}
.nav-link.active .nav-link-icon{background:rgba(20,184,166,.2)}
.nav-link-text{font-size:13px;font-weight:600}
.nav-link-badge{
  margin-right:auto;background:var(--brand-light);color:#fff;
  font-size:10px;font-weight:800;padding:2px 6px;
  border-radius:20px;min-width:18px;text-align:center
}

.sidebar-footer{flex-shrink:0;padding:10px 8px;border-top:1px solid var(--sidebar-border)}
.sidebar-logout{
  display:flex;align-items:center;gap:10px;
  padding:9px 14px;border-radius:9px;color:#f87171;
  font-size:13px;font-weight:600;cursor:pointer;
  border:1px solid rgba(248,113,113,.15);
  background:rgba(248,113,113,.05);width:100%;
  transition:all var(--transition);font-family:var(--font)
}
.sidebar-logout:hover{background:rgba(248,113,113,.12);color:#ff6b6b}

.sidebar-backdrop{
  position:fixed;inset:0;
  background:rgba(0,0,0,.5);
  z-index:calc(var(--z-fixed) - 1);
  opacity:0;visibility:hidden;
  transition:all var(--transition)
}
.sidebar-backdrop.visible,.sidebar-backdrop.show{opacity:1;visibility:visible}

/* ── TOPBAR ──────────────────────────────────────────────────── */
.topbar{
  position:fixed;top:0;right:var(--sidebar-w);left:0;
  height:var(--topbar-h);
  background:var(--topbar-bg);
  border-bottom:1px solid var(--topbar-border);
  box-shadow:0 1px 3px rgba(0,0,0,.06);
  z-index:200;
  display:flex;align-items:center;
  padding:0 24px;gap:16px
}
.topbar-title{font-size:17px;font-weight:800;color:#0f172a;margin:0;flex:1}
.topbar-subtitle{font-size:12px;color:#64748b;font-weight:500}
.topbar-right{display:flex;align-items:center;gap:10px;margin-right:auto}
.topbar-time{
  font-size:12px;color:#64748b;font-weight:600;
  padding:6px 12px;background:#f8fafc;
  border-radius:8px;border:1px solid #e2e8f0;white-space:nowrap
}
.topbar-btn{
  width:36px;height:36px;
  display:flex;align-items:center;justify-content:center;
  border-radius:9px;border:1px solid #e2e8f0;
  background:#fff;color:#64748b;cursor:pointer;
  font-size:15px;transition:all var(--transition)
}
.topbar-btn:hover{background:#f8fafc;color:#0f172a}

/* Mobile header */
.mobile-header{
  display:none;
  position:fixed;top:0;right:0;left:0;height:56px;
  background:var(--topbar-bg);
  border-bottom:1px solid var(--topbar-border);
  box-shadow:0 1px 3px rgba(0,0,0,.06);
  z-index:200;align-items:center;padding:0 16px;gap:12px
}
.mobile-menu-btn{
  width:36px;height:36px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:5px;
  border:none;background:transparent;cursor:pointer;padding:6px;border-radius:8px
}
.mobile-menu-btn span{width:20px;height:2px;background:#374151;border-radius:2px;display:block;transition:all var(--transition)}
.mobile-page-title{font-size:15px;font-weight:800;color:#0f172a;flex:1}
.mobile-user-badge{
  width:32px;height:32px;
  background:linear-gradient(135deg,var(--brand-light),var(--brand-dark));
  border-radius:9px;display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;font-size:13px
}

/* ── MAIN LAYOUT ─────────────────────────────────────────────── */
.main-wrapper{
  margin-right:var(--sidebar-w);
  margin-top:var(--topbar-h);
  min-height:calc(100vh - var(--topbar-h));
  background:var(--content-bg)
}
.main-content{padding:24px}
.page-container{max-width:1400px;margin:0 auto;padding:24px}

/* ── PAGE HEADER ─────────────────────────────────────────────── */
.page-header{
  display:flex;align-items:flex-start;
  justify-content:space-between;
  gap:16px;flex-wrap:wrap;margin-bottom:24px
}
.page-header-title{font-size:22px;font-weight:900;color:#0f172a;margin:0 0 4px}
.page-header-sub{font-size:13px;color:#64748b;margin:0}
.page-header-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

/* ── STAT CARDS ──────────────────────────────────────────────── */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:16px;margin-bottom:24px
}
.stat-card{
  background:#fff;border-radius:var(--card-radius);
  padding:20px;border:1px solid #e8edf3;
  box-shadow:var(--shadow-card);
  position:relative;overflow:hidden;
  transition:all var(--transition);cursor:pointer
}
.stat-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
.stat-card::before{
  content:'';position:absolute;top:0;right:0;
  width:4px;height:100%;
  border-radius:0 var(--card-radius) var(--card-radius) 0
}
.stat-card-warning,.stat-card--amber{border-color:#fde68a}
.stat-card-warning::before,.stat-card--amber::before{background:var(--warning-500)}
.stat-card-info,.stat-card--blue{border-color:#bfdbfe}
.stat-card-info::before,.stat-card--blue::before{background:var(--info-500)}
.stat-card-success,.stat-card--green{border-color:#a7f3d0}
.stat-card-success::before,.stat-card--green::before{background:var(--success-500)}
.stat-card-primary,.stat-card--teal{border-color:var(--brand-bg2)}
.stat-card-primary::before,.stat-card--teal::before{background:var(--brand)}
.stat-card-danger,.stat-card--red::before{background:var(--danger-500)}
.stat-card--purple::before{background:var(--c-indigo)}

.stat-card-icon{
  width:44px;height:44px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;
  font-size:20px;margin-bottom:14px;
  background:var(--gray-50)
}
.stat-card-warning .stat-card-icon{background:var(--warning-50)}
.stat-card-info    .stat-card-icon{background:var(--info-50)}
.stat-card-success .stat-card-icon{background:var(--success-50)}
.stat-card-primary .stat-card-icon{background:var(--brand-bg)}
.stat-card-danger  .stat-card-icon{background:var(--danger-50)}
.stat-card-content{}
.stat-card-value{font-size:28px;font-weight:900;color:#0f172a;margin:0 0 4px;line-height:1}
.stat-card-label{font-size:13px;font-weight:700;color:#374151;margin:0}
.stat-card-desc{font-size:11.5px;color:#94a3b8;margin-top:2px}

/* Legacy stat items */
.stat-item{
  background:#fff;border:1px solid #e8edf3;border-radius:var(--card-radius);
  padding:16px 20px;text-align:center;cursor:pointer;
  transition:all var(--transition);box-shadow:var(--shadow-card)
}
.stat-item:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover)}
.stat-item.active{border-color:var(--brand);box-shadow:0 0 0 2px rgba(15,118,110,.2)}
.stat-num{font-size:26px;font-weight:900;color:#0f172a;display:block}
.stat-text{font-size:12px;color:#64748b;font-weight:600;display:block;margin-top:4px}
.stats-row{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.stats-row .stat-item{flex:1;min-width:140px}

/* ── CARDS ───────────────────────────────────────────────────── */
.card{
  background:#fff;border-radius:var(--card-radius);
  border:1px solid #e8edf3;
  box-shadow:var(--shadow-card);overflow:hidden;
  transition:box-shadow var(--transition)
}
.card-header{
  padding:18px 22px;border-bottom:1px solid #f1f5f9;
  background:#fff;display:flex;align-items:center;
  justify-content:space-between;gap:12px
}
.card-title{font-size:15px;font-weight:800;color:#0f172a;margin:0;display:flex;align-items:center;gap:8px}
.card-subtitle{font-size:12px;color:#94a3b8;margin:3px 0 0}
.card-body{padding:22px}
.card-footer{padding:14px 22px;border-top:1px solid #f1f5f9;background:#fafbfc}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:9px 18px;border:1.5px solid transparent;
  border-radius:var(--btn-radius);font-family:var(--font);
  font-size:13.5px;font-weight:700;white-space:nowrap;cursor:pointer;
  transition:all var(--transition);text-decoration:none;line-height:1.4;
  appearance:none;-webkit-appearance:none
}
.btn:active{transform:scale(.98)}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none!important;box-shadow:none!important}

.btn-primary{background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:0 2px 8px rgba(15,118,110,.25)}
.btn-primary:not(:disabled):hover{background:var(--brand-dark);border-color:var(--brand-dark);transform:translateY(-1px);box-shadow:0 4px 14px rgba(15,118,110,.35);color:#fff}

.btn-secondary{background:#fff;color:#374151;border-color:#d1d5db;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.btn-secondary:not(:disabled):hover{background:#f9fafb;border-color:#9ca3af;transform:translateY(-1px);color:#111827}

.btn-success{background:var(--success-600);color:#fff;border-color:var(--success-600);box-shadow:0 2px 8px rgba(5,150,105,.25)}
.btn-success:not(:disabled):hover{background:var(--success-700);border-color:var(--success-700);transform:translateY(-1px);color:#fff}

.btn-danger{background:var(--danger-600);color:#fff;border-color:var(--danger-600);box-shadow:0 2px 8px rgba(220,38,38,.25)}
.btn-danger:not(:disabled):hover{background:var(--danger-700);border-color:var(--danger-700);transform:translateY(-1px);color:#fff}

.btn-warning{background:var(--warning-600);color:#fff;border-color:var(--warning-600);box-shadow:0 2px 8px rgba(217,119,6,.25)}
.btn-warning:not(:disabled):hover{background:var(--warning-700);border-color:var(--warning-700);transform:translateY(-1px);color:#fff}

.btn-info{background:var(--info-600);color:#fff;border-color:var(--info-600)}
.btn-info:not(:disabled):hover{background:var(--info-700);transform:translateY(-1px);color:#fff}

.btn-light{background:#f8fafc;color:#475569;border-color:#e2e8f0}
.btn-light:not(:disabled):hover{background:#f1f5f9;color:#1e293b;border-color:#cbd5e1}

.btn-ghost{background:transparent;color:#64748b;border-color:transparent}
.btn-ghost:not(:disabled):hover{background:#f1f5f9;color:#0f172a}

.btn-xs {padding:5px 10px;font-size:11.5px;border-radius:7px}
.btn-sm {padding:7px 13px;font-size:12.5px;border-radius:8px}
.btn-lg {padding:12px 24px;font-size:15px;border-radius:11px}
.btn-xl {padding:14px 30px;font-size:16px;border-radius:12px}
.btn-icon{padding:8px;width:36px;height:36px;border-radius:9px}

.btn-whatsapp{background:#25D366;color:#fff;border-color:#25D366}
.btn-whatsapp:not(:disabled):hover{background:#1ebe5d;transform:translateY(-1px);color:#fff}
.btn-complete{background:var(--success-600);color:#fff;border:none}
.btn-complete:not(:disabled):hover{background:var(--success-700);color:#fff;transform:translateY(-1px)}
.btn-postpone{background:var(--warning-600);color:#fff;border:none}
.btn-postpone:not(:disabled):hover{background:var(--warning-700);color:#fff;transform:translateY(-1px)}
.btn-cancel{background:var(--danger-600);color:#fff;border:none}
.btn-cancel:not(:disabled):hover{background:var(--danger-700);color:#fff;transform:translateY(-1px)}
.btn-call{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;border:none;box-shadow:0 2px 8px rgba(37,99,235,.3)}
.btn-call:not(:disabled):hover{transform:translateY(-1px);color:#fff}
.btn-location{background:linear-gradient(135deg,var(--success-600),var(--success-700));color:#fff;border:none;box-shadow:0 2px 8px rgba(5,150,105,.3)}
.btn-location:not(:disabled):hover{transform:translateY(-1px);color:#fff}
.btn-images{background:linear-gradient(135deg,#7c3aed,#6d28d9);color:#fff;border:none}
.btn-images:not(:disabled):hover{transform:translateY(-1px);color:#fff}
.btn-assign{background:linear-gradient(135deg,var(--brand),var(--brand-dark));color:#fff;border:none;box-shadow:0 2px 8px rgba(15,118,110,.3)}
.btn-assign:not(:disabled):hover{transform:translateY(-1px);color:#fff}
.btn-header{background:rgba(255,255,255,.15);color:#fff;border:1.5px solid rgba(255,255,255,.3)}
.btn-header:hover{background:rgba(255,255,255,.25);color:#fff}
.btn-action{padding:8px 16px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.25);border-radius:9px;color:#fff;font-family:var(--font);font-size:13px;font-weight:700;cursor:pointer;transition:all var(--transition)}
.btn-action:hover{background:rgba(255,255,255,.25)}
.btn-reset{padding:8px 14px;background:rgba(254,226,226,.15);border:1px solid rgba(248,113,113,.3);border-radius:9px;color:#fca5a5;font-family:var(--font);font-size:13px;font-weight:700;cursor:pointer;transition:all var(--transition)}
.btn-reset:hover{background:rgba(254,226,226,.25);color:#fff}
.btn-map{background:var(--danger-600);color:#fff;border:none}
.btn-map:not(:disabled):hover{background:var(--danger-700);transform:translateY(-1px);color:#fff}
.btn-food{background:#ea580c;color:#fff;border:none}
.btn-food:not(:disabled):hover{background:#c2410c;transform:translateY(-1px);color:#fff}
.btn-print{background:#475569;color:#fff;border:none}
.btn-print:not(:disabled):hover{background:#334155;transform:translateY(-1px);color:#fff}
.btn-confirm{background:var(--brand);color:#fff;border:none}
.btn-confirm:not(:disabled):hover{background:var(--brand-dark);color:#fff}
.btn-dismiss,.btn-back{background:#f1f5f9;color:#374151;border:1px solid #e2e8f0}
.btn-dismiss:hover,.btn-back:hover{background:#e2e8f0}
.btn-close,.btn-close-x,.modal-close,.ui-modal-close{
  width:34px;height:34px;display:flex;align-items:center;justify-content:center;
  border-radius:9px;border:none;background:#f1f5f9;color:#64748b;
  cursor:pointer;font-size:18px;transition:all var(--transition)
}
.btn-close:hover,.btn-close-x:hover,.modal-close:hover,.ui-modal-close:hover{background:#fee2e2;color:var(--danger-600)}
.btn-locked{background:#94a3b8;color:#fff;border:none;cursor:not-allowed;opacity:.6}
.btn-revert{background:#64748b;color:#fff;border:none}
.btn-revert:not(:disabled):hover{background:#475569;transform:translateY(-1px);color:#fff}

/* Official btn */
.btn-official{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:9px 18px;border:1.5px solid transparent;border-radius:var(--btn-radius);
  font-family:var(--font);font-size:13.5px;font-weight:700;white-space:nowrap;
  cursor:pointer;transition:all var(--transition);text-decoration:none;
  background:var(--brand);color:#fff;border-color:var(--brand);
  box-shadow:0 2px 8px rgba(15,118,110,.25)
}
.btn-official:not(:disabled):hover{background:var(--brand-dark);border-color:var(--brand-dark);transform:translateY(-1px);color:#fff}
.btn-official:focus{outline:none;box-shadow:0 0 0 3px rgba(20,184,166,.3)}

/* ── TABLES ──────────────────────────────────────────────────── */
.table-wrapper,.table-container,.table-container-official{
  border-radius:var(--card-radius);border:1px solid #e8edf3;overflow:hidden;background:#fff
}
.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}
.table,.data-table{width:100%;border-collapse:collapse;font-size:13.5px}
.table thead,.data-table thead{background:linear-gradient(to bottom,#f8fafc,#f1f5f9)}
.table thead th,.data-table thead th,.table-header{
  padding:13px 16px;text-align:right;font-weight:800;color:#374151;
  font-size:12px;text-transform:uppercase;letter-spacing:.04em;
  border-bottom:2px solid #e2e8f0;white-space:nowrap
}
.table tbody td,.data-table tbody td{
  padding:13px 16px;border-bottom:1px solid #f1f5f9;
  color:#374151;vertical-align:middle;font-size:13.5px
}
.table tbody tr:last-child td,.data-table tbody tr:last-child td{border-bottom:none}
.table tbody tr:hover td,.data-table tbody tr:hover td{background:#fafbfe}
.table-hover tbody tr:hover td{background:#f0fdfb}

.professional-table{width:100%;border-collapse:collapse;font-size:13.5px}
.professional-table thead{background:linear-gradient(135deg,var(--brand-darker),var(--brand-dark))}
.professional-table thead th{padding:13px 16px;text-align:right;font-weight:800;color:#fff;font-size:12px;letter-spacing:.03em;border:none;white-space:nowrap}
.professional-table tbody td{padding:13px 16px;border-bottom:1px solid #f1f5f9;color:#374151;vertical-align:middle}
.professional-table tbody tr:last-child td{border-bottom:none}
.professional-table tbody tr:hover td{background:#f8fbfa}

/* ── FORMS ───────────────────────────────────────────────────── */
.form-group{margin-bottom:18px}
.form-label,.form-lbl{display:block;font-size:13px;font-weight:700;color:#374151;margin-bottom:7px}
.form-control{
  display:block;width:100%;padding:10px 14px;
  font-size:14px;font-family:var(--font);font-weight:500;
  color:#1e293b;background:#fff;
  border:1.5px solid #d1d5db;border-radius:var(--input-radius);
  transition:all var(--transition);line-height:1.5;
  box-shadow:0 1px 2px rgba(0,0,0,.03)
}
.form-control:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(15,118,110,.12)}
.form-control:hover:not(:focus){border-color:#9ca3af}
.form-control::placeholder{color:#94a3b8;font-weight:400}
select.form-control{
  cursor:pointer;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:left 12px center;background-size:16px;padding-left:36px
}
textarea.form-control{resize:vertical;min-height:90px}
.form-control-sm{padding:7px 11px;font-size:13px;border-radius:8px}
.form-hint{font-size:11.5px;color:#94a3b8;margin-top:5px;font-weight:500}
.form-hint--danger{color:var(--danger-600)}
.form-hint--success{color:var(--success-600)}
.input-wrapper{position:relative}
.input-icon{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:16px;pointer-events:none}
.input-wrapper .form-control{padding-right:38px}
.form-checkbox{display:flex;align-items:center;gap:var(--space-2);cursor:pointer}
.form-checkbox input[type="checkbox"]{width:18px;height:18px;accent-color:var(--brand)}
.form-help{font-size:11.5px;color:#94a3b8;margin-top:5px}
.form-actions{display:flex;gap:var(--space-3);justify-content:flex-end;flex-wrap:wrap;padding-top:var(--space-4);border-top:1px solid #f1f5f9;margin-top:var(--space-4)}
.form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}
.form-select-official,.filter-select-official{
  display:block;width:100%;padding:8px 12px;
  font-family:var(--font);font-size:13.5px;color:#374151;
  border:1.5px solid #e2e8f0;border-radius:9px;background:#fff;
  font-weight:500;transition:all var(--transition);min-height:38px
}
.form-select-official:focus,.filter-select-official:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(15,118,110,.1)}
.search-input-official{
  display:block;width:100%;padding:8px 12px;
  font-family:var(--font);font-size:13.5px;color:#374151;
  border:1.5px solid #e2e8f0;border-radius:9px;transition:all var(--transition)
}
.search-input-official:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(15,118,110,.1)}

/* ── BADGES ──────────────────────────────────────────────────── */
.badge{
  display:inline-flex;align-items:center;gap:4px;
  padding:4px 10px;border-radius:var(--badge-radius);
  font-size:11.5px;font-weight:700;white-space:nowrap
}
.badge-teal,.badge-primary  {background:var(--brand-bg2);color:var(--brand-dark)}
.badge-green,.badge-success  {background:var(--success-100);color:var(--success-800)}
.badge-blue,.badge-info      {background:var(--info-100);color:var(--info-800)}
.badge-amber,.badge-warning  {background:var(--warning-100);color:var(--warning-800)}
.badge-red,.badge-danger     {background:var(--danger-100);color:var(--danger-800)}
.badge-gray,.badge-secondary {background:#f3f4f6;color:#374151}
.badge-purple                {background:#ede9fe;color:#5b21b6}

.status-badge{
  padding:4px 12px;border-radius:20px;font-weight:700;font-size:12px;
  display:inline-flex;align-items:center;gap:5px
}
.status-badge::before{content:'●';font-size:8px}
.status-badge.new,.status-badge.pending      {background:var(--info-50);color:var(--info-700)}
.status-badge.assigned,.status-badge.in_progress{background:var(--warning-50);color:var(--warning-700)}
.status-badge.completed,.status-badge.received{background:var(--success-50);color:var(--success-700)}
.status-badge.cancelled,.status-badge.rejected{background:var(--danger-50);color:var(--danger-700)}
.status-badge.postponed{background:#f5f3ff;color:#5b21b6}
.status-badge.warehouse{background:var(--info-50);color:var(--info-700)}

/* ── FILTERS ─────────────────────────────────────────────────── */
.filters-bar{
  background:#fff;border:1px solid #e8edf3;border-radius:var(--card-radius);
  padding:16px 20px;margin-bottom:20px;box-shadow:var(--shadow-card);
  display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap
}
.filter-group{display:flex;flex-direction:column;gap:5px;flex:1;min-width:160px}
.filter-label{font-size:11.5px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.04em}
.filter-input,.filter-select{
  padding:8px 12px;border:1.5px solid #e2e8f0;border-radius:9px;
  font-family:var(--font);font-size:13.5px;color:#374151;
  background:#fff;font-weight:500;transition:all var(--transition);min-height:38px
}
.filter-input:focus,.filter-select:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(15,118,110,.1)}
.filter-actions{display:flex;gap:8px;align-items:flex-end;flex-shrink:0}
.filter-section{background:#fff;border:1px solid #e8edf3;border-radius:12px;padding:14px 18px;margin-bottom:14px;box-shadow:var(--shadow-card)}
.filter-row{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}
.filter-tabs{display:flex;gap:4px;background:#f1f5f9;padding:4px;border-radius:12px;flex-wrap:wrap}
.filter-tab{
  padding:8px 16px;border:none;border-radius:9px;
  font-family:var(--font);font-size:13px;font-weight:700;
  cursor:pointer;transition:all var(--transition);
  background:transparent;color:#64748b;white-space:nowrap
}
.filter-tab:hover{background:rgba(255,255,255,.7);color:#374151}
.filter-tab.active{background:#fff;color:var(--brand);box-shadow:0 2px 8px rgba(0,0,0,.1)}
.sub-tabs{display:flex;gap:4px;background:#f1f5f9;padding:4px;border-radius:12px;margin-bottom:16px;flex-wrap:wrap}
.sub-tab{flex:1;padding:8px 12px;border:none;border-radius:9px;background:transparent;color:#64748b;font-size:12.5px;font-weight:700;cursor:pointer;transition:all var(--transition);font-family:var(--font);white-space:nowrap}
.sub-tab.active{background:#fff;color:var(--brand);box-shadow:0 2px 6px rgba(0,0,0,.08)}
.sub-tab:hover:not(.active){background:rgba(255,255,255,.5)}

/* ── MODALS ──────────────────────────────────────────────────── */
.modal-backdrop,.modal-overlay,.cs-modal,.alert-modal,.ui-modal{
  position:fixed;inset:0;z-index:var(--z-modal);
  background:rgba(15,23,42,.65);backdrop-filter:blur(6px);
  display:none;align-items:center;justify-content:center;padding:20px
}
.modal-backdrop.open,.modal-overlay.open,.modal-overlay.active,
.cs-modal.open,.cs-modal.active,.alert-modal.open,.ui-modal.open,.ui-modal.active{display:flex}

.modal-content,.modal-dialog,.ui-modal-content{
  background:#fff;border-radius:18px;box-shadow:var(--shadow-modal);
  width:100%;max-width:580px;max-height:92vh;overflow-y:auto;
  animation:modalIn .28s cubic-bezier(.34,1.56,.64,1)
}
.modal-lg .modal-content,.modal-lg.modal-content{max-width:780px}
.modal-xl .modal-content,.modal-xl.modal-content{max-width:960px}

.modal-header,.ui-modal-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:20px 24px;border-bottom:1px solid #f1f5f9;
  position:sticky;top:0;background:#fff;z-index:1;
  border-radius:18px 18px 0 0
}
.modal-title,.ui-modal-title{font-size:17px;font-weight:900;color:#0f172a;margin:0}
.modal-body,.ui-modal-body{padding:24px}
.modal-footer,.ui-modal-footer{
  display:flex;gap:10px;justify-content:flex-end;
  padding:16px 24px;border-top:1px solid #f1f5f9;
  background:#fafbfc;border-radius:0 0 18px 18px
}
.modal-header--green{background:linear-gradient(135deg,var(--success-50),var(--success-100));border-color:var(--success-200)}
.modal-header--amber{background:linear-gradient(135deg,var(--warning-50),var(--warning-100));border-color:var(--warning-200)}
.modal-header--red  {background:linear-gradient(135deg,var(--danger-50),var(--danger-100));border-color:var(--danger-200)}
.modal-header--blue {background:linear-gradient(135deg,var(--info-50),var(--info-100));border-color:var(--info-200)}
.modal-header--teal {background:linear-gradient(135deg,var(--brand-bg),var(--brand-bg2));border-color:rgba(20,184,166,.3)}
.modal-empty{text-align:center;padding:48px 24px;color:#94a3b8}
.modal-empty .empty-icon{font-size:40px;opacity:.7;margin-bottom:12px}
.modal-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;padding-top:var(--space-4);border-top:1px solid #f1f5f9;margin-top:var(--space-4)}
.modal-btn{padding:var(--space-2) var(--space-5);border-radius:var(--radius-md);font-weight:700;cursor:pointer;font-family:var(--font);font-size:var(--text-base);border:none;transition:all var(--transition)}

/* ── ALERTS ──────────────────────────────────────────────────── */
.alert{
  display:flex;align-items:flex-start;gap:12px;
  padding:14px 18px;border-radius:12px;
  font-size:13.5px;font-weight:600;margin-bottom:16px;border:1.5px solid transparent
}
.alert-text{flex:1;line-height:1.6}
.alert-success{background:var(--success-50);border-color:var(--success-200);color:var(--success-800)}
.alert-warning {background:var(--warning-50);border-color:var(--warning-200);color:var(--warning-800)}
.alert-danger,.alert-error{background:var(--danger-50);border-color:var(--danger-200);color:var(--danger-800)}
.alert-info    {background:var(--info-50);border-color:var(--info-200);color:var(--info-800)}
.alert-teal    {background:var(--brand-bg);border-color:rgba(20,184,166,.4);color:var(--brand-dark)}

/* ── EMPTY STATES ────────────────────────────────────────────── */
.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;text-align:center;color:#94a3b8}
.empty-icon,.empty-state-icon{font-size:48px;opacity:.6;margin-bottom:16px}
.empty-title{font-size:16px;font-weight:800;color:#475569;margin:0 0 8px}
.empty-text {font-size:13.5px;color:#94a3b8;margin:0;max-width:320px;line-height:1.6}

/* ── MOBILE CARDS ────────────────────────────────────────────── */
.mobile-card{background:#fff;border:1px solid #e8edf3;border-radius:var(--card-radius);padding:16px;margin-bottom:12px;box-shadow:var(--shadow-card);transition:all var(--transition)}
.mobile-card:hover{box-shadow:var(--shadow-hover);transform:translateY(-2px)}
.mobile-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #f1f5f9}
.mobile-card-body{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.mobile-card-actions{display:flex;gap:8px;flex-wrap:wrap}
.mobile-cards-list{display:none}
.card-label{font-size:11px;color:#94a3b8;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.card-value{font-size:13.5px;color:#1e293b;font-weight:600}
.card-info-row{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #f7f8fa;font-size:13px}
.card-info-row:last-child{border-bottom:none}
.card-icon{width:46px;height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:22px}
.card-id{font-size:12px;color:#94a3b8;font-weight:700;direction:ltr}

/* ── ENTITY / TASK CARDS ─────────────────────────────────────── */
.entity-card,.detail-card,.donation-card,.cc-card,.whatsapp-card{
  background:#fff;border:1px solid #e8edf3;border-radius:var(--card-radius);
  padding:18px;box-shadow:var(--shadow-card);transition:all var(--transition)
}
.entity-card:hover,.detail-card:hover{box-shadow:var(--shadow-hover)}
.task-card{background:#fff;border-radius:var(--card-radius);padding:18px;margin-bottom:14px;box-shadow:var(--shadow-card);border:1px solid #e8edf3;transition:all var(--transition)}
.task-header{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #f1f5f9}
.task-avatar{width:44px;height:44px;background:linear-gradient(135deg,var(--brand),var(--brand-dark));border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:16px;flex-shrink:0}
.task-actions{display:grid;gap:8px}
.action-btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:11px;border:none;font-size:14px;font-weight:700;cursor:pointer;transition:all var(--transition);font-family:var(--font);width:100%}

/* ── QUANTITIES ──────────────────────────────────────────────── */
.quantities{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.quantity-box{padding:12px;border-radius:10px;text-align:center}
.cartons{background:linear-gradient(135deg,var(--info-50),var(--info-100));border:1.5px solid var(--info-500)}
.bags{background:linear-gradient(135deg,var(--success-50),var(--success-100));border:1.5px solid var(--success-500)}
.quantity-icon{font-size:20px;display:block;margin-bottom:4px}
.quantity-label{font-size:11px;color:#64748b;font-weight:700;display:block}
.quantity-number{font-size:22px;font-weight:900;color:#0f172a;display:block}

/* ── INFO / DETAIL ────────────────────────────────────────────── */
.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.info-item{display:flex;flex-direction:column;gap:3px}
.info-label,.detail-label{font-size:11.5px;color:#94a3b8;font-weight:700}
.info-value,.detail-value{font-size:13.5px;color:#1e293b;font-weight:600}
.detail-row{display:flex;align-items:center;gap:10px;padding:10px;background:#f8fafc;border-radius:9px;margin-bottom:8px}
.detail-content{flex:1}
.detail-icon{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}

/* ── DONATIONS PAGE HEADER ───────────────────────────────────── */
.donations-page{max-width:1400px}
.donations-header{
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  border-radius:var(--card-radius);padding:22px 24px;margin-bottom:20px;color:#fff;
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px
}
.donations-title{font-size:20px;font-weight:900;margin:0;color:#fff}
.donations-count{font-size:13px;margin:4px 0 0;opacity:.85}
.donations-header-actions{display:flex;gap:8px;flex-wrap:wrap}

/* ── GRID / LAYOUT UTILS ─────────────────────────────────────── */
.grid{display:grid;gap:var(--space-4)}
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid-auto  {grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.flex{display:flex} .flex-col{flex-direction:column}
.flex-wrap{flex-wrap:wrap} .flex-nowrap{flex-wrap:nowrap} .flex-1{flex:1}
.flex-shrink-0{flex-shrink:0}
.items-center{align-items:center} .items-start{align-items:flex-start} .items-end{align-items:flex-end}
.justify-between{justify-content:space-between} .justify-center{justify-content:center}
.justify-end{justify-content:flex-end} .justify-start{justify-content:flex-start}
.gap-1{gap:4px} .gap-2{gap:8px} .gap-3{gap:12px} .gap-4{gap:16px} .gap-5{gap:20px} .gap-6{gap:24px}
.space-y-2>*+*{margin-top:8px} .space-y-4>*+*{margin-top:16px}

/* Spacing */
.m-0{margin:0} .mt-1{margin-top:4px} .mt-2{margin-top:8px} .mt-3{margin-top:12px} .mt-4{margin-top:16px} .mt-6{margin-top:24px}
.mb-1{margin-bottom:4px} .mb-2{margin-bottom:8px} .mb-3{margin-bottom:12px} .mb-4{margin-bottom:16px} .mb-6{margin-bottom:24px}
.mr-1{margin-right:4px} .mr-2{margin-right:8px} .mr-3{margin-right:12px}
.px-2{padding-left:8px;padding-right:8px} .px-4{padding-left:16px;padding-right:16px}
.py-2{padding-top:8px;padding-bottom:8px} .py-4{padding-top:16px;padding-bottom:16px}

/* Typography */
.fw-500{font-weight:500} .fw-600{font-weight:600} .fw-700{font-weight:700} .fw-800{font-weight:800} .fw-900{font-weight:900}
.font-medium{font-weight:500} .font-semibold{font-weight:600} .font-bold{font-weight:700}
.text-xs{font-size:11.5px} .text-sm{font-size:13px} .text-base{font-size:14px}
.text-lg{font-size:16px} .text-xl{font-size:18px} .text-2xl{font-size:22px}
.text-muted{color:#94a3b8} .text-secondary{color:#64748b} .text-dark{color:#0f172a}
.text-success{color:var(--success-600)} .text-danger{color:var(--danger-600)}
.text-warning{color:var(--warning-600)} .text-brand{color:var(--brand)}
.text-center{text-align:center} .text-left{text-align:left} .text-right{text-align:right}
.truncate,.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Display */
.d-none{display:none!important} .d-block{display:block} .d-flex{display:flex} .d-grid{display:grid} .d-inline-flex{display:inline-flex}
.w-full{width:100%} .h-full{height:100%} .min-w-0{min-width:0}
.overflow-auto{overflow:auto} .overflow-hidden{overflow:hidden} .overflow-x-auto{overflow-x:auto}
.cursor-pointer{cursor:pointer} .select-none{user-select:none}
.rounded-full{border-radius:50%} .rounded{border-radius:var(--radius-md)} .rounded-lg{border-radius:var(--radius-lg)}
.border{border:1px solid var(--border-color)} .border-b{border-bottom:1px solid var(--border-color)} .border-t{border-top:1px solid var(--border-color)}
.bg-white{background:#fff} .bg-gray-50{background:var(--gray-50)}
.ltr{direction:ltr} .rtl{direction:rtl}
.divider{border:none;border-top:1px solid #f1f5f9;margin:16px 0}
.shadow-sm{box-shadow:var(--shadow-card)} .shadow{box-shadow:var(--shadow-hover)}
.no-print{} /* handled by print media query */

/* ── MISC ────────────────────────────────────────────────────── */
.spinner{width:20px;height:20px;border:2.5px solid #e2e8f0;border-top-color:var(--brand);border-radius:50%;animation:spin .7s linear infinite;display:inline-block}
.spinner-lg{width:36px;height:36px;border-width:3.5px}
.progress{height:6px;background:#e2e8f0;border-radius:99px;overflow:hidden}
.progress-bar{height:100%;background:linear-gradient(90deg,var(--brand),var(--brand-light));border-radius:99px;transition:width .5s ease}
.profile-card{background:linear-gradient(135deg,var(--brand) 0%,var(--brand-dark) 100%);border-radius:16px;padding:28px;color:#fff;text-align:center;margin-bottom:20px}
.summary-card{background:linear-gradient(135deg,var(--brand),var(--brand-dark));border-radius:var(--card-radius);padding:20px;color:#fff}
.phone,.phone-ltr{direction:ltr;font-weight:700;color:#0f172a}
.supervisor-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:var(--radius-full);font-size:11px;font-weight:800;background:var(--info-100);color:var(--info-800)}
.alert-bar{display:flex;align-items:center;gap:12px;padding:14px 18px;border-radius:12px;font-weight:700;margin-bottom:16px}
.type-badge{padding:4px 10px;border-radius:8px;font-size:12.5px;font-weight:600}
.type-badge.clothes{background:linear-gradient(135deg,var(--info-100),var(--info-50));color:var(--info-800)}
.type-badge.other  {background:linear-gradient(135deg,var(--success-100),var(--success-50));color:var(--success-800)}
.qty-badge{font-weight:800;margin-right:4px}
.image-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:6px;font-size:11px;font-weight:700;background:var(--info-100);color:var(--info-800)}
.image-item{border-radius:8px;overflow:hidden;cursor:pointer}
.images-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px}
.detail-count-card{padding:var(--space-5);background:var(--surface);border-radius:var(--radius-lg);text-align:center}
.detail-count-card--blue {border:2px solid var(--info-500)}
.detail-count-card--green{border:2px solid var(--success-500)}
.donor-closure-card{background:var(--surface);border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow-lg)}
.donor-closure-card-body{padding:var(--space-6)}
.feature-card{background:#fff;border-radius:var(--card-radius);padding:20px;border:1px solid #e8edf3;box-shadow:var(--shadow-card)}
.compact-stats{display:flex;gap:16px;flex-wrap:wrap}
.meta-item{display:flex;gap:6px;align-items:center}
.meta-label{font-size:12px;color:#94a3b8;font-weight:600}
.meta-value{font-size:13px;color:#374151;font-weight:700}
.supervisor-note{background:var(--warning-50);border:1px solid var(--warning-200);border-radius:9px;padding:12px 16px;font-size:13px;color:var(--warning-800)}
.page-header-official{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.header-title{font-size:22px;font-weight:900;color:#0f172a;margin:0}
.official-icon{width:44px;height:44px;border-radius:11px;background:var(--brand-bg);border:1px solid rgba(20,184,166,.2);display:flex;align-items:center;justify-content:center;font-size:22px}
.audit-badges{display:flex;gap:6px;flex-wrap:wrap}
.audit-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.audit-control-checkbox{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#374151;cursor:pointer}
.audit-details-row{background:#f8fafc;border-radius:9px;padding:12px 16px;margin-bottom:8px}
.audit-details-key{font-size:12px;color:#94a3b8;font-weight:700}
.audit-details-val{font-size:13.5px;color:#1e293b;font-weight:600}
.col-id{width:60px} .col-donor{min-width:140px} .col-driver{min-width:120px}
.col-date{width:140px} .col-assignment{min-width:140px} .col-actions{width:160px}
.assign-driver,.assign-warehouse{display:flex;gap:6px;align-items:center}
.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.stats-cards-official{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.edit-layout{display:grid;gap:24px}
.action-btns{display:flex;gap:8px;flex-wrap:wrap}
.veh-modal-body{padding:24px} .veh-modal-footer{display:flex;gap:10px;justify-content:flex-end;padding:16px 24px;border-top:1px solid #f1f5f9}
.catalog-modal-head{display:flex;justify-content:space-between;align-items:center;gap:var(--space-3)}
.catalog-modal-sub{color:var(--text-muted);font-size:var(--text-sm);margin-top:var(--space-2)}
.invoice-modal-content{background:#fff;border-radius:var(--radius-xl);max-width:700px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:var(--shadow-modal)}
.sidebar-nav-section{padding:10px 20px 4px;font-size:10px;font-weight:700;letter-spacing:.08em;color:var(--sidebar-section-text);text-transform:uppercase}
.table-header-official{background:linear-gradient(135deg,var(--brand-darker),var(--brand-dark))!important}
.table-header-official th{color:#fff!important}
.col-num{font-size:11.5px;color:#94a3b8;font-weight:700;direction:ltr}

.site-footer{padding:var(--space-5) var(--space-6);background:#0f172a;color:#fff;margin-right:var(--sidebar-w)}
@media(max-width:1024px){.site-footer{margin-right:0}}
.footer-content{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:var(--space-4)}
.footer-copyright{font-size:var(--text-sm);color:rgba(255,255,255,.7)}
.footer-version{font-size:var(--text-xs);color:rgba(255,255,255,.4)}

/* Legacy wrappers — neutral */
.ui-v1,.ui-container,.ui-page,.ui-section,.ui-page-card,.dashboard-container,
.page-admin-dashboard,.cc-admin-scope,.cc-layout,.cc-exec-grid{display:block}
.table-container{overflow-x:auto;border-radius:var(--card-radius)}
.section-hdr{font-size:15px;font-weight:800;color:#0f172a;margin:0 0 14px}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes spin    {to{transform:rotate(360deg)}}
@keyframes pulse   {0%,100%{opacity:1}50%{opacity:.5}}
@keyframes modalIn {from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes fadeInUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes slideDown{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}

.fade-in,.animate-in{animation:fadeInUp .3s ease both}
.slide-down{animation:slideDown .25s ease both}
.stats-grid>.stat-card:nth-child(1){animation:fadeInUp .3s .05s ease both}
.stats-grid>.stat-card:nth-child(2){animation:fadeInUp .3s .10s ease both}
.stats-grid>.stat-card:nth-child(3){animation:fadeInUp .3s .15s ease both}
.stats-grid>.stat-card:nth-child(4){animation:fadeInUp .3s .20s ease both}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width:1024px){
  .sidebar{transform:translateX(100%)}
  .sidebar.open{transform:translateX(0)}
  .topbar{right:0}
  .main-wrapper{margin-right:0;margin-top:56px}
  .mobile-header{display:flex}
}
@media (max-width:768px){
  .page-container,.main-content{padding:12px}
  .stats-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .filters-bar{padding:12px;gap:8px}
  .page-header{flex-direction:column;align-items:flex-start}
  .mobile-cards-list{display:block}
  .desktop-table{display:none!important}
  .modal-content{border-radius:14px 14px 0 0;max-height:95dvh}
  .grid-cols-3{grid-template-columns:1fr 1fr}
  .grid-cols-4{grid-template-columns:1fr 1fr}
  .donations-header{padding:16px}
}
@media (max-width:480px){
  .stats-grid{grid-template-columns:1fr 1fr}
  .grid-cols-2{grid-template-columns:1fr}
}

/* ── SCROLLBARS ──────────────────────────────────────────────── */
*{scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}
*::-webkit-scrollbar{width:5px;height:5px}
*::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}
*::-webkit-scrollbar-thumb:hover{background:#94a3b8}

/* ── PRINT ───────────────────────────────────────────────────── */
@media print{
  .sidebar,.topbar,.mobile-header,.no-print{display:none!important}
  .main-wrapper{margin:0!important;padding:0!important}
  body{background:#fff}
  .page-container,.main-content{padding:0!important}
}

/* ── DONATIONS PAGE — global additions ───────────────────────── */
.donation-row { transition: background 0.15s ease; }

/* modal-lg override */
.modal-lg { max-width: 780px !important; }

/* don-kpi color modifiers — referenced in JS/HTML */
.don-kpi--all.active      { border-color: #0f766e; background: #f0fdfa; }
.don-kpi--new.active      { border-color: #2563eb; background: #eff6ff; }
.don-kpi--assigned.active { border-color: #d97706; background: #fffbeb; }
.don-kpi--completed.active{ border-color: #059669; background: #ecfdf5; }
.don-kpi--postponed.active{ border-color: #7c3aed; background: #f5f3ff; }
.don-kpi--cancelled.active{ border-color: #dc2626; background: #fef2f2; }


/* ════════════════════════════════════════════════════════════════
   DONATIONS PAGE — Component Classes (globally available)
   ════════════════════════════════════════════════════════════════ */

.don-kpi:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,.1)}
.don-kpi--all.active      {border-color:#0f766e;background:#f0fdfa}  .don-kpi--all      .don-kpi-num{color:#0f766e}
.don-kpi--new.active      {border-color:#2563eb;background:#eff6ff}  .don-kpi--new      .don-kpi-num{color:#1d4ed8}
.don-kpi--assigned.active {border-color:#d97706;background:#fffbeb}  .don-kpi--assigned .don-kpi-num{color:#d97706}
.don-kpi--completed.active{border-color:#059669;background:#ecfdf5}  .don-kpi--completed .don-kpi-num{color:#059669}
.don-kpi--postponed.active{border-color:#7c3aed;background:#f5f3ff}  .don-kpi--postponed .don-kpi-num{color:#7c3aed}
.don-kpi--cancelled.active{border-color:#dc2626;background:#fef2f2}  .don-kpi--cancelled .don-kpi-num{color:#dc2626}

/* Filters */
.don-filters{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  background:#fff;border:1px solid #e8edf3;border-radius:12px;
  padding:14px 18px;margin-bottom:16px;
  box-shadow:0 1px 4px rgba(0,0,0,.04)
}
.don-filter-search{position:relative;flex:1;min-width:220px}
.don-search-icon{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#94a3b8}
.don-search-input{
  width:100%;padding:9px 38px 9px 12px;
  border:1.5px solid #e2e8f0;border-radius:9px;
  font-family:'Tajawal',sans-serif;font-size:13.5px;color:#374151;
  background:#fff;font-weight:500;transition:all 220ms ease
}
.don-search-input:focus{outline:none;border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.1)}
.don-filter-select{
  padding:9px 12px;border:1.5px solid #e2e8f0;border-radius:9px;
  font-family:'Tajawal',sans-serif;font-size:13.5px;color:#374151;
  background:#fff;font-weight:500;min-width:160px;transition:all 220ms ease
}
.don-filter-select:focus{outline:none;border-color:#0f766e}
.don-result-badge{
  font-size:12.5px;font-weight:700;color:#64748b;
  background:#f1f5f9;padding:7px 14px;border-radius:8px;white-space:nowrap
}
.don-result-badge span{font-size:16px;font-weight:900;color:#0f766e}

/* Table */
.don-table-wrap{
  background:#fff;border-radius:14px;border:1px solid #e8edf3;
  overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.04),0 4px 16px rgba(0,0,0,.06);
  margin-bottom:16px;overflow-x:auto;
}
.don-table thead th{
  padding:13px 14px;text-align:right;font-weight:800;
  color:#fff;font-size:12px;letter-spacing:.03em;border:none;white-space:nowrap
}
.don-table tbody td{padding:13px 14px;border-bottom:1px solid #f1f5f9;vertical-align:middle}
.don-table tbody tr:last-child td{border-bottom:none}
.don-table tbody tr:hover td{background:#f8fbfa}

/* Cell pieces */
.don-id{font-size:12px;font-weight:800;color:#94a3b8;direction:ltr;display:inline-block}
.don-loc-city{font-size:13px;font-weight:700;color:#374151}
.don-completed-at{font-size:10.5px;color:#94a3b8;margin-top:2px}
.don-date{font-size:12.5px;font-weight:700;color:#374151}
.don-time{font-size:11px;color:#94a3b8;margin-top:1px}
.don-actions{display:flex;gap:5px;flex-wrap:nowrap;align-items:center}


/* Mobile cards */
.don-mobile-card{
  background:#fff;border:1px solid #e8edf3;border-radius:14px;
  padding:16px;margin-bottom:12px;
  box-shadow:0 1px 4px rgba(0,0,0,.04),0 4px 16px rgba(0,0,0,.06);
  transition:all 220ms ease
}
.don-mobile-card:hover{box-shadow:0 6px 20px rgba(0,0,0,.1)}
.don-mc-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #f1f5f9}
.don-mc-donor{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.don-mc-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.don-mc-field{display:flex;flex-direction:column;gap:3px}
.don-mc-actions{display:flex;gap:7px;flex-wrap:wrap}

/* Details modal content */
.detail-section{background:#f8fafc;border-radius:10px;padding:16px;margin-bottom:14px;border:1px solid #f1f5f9}
.detail-section h4{font-size:14px;font-weight:800;color:#0f172a;margin:0 0 12px;display:flex;align-items:center;gap:6px}
.detail-section .detail-row{display:flex;align-items:flex-start;gap:10px;padding:8px 0;border-bottom:1px solid #f1f5f9;font-size:13.5px}
.detail-section .detail-row:last-child{border-bottom:none}
.detail-section .detail-label{font-size:12px;font-weight:700;color:#94a3b8;width:100px;flex-shrink:0}
.detail-section .detail-value{font-size:13.5px;font-weight:600;color:#1e293b;flex:1}
.hint{padding:10px 14px;border-radius:8px;font-size:13px;margin-top:10px;font-weight:600}
.hint--white  {background:#fff;border:1px solid #e2e8f0}
.hint--warning{background:#fffbeb;border:1px solid #fde68a;color:#92400e}
.hint--info   {background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af}
.map-btn{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;background:linear-gradient(135deg,#dc2626,#b91c1c);color:#fff;border-radius:10px;font-weight:700;font-size:13.5px;text-decoration:none;margin-top:12px;transition:all 220ms ease}
.map-btn:hover{transform:translateY(-1px);color:#fff}
.mt-3{margin-top:12px}

/* Responsive */
@media (max-width:1100px){
  .don-kpi-strip{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:768px){
  .don-kpi-strip{grid-template-columns:repeat(3,1fr);gap:8px}
  .don-kpi-num{font-size:22px}
  .don-hero{padding:16px 18px}
  .don-hero-title{font-size:17px}
}
@media (max-width:480px){
  .don-kpi-strip{grid-template-columns:repeat(2,1fr)}
}
/* ════ END DONATIONS COMPONENTS ════ */


/* ════════════════════════════════════════════════════════════════
   DASHBOARD PAGE — Component Classes (globally available)
   ════════════════════════════════════════════════════════════════ */
/* Hero */
.dash-hero {
  background: linear-gradient(135deg, #0f766e 0%, #0c5f58 60%, #094e47 100%);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 24px rgba(15,118,110,0.3);
}
.dash-hero-content { display:flex; align-items:center; gap:16px; }
.dash-hero-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}
.dash-hero-title { font-size:22px; font-weight:900; color:#fff; margin:0 0 4px; }
.dash-hero-sub   { font-size:13px; color:rgba(255,255,255,0.75); margin:0; }
.dash-hero-actions { display:flex; gap:10px; flex-wrap:wrap; }

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #e8edf3;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
  transition: all 220ms cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.kpi-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.kpi-card::before {
  content:''; position:absolute;
  top:0; right:0; width:4px; height:100%;
  border-radius: 0 14px 14px 0;
}
.kpi-amber::before { background: #f59e0b; }
.kpi-blue::before  { background: #3b82f6; }
.kpi-green::before { background: #10b981; }
.kpi-teal::before  { background: #0f766e; }

.kpi-body { display:flex; align-items:flex-start; gap:14px; }
.kpi-icon {
  font-size: 26px;
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items:center; justify-content:center;
  flex-shrink: 0;
}
.kpi-amber .kpi-icon { background: #fffbeb; }
.kpi-blue  .kpi-icon { background: #eff6ff; }
.kpi-green .kpi-icon { background: #ecfdf5; }
.kpi-teal  .kpi-icon { background: #f0fdfa; }

.kpi-value { font-size:32px; font-weight:900; color:#0f172a; line-height:1; margin-bottom:4px; }
.kpi-label { font-size:13px; font-weight:700; color:#374151; }
.kpi-sub   { font-size:11.5px; color:#94a3b8; margin-top:2px; }
.kpi-arrow { margin-right:auto; font-size:16px; color:#94a3b8; align-self:center; }

.kpi-rate { }
.kpi-rate-bar { height:4px; background:#e2e8f0; border-radius:99px; overflow:hidden; margin-bottom:5px; }
.kpi-rate-bar > div { height:100%; background:linear-gradient(90deg,#0f766e,#14b8a6); border-radius:99px; transition:width 0.8s ease; }
.kpi-rate-label { font-size:11px; color:#64748b; font-weight:600; }

/* Two-col layout */
.dash-grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.dash-card-tall { height: 100%; }

/* Table donor cell */
.donor-cell { display:flex; align-items:center; gap:10px; }
.donor-avatar {
  width:32px; height:32px;
  background: linear-gradient(135deg,#ccfbf1,#14b8a6);
  border-radius: 9px;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:13px; color:#0f766e;
  flex-shrink:0;
}

/* Fleet */
.fleet-stats { display:flex; align-items:center; justify-content:center; gap:0; margin-bottom:16px; }
.fleet-stat  { flex:1; text-align:center; padding:12px 0; }
.fleet-num   { font-size:28px; font-weight:900; color:#0f172a; }
.fleet-lbl   { font-size:12px; color:#64748b; font-weight:600; margin-top:2px; }
.fleet-green { color:#059669; }
.fleet-amber { color:#d97706; }
.fleet-divider { width:1px; height:40px; background:#f1f5f9; }
.fleet-bar-wrap { margin-bottom:16px; }
.fleet-bar-track { height:8px; background:#e2e8f0; border-radius:99px; overflow:hidden; margin-bottom:6px; }
.fleet-bar-fill { height:100%; background:linear-gradient(90deg,#0f766e,#14b8a6); border-radius:99px; transition:width 0.8s ease; }
.fleet-bar-label { font-size:12px; color:#64748b; font-weight:600; }
.chart-wrap { height:180px; position:relative; }

/* CS Summary */
.cs-kpi-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:20px; }
.cs-kpi {
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.cs-kpi-green { background:#ecfdf5; border:1.5px solid #a7f3d0; }
.cs-kpi-amber { background:#fffbeb; border:1.5px solid #fde68a; }
.cs-kpi-red   { background:#fef2f2; border:1.5px solid #fecaca; }
.cs-kpi-val   { font-size:32px; font-weight:900; color:#0f172a; }
.cs-kpi-lbl   { font-size:12px; font-weight:700; color:#64748b; margin-top:4px; }

.cs-orders-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.cs-order-group { background:#fafbfc; border-radius:12px; padding:16px; border:1px solid #f1f5f9; }
.cs-order-title { font-size:13px; font-weight:800; margin-bottom:12px; }
.cs-order-title--green { color:#059669; }
.cs-order-title--amber { color:#d97706; }
.cs-order-title--red   { color:#dc2626; }
.cs-order-tags { display:flex; flex-wrap:wrap; gap:6px; }
.order-tag {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px; font-weight: 700;
  text-decoration: none;
  transition: all 220ms ease;
}
.order-tag--green { background:#dcfce7; color:#166534; }
.order-tag--green:hover { background:#bbf7d0; }
.order-tag--amber { background:#fef9c3; color:#854d0e; }
.order-tag--amber:hover { background:#fef08a; }
.order-tag--red   { background:#fee2e2; color:#991b1b; }
.order-tag--red:hover { background:#fecaca; }
.order-tag--gray  { background:#f3f4f6; color:#6b7280; }

.p-0 { padding: 0 !important; }

/* Responsive */
@media (max-width: 1100px) {
  .kpi-grid    { grid-template-columns: repeat(2,1fr); }
  .dash-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpi-grid        { grid-template-columns: 1fr 1fr; }
  .cs-kpi-row      { grid-template-columns: repeat(3,1fr); }
  .cs-orders-grid  { grid-template-columns: 1fr; }
  .dash-hero       { padding: 20px; }
  .dash-hero-title { font-size: 18px; }
}
/* ════ END DASHBOARD COMPONENTS ════ */

/* ════════════════════════════════════════════════════════════════
   DONATIONS PAGE — Unified Component Styles
   All classes referenced in supervisor/donations.ejs
   ════════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.don-hero {
  background: linear-gradient(135deg, #0f766e 0%, #0c5f58 55%, #094e47 100%);
  border-radius: 14px;
  padding: 22px 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 24px rgba(15,118,110,.28);
}
.don-hero-left    { display:flex; align-items:center; gap:14px; }
.don-hero-icon    { width:48px;height:48px;background:rgba(255,255,255,.15);border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:24px;flex-shrink:0; }
.don-hero-title   { font-size:20px;font-weight:900;color:#fff;margin:0 0 4px; }
.don-hero-sub     { font-size:12.5px;color:rgba(255,255,255,.8);margin:0; }
.don-hero-actions { display:flex;gap:8px;flex-wrap:wrap; }

/* ── KPI Strip ── */
.don-kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.don-kpi {
  background: #fff;
  border: 2px solid #e8edf3;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 220ms cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: var(--font);
}
.don-kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.09); }
.don-kpi-num  { display:block; font-size:26px; font-weight:900; color:#0f172a; line-height:1; }
.don-kpi-lbl  { display:block; font-size:11.5px; font-weight:700; color:#64748b; white-space:nowrap; }

.don-kpi--all.active      { border-color:#0f766e; background:#f0fdfa; } .don-kpi--all.active      .don-kpi-num { color:#0f766e; }
.don-kpi--new.active      { border-color:#2563eb; background:#eff6ff; } .don-kpi--new.active      .don-kpi-num { color:#1d4ed8; }
.don-kpi--assigned.active { border-color:#d97706; background:#fffbeb; } .don-kpi--assigned.active .don-kpi-num { color:#d97706; }
.don-kpi--completed.active{ border-color:#059669; background:#ecfdf5; } .don-kpi--completed.active .don-kpi-num { color:#059669; }
.don-kpi--postponed.active{ border-color:#7c3aed; background:#f5f3ff; } .don-kpi--postponed.active .don-kpi-num { color:#7c3aed; }
.don-kpi--cancelled.active{ border-color:#dc2626; background:#fef2f2; } .don-kpi--cancelled.active .don-kpi-num { color:#dc2626; }

/* ── Filters Bar ── */
.don-filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.don-search-wrap  { position:relative; flex:1; min-width:220px; }
.don-search-ico   { position:absolute; right:12px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:#94a3b8; }
.don-search       { width:100%; padding:9px 38px 9px 12px; border:1.5px solid #e2e8f0; border-radius:9px; font-family:var(--font); font-size:13.5px; font-weight:500; color:#374151; transition:all 220ms ease; }
.don-search:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(15,118,110,.1); }
.don-select       { padding:9px 12px; border:1.5px solid #e2e8f0; border-radius:9px; font-family:var(--font); font-size:13.5px; font-weight:500; color:#374151; background:#fff; min-width:160px; transition:all 220ms ease; }
.don-select:focus { outline:none; border-color:var(--brand); }
.don-count-badge  { font-size:12.5px; font-weight:700; color:#64748b; background:#f1f5f9; padding:7px 14px; border-radius:8px; white-space:nowrap; }
.don-count-badge span { font-size:16px; font-weight:900; color:var(--brand); }
.don-date-filter-wrap { display:flex; align-items:center; gap:6px; flex-wrap:wrap; background:#f8fafc; border:1.5px solid #e2e8f0; border-radius:9px; padding:6px 12px; }
.don-date-label   { font-size:12.5px; font-weight:600; color:#475569; white-space:nowrap; }
.don-date-input   { padding:6px 10px; border:1.5px solid #e2e8f0; border-radius:7px; font-family:var(--font); font-size:13px; color:#374151; background:#fff; transition:all 220ms ease; }
.don-date-input:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 2px rgba(15,118,110,.1); }

/* ── Sub-tabs ── */
.don-sub-tabs   { display:flex; gap:5px; background:#f1f5f9; padding:4px; border-radius:11px; margin-bottom:14px; flex-wrap:wrap; }
.don-stab       { flex:1; padding:8px 14px; border:none; border-radius:8px; background:transparent; color:#64748b; font-size:12.5px; font-weight:700; cursor:pointer; transition:all 220ms ease; font-family:var(--font); white-space:nowrap; }
.don-stab:hover { background:rgba(255,255,255,.6); }
.don-stab.active{ background:#fff; color:var(--brand); box-shadow:0 2px 6px rgba(0,0,0,.08); }

/* ── Table ── */
.don-table-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8edf3;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06);
  margin-bottom: 16px;
  overflow-x: auto;
}
.don-table { width:100%; border-collapse:collapse; font-size:13.5px; }
.don-table thead { background:linear-gradient(135deg,#094e47,#0c5f58); }
.don-table thead th { padding:13px 14px; text-align:right; font-weight:800; color:#fff; font-size:12px; letter-spacing:.03em; border:none; white-space:nowrap; }
.don-table tbody td { padding:12px 14px; border-bottom:1px solid #f1f5f9; vertical-align:middle; }
.don-table tbody tr:last-child td { border-bottom:none; }
.don-table tbody tr:hover td { background:#f8fbfa; }

/* Column widths */
.th-id,.td-id         { width:60px; }
.th-status,.td-status { width:130px; }
.th-visit,.td-visit   { width:170px; }
.th-driver,.td-driver { width:120px; }
.th-wh,.td-wh         { width:110px; }
.th-date,.td-date     { width:120px; }
.th-actions,.td-actions{ width:190px; }

/* ── Cell pieces ── */
.don-id-badge         { font-size:12px; font-weight:800; color:#94a3b8; direction:ltr; display:inline-block; }
.don-donor-wrap       { display:flex; align-items:center; gap:10px; }
.don-avatar           { width:34px; height:34px; background:linear-gradient(135deg,#ccfbf1,#14b8a6); border-radius:9px; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; color:#0f766e; flex-shrink:0; }
.don-avatar-sm        { width:30px; height:30px; font-size:12px; }
.don-donor-info       { min-width:0; }
.don-donor-name       { font-size:13.5px; font-weight:700; color:#1e293b; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:140px; }
.don-donor-phone      { font-size:12px; color:#2563eb; font-weight:600; direction:ltr; display:block; text-decoration:none; }
.don-donor-phone:hover{ text-decoration:underline; }
.don-city             { font-size:13px; font-weight:700; color:#374151; }
.don-dist             { font-size:11.5px; color:#94a3b8; margin-top:1px; }
.don-driver-name      { font-size:13px; font-weight:600; color:#374151; }
.don-completed-time   { font-size:10.5px; color:#94a3b8; margin-top:3px; }
.don-date-main        { font-size:12.5px; font-weight:700; color:#374151; }
.don-date-sub         { font-size:11px; color:#94a3b8; margin-top:1px; }
.don-actions-row      { display:flex; gap:4px; align-items:center; flex-wrap:nowrap; }

/* Warehouse badges */
.wh-badge    { display:inline-flex; align-items:center; gap:4px; padding:3px 9px; border-radius:20px; font-size:11.5px; font-weight:700; white-space:nowrap; }
.wh-done     { background:#dcfce7; color:#166534; }
.wh-pending  { background:#fef9c3; color:#854d0e; }

/* ── Mobile cards ── */
.don-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.06);
  transition: box-shadow 220ms ease;
}
.don-card:hover          { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.don-card-head           { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid #f1f5f9; }
.don-card-date           { font-size:11.5px; color:#94a3b8; font-weight:600; }
.don-card-donor          { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.don-card-grid           { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
.don-card-field          { display:flex; flex-direction:column; gap:3px; }
.dcf-label               { font-size:11px; color:#94a3b8; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.dcf-val                 { font-size:13px; color:#1e293b; font-weight:600; }
.don-card-actions        { display:flex; gap:7px; flex-wrap:wrap; }

/* ── Details modal body ── */
.don-loading { display:flex; align-items:center; justify-content:center; gap:12px; padding:32px; color:#64748b; font-size:14px; }
.det-block {
  background: #f8fafc;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #f1f5f9;
}
.det-block--blue  { background:#eff6ff; border-color:#bfdbfe; }
.det-block--green { background:#ecfdf5; border-color:#a7f3d0; }
.det-block-title  { font-size:13.5px; font-weight:800; color:#0f172a; margin:0 0 12px; }
.det-row  { display:flex; align-items:flex-start; gap:10px; padding:7px 0; border-bottom:1px solid rgba(0,0,0,.05); }
.det-row:last-child { border-bottom:none; }
.det-lbl  { font-size:12px; font-weight:700; color:#94a3b8; width:100px; flex-shrink:0; padding-top:2px; }
.det-val  { font-size:13.5px; font-weight:600; color:#1e293b; flex:1; }
.det-hint { padding:10px 14px; border-radius:8px; font-size:13px; font-weight:600; margin-top:10px; background:#fff; border:1px solid #e2e8f0; color:#374151; white-space:pre-line; line-height:1.7; }
.det-hint--donor { background:#fff7db; border-color:#fcd34d; color:#92400e; box-shadow:inset 0 1px 0 rgba(255,255,255,.65); }
.det-hint--warn { background:#fffbeb; border-color:#fde68a; color:#92400e; }
.det-hint--info { background:#eff6ff; border-color:#bfdbfe; color:#1e40af; }
.det-hint--muted { background:#f8fafc; border-color:#e2e8f0; color:#64748b; }
.det-map-btn { display:inline-flex; align-items:center; gap:6px; padding:10px 18px; background:linear-gradient(135deg,#dc2626,#b91c1c); color:#fff; border-radius:10px; font-weight:700; font-size:13.5px; text-decoration:none; margin-top:12px; transition:all 220ms ease; }
.det-map-btn:hover { transform:translateY(-1px); color:#fff; box-shadow:0 4px 12px rgba(220,38,38,.3); }
.det-images { display:grid; grid-template-columns:repeat(auto-fill,minmax(90px,1fr)); gap:8px; margin-top:8px; }
.det-img-wrap { cursor:pointer; border-radius:9px; overflow:hidden; border:2px solid #e2e8f0; transition:border-color 220ms ease; }
.det-img-wrap:hover { border-color:var(--brand); }
.det-img-wrap img { width:100%; height:75px; object-fit:cover; display:block; }

/* ── Empty state (in-table) ── */
.don-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:48px 24px; text-align:center; }
.don-empty-icon  { font-size:40px; opacity:.6; margin-bottom:12px; }
.don-empty-title { font-size:16px; font-weight:800; color:#475569; margin:0 0 6px; }
.don-empty-sub   { font-size:13px; color:#94a3b8; margin:0; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .don-kpi-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .don-kpi-strip  { grid-template-columns: repeat(3, 1fr); gap:8px; }
  .don-kpi-num    { font-size:22px; }
  .don-hero       { padding:16px 18px; }
  .don-hero-title { font-size:17px; }
  .don-filters-bar{ flex-direction:column; align-items:stretch; }
  .don-search-wrap{ min-width:auto; }
}
@media (max-width: 480px) {
  .don-kpi-strip { grid-template-columns: repeat(2, 1fr); }
}
/* ════ END DONATIONS COMPONENTS ════ */


/* ══════════════════════════════════════════════════════════════
   DESIGN SYSTEM — ADDITIONS & FIXES v13.0
   Added: nav-groups, modals-legacy, veh-tabs, audit, profile,
          alert-bar, progress, delegation, mobile entity cards
   ══════════════════════════════════════════════════════════════ */

/* ── NAV GROUPS (Sidebar) ─────────────────────────────────── */
.nav-group { padding: 2px 0; }
.nav-group-label {
  display: block;
  padding: 10px 20px 4px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--sidebar-section-text);
}
.logout-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 9px;
  color: #f87171; font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid rgba(248,113,113,.15);
  background: rgba(248,113,113,.05); width: 100%;
  transition: all var(--transition); font-family: var(--font);
}
.logout-btn:hover { background: rgba(248,113,113,.12); color: #ff6b6b; }
.nav-link-external { font-size: 11px; color: var(--sidebar-text); margin-right: auto; }

/* ── ALERT BAR ────────────────────────────────────────────── */
.alert-bar {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px; border-radius: 12px;
  font-weight: 600; margin-bottom: 16px;
  background: #fff; border: 1.5px solid #e2e8f0;
  color: var(--text-primary);
}
.alert-bar.alert-success { background: var(--success-50); border-color: var(--success-200); color: var(--success-800); }
.alert-bar.alert-warning { background: var(--warning-50); border-color: var(--warning-200); color: var(--warning-800); }
.alert-bar.alert-info    { background: var(--info-50);    border-color: var(--info-200);    color: var(--info-800); }
.alert-bar.alert-danger  { background: var(--danger-50);  border-color: var(--danger-200);  color: var(--danger-800); }
.alert-bar > div { flex: 1; min-width: 0; }
.alert-title { font-size: 14px; font-weight: 800; margin: 0; line-height: 1.4; }
.alert-meta  { font-size: 12.5px; font-weight: 500; margin: 3px 0 0; opacity: .85; line-height: 1.5; }

/* ── VEHICLE TABS ─────────────────────────────────────────── */
.veh-tabs {
  display: flex; gap: 4px;
  background: #f1f5f9; padding: 4px;
  border-radius: 12px; margin-bottom: 20px;
}
.veh-tab-btn {
  flex: 1; padding: 9px 20px; border: none; border-radius: 9px;
  background: transparent; color: #64748b;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: all var(--transition); font-family: var(--font); white-space: nowrap;
}
.veh-tab-btn:hover { background: rgba(255,255,255,.7); color: #374151; }
.veh-tab-btn.active {
  background: #fff; color: var(--brand);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.veh-panel { display: none; }
.veh-panel.active { display: block; }

/* ── DELEGATION TABLE ─────────────────────────────────────── */
.delegation-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.delegation-table thead { background: linear-gradient(135deg, #094e47, #0c5f58); }
.delegation-table thead th {
  padding: 13px 14px; text-align: right;
  font-weight: 800; color: #fff; font-size: 12px;
  letter-spacing: .03em; border: none; white-space: nowrap;
}
.delegation-table tbody td {
  padding: 12px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle;
}
.delegation-table tbody tr:last-child td { border-bottom: none; }
.delegation-table tbody tr:hover td { background: #f8fbfa; }
.mini-input {
  padding: 7px 10px; border: 1.5px solid #e2e8f0;
  border-radius: 8px; font-family: var(--font);
  font-size: 13px; color: #374151; background: #fff;
  font-weight: 500; transition: all var(--transition);
  min-width: 150px; width: 100%;
}
.mini-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.1); }
.mini-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── AUDIT STYLES ─────────────────────────────────────────── */
.audit-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700;
  background: #f1f5f9; color: #64748b;
}
.audit-pill.ok   { background: #dcfce7; color: #166534; }
.audit-pill.info { background: #dbeafe; color: #1e40af; }
.audit-pill.warn { background: #fef9c3; color: #854d0e; }
.audit-muted { font-size: 12px; color: #94a3b8; font-weight: 500; line-height: 1.5; }
.audit-toolbar {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  padding: 14px 0; flex-wrap: wrap;
  border-bottom: 1px solid #f1f5f9; margin-bottom: 0;
}
.audit-toolbar .left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.audit-table thead { background: linear-gradient(to bottom, #f8fafc, #f1f5f9); }
.audit-table thead th {
  padding: 11px 14px; text-align: right;
  font-weight: 800; color: #374151;
  font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .04em; border-bottom: 2px solid #e2e8f0; white-space: nowrap;
}
.audit-table tbody td {
  padding: 11px 14px; border-bottom: 1px solid #f1f5f9;
  color: #374151; vertical-align: middle;
}
.audit-table tbody tr:last-child td { border-bottom: none; }
.audit-table tbody tr:hover td { background: #f8fbfa; }
.tbl-wrap {
  overflow-x: auto; border-radius: 10px;
  border: 1px solid #e8edf3; background: #fff;
  max-height: 420px; overflow-y: auto;
}

/* ── PROFILE ──────────────────────────────────────────────── */
.profile-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; align-items: start;
}
.profile-identity {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}
.profile-avatar {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  border-radius: 18px; display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 900;
  font-size: 28px; flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(15,118,110,.3);
}
.profile-name { font-size: 19px; font-weight: 900; color: #0f172a; margin: 0 0 4px; }
.profile-role-text { font-size: 13px; color: #64748b; font-weight: 600; margin: 0; }
.profile-details { display: flex; flex-direction: column; }
.form-input {
  display: block; width: 100%; padding: 10px 14px;
  font-size: 14px; font-family: var(--font); font-weight: 500;
  color: #1e293b; background: #fff;
  border: 1.5px solid #d1d5db; border-radius: var(--input-radius);
  transition: all var(--transition); line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.form-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.form-input:hover:not(:focus) { border-color: #9ca3af; }
.password-form-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 16px; margin-bottom: 20px;
}

/* ── PROGRESS (Reports) ───────────────────────────────────── */
.progress-container { display: flex; align-items: center; gap: 12px; }
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 99px; transition: width .5s ease;
}
.progress-text { font-size: 12.5px; font-weight: 700; color: #374151; white-space: nowrap; flex-shrink: 0; }

/* ── ENTITY CARDS (Mobile — unified) ─────────────────────── */
.mobile-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.mobile-card-body   { margin-bottom: 14px; }
.mobile-card-actions{ display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid #f1f5f9; }

/* ── ACTION BUTTONS ───────────────────────────────────────── */
.action-buttons { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.reason-hint { font-size: 11.5px; color: #94a3b8; margin-top: 5px; font-weight: 500; }

/* ── MISC HELPERS ─────────────────────────────────────────── */
.p-5 { padding: 20px; }
.flex-start { display: flex; align-items: flex-start; }
.g-2 { gap: 8px; }
.m-0 { margin: 0 !important; }
.c-green { color: var(--success-600); }
.fw-900  { font-weight: 900; }

/* ── RESPONSIVE ADDITIONS ─────────────────────────────────── */
@media (max-width: 1024px) {
  .profile-grid { grid-template-columns: 1fr; }
  .password-form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .profile-grid { grid-template-columns: 1fr; }
  .password-form-grid { grid-template-columns: 1fr; }
  .delegation-table thead { display: none; }
  .delegation-table tbody td { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; }
  .delegation-table tbody td::before { content: attr(data-label); font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
  .veh-tabs { flex-direction: column; }
  .mini-input { min-width: auto; }
}

/* ══ END ADDITIONS ══════════════════════════════════════════ */

/* profile-grid-cols — two col on desktop, one on mobile */
.profile-grid-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .profile-grid-cols { grid-template-columns: 1fr; } }

/* reports-grid + password-grid responsive */
.reports-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-bottom: 20px; }
.password-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 768px) {
  .reports-grid  { grid-template-columns: 1fr; }
  .password-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   CUSTOMER SERVICE — Component Classes v1.0
   ══════════════════════════════════════════════════════════════ */

/* ── Quick Link Cards (Dashboard) ──────────────────────────── */
.cs-quick-link {
  border-radius: 12px; padding: 16px;
  transition: all 220ms cubic-bezier(.4,0,.2,1);
  cursor: pointer; display: block;
}
.cs-quick-link:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.cs-quick-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 10px;
}
.cs-quick-title { font-size: 13.5px; font-weight: 800; color: #0f172a; margin-bottom: 3px; }
.cs-quick-sub   { font-size: 12px; color: #64748b; font-weight: 500; }

/* ── CS Dashboard Layout ────────────────────────────────────── */
.cs-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 768px) { .cs-dash-grid { grid-template-columns: 1fr; } }

/* ── CS Table ───────────────────────────────────────────────── */
.cs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cs-table thead { background: linear-gradient(135deg, #094e47, #0c5f58); }
.cs-table thead th {
  padding: 13px 14px; text-align: right;
  font-weight: 800; color: #fff; font-size: 12px;
  letter-spacing: .03em; border: none; white-space: nowrap;
}
.cs-table tbody td {
  padding: 12px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle;
}
.cs-table tbody tr:last-child td { border-bottom: none; }
.cs-table tbody tr:hover td { background: #f8fbfa; }

/* ── CS Section containers ──────────────────────────────────── */
.cs-section { min-height: 80px; }

/* ── Rating Items ───────────────────────────────────────────── */
.rating-item {
  background: #fff;
  border-radius: 14px; padding: 18px 20px;
  transition: all 220ms ease;
}
.rating-item:hover { transform: translateX(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }

/* ── Ratings Layout ─────────────────────────────────────────── */
.ratings-top-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 768px) { .ratings-top-grid { grid-template-columns: 1fr; } }

/* ═══ END CUSTOMER SERVICE COMPONENTS ══════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   WAREHOUSE / DRIVER — Component Classes v1.0
   ══════════════════════════════════════════════════════════════ */

/* ── Layout ────────────────────────────────────────────────── */
.wh-receive-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: start; }
@media (max-width: 768px) { .wh-receive-grid { grid-template-columns: 1fr; } }

/* ── Type rows (warehouse + driver types modal) ─────────────── */
.wh-type-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 12px;
  background: #f8fafc; border-radius: 9px; border: 1px solid #e8edf3;
}
.wh-type-name { font-size: 13.5px; font-weight: 700; color: #0f172a; flex: 1; }

/* ── Catalog dropdown items ─────────────────────────────────── */
.wh-catalog-item,
.types-catalog-item {
  padding: 9px 12px; cursor: pointer; border-radius: 7px;
  font-size: 13.5px; font-weight: 500; color: #374151;
  transition: background 150ms ease;
}
.wh-catalog-item:hover,
.types-catalog-item:hover { background: #f0fdf4; color: #047857; }
.wh-catalog-empty,
.types-catalog-empty { padding: 12px; text-align: center; color: #94a3b8; font-size: 13px; }

/* ── Task cards (driver tasks) ──────────────────────────────── */
.task-card {
  background: #fff;
  border: 1.5px solid #e8edf3;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
  transition: box-shadow 220ms ease;
}
.task-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }

/* ═══ END WAREHOUSE / DRIVER COMPONENTS ════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   BUG FIX PATCH v14.1
   - don-kpi-strip 7-col desktop explicit rule
   - Topbar logout button styles
   ═══════════════════════════════════════════════════════════════ */

/* don-kpi-strip: 7 columns desktop, fewer on mobile */
.don-kpi-strip {
  grid-template-columns: repeat(7, 1fr) !important; /* 7 sections */
}
@media (max-width: 900px)  { .don-kpi-strip { grid-template-columns: repeat(4, 1fr) !important; } }
@media (max-width: 600px)  { .don-kpi-strip { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 400px)  { .don-kpi-strip { grid-template-columns: repeat(2, 1fr) !important; } }

/* ═══ END BUG FIX PATCH v14.1 ═══════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   DRIVER TASKS v14.2 — Compact professional task cards
   ═══════════════════════════════════════════════════════════════ */

/* ── Task card: tighter, more compact ── */
.task-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  overflow: hidden;
  transition: box-shadow 220ms ease, transform 220ms ease;
  margin-bottom: 0;
}
.task-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-1px);
}

/* Task card header: teal left-border accent */
.task-card > .card-header {
  border-right: 4px solid #14b8a6;
  padding: 12px 14px !important;
}

/* ── Invoice image in modal: responsive ── */
#invoiceContent img {
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
}

/* ═══ END DRIVER TASKS v14.2 ═══════════════════════════════════ */


/* ═════════════════════════════════════════════════════════════
   DONATIONS UX ENHANCEMENTS — donor info edit / driver load
═════════════════════════════════════════════════════════════ */
.don-city,
.don-dist,
.card-value,
.dcf-val,
.det-val,
.det-lbl,
.don-donor-name,
.don-donor-phone,
.don-driver-name,
.don-wh-main,
.cs-type-summary {
  color: #111827 !important;
}

.don-city,
.card-value,
.dcf-val,
.det-val,
.don-donor-name,
.don-driver-name,
.don-wh-main,
.cs-type-summary {
  font-weight: 800 !important;
}

.don-dist,
.det-lbl {
  font-weight: 700 !important;
}

.detail-inline-form {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.detail-inline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.detail-inline-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.driver-workload-panel {
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.driver-workload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.driver-workload-title {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.driver-workload-sub {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
}

.driver-workload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.driver-workload-card {
  width: 100%;
  text-align: right;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
}

.driver-workload-card:hover {
  transform: translateY(-1px);
  border-color: #14b8a6;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(20, 184, 166, 0.08);
}

.driver-workload-card.is-active {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 12px 20px rgba(15, 118, 110, 0.12);
}

.driver-workload-name {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 10px;
}

.driver-workload-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.driver-workload-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 11.5px;
  font-weight: 900;
  border: 1px solid #bfeee8;
}

.driver-workload-badge--warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.driver-workload-badge--muted {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

@media (max-width: 768px) {
  .driver-workload-head {
    flex-direction: column;
  }
  .driver-workload-grid {
    grid-template-columns: 1fr;
  }
  .detail-inline-grid {
    grid-template-columns: 1fr;
  }
}
