* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #f5f7f6;
  color: #17251e;
}
button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}


/* LOGIN */

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(8, 22, 16, 0.62), rgba(8, 22, 16, 0.84)),
    url("admin-hero.jpg") center/cover no-repeat;
}

.login-overlay {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: rgba(12, 28, 21, 0.78);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(227, 139, 37, 0.28);
  box-shadow: 0 25px 70px rgba(0, 0, 0, .35);
  backdrop-filter: blur(16px);
  color: #e7eee9;
}

.login-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #f3f7f4;
}

.login-logo span {
  color: #e38b25;
}

.login-label {
  margin: 28px 0 6px;
  color: #e38b25;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.login-card h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -.04em;
  color: #fff;
}

.login-description {
  color: #b7c6bc;
  font-size: .9rem;
  margin-bottom: 25px;
}

.login-card label {
  display: block;
  margin: 15px 0 6px;
  font-size: .75rem;
  font-weight: 800;
  color: #d5e0d8;
}

.login-card input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  outline: none;
  background: rgba(8, 20, 15, 0.7);
  color: #fff;
}

.login-card input:focus {
  border-color: #e38b25;
  box-shadow: 0 0 0 3px rgba(227, 139, 37, .18);
}

.login-card button[type="submit"] {
  width: 100%;
  margin-top: 22px;
  padding: 13px;
  border: 0;
  border-radius: 9px;
  background: #e38b25;
  color: #1a1206;
  font-weight: 800;
  cursor: pointer;
}

.login-card button[type="submit"]:hover {
  background: #c97616;
}

.message {
  min-height: 22px;
  margin-top: 12px;
  color: #b42318;
  font-size: .78rem;
}


/* ADMIN */

.admin-app {
  min-height: 100vh;
  display: flex;
  background: #f5f7f6;
}

.sidebar {
  width: 250px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 24px 16px;
  background: #10291e;
  color: #fff;
}

.brand {
  padding: 8px 12px 25px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 20px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 900;
}

.brand-name span {
  color: #e38b25;
}

.brand small {
  display: block;
  color: #9eb2a6;
  font-size: .65rem;
  margin-top: 4px;
  letter-spacing: .12em;
}

.menu-title {
  color: #789083;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .14em;
  padding: 0 12px;
  margin: 18px 0 7px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  margin: 3px 0;
  border-radius: 9px;
  color: #c7d5cd;
  font-size: .84rem;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  background: #1f513a;
  color: #fff;
}

.main {
  margin-left: 250px;
  width: calc(100% - 250px);
}

.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid #e4e9e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.topbar h1 {
  margin: 0;
  font-size: 1.3rem;
}

.topbar p {
  margin: 2px 0 0;
  color: #718078;
  font-size: .75rem;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: .78rem;
}
.logout-button {
  border: 1px solid #dce5df;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.content {
  padding: 32px;
}

.welcome {
  margin-bottom: 25px;
}

.eyebrow {
  color: #d77b16;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.welcome h2 {
  margin: 5px 0;
  font-size: 1.8rem;
  letter-spacing: -.04em;
}

.welcome > p:last-child {
  color: #718078;
}


/* STATS */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  background: #fff;
  border: 1px solid #e4e9e5;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #edf6ef;
  border-radius: 10px;
}

.stat-card span {
  display: block;
  color: #718078;
  font-size: .7rem;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  font-size: 1.55rem;
  margin-top: 3px;
}


/* PANELS */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px;
}

.panel {
  background: #fff;
  border: 1px solid #e4e9e5;
  border-radius: 14px;
  overflow: hidden;
}

.panel-header {
  padding: 18px 20px;
  border-bottom: 1px solid #edf0ee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h3 {
  margin: 0;
  font-size: .95rem;
}

.online {
  color: #1f7a50;
  font-size: .7rem;
  font-weight: 800;
}

.status-list {
  padding: 10px 20px;
}

.status-list div {
  padding: 14px 0;
  border-bottom: 1px solid #edf0ee;
  display: flex;
  justify-content: space-between;
}

.status-list div:last-child {
  border-bottom: 0;
}

