/* ============================================================
   Blue Macaw Digital — Agency Suite
   styles.css | Brand: Deep Navy #0B2447 + Teal #00B4D8
   ============================================================ */

:root {
  --primary: #0B2447;
  --primary-hover: #0d2e5a;
  --primary-light: #e8f4f8;
  --accent: #00B4D8;
  --accent-soft: #48CAE4;
  --accent-muted: #caf0f8;
  --bg: #f0f4f8;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --border: #e2e8f0;
  --text: #0a1628;
  --text-muted: #5a7184;
  --text-light: #94a3b8;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --success: #059669;
  --success-soft: #d1fae5;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --sidebar-w: 230px;
  --topbar-h: 56px;
  --bottomnav-h: 64px;
}

* { font-family: 'DM Sans', sans-serif; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body { background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; margin: 0; height: 100%; }

/* ---- CARDS ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }

/* ---- BUTTONS ---- */
.btn { background: var(--primary); color: #fff; padding: 9px 16px; border-radius: var(--radius); font-weight: 600; font-size: 13px; cursor: pointer; border: none; transition: all 0.15s; display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.01em; white-space: nowrap; }
.btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(11,36,71,0.25); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-soft); box-shadow: 0 4px 8px rgba(0,180,216,0.3); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #047857; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; padding: 13px; font-size: 15px; border-radius: 10px; }

/* ---- INPUTS ---- */
input, select, textarea { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); padding: 9px 12px; width: 100%; font-size: 14px; transition: all 0.15s; font-family: 'DM Sans', sans-serif; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,180,216,0.12); }

/* ---- TABLES ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { background: var(--surface2); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); padding: 11px 16px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; font-size: 14px; color: var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8feff; }

/* ---- DESKTOP SIDEBAR ---- */
.sidebar { background: var(--primary); display: flex; flex-direction: column; padding: 16px; height: 100vh; overflow-y: auto; position: sticky; top: 0; }
.sidebar-logo { background: rgba(255,255,255,0.08); border-radius: var(--radius-lg); }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); color: rgba(255,255,255,0.60); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; margin-bottom: 1px; border: none; width: 100%; text-align: left; background: none; }
.nav-item:hover { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.95); }
.nav-item.active { background: var(--accent); color: #fff; font-weight: 700; }
.nav-item .nav-icon { width: 18px; text-align: center; font-size: 16px; flex-shrink: 0; }

/* ---- MOBILE TOP BAR ---- */
.mobile-topbar { display: none; position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); background: var(--primary); z-index: 200; align-items: center; padding: 0 16px; gap: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-topbar .topbar-logo { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 10px; color: #fff; flex-shrink: 0; overflow: hidden; }
.mobile-topbar .topbar-title { flex: 1; color: white; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-topbar .topbar-role { color: var(--accent); font-size: 11px; font-weight: 700; white-space: nowrap; }
.hamburger { background: none; border: none; cursor: pointer; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: all 0.2s; }

/* ---- MOBILE DRAWER ---- */
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; }
.drawer-overlay.open { display: block; }
.mobile-drawer { position: fixed; top: 0; left: -100%; width: 260px; height: 100vh; background: var(--primary); z-index: 400; transition: left 0.28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; padding: 0; overflow-y: auto; box-shadow: 4px 0 24px rgba(0,0,0,0.3); }
.mobile-drawer.open { left: 0; }
.drawer-header { padding: 20px 16px 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.drawer-nav { flex: 1; padding: 8px 12px; }
.drawer-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,0.1); }

/* ---- MOBILE BOTTOM NAV ---- */
.mobile-bottomnav { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottomnav-h); background: var(--surface); border-top: 1px solid var(--border); z-index: 200; align-items: stretch; box-shadow: 0 -4px 16px rgba(0,0,0,0.08); }
.bottomnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: none; background: none; cursor: pointer; padding: 8px 4px; color: var(--text-muted); transition: color 0.15s; font-size: 11px; font-weight: 600; }
.bottomnav-item.active { color: var(--primary); }
.bottomnav-item.active .bottomnav-icon { background: var(--primary-light); }
.bottomnav-icon { font-size: 18px; width: 36px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: background 0.15s; }
.bottomnav-more { position: relative; }

