/* =============================================================
   app.css — ALL styles inlined (no @import — AssetMapper
   does not resolve CSS @import for sub-files)
   ============================================================= */

/* ── Google Font ── */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

/* ── Login / public pages ── */
.login-container {
  height: 100vh;
}
.login-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =============================================================
   dashboard/index.css
   ============================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  font-family: "DM Sans", sans-serif;
  background: #f4f6f9;
  margin: 0;
  display: flex;
  height: 100vh;
  overflow: hidden;
  color: #1a1d23;
}
.sidebar {
  width: 200px;
  min-width: 200px;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #eaedf2;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1d23;
  border-bottom: 1px solid #f0f2f5;
}
.sidebar-logo .logo-icon {
  width: 28px;
  height: 28px;
  background: #00c896;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-logo .logo-icon svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}
.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #b0b7c3;
  text-transform: uppercase;
  padding: 16px 20px 4px;
}
.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 4px 10px;
}
.sidebar-nav li {
  margin-bottom: 2px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.sidebar-nav a:hover {
  background: #e8faf5;
  color: #00a87a;
}
.sidebar-nav a.active {
  background: #e8faf5;
  color: #00a87a;
  font-weight: 600;
}
.sidebar-nav a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.sidebar-nav .has-arrow::after {
  content: "›";
  margin-left: auto;
  font-size: 1rem;
  color: #b0b7c3;
}
.sidebar-profile {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid #eaedf2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-profile .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #00c896;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.sidebar-profile .info {
  line-height: 1.3;
}
.sidebar-profile .name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1d23;
}
.sidebar-profile .role {
  font-size: 0.68rem;
  color: #9ca3af;
}
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid #eaedf2;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}
.time-period-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #6b7280;
  background: #f4f6f9;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
}
.time-period-btn svg {
  width: 14px;
  height: 14px;
}
.content {
  flex: 1;
  overflow-y: auto;
  padding: 15px 18px;
}
.stat-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.stat-card {
  flex: 0 0 calc(25% - 11px);
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid #eaedf2;
}
.stat-card.add-data {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9ca3af;
  font-size: 0.8rem;
  gap: 6px;
  border: 1.5px dashed #d1d5db;
  background: transparent;
}
.stat-label {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}
.stat-label svg {
  width: 13px;
  height: 13px;
  color: #b0b7c3;
}
.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1d23;
}
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 2px 7px;
  margin-left: 6px;
}
.badge-up {
  background: #e8faf5;
  color: #00a87a;
}
.badge-down {
  background: #fff0f0;
  color: #e53e3e;
}
.charts-row {
  display: flex;
  gap: 14px;
  justify-content: space-between;
}
.dashboard-charts {
  flex-wrap: wrap;
}
.chart-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eaedf2;
  padding: 20px;
  width: 260px;
  min-width: 230px;
}
.chart-card.bar-card {
  flex: 1;
}
.chart-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1d23;
  margin-bottom: 14px;
}
.bar-legend {
  display: flex;
  gap: 14px;
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 10px;
}
.bar-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-blue {
  background: #6c8be8;
}
.dot-orange {
  background: #f5a623;
}
.bar-chart-wrap {
  position: relative;
  height: 200px;
}
.chart-tooltip-bubble {
  position: absolute;
  top: 38%;
  left: 40%;
  background: #fff;
  border: 1px solid #eaedf2;
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  pointer-events: none;
}
.chart-tooltip-bubble .label {
  color: #9ca3af;
  margin-bottom: 2px;
}
.chart-tooltip-bubble .val {
  font-size: 1rem;
  font-weight: 700;
}
.pie-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}
.pie-canvas-wrap {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}
.pie-legend {
  flex: 1;
}
.pie-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #4b5563;
  margin-bottom: 5px;
}
.pie-legend-item .left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pie-legend-item .dot-sq {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}
.pie-legend-item .pct {
  font-weight: 600;
  color: #1a1d23;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: #1a1d23;
  flex-shrink: 0;
}
.hamburger:hover {
  background: #f4f6f9;
}
.hamburger svg {
  width: 22px;
  height: 22px;
  display: block;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 99;
}
.sidebar-overlay.show {
  display: block;
}
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  min-width: 600px;
}
.card > table,
.shell > table,
.main table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.table td,
.table th {
  font-size: 0.78rem;
  padding: 8px 10px;
  white-space: nowrap;
}
.shell {
  padding: 0;
}
.card {
  border-radius: 8px;
}
.filter-bar {
  flex-direction: column;
  align-items: stretch;
}
.filter-bar select,
.filter-bar .form-select {
  width: 100% !important;
  min-width: 0;
}
.breakdown-row {
  font-size: 0.72rem;
}
.skeleton {
  background: linear-gradient(90deg, #f0f2f5 25%, #e4e7eb 50%, #f0f2f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
  display: inline-block;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skeleton-val {
  height: 2rem;
  width: 80px;
}
.skeleton-sm {
  height: 1rem;
  width: 120px;
  margin-top: 6px;
}
.chart-placeholder {
  background: #f4f6f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b7c3;
  font-size: 0.85rem;
}
@media (max-width: 768px) {
  body {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 240px;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .main {
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
  }
  .topbar {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .topbar h1 {
    font-size: 1rem;
  }
  .time-period-btn {
    font-size: 0.72rem;
    padding: 4px 8px;
  }
  .content {
    padding: 8px 10px;
  }
  .card.p-4 {
    padding: 12px !important;
  }
  .card.p-3 {
    padding: 10px !important;
  }
  .chart-card {
    padding: 12px;
  }
  .stat-card {
    padding: 10px 12px;
  }
  .stat-value {
    font-size: 1rem;
  }
  .stat-cards .stat-card {
    flex: 0 0 calc(50% - 7px);
  }
  .charts-row {
    flex-direction: column;
  }
  .dashboard-charts {
    flex-direction: column;
  }
  .chart-card.pie-card,
  .chart-card.countries-card {
    width: 100%;
    min-width: 0;
  }
  .pie-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .pie-canvas-wrap {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 480px) {
  .stat-card {
    flex: 0 0 100%;
  }
}

/* =============================================================
   dashboard/companies.css
   ============================================================= */
:root {
  --ink: #0f0f0f;
  --ink2: #555;
  --ink3: #999;
  --surface: #ffffff;
  --surface2: #f5f4f1;
  --surface3: #eeecea;
  --accent: #1a1a2e;
  --accent2: #16213e;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --red: #dc2626;
  --red-light: #fef2f2;
  --border: rgba(0, 0, 0, 0.08);
}
.page-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--ink);
  line-height: 1;
}
.page-sub {
  font-size: 13px;
  color: var(--ink3);
  margin-top: 4px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-wrap {
  position: relative;
}
.search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink3);
  pointer-events: none;
}
.search-input {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px 7px 32px;
  font-size: 13px;
  width: 200px;
  outline: none;
  color: var(--ink);
  transition:
    border-color 0.15s,
    width 0.25s;
}
.search-input:focus {
  border-color: rgba(0, 0, 0, 0.25);
  width: 240px;
}
.btn-date {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink2);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-date:hover {
  background: var(--surface3);
}
.btn-add {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.1s;
}
.btn-add:hover {
  opacity: 0.85;
}
.btn-add:active {
  transform: scale(0.97);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-delta {
  font-size: 11px;
  margin-top: 4px;
}
.delta-up {
  color: var(--green);
}
.delta-down {
  color: var(--red);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 0.5px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}
.filter-tabs {
  display: flex;
  gap: 4px;
}
.tab {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  color: var(--ink2);
  border: 0.5px solid transparent;
  transition: all 0.15s;
}
.tab.active {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--ink);
  font-weight: 500;
}
.tab:hover:not(.active) {
  background: var(--surface2);
}
.result-count {
  font-size: 12px;
  color: var(--ink3);
}
thead tr {
  border-bottom: 0.5px solid var(--border);
}
thead th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody tr {
  border-bottom: 0.5px solid var(--border);
  transition: background 0.12s;
  animation: fadeIn 0.3s ease both;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--surface2);
}
td {
  padding: 12px 14px;
  vertical-align: middle;
}
.logo-cell {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface2);
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  overflow: hidden;
  flex-shrink: 0;
}
.logo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}
.company-name {
  font-weight: 500;
  color: var(--ink);
}
.company-email {
  color: var(--ink3);
  font-size: 12px;
  margin-top: 2px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
}
.badge-green {
  background: var(--green-light);
  color: var(--green);
}
.badge-amber {
  background: var(--amber-light);
  color: var(--amber);
}
.badge-red {
  background: var(--red-light);
  color: var(--red);
}
.badge-blue {
  background: var(--blue-light);
  color: var(--blue);
}
.stars {
  color: var(--amber);
  font-size: 13px;
  letter-spacing: -1px;
}
.action-btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  border: 0.5px solid var(--border);
  background: transparent;
  color: var(--ink2);
  transition: all 0.13s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.action-btn:hover {
  background: var(--surface2);
  color: var(--ink);
}
.action-btn.danger:hover {
  background: var(--red-light);
  color: var(--red);
  border-color: #fca5a5;
}
.action-btn.primary:hover {
  background: var(--blue-light);
  color: var(--blue);
  border-color: #bfdbfe;
}
.actions-cell {
  display: flex;
  gap: 6px;
  align-items: center;
}
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--ink3);
  font-size: 14px;
}
.empty-icon {
  font-size: 32px;
  margin-bottom: 10px;
  opacity: 0.3;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 0.5px solid var(--border);
  font-size: 12px;
  color: var(--ink3);
}
.pg-btns {
  display: flex;
  gap: 4px;
}
.pg-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pg-btn:hover:not(:disabled) {
  background: #f3f4f6;
}
.pg-btn.btn-active {
  background: #151521;
  color: #fff;
  border-color: #17171d;
  font-weight: 600;
  padding: 0 3px;
}
.pg-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.add-company-wrapper {
  margin-bottom: 1rem;
}
.add-company-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease-in-out;
}
.add-company-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}
.add-company-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
#pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* =============================================================
   dashboard/plan-details.css
   ============================================================= */