.status-list span {
  color: #59675f;
  font-size: .78rem;
}

.status-list strong {
  color: #1f7a50;
  font-size: .75rem;
}

.quick-actions {
  padding: 15px;
  display: grid;
  gap: 9px;
}

.quick-actions button {
  text-align: left;
  padding: 12px;
  border: 1px solid #e2e9e4;
  background: #fff;
  border-radius: 9px;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 700;
}


/* MOBILE */

@media (max-width: 950px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .sidebar {
    display: none;
  }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .topbar {
    padding: 0 18px;
  }

  .content {
    padding: 20px 15px;
  }
}

@media (max-width: 500px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 28px 22px;
  }
}
/* =========================================================
   VENDOR & DELIVERY TABLES
========================================================= */

.vendor-stats,
.delivery-stats {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.vendor-stats {
  grid-template-columns: repeat(4, 1fr);
}

.delivery-stats {
  grid-template-columns: repeat(5, 1fr);
}


/* TABLE PANELS */

.vendors-panel,
.deliveries-panel {
  width: 100%;
  margin-bottom: 22px;
}


/* PANEL HEADER */

.vendors-panel .panel-header,
.deliveries-panel .panel-header {
  min-height: 72px;
}

.panel-header p {
  margin: 5px 0 0;
  color: #718078;
  font-size: .75rem;
}

.panel-header button {
  border: 1px solid #dce5df;
  background: #fff;
  color: #17251e;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 700;
}

.panel-header button:hover {
  background: #f5f7f6;
}


/* SEARCH / FILTER */

.vendor-controls,
.search-row {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #edf0ee;
}

.vendor-controls input,
.search-row input,
.vendor-controls select,
.search-row select {
  border: 1px solid #dce5df;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  font-size: .78rem;
}

.vendor-controls input,
.search-row input {
  flex: 1;
}

.vendor-controls select,
.search-row select {
  min-width: 160px;
}

.vendor-controls input:focus,
.search-row input:focus,
.vendor-controls select:focus,
.search-row select:focus {
  border-color: #1f7a50;
  box-shadow: 0 0 0 3px rgba(31,122,80,.08);
}


/* TABLE WRAPPER */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}


/* TABLE */

.vendors-table,
.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

.vendors-table th,
.vendors-table td,
.table-wrapper th,
.table-wrapper td {
  padding: 13px 16px;
  border-bottom: 1px solid #edf0ee;
  text-align: left;
  vertical-align: middle;
}

.vendors-table th,
.table-wrapper th {
  background: #f8faf8;
  color: #59675f;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.vendors-table td,
.table-wrapper td {
  color: #26352d;
  font-size: .75rem;
}

.vendors-table tbody tr:hover,
.table-wrapper tbody tr:hover {
  background: #fafcfb;
}


/* EMPTY / LOADING */

.empty-state {
  text-align: center !important;
  padding: 30px !important;
  color: #718078 !important;
}


/* STATUS BADGES */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
  text-transform: capitalize;
}

.status-badge.pending,
.status-badge.awaiting_pickup {
  background: #fff4df;
  color: #a35d00;
}

.status-badge.approved,
.status-badge.delivered {
  background: #e8f6ed;
  color: #17653e;
}

.status-badge.assigned,
.status-badge.picked_up,
.status-badge.in_transit,
.status-badge.out_for_delivery {
  background: #e8f1ff;
  color: #245b9c;
}

.status-badge.rejected,
.status-badge.failed,
.status-badge.cancelled {
  background: #fdecec;
  color: #a32121;
}

.status-badge.suspended,
.status-badge.delayed {
  background: #f5eafa;
  color: #75439a;
}


/* DELIVERY DETAILS */

#deliveryDetailsPanel {
  margin-top: 22px;
}

#deliveryDetailsContent {
  padding: 20px;
}

.delivery-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.delivery-detail-card {
  border: 1px solid #e4e9e5;
  border-radius: 10px;
  padding: 15px;
  background: #fafcfb;
}