/* ---- BADGES ---- */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; }
.badge-active    { background: var(--success-soft); color: #065f46; }
.badge-paused    { background: var(--warning-soft); color: #92400e; }
.badge-draft     { background: #f1f5f9; color: #475569; }
.badge-completed { background: var(--accent-muted); color: #0c5460; }
.badge-cancelled { background: var(--danger-soft); color: #991b1b; }
.badge-pending   { background: #f1f5f9; color: #475569; }
.badge-confirmed { background: var(--success-soft); color: #065f46; }
.badge-admin     { background: var(--primary-light); color: var(--primary); }
.badge-lead      { background: #ede9fe; color: #5b21b6; }
.badge-inprogress { background: var(--primary-light); color: var(--primary); }

/* ---- STAT CARDS ---- */
.stat-card { position: relative; overflow: hidden; }
.stat-card::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:var(--accent); border-radius:0 0 var(--radius-lg) var(--radius-lg); }
.stat-card.green::after { background: var(--success); }
.stat-card.orange::after { background: var(--warning); }
.stat-card.teal::after { background: var(--accent); }

/* ---- MODAL ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; backdrop-filter: blur(2px); }
.modal { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-md); animation: modalIn 0.2s ease-out; }
@keyframes modalIn { from { opacity:0; transform:scale(0.95) translateY(8px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal-lg { max-width: 720px; }
.modal-xl { max-width: 900px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title { font-size: 17px; font-weight: 700; color: var(--text); }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.modal-close:hover { background: var(--bg); }

/* ---- FORMS ---- */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-row { display: grid; gap: 12px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ---- MISC ---- */
.fade-in { animation: fadeIn 0.2s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.loading { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.tab-bar { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; border-radius: 6px 6px 0 0; white-space: nowrap; }
.tab:hover { color: var(--accent); background: var(--primary-light); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.progress-bar { background: var(--border); border-radius: 999px; height: 8px; overflow: hidden; }
.progress-bar-sm { height: 6px; }
.progress-fill { background: var(--accent); height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); padding: 14px 12px 6px; }
.divider { height: 1px; background: rgba(255,255,255,0.1); margin: 8px 0; }
.alert { border-radius: var(--radius); padding: 12px 16px; font-size: 13px; font-weight: 500; }
.alert-info { background: var(--primary-light); color: var(--primary); border: 1px solid rgba(0,180,216,0.2); }
.alert-success { background: var(--success-soft); color: #065f46; border: 1px solid rgba(5,150,105,0.2); }
.alert-warning { background: var(--warning-soft); color: #92400e; border: 1px solid rgba(245,158,11,0.2); }
.customer-detail-tab { padding: 6px 14px; font-size: 12px; font-weight: 600; border-radius: 6px; cursor: pointer; color: var(--text-muted); transition: all 0.15s; }
.customer-detail-tab.active { background: var(--primary); color: white; }
.doc-section { padding: 20px 0; border-bottom: 1px solid var(--border); }
.doc-heading { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.doc-text { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.doc-list { list-style: none; padding: 0; margin: 8px 0 0; }
.doc-list li { padding: 4px 0; font-size: 13px; color: var(--text-muted); display: flex; align-items: flex-start; gap: 8px; }
.doc-list li::before { content: '→'; color: var(--accent); flex-shrink: 0; margin-top: 1px; }

/* ---- FINANCE TRACKER ---- */
.ft-budget-bar { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ft-budget-bar:last-child { border-bottom: none; }
.ft-budget-label { width: 130px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.ft-budget-track { flex: 1; }
.ft-budget-amounts { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; margin-bottom: 4px; }
.ft-goal-card { background: linear-gradient(135deg, var(--primary) 0%, #0d3b6e 100%); border-radius: var(--radius-lg); padding: 20px; color: white; position: relative; overflow: hidden; }
.ft-goal-card::before { content: ''; position: absolute; top: -20px; right: -20px; width: 80px; height: 80px; background: rgba(0,180,216,0.1); border-radius: 50%; }
.ft-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.ft-kpi-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.ft-kpi-value { font-size: 22px; font-weight: 800; margin-top: 4px; }
.ft-kpi-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.ft-transaction-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ft-transaction-row:last-child { border-bottom: none; }
.ft-tx-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ft-tx-income { background: var(--success-soft); }
.ft-tx-expense { background: var(--danger-soft); }

/* ---- CAMPAIGN PIPELINE ---- */
.pipeline-col { flex: 1; min-width: 220px; }
.pipeline-col-header { padding: 10px 14px; border-radius: 8px 8px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.pipeline-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow); cursor: pointer; transition: transform 0.1s; }
.pipeline-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---- MOBILE CARD TABLE ---- */
.mobile-card-list { display: none; }
.m-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.m-card-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.m-card-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 13px; color: var(--text-muted); }
.m-card-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ---- LOGIN PAGE ---- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary) 0%, #0d3b6e 60%, #0e4a7a 100%); position: relative; overflow: hidden; }
.login-page::before { content:''; position:absolute; top:-80px; right:-80px; width:320px; height:320px; background:rgba(0,180,216,0.08); border-radius:50%; }
.login-page::after { content:''; position:absolute; bottom:-60px; left:-60px; width:220px; height:220px; background:rgba(0,180,216,0.06); border-radius:50%; }
.login-card { background: var(--surface); border-radius: 16px; padding: 40px 36px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); position: relative; z-index: 1; }

/* ---- PRINT ---- */
@media print {
  body * { visibility: hidden; }
  .printable, .printable * { visibility: visible; }
  .printable { position: absolute; left: 0; top: 0; width: 100%; background: #fff; color: #000; }
}

/* ================================================================
   MOBILE RESPONSIVE (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {
  .mobile-topbar { display: flex !important; }
  .mobile-bottomnav { display: flex !important; }
  .app-shell { grid-template-columns: 1fr !important; }
  .sidebar { display: none !important; }
  .app-main { padding-top: var(--topbar-h) !important; padding-bottom: var(--bottomnav-h) !important; min-height: 100vh; }
  #content { padding: 14px !important; }
  .card { padding: 16px; }
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr !important; }
  .desktop-table { display: none !important; }
  .mobile-card-list { display: block !important; }
  .table-wrap { overflow-x: auto; }
  .card.table-card { padding: 0; overflow: hidden; }
  .card.table-card table { min-width: 600px; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal, .modal-lg, .modal-xl { max-width: 100%; border-radius: 20px 20px 0 0; max-height: 88vh; padding: 20px; }
  .section-title-row { flex-direction: column; align-items: flex-start !important; gap: 8px; }
  .btn-sm { padding: 8px 12px; font-size: 12px; }
  .action-bar { flex-wrap: wrap; gap: 8px; }
  .stat-grid { grid-template-columns: 1fr 1fr !important; }
  .chart-container { height: 180px !important; }
  .ft-budget-label { width: 100px; }
  .ft-kpi-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr !important; }
  .m-card-actions .btn-sm { flex: 1; justify-content: center; font-size: 11px; padding: 7px 8px; }
}

/* ============================================================
   BMD v1.2 — New Feature Styles
   ============================================================ */

/* ---- SECTION LABELS & DIVIDERS ---- */
.section-label { font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,0.3);padding:12px 8px 4px; }
.divider { height:1px;background:rgba(255,255,255,0.08);margin:8px 0; }

/* ---- BADGES ---- */
.badge { display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap; }
.badge-active   { background:#d1fae5;color:#059669; }
.badge-paused   { background:#fef3c7;color:#d97706; }
.badge-completed{ background:#e0f2fe;color:#0284c7; }
.badge-draft    { background:#f1f5f9;color:#64748b; }
.badge-cancelled{ background:#fee2e2;color:#ef4444; }
.badge-confirmed{ background:#d1fae5;color:#059669; }
.badge-pending  { background:#fef3c7;color:#92400e; }
.badge-lead     { background:#ede9fe;color:#7c3aed; }
.badge-inprogress{background:#e8f4f8;color:#0B2447; }
.badge-admin    { background:#e0f2fe;color:#0284c7; }

/* ---- TABS ---- */
.tab-bar { display:flex;gap:4px;margin-bottom:16px;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:4px;width:fit-content; }
.tab { padding:7px 16px;border-radius:7px;font-size:13px;font-weight:600;cursor:pointer;color:var(--text-muted);transition:all .15s; }
.tab:hover { background:var(--bg); }
.tab.active { background:var(--primary);color:#fff; }

/* ---- MODAL ---- */
.modal-overlay { position:fixed;inset:0;background:rgba(0,0,0,0.5);display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px;backdrop-filter:blur(4px); }
.modal { background:var(--surface);border-radius:16px;padding:24px;width:100%;max-width:480px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,0.3); }
.modal-lg { max-width:640px; }
.modal-header { display:flex;justify-content:space-between;align-items:center;margin-bottom:20px; }
.modal-title { font-size:17px;font-weight:800;color:var(--text); }
.modal-close { background:none;border:none;font-size:22px;cursor:pointer;color:var(--text-muted);padding:0;line-height:1; }
.modal-close:hover { color:var(--text); }

/* ---- FORMS ---- */
.form-group { margin-bottom:14px; }
.form-label { display:block;font-size:12px;font-weight:700;color:var(--text-muted);margin-bottom:5px;text-transform:uppercase;letter-spacing:.04em; }
.form-row { display:flex;gap:12px; }
.form-row.cols-2 > * { flex:1;min-width:0; }

/* ---- PROGRESS ---- */
.progress-bar { background:var(--bg);border-radius:999px;height:8px;overflow:hidden;border:1px solid var(--border); }
.progress-bar-sm { height:5px; }
.progress-fill { height:100%;background:var(--accent);border-radius:999px;transition:width .4s; }

/* ---- PIPELINE / KANBAN ---- */
.pipeline-col { background:var(--bg);border-radius:12px;padding:12px;min-width:220px;flex-shrink:0;max-width:260px; }
.pipeline-col-header { font-size:12px;font-weight:700;padding:8px 12px;border-radius:8px;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center; }
.pipeline-card { background:var(--surface);border-radius:10px;padding:12px;margin-bottom:8px;border:1px solid var(--border);cursor:pointer;transition:all .15s;box-shadow:var(--shadow); }
.pipeline-card:hover { box-shadow:var(--shadow-md);transform:translateY(-1px); }

/* ---- FINANCE TRACKER COMPONENTS ---- */
.ft-kpi { background:var(--primary);color:white;border-radius:12px;padding:16px; }
.ft-kpi-label { font-size:11px;text-transform:uppercase;letter-spacing:.05em;opacity:.7;margin-bottom:4px; }
.ft-kpi-value { font-size:24px;font-weight:800;margin-bottom:2px; }
.ft-kpi-sub { font-size:11px;opacity:.6; }
.ft-transaction-row { display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border); }
.ft-tx-icon { width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:800;flex-shrink:0; }
.ft-tx-income  { background:#d1fae5;color:var(--success); }
.ft-tx-expense { background:#fee2e2;color:var(--danger); }
.ft-budget-bar { display:flex;align-items:flex-start;gap:12px;padding:8px 0;border-bottom:1px solid #f1f5f9; }
.ft-budget-label { width:130px;font-size:12px;font-weight:600;flex-shrink:0;padding-top:2px; }
.ft-budget-track { flex:1; }
.ft-budget-amounts { display:flex;justify-content:space-between;font-size:12px;margin-bottom:4px; }
.ft-goal-card { background:linear-gradient(135deg,var(--primary),#0d3b6e);color:white;border-radius:12px;padding:16px; }

/* ---- LOGIN ---- */
.login-page { min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--primary) 0%,#0d3b6e 100%); }
.login-card { background:var(--surface);border-radius:20px;padding:36px 32px;width:100%;max-width:380px;box-shadow:0 25px 60px rgba(0,0,0,0.3); }

/* ---- TABLES ---- */
.table-card { padding:0; }
.table-card .table-wrap { padding:0; }
.desktop-table { display:block; }

/* ---- MOBILE CARDS ---- */
.mobile-card-list { display:none; }
.m-card { background:var(--bg);border-radius:10px;padding:14px;margin-bottom:10px;border:1px solid var(--border); }
.m-card-title { font-size:15px;font-weight:700;margin-bottom:6px; }
.m-card-row { display:flex;justify-content:space-between;font-size:13px;color:var(--text-muted);margin-bottom:4px; }
.m-card-actions { display:flex;gap:8px;margin-top:10px;flex-wrap:wrap; }

/* ---- EMPTY STATE ---- */
.empty-state { text-align:center;padding:40px 20px;color:var(--text-muted); }
.empty-state p { margin:8px 0 0;font-size:14px; }

/* ---- STAT CARDS ---- */
.stat-card { padding:20px; }
.stat-card.teal { border-top:3px solid var(--accent); }
.stat-card.green { border-top:3px solid var(--success); }
.stat-card.orange { border-top:3px solid var(--warning); }

/* ---- ALERTS ---- */
.alert { padding:10px 14px;border-radius:8px;font-size:13px; }
.alert-info { background:#e0f2fe;border:1px solid #0284c7;color:#0284c7; }

/* ---- APP MAIN ---- */
.app-main { background:var(--bg); }
.fade-in { animation:fadeIn .2s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }

/* ---- DOCS ---- */
.doc-heading { font-size:16px;font-weight:800;margin-bottom:10px;color:var(--primary); }
.doc-text { font-size:14px;color:var(--text-muted);line-height:1.7;margin-bottom:10px; }
.doc-list { margin:0;padding-left:20px;color:var(--text-muted); }
.doc-list li { margin-bottom:6px;font-size:14px;line-height:1.6; }

/* ---- MOBILE RESPONSIVE ---- */
@media (max-width: 768px) {
  .app-shell { grid-template-columns:1fr!important; }
  .sidebar { display:none; }
  .mobile-topbar { display:flex; }
  .mobile-bottomnav { display:flex; }
  .app-main { padding-top:var(--topbar-h);padding-bottom:var(--bottomnav-h); }
  #content { padding:16px!important; }
  .desktop-table { display:none!important; }
  .mobile-card-list { display:block; }
  .stat-grid { grid-template-columns:repeat(2,1fr)!important; }
  .form-row.cols-2 { flex-direction:column;gap:0; }
  [style*="grid-template-columns:1fr 1fr"],[style*="grid-template-columns:2fr 1fr"],[style*="grid-template-columns:350px"],[style*="grid-template-columns:360px"],[style*="grid-template-columns:200px"] { grid-template-columns:1fr!important; }
  .pipeline-col { min-width:200px; }
}

@media (max-width:480px) {
  .tab-bar { flex-wrap:wrap; }
  .ft-kpi-grid { grid-template-columns:repeat(2,1fr)!important; }
}

/* ---- PRINT ---- */
@media print {
  .sidebar,.mobile-topbar,.mobile-bottomnav,.btn,.tab-bar,input,select,.mobile-drawer { display:none!important; }
  .app-shell { grid-template-columns:1fr!important; }
  .printable { padding:0; }
}