.saving {
  opacity: 0.6;
  pointer-events: none;
}
.plan-detail-label {
  font-weight: 500;
  color: #495057;
  width: 180px;
}
.plan-detail-value {
  font-weight: 400;
  color: #212529;
}
.badge-soft {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}
.badge-free {
  background-color: #e0f7fa;
  color: #006064;
}
.badge-basic {
  background-color: #e8f5e9;
  color: #2e7d32;
}
.badge-premium {
  background-color: #fff3e0;
  color: #ef6c00;
}
.badge-enterprise {
  background-color: #f3e5f5;
  color: #6a1b9a;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.feature-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  user-select: none;
}
.feature-card:hover {
  border-color: #6c8be8;
  background: #f5f7ff;
}
.feature-card.enabled {
  border-color: #22c55e;
  background: #f0fdf4;
}
.feature-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #22c55e;
  cursor: pointer;
}
.feature-label {
  font-size: 0.9rem;
  font-weight: 500;
}
.plan-meta input,
.plan-meta select {
  max-width: 220px;
}
.save-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 14px 0;
  margin-top: 24px;
}

/* =============================================================
   dashboard/plans.css
   ============================================================= */
.badge-soft {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* =============================================================
   dashboard/sales.css
   ============================================================= */
#loadingOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
#loadingOverlay.show {
  display: flex;
}
.breakdown-list {
  border-top: 1px solid #f0f2f5;
  padding-top: 8px;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 3px 0;
  color: #4b5563;
  border-bottom: 1px solid #f9fafb;
}
.breakdown-row span:last-child {
  font-weight: 600;
  color: #1a1d23;
}
.see-more-btn {
  font-size: 0.75rem;
  text-decoration: none;
}