.delivery-detail-card span {
  display: block;
  color: #718078;
  font-size: .68rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.delivery-detail-card strong {
  display: block;
  color: #17251e;
  font-size: .82rem;
}


/* DELIVERY TRACKING */

.delivery-tracking {
  margin-top: 20px;
}

.delivery-tracking h4 {
  margin: 0 0 12px;
  font-size: .9rem;
}

.delivery-timeline {
  border-left: 2px solid #dce5df;
  padding-left: 20px;
}

.delivery-timeline-item {
  position: relative;
  padding-bottom: 18px;
}

.delivery-timeline-item::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1f7a50;
  left: -26px;
  top: 4px;
}

.delivery-timeline-item strong {
  display: block;
  font-size: .78rem;
}

.delivery-timeline-item span {
  display: block;
  color: #718078;
  font-size: .7rem;
  margin-top: 3px;
}


/* DELIVERY TABLE MOBILE */

@media (max-width: 1100px) {
  .delivery-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 950px) {
  .vendor-stats,
  .delivery-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .delivery-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .vendor-controls,
  .search-row {
    flex-direction: column;
  }

  .vendor-controls select,
  .search-row select {
    width: 100%;
  }

  .vendor-stats,
  .delivery-stats {
    grid-template-columns: 1fr;
  }

  #deliveryDetailsContent {
    padding: 15px;
  }
}

/* =========================================================
   ORDERS DASHBOARD
========================================================= */

.order-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.order-kpi {
  background: #fff;
  border: 1px solid #e4e9e5;
  border-radius: 14px;
  padding: 18px 20px 16px;
}

.order-kpi span {
  display: block;
  color: #718078;
  font-size: .72rem;
  font-weight: 700;
}

.order-kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
  letter-spacing: -.03em;
}

.kpi-bar {
  display: block;
  height: 3px;
  margin-top: 14px;
  border-radius: 99px;
}

.kpi-blue { background: #3b82f6; }
.kpi-orange { background: #e38b25; }
.kpi-purple { background: #7c3aed; }
.kpi-green { background: #1f7a50; }
.kpi-red { background: #dc2626; }

.order-dash-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  gap: 18px;
  margin-bottom: 22px;
}

.order-chart-box {
  padding: 16px 20px 20px;
  height: 240px;
}

.order-dash-grid canvas {
  width: 100% !important;
  height: 200px !important;
}

@media (max-width: 1100px) {
  .order-kpi-row,
  .order-dash-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .order-kpi-row,
  .order-dash-grid {
    grid-template-columns: 1fr;
  }
}
.care-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}

.care-thread-list {
  max-height: 620px;
  overflow: auto;
}

.care-thread {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #edf0ee;
  background: #fff;
  padding: 14px 16px;
  cursor: pointer;
}

.care-thread strong,
.care-thread small {
  display: block;
}

.care-thread small {
  margin-top: 4px;
  color: #718078;
}

.care-thread.active,
.care-thread:hover {
  background: #f5f7f6;
}

.care-thread-messages {
  min-height: 360px;
  max-height: 480px;
  overflow: auto;
  padding: 16px 20px;
  background: #fafcfb;
}

.care-msg {
  max-width: 80%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e4e9e5;
}

.care-msg.admin {
  margin-left: auto;
  background: #10291e;
  color: #fff;
  border-color: #10291e;
}

.care-msg b {
  display: block;
  font-size: .72rem;
  margin-bottom: 4px;
}

.care-msg p {
  margin: 0;
  font-size: .85rem;
}

.care-reply-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #edf0ee;
}

.care-reply-box textarea,
.care-reply-box button {
  font: inherit;
}

.care-reply-box textarea {
  width: 100%;
  border: 1px solid #dce5df;
  border-radius: 8px;
  padding: 10px 12px;
}

.care-reply-box button {
  border: 0;
  border-radius: 8px;
  background: #e38b25;
  color: #1a1206;
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .care-layout {
    grid-template-columns: 1fr;
  }
}
#careCustomerLink {
  color: #1f7a50;
  text-decoration: underline;
  font-weight: 800;
}
/* =========================================================
   UNIFIED DUAL-PROJECT DASHBOARD
========================================================= */

.dash-welcome h2 {
  margin: 4px 0 6px;
}

.dual-project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
}

