 /* ============================================================
   BizWatch Super Admin Dashboard — External Stylesheet
   HTML files are READ-ONLY. All styles live here.
   ============================================================ */

/* ===== OVERLAY ===== */
#dwa-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: #f1f5f9;
}

/* ===== SIDEBAR ===== */
.dwa-sidebar {
  width: 240px;
  min-width: 240px;
  background: linear-gradient(160deg, #0a2f1f 0%, #1B5E20 100%);
  display: flex;
  flex-direction: column;
  padding: 0 0 20px;
  box-shadow: 4px 0 20px rgba(0,0,0,0.25);
  z-index: 2;
  transition: transform 0.3s ease;
}

.dwa-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,215,0,0.2);
  margin-bottom: 12px;
}

.dwa-brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #FFD700, #FFA000);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dwa-brand-icon i {
  color: #1B5E20 !important;
  font-size: 1.1rem;
}

.dwa-brand-name {
  color: #FFD700;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
}

.dwa-brand-sub {
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  font-weight: 500;
}

.dwa-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
}

.dwa-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.dwa-nav-item i {
  width: 18px;
  text-align: center;
  font-size: 1rem;
  color: inherit !important;
  flex-shrink: 0;
}

.dwa-nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.dwa-nav-item.active {
  background: linear-gradient(135deg, #FFD700, #FFA000);
  color: #1B5E20 !important;
  box-shadow: 0 4px 14px rgba(255,215,0,0.4);
}

.dwa-nav-item.active i {
  color: #1B5E20 !important;
}

.dwa-close-btn {
  margin: 12px 12px 0;
  padding: 10px 16px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 14px;
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.dwa-close-btn:hover {
  background: rgba(239,68,68,0.3);
  color: #fff;
}

.dwa-close-btn i {
  color: inherit !important;
}

/* ===== MAIN CONTENT AREA ===== */
.dwa-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.dwa-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0a2f1f, #1B5E20);
  border-bottom: 2px solid rgba(255,215,0,0.3);
}

.dwa-mobile-menu-btn {
  background: none;
  border: none;
  color: #FFD700;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
}

.dwa-mobile-menu-btn i { color: #FFD700 !important; }

.dwa-mobile-title {
  color: #FFD700;
  font-weight: 800;
  font-size: 1rem;
}

.dwa-close-btn-mobile {
  background: rgba(239,68,68,0.2);
  border: none;
  border-radius: 10px;
  color: #fca5a5;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

.dwa-close-btn-mobile i { color: inherit !important; }

.dwa-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: #f1f5f9;
}

.dwa-content::-webkit-scrollbar { width: 6px; }
.dwa-content::-webkit-scrollbar-thumb { background: #FFD700; border-radius: 10px; }

/* ===== PAGE HEADER ===== */
.dwa-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.dwa-page-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1B5E20;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dwa-page-title i {
  color: #FFD700 !important;
  font-size: 1.2rem;
}

.dwa-date {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

/* ===== CARD ===== */
.dwa-card {
  background: white;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(255,215,0,0.2);
  margin-bottom: 20px;
}

.dwa-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1B5E20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  border-left: 4px solid #FFD700;
  margin-bottom: 18px;
}

.dwa-card-title i {
  color: #FFD700 !important;
}

.dwa-form-card {
  border: 2px solid rgba(255,215,0,0.4);
  background: linear-gradient(135deg, #fffef5, #fff);
}

/* ===== KPI GRID ===== */
.dwa-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.dwa-kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.dwa-kpi-card:hover { transform: translateY(-3px); }

.dwa-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.dwa-kpi-icon i { color: white !important; }

.dwa-kpi-val {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.1;
}

.dwa-kpi-lbl {
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 600;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.dwa-kpi-green  { background: linear-gradient(135deg, #16a34a, #15803d); }
.dwa-kpi-gold   { background: linear-gradient(135deg, #d97706, #b45309); }
.dwa-kpi-orange { background: linear-gradient(135deg, #ea580c, #c2410c); }
.dwa-kpi-red    { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.dwa-kpi-blue   { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.dwa-kpi-teal   { background: linear-gradient(135deg, #0d9488, #0f766e); }

/* ===== 2-COLUMN GRID ===== */
.dwa-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ===== REVENUE SUMMARY ===== */
.dwa-rev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dwa-rev-item {
  background: #f8fafc;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.dwa-rev-lbl {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.dwa-rev-val {
  font-size: 1rem;
  font-weight: 800;
  color: #1B5E20;
}

.dwa-rev-total {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #FFD700;
  grid-column: span 2;
}

.dwa-rev-total .dwa-rev-val {
  font-size: 1.15rem;
  color: #15803d;
}

/* ===== ALERT ROW ===== */
.dwa-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fef3c7;
  border-radius: 12px;
  border-left: 4px solid #f59e0b;
  margin-bottom: 8px;
}

.dwa-alert-info { display: flex; flex-direction: column; gap: 2px; }
.dwa-alert-info strong { font-size: 0.88rem; color: #1B5E20; font-weight: 700; }
.dwa-alert-info small { font-size: 0.75rem; color: #64748b; }

/* ===== TABLE ===== */
.dwa-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.dwa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 480px;
}

.dwa-table th {
  background: #1B5E20;
  color: #FFD700;
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
}

.dwa-table th:first-child { border-radius: 12px 0 0 0; }
.dwa-table th:last-child  { border-radius: 0 12px 0 0; }

.dwa-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.dwa-table tr:last-child td { border-bottom: none; }
.dwa-table tr:hover td { background: #f8fafc; }

.dwa-amount {
  font-weight: 700;
  color: #15803d !important;
  white-space: nowrap;
}

/* ===== BADGES ===== */
.dwa-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  background: #e2e8f0;
  color: #334155;
}

.dwa-badge-green  { background: #dcfce7; color: #15803d; }
.dwa-badge-warn   { background: #fef3c7; color: #92400e; }
.dwa-badge-red    { background: #fee2e2; color: #b91c1c; }
.dwa-badge-blue   { background: #dbeafe; color: #1e40af; }
.dwa-badge-gold   { background: linear-gradient(135deg, #FFD700, #FFA000); color: #1B5E20; }

/* ===== BUTTONS ===== */
.dwa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 50px;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.dwa-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.dwa-btn:active { transform: translateY(0); }

.dwa-btn i { color: inherit !important; font-size: 0.85rem; }

.dwa-btn-primary  { background: linear-gradient(135deg, #FFD700, #FFA000); color: #1B5E20 !important; }
.dwa-btn-success  { background: linear-gradient(135deg, #10b981, #059669); color: white !important; }
.dwa-btn-danger   { background: linear-gradient(135deg, #ef4444, #dc2626); color: white !important; }
.dwa-btn-warning  { background: linear-gradient(135deg, #f59e0b, #d97706); color: white !important; }
.dwa-btn-secondary { background: #e2e8f0; color: #334155 !important; }

.dwa-btn-sm {
  padding: 5px 12px;
  font-size: 0.75rem;
  border-radius: 30px;
}

.dwa-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.8rem;
}

.dwa-btn-icon:hover { transform: scale(1.1); }
.dwa-btn-icon i { color: inherit !important; }
.dwa-btn-icon-red { background: #fee2e2; color: #dc2626; }

/* ===== FORMS ===== */
.dwa-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.dwa-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dwa-field-full {
  grid-column: span 2;
}

.dwa-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2E7D32;
  display: block;
}

.dwa-field input,
.dwa-field select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 25px;
  border: 2px solid #e2e8f0;
  font-size: 0.88rem;
  background: white;
  transition: all 0.2s;
  font-family: inherit;
  color: #1e293b;
  box-sizing: border-box;
}

.dwa-field input:focus,
.dwa-field select:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255,215,0,0.15);
}

.dwa-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== SEARCH ROW ===== */
.dwa-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.dwa-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  padding: 8px 16px;
  min-width: 200px;
  transition: border-color 0.2s;
}

.dwa-search-box:focus-within {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255,215,0,0.15);
}

.dwa-search-box i {
  color: #94a3b8 !important;
  font-size: 0.9rem;
}

.dwa-search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.88rem;
  background: transparent;
  color: #1e293b;
  font-family: inherit;
}

/* ===== FILTER TABS ===== */
.dwa-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.dwa-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  background: white;
  font-size: 0.83rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.dwa-filter-tab:hover {
  border-color: #1B5E20;
  color: #1B5E20;
}

.dwa-filter-tab.active {
  background: #1B5E20;
  border-color: #1B5E20;
  color: white;
}

/* ===== BUSINESS CARDS (SUBSCRIPTIONS) ===== */
.dwa-biz-card {
  background: white;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 12px;
  border-left: 5px solid #FFD700;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transition: all 0.2s;
}

.dwa-biz-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.1); }

.dwa-biz-active  { border-left-color: #10b981; }
.dwa-biz-expiring{ border-left-color: #f59e0b; background: #fffbeb; }
.dwa-biz-expired { border-left-color: #dc2626; background: #fff5f5; }
.dwa-biz-muted   { border-left-color: #94a3b8; background: #f8fafc; opacity: 0.75; }

.dwa-biz-info { flex: 1; min-width: 0; }
.dwa-biz-name { font-weight: 800; font-size: 1rem; color: #1B5E20; margin-bottom: 4px; }
.dwa-biz-meta { font-size: 0.75rem; color: #64748b; margin-bottom: 2px; }

.dwa-biz-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.dwa-biz-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

/* ===== EXPIRY PREVIEW ===== */
.dwa-expiry-preview {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid #FFD700;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #1B5E20;
  font-weight: 600;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dwa-expiry-preview i { color: #FFD700 !important; }

/* ===== BAR CHART ===== */
.dwa-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 8px;
  height: 180px;
  padding: 0 4px;
}

.dwa-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.dwa-bar-label {
  font-size: 0.65rem;
  color: #64748b;
  text-align: center;
  white-space: nowrap;
}

.dwa-bar-wrap {
  width: 100%;
  background: #e2e8f0;
  border-radius: 8px 8px 0 0;
  height: 120px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.dwa-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #FFD700, #FFA000);
  border-radius: 8px 8px 0 0;
  min-height: 4px;
  transition: height 0.6s ease;
}

.dwa-bar-month {
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

/* ===== PAYMENT METHOD BARS ===== */
.dwa-method-list { display: flex; flex-direction: column; gap: 14px; }

.dwa-method-item { display: flex; flex-direction: column; gap: 6px; }

.dwa-method-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.dwa-method-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.dwa-bar-fill-gold  { height: 100%; background: linear-gradient(90deg, #FFD700, #FFA000); border-radius: 10px; min-width: 4px; transition: width 0.6s; }
.dwa-bar-fill-red   { height: 100%; background: linear-gradient(90deg, #ef4444, #dc2626); border-radius: 10px; min-width: 4px; transition: width 0.6s; }
.dwa-bar-fill-green { height: 100%; background: linear-gradient(90deg, #10b981, #059669); border-radius: 10px; min-width: 4px; transition: width 0.6s; }

/* ===== EMPTY STATES ===== */
.dwa-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  color: #94a3b8;
  gap: 10px;
  text-align: center;
  font-size: 0.88rem;
}

/* ===== TOAST NOTIFICATIONS ===== */
.dwa-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999999;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  animation: dwaToastIn 0.35s ease, dwaToastOut 0.35s ease 3.15s forwards;
  font-family: 'Inter', system-ui, sans-serif;
  max-width: 320px;
}

@keyframes dwaToastIn  { from { transform: translateX(120px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes dwaToastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(120px); } }

.dwa-toast-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.dwa-toast-error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.dwa-toast-info    { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 1024px) {
  .dwa-kpi-grid  { grid-template-columns: repeat(3, 1fr); }
  .dwa-grid-2    { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {
  .dwa-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    transform: translateX(-100%);
    z-index: 100000;
  }

  .dwa-sidebar.open {
    transform: translateX(0);
    box-shadow: 6px 0 30px rgba(0,0,0,0.3);
  }

  .dwa-mobile-header {
    display: flex;
  }

  .dwa-content {
    padding: 16px;
  }

  .dwa-kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .dwa-kpi-val {
    font-size: 1rem;
  }

  .dwa-form-grid {
    grid-template-columns: 1fr;
  }

  .dwa-field-full {
    grid-column: span 1;
  }

  .dwa-page-title {
    font-size: 1.15rem;
  }

  .dwa-biz-card {
    flex-direction: column;
  }

  .dwa-biz-actions {
    align-items: flex-start;
    width: 100%;
  }

  .dwa-biz-btns {
    justify-content: flex-start;
  }

  .dwa-filter-tabs {
    gap: 5px;
  }

  .dwa-filter-tab {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .dwa-kpi-grid { grid-template-columns: 1fr 1fr; }
  .dwa-kpi-card { padding: 12px; gap: 10px; }
  .dwa-kpi-icon { width: 38px; height: 38px; }
  .dwa-kpi-val { font-size: 0.9rem; }
  .dwa-grid-2 { grid-template-columns: 1fr; }
  .dwa-form-grid { grid-template-columns: 1fr; }
}

/* === BizWatch Round 2: print color preservation === */
@media print {
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
}

/* ===== BIZWATCH BRAND TYPOGRAPHY (admin panel) ===== */
.dwa-brand-name { font-family: 'Cinzel Decorative', 'Georgia', serif !important; font-weight: 700 !important; }
.dwa-brand-sub  { font-family: 'Nunito Sans', 'Inter', sans-serif !important; font-weight: 600 !important; }