/* =============================================================
   dashboard/permissions.css
   ============================================================= */
.perm-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.perm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1.5px solid #e5e7eb;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}
.perm-chip:hover:not(.opacity-50) {
  border-color: #6c8be8;
  background: #f5f7ff;
}
.perm-chip.active {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #15803d;
}
.perm-chip input {
  display: none;
}
.role-card {
  background: #fff;
  border: 1px solid #eaedf2;
  border-radius: 10px;
  padding: 16px;
}
.role-card .role-name {
  font-weight: 700;
  font-size: 0.95rem;
}
.role-card .role-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.role-card .perm-badge {
  font-size: 0.88rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.admin-card {
  background: #fff;
  border: 1px solid #eaedf2;
  border-radius: 10px;
  padding: 14px 16px;
}
.modern-role-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #198754, #20c997);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(25, 180, 110, 0.25);
  transition: all 0.25s ease;
  cursor: pointer;
}
.modern-role-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(25, 135, 84, 0.35);
  color: #fff;
}
.modern-role-btn i {
  font-size: 12px;
  transition: transform 0.25s ease;
}
.modern-role-btn:hover i {
  transform: translateX(3px);
}

/* =============================================================
   dashboard/proxypay.css
   ============================================================= */
.proxypay-summary {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.summary-card {
  flex: 1;
  min-width: 180px;
  background: #fff;
  border: 1px solid #eaedf2;
  border-radius: 12px;
  padding: 16px 20px;
}
.summary-card .label {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 500;
  margin-bottom: 4px;
}
.summary-card .value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1d23;
}
.summary-card.highlight {
  border-color: #00c896;
  background: #f0fdf4;
}
.summary-card.highlight .value {
  color: #00a87a;
}
.plan-breakdown {
  background: #fff;
  border: 1px solid #eaedf2;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.plan-breakdown h6 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f4f6f9;
  font-size: 0.85rem;
}
.plan-row:last-child {
  border-bottom: none;
}
.plan-row .plan-name {
  font-weight: 600;
}
.plan-row .plan-meta {
  color: #9ca3af;
  font-size: 0.75rem;
}
.non-billable {
  opacity: 0.55;
}
.fmt-money {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
}