.project-panel {
  background: #fff;
  border: 1px solid #e6ebe8;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 18px rgba(16, 24, 20, 0.04);
}

.project-zandya {
  border-top: 3px solid #1f7a50;
}

.project-mbikooye {
  border-top: 3px solid #0d9488;
}

.project-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.project-panel-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #122018;
}

.project-panel-header p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #6b7c73;
}

.project-panel-header .flag {
  font-size: 14px;
}

.btn-ghost {
  border: 1px solid #d5e0da;
  background: #f7faf8;
  color: #1f7a50;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-ghost:hover {
  background: #eaf6ef;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.project-stats .stat-card {
  background: #f7faf8;
  border: 1px solid #e6ebe8;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 72px;
}

.project-stats .stat-card span {
  font-size: 11px;
  color: #6b7c73;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.project-stats .stat-card strong {
  font-size: 22px;
  font-weight: 800;
  color: #122018;
}

.project-mbikooye .stat-card.mb-stat {
  background: #f0fdfa;
  border-color: #ccfbf1;
}

.project-mbikooye .stat-card.mb-stat strong {
  color: #0f766e;
}

.profile-rows {
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #eef2f0;
  background: #fff;
}

.profile-row:hover {
  border-color: #cfe3d7;
  background: #f9fcfa;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8f5ee;
  color: #1f7a50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.profile-meta {
  min-width: 0;
}

.profile-meta strong {
  display: block;
  font-size: 13px;
  color: #122018;
}

.profile-meta span {
  font-size: 11px;
  color: #6b7c73;
}

.profile-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.profile-status.active {
  background: #e8f8ef;
  color: #157a45;
}

.profile-status.pending {
  background: #fff7e6;
  color: #b45309;
}

.profile-status.suspended {
  background: #fde8e8;
  color: #b91c1c;
}

.profile-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-actions button {
  border: 1px solid #d5e0da;
  background: #fff;
  color: #1f3d2f;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.profile-actions button.approve {
  border-color: #86efac;
  color: #166534;
  background: #f0fdf4;
}

.profile-actions button.reject,
.profile-actions button.suspend {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.profile-actions button:hover {
  filter: brightness(0.97);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
}

.quick-actions button {
  border: 1px solid #d5e0da;
  background: #f7faf8;
  color: #122018;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.quick-actions button:hover {
  background: #eaf6ef;
  border-color: #1f7a50;
  color: #1f7a50;
}

@media (max-width: 1100px) {
  .dual-project-grid {
    grid-template-columns: 1fr;
  }
  .project-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .project-stats {
    grid-template-columns: 1fr 1fr;
  }
  .profile-row {
    grid-template-columns: 36px 1fr;
  }
  .profile-status,
  .profile-actions {
    grid-column: 1 / -1;
  }
}
.care-source-filters { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.care-filter-btn {
  border:1px solid #d5e0da; background:#fff; color:#1f3d2f;
  font-size:12px; font-weight:700; padding:8px 12px; border-radius:999px; cursor:pointer;
}
.care-filter-btn.active { background:#1f7a50; border-color:#1f7a50; color:#fff; }
.care-source-tag {
  display:inline-block; font-size:10px; font-weight:800; letter-spacing:.03em;
  padding:3px 8px; border-radius:999px; margin-left:6px; vertical-align:middle;
}
.care-source-tag.zandya { background:#e8f5ee; color:#1f7a50; }
.care-source-tag.mbikooye { background:#ecfeff; color:#0f766e; }
.care-source-tag.hidden { display:none; }
.care-thread-context {
  margin:0 16px 8px; padding:10px 12px; border:1px solid #e6ebe8;
  border-radius:8px; background:#f7faf8; font-size:12px; color:#3d5248;
}
.care-thread-context.hidden { display:none; }
.care-thread .care-thread-source-line {
  display:block; font-size:11px; color:#6b7c73; margin-top:2px;
}
.care-source-tag.partner {
  background: #ede9fe;
  color: #5b21b6;
}