/* =============================================================
   dashboard/linked-accounts.css
   ============================================================= */
.bank-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f4f6f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #6b7280;
  flex-shrink: 0;
}
.mono-id {
  font-size: 0.7rem;
  color: #9ca3af;
  font-family: monospace;
}

/* =============================================================
   dashboard/linked-account-transactions.css
   ============================================================= */
.tx-credit {
  color: #00a87a;
  font-weight: 600;
}
.tx-debit {
  color: #ef4444;
  font-weight: 600;
}
.account-header {
  background: #fff;
  border: 1px solid #eaedf2;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

/* =============================================================
   dashboard/broadcast-messages.css
   ============================================================= */
.msg-card {
  background: #fff;
  border: 1px solid #eaedf2;
  border-radius: 12px;
  overflow: hidden;
}
.msg-table {
  width: 100%;
  border-collapse: collapse;
}
.msg-table thead th {
  background: #f8fafc;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid #eaedf2;
  white-space: nowrap;
}
.msg-table tbody tr {
  border-bottom: 1px solid #f4f6f9;
  transition: background 0.12s;
}
.msg-table tbody tr:last-child {
  border-bottom: none;
}
.msg-table tbody tr:hover {
  background: #f9fafb;
}
.msg-table td {
  padding: 12px 16px;
  font-size: 0.83rem;
  color: #374151;
  vertical-align: middle;
}
.msg-title {
  font-weight: 600;
  color: #1a1d23;
}
.msg-body {
  color: #6b7280;
  font-size: 0.78rem;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.type-information {
  background: #eff6ff;
  color: #2563eb;
}
.type-warning {
  background: #fffbeb;
  color: #d97706;
}
.type-maintenance {
  background: #f5f3ff;
  color: #7c3aed;
}
.type-billing {
  background: #f0fdf4;
  color: #16a34a;
}
.type-default {
  background: #f4f6f9;
  color: #6b7280;
}
.target-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
}
.target-all {
  background: #e0f2fe;
  color: #0369a1;
}
.target-specific {
  background: #fef3c7;
  color: #92400e;
}
.sent-by {
  font-size: 0.78rem;
  color: #374151;
}
.sent-at {
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
}
.compose-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1.5px solid #00a87a;
  background: #fff;
  color: #00a87a;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.compose-btn:hover {
  background: #00a87a;
  color: #fff;
}

/* =============================================================
   dashboard/ticket-view.css
   ============================================================= */
.message-bubble {
  border-left: 3px solid #6c8be8;
  background: #f8f9ff;
  border-radius: 0 8px 8px 0;
}
.message-bubble.internal {
  border-left-color: #f5a623;
  background: #fffbf0;
}
.message-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* =============================================================
   dashboard/company-details.css
   ============================================================= */
/* ── Company Details page ── */
.company-header {
  background: #fff;
  border: 1px solid #eaedf2;
  border-radius: 12px;
  padding: 18px 22px;
}
.action-bar {
  border-top: 1px solid #f0f2f5;
  padding-top: 12px;
}
.action-divider {
  width: 1px;
  height: 22px;
  background: #e5e7eb;
  flex-shrink: 0;
}
.action-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}
.action-btn-outline:hover {
  border-color: #6b7280;
  background: #f9fafb;
}
.action-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  background: #00a87a;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.action-btn-primary:hover {
  background: #008f68;
}
.action-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.action-btn-danger:hover {
  background: #fecaca;
}
.action-btn-success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.action-btn-success:hover {
  background: #bbf7d0;
}
.action-select {
  height: 32px;
  padding: 0 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #374151;
  background: #fff;
  cursor: pointer;
  min-width: 170px;
}
.action-select:focus {
  outline: none;
  border-color: #00a87a;
  box-shadow: 0 0 0 2px rgba(0, 168, 122, 0.15);
}

/* ── Tab nav ── */
.cd-tabs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 2px solid #eaedf2;
  margin-bottom: 24px;
}
.cd-tabs-wrap::-webkit-scrollbar {
  display: none;
}
.cd-tabs {
  display: flex;
  gap: 0;
  white-space: nowrap;
  min-width: max-content;
}
.cd-tab {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition:
    color 0.15s,
    border-color 0.15s;
  user-select: none;
  white-space: nowrap;
}
.cd-tab:hover {
  color: #00a87a;
}
.cd-tab.active {
  color: #00a87a;
  border-bottom-color: #00a87a;
  font-weight: 600;
}

/* ── Tab panes ── */
.cd-pane {
  display: none;
}
.cd-pane.active {
  display: block;
}

/* ── Coming soon placeholder ── */
.coming-soon {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}
.coming-soon i {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
  opacity: 0.4;
}
.coming-soon h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.coming-soon p {
  font-size: 0.85rem;
}

.company-header {
  background: #fff;
  border: 1px solid #eaedf2;
  border-radius: 12px;
  padding: 18px 22px;
}
.action-bar {
  border-top: 1px solid #f0f2f5;
  padding-top: 12px;
}
.action-divider {
  width: 1px;
  height: 22px;
  background: #e5e7eb;
  flex-shrink: 0;
}
.action-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}
.action-btn-outline:hover {
  border-color: #6b7280;
  background: #f9fafb;
}
.action-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  background: #00a87a;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.action-btn-primary:hover {
  background: #008f68;
}
.action-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.action-btn-danger:hover {
  background: #fecaca;
}
.action-btn-success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.action-btn-success:hover {
  background: #bbf7d0;
}
.action-select {
  height: 32px;
  padding: 0 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #374151;
  background: #fff;
  cursor: pointer;
  min-width: 170px;
}
.action-select:focus {
  outline: none;
  border-color: #00a87a;
  box-shadow: 0 0 0 2px rgba(0, 168, 122, 0.15);
}
.cd-tabs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 2px solid #eaedf2;
  margin-bottom: 24px;
}
.cd-tabs-wrap::-webkit-scrollbar {
  display: none;
}
.cd-tabs {
  display: flex;
  gap: 0;
  white-space: nowrap;
  min-width: max-content;
}
.cd-tab {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition:
    color 0.15s,
    border-color 0.15s;
  user-select: none;
  white-space: nowrap;
}
.cd-tab:hover {
  color: #00a87a;
}
.cd-tab.active {
  color: #00a87a;
  border-bottom-color: #00a87a;
  font-weight: 600;
}
.cd-pane {
  display: none;
}
.cd-pane.active {
  display: block;
}
/* Reset card animations inside tab panes — cards were hidden when page loaded
   so fadeUp animation never fired, leaving them at opacity:0 */
.cd-pane .card,
.cd-pane .stat-card {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.coming-soon {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}
.coming-soon i {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
  opacity: 0.4;
}
.coming-soon h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.coming-soon p {
  font-size: 0.85rem;
}

.breakdown-list {
  border-top: 1px solid #f0f2f5;
  padding-top: 8px;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 3px 0;
  color: #4b5563;
  border-bottom: 1px solid #f9fafb;
}
.breakdown-row span:last-child {
  font-weight: 600;
  color: #1a1d23;
}
.see-more-btn {
  font-size: 0.75rem;
  text-decoration: none;
}
/* =============================================================
   dashboard/kyc.css
   ============================================================= */
.kyc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}
.kyc-status-submitted {
  background: #e0f2fe;
  color: #0369a1;
}
.kyc-status-pending {
  background: #fef9c3;
  color: #854d0e;
}
.kyc-status-approved {
  background: #dcfce7;
  color: #15803d;
}
.kyc-status-rejected {
  background: #fee2e2;
  color: #dc2626;
}
.doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #eaedf2;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
  transition: background 0.12s;
}
.doc-card:hover {
  background: #f9fafb;
}
.doc-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-icon i {
  color: #dc2626;
  font-size: 1.1rem;
}
.doc-icon.missing {
  background: #f4f6f9;
}
.doc-icon.missing i {
  color: #9ca3af;
}
.doc-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1d23;
}
.doc-sub {
  font-size: 0.75rem;
  color: #9ca3af;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f4f6f9;
  font-size: 0.88rem;
}
.info-row:last-child {
  border-bottom: none;
}
.info-row .label {
  color: #6b7280;
  flex-shrink: 0;
  width: 180px;
}
.info-row .value {
  font-weight: 600;
  color: #1a1d23;
  text-align: right;
  word-break: break-word;
}
.decline-form {
  display: none;
}
.decline-form.show {
  display: block;
}
.timeline-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
  margin-top: 5px;
}
.timeline-dot.done {
  background: #22c55e;
}
.timeline-dot.active {
  background: #6c8be8;
}
.timeline-dot.rejected {
  background: #ef4444;
}

/* =============================================================
   dashboard/tickets.css
   ============================================================= */
.ticket-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}
.ticket-table thead th {
  background: #f8fafc;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 11px 14px;
  border-bottom: 1px solid #eaedf2;
  white-space: nowrap;
}
.ticket-table tbody tr {
  border-bottom: 1px solid #f4f6f9;
  transition: background 0.12s;
}
.ticket-table tbody tr:last-child {
  border-bottom: none;
}
.ticket-table tbody tr:hover {
  background: #f9fafb;
}
.ticket-table td {
  padding: 11px 14px;
  vertical-align: middle;
}
.ticket-subject {
  font-weight: 600;
  color: #1a1d23;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-company {
  font-size: 0.78rem;
  color: #6b7280;
}
@media (max-width: 768px) {
  .ticket-table thead {
    display: none;
  }
  .ticket-table,
  .ticket-table tbody,
  .ticket-table tr,
  .ticket-table td {
    display: block;
    width: 100%;
  }
  .ticket-table tbody tr {
    background: #fff;
    border: 1px solid #eaedf2;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 12px 14px;
    position: relative;
  }
  .ticket-table tbody tr:hover {
    background: #f9fafb;
  }
  .ticket-table td.col-num,
  .ticket-table td.col-assigned,
  .ticket-table td.col-created {
    display: none;
  }
  .ticket-table td {
    padding: 3px 0;
    border: none;
    font-size: 0.83rem;
  }
  .ticket-table td.col-subject {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1d23;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid #f0f2f5;
    white-space: normal;
  }
  .ticket-subject {
    max-width: 100%;
    white-space: normal;
  }
  .ticket-table td.col-priority,
  .ticket-table td.col-status {
    display: inline-block;
    padding: 4px 0;
  }
  .ticket-table td.col-priority {
    margin-right: 8px;
  }
  .ticket-table td.col-company {
    color: #6b7280;
    font-size: 0.78rem;
  }
  .ticket-table td.col-action {
    padding-top: 10px;
  }
  .ticket-table td.col-action a {
    display: block;
    text-align: center;
  }
}

/* =============================================================
   dashboard/halal-finance.css
   ============================================================= */
/* ── Halal Finance page tabs ── */
.hf-tabs-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;border-bottom:2px solid #eaedf2;margin-bottom:24px}
.hf-tabs-wrap::-webkit-scrollbar{display:none}
.hf-tabs{display:flex;gap:0;white-space:nowrap;min-width:max-content}
.hf-tab{padding:10px 22px;font-size:.85rem;font-weight:500;color:#6b7280;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;transition:color .15s,border-color .15s;user-select:none}
.hf-tab:hover{color:#00a87a}
.hf-tab.active{color:#00a87a;border-bottom-color:#00a87a;font-weight:600}
.hf-pane{display:none}
.hf-pane.active{display:block}

/* ── Period filter buttons ── */
.period-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.period-btn{padding:5px 14px;border-radius:20px;border:1.5px solid #e5e7eb;background:#fff;font-size:.8rem;font-weight:500;color:#6b7280;cursor:pointer;transition:all .15s}
.period-btn:hover{border-color:#00a87a;color:#00a87a}
.period-btn.active{background:#00a87a;border-color:#00a87a;color:#fff}

/* ── Finance applications table ── */
.fin-table{width:100%;border-collapse:collapse;font-size:.83rem}
.fin-table thead th{background:#f8fafc;color:#6b7280;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:11px 14px;border-bottom:1px solid #eaedf2;white-space:nowrap}
.fin-table tbody tr{border-bottom:1px solid #f4f6f9;transition:background .12s}
.fin-table tbody tr:last-child{border-bottom:none}
.fin-table tbody tr:hover{background:#f9fafb}
.fin-table td{padding:11px 14px;vertical-align:middle}
.app-number{font-weight:700;color:#1a1d23;font-size:.8rem;font-family:monospace}
.app-company{font-weight:600;color:#1a1d23}
.app-email{font-size:.75rem;color:#9ca3af}

/* ── Status badges ── */
.fin-status-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 16px;border-radius:50px;font-size:.85rem;font-weight:600}
.fin-status{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:20px;font-size:.72rem;font-weight:600}
.fin-status-pending,.fin-status-badge.fin-status-pending{background:#fef9c3;color:#854d0e}
.fin-status-submitted,.fin-status-badge.fin-status-submitted{background:#e0f2fe;color:#0369a1}
.fin-status-under_review,.fin-status-badge.fin-status-under_review{background:#ede9fe;color:#5b21b6}
.fin-status-approved,.fin-status-badge.fin-status-approved{background:#dcfce7;color:#15803d}
.fin-status-rejected,.fin-status-badge.fin-status-rejected{background:#fee2e2;color:#dc2626}

/* ── Detail page ── */
.detail-row{display:flex;justify-content:space-between;align-items:flex-start;padding:10px 0;border-bottom:1px solid #f4f6f9;font-size:.88rem}
.detail-row:last-child{border-bottom:none}
.detail-row .lbl{color:#6b7280;fle.fin-status-badge{display:inlinero.fin-status{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:20px;font-size:.72rct-form.show{display:block}
.fin-timeline-item{display:flex;gap:12px;margin-bottom:16px}
.fin-timeline-dot{width:10px;height:10px;border-radius:50%;background:#d1d5db;flex-shrink:0;margin-top:5px}
.fin-timeline-dot.done{background:#22c55e}
.fin-timeline-dot.active{background:#6c8be8}
.fin-timeline-dot.rejected{background:#ef4444}

/* ── Nisab card ── */
.nisab-card{max-width:520px}
.nisab-current{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:16px 20px;margin-bottom:20px}
.nisab-current .label{font-size:.75rem;color:#6b7280;font-weight:500}
.nisab-current .value{font-size:1.6rem;font-weight:700;color:#15803d}



/* =============================================================
   dashboard/agents.css — Superadmin Agent Management
   ============================================================= */
.agent-summary-strip { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.agent-summary-card { flex:1 1 160px; background:#fff; border:1px solid #eaedf2; border-radius:12px; padding:14px 18px; display:flex; align-items:center; gap:12px; }
.agent-summary-icon { width:38px; height:38px; border-radius:10px; background:#00a87a18; color:#00a87a; display:flex; align-items:center; justify-content:center; font-size:.9rem; flex-shrink:0; }
.agent-summary-label { font-size:.72rem; color:#9ca3af; margin-bottom:2px; }
.agent-summary-value { font-size:1.05rem; font-weight:700; color:#1a1d23; }

/* =============================================================
   dashboard/agent-dashboard.css — Agent Portal
   ============================================================= */
.agent-body { margin:0; padding:0; background:#f4f6f9; font-family:'Inter','Segoe UI',sans-serif; min-height:100vh; }
.agent-layout { display:flex; min-height:100vh; }

/* Sidebar */
.agent-sidebar { width:240px; flex-shrink:0; background:#fff; border-right:1px solid #eaedf2; display:flex; flex-direction:column; position:fixed; top:0; left:0; height:100vh; z-index:300; transition:transform .25s ease; }
.agent-sidebar-logo { padding:20px 20px 16px; border-bottom:1px solid #f0f2f5; }
.agent-nav { flex:1; padding:12px 10px; display:flex; flex-direction:column; gap:2px; overflow-y:auto; }
.agent-nav-link { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px; font-size:.85rem; font-weight:500; color:#6b7280; text-decoration:none; transition:background .15s,color .15s; }
.agent-nav-link i { width:18px; text-align:center; font-size:.85rem; flex-shrink:0; }
.agent-nav-link:hover { background:#f3f4f6; color:#1a1d23; }
.agent-nav-link.active { background:#00a87a12; color:#00a87a; font-weight:600; }
.agent-sidebar-footer { display:flex; align-items:center; gap:10px; padding:14px 16px; border-top:1px solid #f0f2f5; }
.agent-avatar { width:34px; height:34px; border-radius:50%; background:#00a87a; color:#fff; font-weight:700; font-size:.8rem; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.agent-sidebar-info { flex:1; min-width:0; }
.agent-sidebar-name { font-size:.82rem; font-weight:600; color:#1a1d23; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.agent-sidebar-role { font-size:.7rem; color:#00a87a; }
.agent-logout-btn { color:#9ca3af; font-size:.9rem; transition:color .15s; text-decoration:none; }
.agent-logout-btn:hover { color:#ef4444; }

/* Main */
.agent-main { flex:1; margin-left:240px; display:flex; flex-direction:column; min-height:100vh; }
.agent-topbar { background:#fff; border-bottom:1px solid #eaedf2; padding:0 24px; height:58px; display:flex; align-items:center; gap:14px; position:sticky; top:0; z-index:100; }
.agent-hamburger { display:none; background:none; border:none; font-size:1.1rem; color:#6b7280; cursor:pointer; padding:4px 8px; }
.agent-topbar-title { font-weight:700; font-size:1rem; color:#1a1d23; flex:1; }
.agent-topbar-right { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.agent-date { font-size:.78rem; color:#9ca3af; }
.agent-content { flex:1; padding:24px; max-width:1200px; width:100%; }

/* Welcome banner */
.agent-welcome-banner { background:linear-gradient(135deg,#00a87a,#00c896); border-radius:14px; padding:20px 24px; color:#fff; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.agent-welcome-title { font-size:1.1rem; font-weight:700; }
.agent-welcome-sub { font-size:.83rem; opacity:.85; margin-top:3px; }

/* Stat grid */
.agent-stat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:14px; }
.agent-stat-card { background:#fff; border:1px solid #eaedf2; border-radius:12px; padding:16px; display:flex; align-items:flex-start; gap:12px; transition:box-shadow .2s; }
.agent-stat-card:hover { box-shadow:0 4px 16px rgba(0,0,0,.07); }
.agent-stat-icon { width:40px; height:40px; border-radius:10px; background:#00a87a12; color:#00a87a; display:flex; align-items:center; justify-content:center; font-size:.95rem; flex-shrink:0; }
.agent-stat-body { flex:1; min-width:0; }
.agent-stat-label { font-size:.7rem; color:#9ca3af; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.agent-stat-value { font-size:1.15rem; font-weight:700; color:#1a1d23; }

/* Mini avatar */
.agent-mini-avatar { width:32px; height:32px; border-radius:50%; background:#00a87a20; color:#00a87a; font-weight:700; font-size:.75rem; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* Payout balance */
.agent-balance-display { background:#f0fdf4; border:1px solid #bbf7d0; border-radius:10px; padding:14px 18px; text-align:center; }
.agent-balance-amount { font-size:1.6rem; font-weight:800; color:#00a87a; }

/* Responsive */
@media (max-width:768px) {
  .agent-sidebar { transform:translateX(-100%); }
  .agent-sidebar.open { transform:translateX(0); box-shadow:4px 0 24px rgba(0,0,0,.12); }
  .agent-main { margin-left:0; }
  .agent-hamburger { display:block; }
  .agent-stat-grid { grid-template-columns:repeat(2,1fr); }
  .agent-content { padding:16px; }
  .agent-topbar { padding:0 16px; }
  .agent-date { display:none; }
}
@media (max-width:480px) {
  .agent-stat-grid { grid-template-columns:1fr; }
}
