:root {
  --bg: #f3f6fc;
  --panel: #ffffff;
  --text: #101a2e;
  --muted: #64748b;
  --dark: #0b1730;
  --dark-2: #0f1f3d;
  --line: #e7ecf5;
  --blue: #1769e0;
  --green: #17a869;
  --red: #e0374a;
  --yellow: #f5a623;
  --cyan: #1ea6b8;
  --shadow: 0 12px 34px rgba(15, 40, 90, .08);
  --shadow-lg: 0 24px 60px rgba(15, 40, 90, .14);
  --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 292px; background: var(--dark); color: #f9fafb; z-index: 50; transform: translateX(-100%); transition: .22s ease; overflow-y: auto; box-shadow: 18px 0 45px rgba(0,0,0,.18); }
.sidebar.open { transform: translateX(0); }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 40; display: none; }
.sidebar-backdrop.open { display: block; }
.brand-box { display: flex; gap: 12px; align-items: center; padding: 22px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #0d8bff, #24a447); font-weight: 900; font-size: 20px; }
.brand-title { font-weight: 800; letter-spacing: .2px; }
.brand-subtitle { color: #cbd5e1; font-size: 12px; margin-top: 3px; }
.profile-card { margin: 16px; padding: 12px; border-radius: 14px; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); }
.avatar { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; background: #f8fafc; color: var(--dark); }
.profile-name { font-weight: 700; font-size: 14px; }
.role-badge { display: inline-block; margin-top: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(23,168,105,.2); color: #6ee7b7; font-size: 11px; text-transform: capitalize; font-weight: 700; }
.nav-menu { padding: 4px 10px 22px; }
.nav-group { border-top: 1px solid rgba(255,255,255,.06); padding-top: 8px; margin-top: 8px; }
.nav-group-title { width: 100%; border: 0; color: #e5e7eb; background: rgba(255,255,255,.05); padding: 10px 12px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; cursor: pointer; }
.nav-group-items { padding: 6px 0; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; color: #d1d5db; border-radius: 10px; font-size: 14px; }
.nav-link i { width: 18px; text-align: center; color: #a7f3d0; }
.nav-link:hover, .nav-link.active { background: rgba(13,139,255,.18); color: #fff; }
.nav-link.active i { color: #fff; }
.logout-link { margin-top: 10px; color: #fecaca; }
.call-center-box { display: grid; justify-items: center; gap: 8px; padding: 18px; color: #cbd5e1; }
.qr-dummy { width: 88px; height: 88px; border-radius: 6px; background: repeating-linear-gradient(45deg,#fff 0 5px,#111827 5px 10px); border: 5px solid #fff; }
.wa-dot { width: 30px; height: 30px; display: grid; place-items: center; background: #22c55e; color: #fff; border-radius: 999px; }
.main-content { width: 100%; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 68px; padding: 0 20px; display: flex; gap: 12px; align-items: center; background: #fff; color: var(--text); box-shadow: var(--shadow); border-bottom: 1px solid var(--line); }
.menu-btn { width: 40px; height: 40px; border: 0; background: var(--bg); color: var(--text); border-radius: 12px; cursor: pointer; }
.page-title { font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.page-subtitle { color: var(--muted); font-size: 12px; margin-top: 2px; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; background: var(--bg); color: var(--text); font-size: 13px; font-weight: 700; }
.topbar-link:hover { background: #e8f0fe; color: var(--blue); }
.notif { font-weight: 700; color: #0873ce; }
.content-area { padding: 20px 16px 32px; flex: 1; }
.notice-box { background: #fff7ed; border: 1px solid #fed7aa; color: #b45309; padding: 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kpi-card { min-height: 140px; border-radius: 20px; color: white; padding: 20px 16px 0; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-lg); overflow: hidden; position: relative; }
.kpi-card::after { content: ''; position: absolute; width: 120px; height: 120px; background: rgba(255,255,255,.12); border-radius: 50%; top: -50px; right: -30px; }
.kpi-card.green { background: linear-gradient(135deg,#17a869,#0f8a54); }
.kpi-card.blue { background: linear-gradient(135deg,#1769e0,#0d4fb5); }
.kpi-card.red { background: linear-gradient(135deg,#e0374a,#b32338); }
.kpi-card.yellow { background: linear-gradient(135deg,#f5a623,#d68a0e); color: #1a1206; }
.kpi-card.cyan { background: linear-gradient(135deg,#1ea6b8,#127e8c); }
.kpi-value { text-align: center; font-size: 26px; font-weight: 900; line-height: 1.25; position: relative; z-index: 1; }
.kpi-label { text-align: center; font-size: 13px; opacity: .9; position: relative; z-index: 1; }
.kpi-more { margin: 18px -16px 0; padding: 12px; text-align: center; background: rgba(0,0,0,.12); font-size: 13px; position: relative; z-index: 1; }
.dashboard-split, .finance-grid { display: grid; gap: 16px; margin-top: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel-header { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.panel-title { font-weight: 900; font-size: 17px; margin-bottom: 5px; letter-spacing: -.01em; }
.panel p { color: var(--muted); margin: 0; font-size: 13px; }
.blue-panel { background: linear-gradient(135deg,#1769e0,#0d4fb5); color: #fff; }
.status-line, .finance-summary div, .profit-table div, .settings-list div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(148,163,184,.2); }
.finance-summary span, .profit-table span, .settings-list span { color: var(--muted); }
.blue-panel .status-line { border-bottom-color: rgba(255,255,255,.22); }
.stat-panel span { display: block; color: var(--muted); font-size: 13px; }
.stat-panel strong { display: block; margin-top: 6px; font-size: 24px; color: var(--text); }
.profit-table .total { font-weight: 800; background: var(--bg); margin: 0 -8px; padding: 12px 8px; border-radius: 10px; }
.filter-grid, .action-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 12px; }
select, input { width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; color: var(--text); transition: border-color .15s ease; }
select:focus, input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,224,.1); }
.btn { border: 0; min-height: 42px; border-radius: 12px; padding: 0 16px; font-weight: 800; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn.primary, .btn.blue { background: var(--blue); }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); }
.btn.cyan { background: var(--cyan); }
.btn.gray { background: #6b7280; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; }
th { background: var(--dark); color: #fff; font-size: 12px; text-align: left; padding: 13px 14px; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
td { border-bottom: 1px solid var(--line); padding: 13px 14px; font-size: 13px; vertical-align: top; }
tr:hover td { background: #f7faff; }
.action-icons { display: flex; flex-wrap: wrap; gap: 5px; min-width: 112px; }
.action-icons button { width: 30px; height: 30px; border: 0; border-radius: 9px; color: white; background: var(--blue); }
.action-icons button:nth-child(1) { background: var(--green); }
.action-icons button:nth-child(3) { background: var(--yellow); color: #111827; }
.action-icons button:nth-child(4) { background: var(--cyan); }
.badge { display: inline-flex; min-width: 64px; justify-content: center; border-radius: 999px; padding: 5px 12px; font-size: 11px; font-weight: 800; color: #fff; background: #64748b; text-transform: uppercase; letter-spacing: .03em; }
.badge.paid, .badge.active, .badge.online { background: var(--green); }
.badge.unpaid, .badge.overdue, .badge.suspended, .badge.offline, .badge.disconnected, .badge.inactive { background: var(--red); }
.badge.partial, .badge.handling, .badge.open, .badge.unknown { background: var(--blue); }
.badge.pending { background: var(--yellow); color: #111827; }
.report-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.report-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; align-items: center; gap: 10px; background: #f8fafc; font-weight: 800; }
.report-card i { color: var(--blue); }
.map-placeholder { min-height: 360px; border-radius: 18px; display: grid; place-items: center; gap: 8px; color: var(--muted); border: 2px dashed #cbd5e1; background: linear-gradient(135deg,#f8fafc,#eef6ff); }
.map-placeholder i { font-size: 54px; color: var(--blue); }
.empty-state { min-height: 320px; display: grid; place-items: center; text-align: center; align-content: center; gap: 12px; }
.empty-state i { font-size: 42px; color: var(--blue); }
.footer { color: var(--muted); text-align: center; padding: 18px; font-size: 13px; border-top: 1px solid var(--line); background: #fff; }
.login-card { width: min(420px, 100%); background: rgba(255,255,255,.96); padding: 28px; border-radius: 24px; box-shadow: 0 22px 75px rgba(0,0,0,.35); }
.login-logo { width: 70px; height: 70px; display: grid; place-items: center; background: linear-gradient(135deg,#0d8bff,#22a746); color: white; font-weight: 900; border-radius: 22px; font-size: 28px; margin: 0 auto 14px; }
.login-card h1 { text-align: center; margin: 0 0 6px; }
.login-card p { text-align: center; color: var(--muted); margin-top: 0; }
.login-card form { display: grid; gap: 10px; margin-top: 18px; }
.login-card label { font-size: 13px; font-weight: 800; }
.login-card button { border: 0; height: 46px; background: var(--blue); color: #fff; border-radius: 12px; font-weight: 900; cursor: pointer; }
.alert { border-radius: 12px; padding: 12px; margin: 14px 0; font-size: 14px; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.login-hint { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
@media (min-width: 760px) {
  .filter-grid { grid-template-columns: repeat(4, 1fr); }
  .action-grid { grid-template-columns: repeat(4, max-content); }
  .dashboard-split, .finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .sidebar { position: sticky; transform: none; height: 100vh; flex: 0 0 292px; }
  .main-content { width: calc(100% - 292px); }
  .menu-btn { display: none; }
  .content-area { padding: 24px; }
  .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .finance-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sidebar-backdrop { display: none !important; }
}

/* v0.2 core CRUD */
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 12px 0; }
.form-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; color: #374151; }
textarea { width: 100%; min-height: 82px; border: 1px solid #d1d5db; border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--text); font: inherit; resize: vertical; }
input[type="checkbox"] { width: auto; height: auto; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.btn.small { min-height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.link { background: #eef2ff; color: #1d4ed8; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline-form input, .inline-form select { height: 32px; min-width: 92px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.mini-muted { color: var(--muted); font-size: 12px; }
.summary-box { display: grid; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px; background: #f8fafc; border-radius: 10px; border: 1px solid #eef2f7; }
.summary-row strong { text-align: right; }
.invoice-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 22px; max-width: 860px; margin: 0 auto; box-shadow: var(--shadow); }
.invoice-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid #e5e7eb; padding-bottom: 16px; margin-bottom: 16px; }
.invoice-title { font-size: 30px; font-weight: 900; color: #0f172a; }
.print-only { display: none; }
@media print { .sidebar, .topbar, .footer, .no-print, .sidebar-backdrop { display: none !important; } .main-content { width: 100% !important; } .content-area { padding: 0 !important; } body { background: #fff; } .invoice-box { box-shadow: none; border: 0; border-radius: 0; } }
@media (min-width: 760px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: span 2; } .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* v0.3 ops finance wa */
.badge.queued { background: #0d8bff; }
.badge.sent { background: #22a746; }
.badge.failed { background: #e5364e; }
.badge.maintenance { background: #ffc20a; color:#111827; }
.report-card:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(15,23,42,.08); }

/* v0.4 network voucher inventory */
.badge.ready, .badge.available, .badge.success, .badge.simulated { background: #22a746; }
.badge.installed, .badge.sold, .badge.used { background: #0d8bff; }
.badge.broken, .badge.lost, .badge.cancelled, .badge.expired { background: #e5364e; }
.badge.static, .badge.hotspot, .badge.pppoe, .badge.info, .badge.billing, .badge.warning { background: #0c88a6; }

/* v0.5 customer portal */
.topbar-actions { display:flex; align-items:center; gap:10px; }
.topbar-link { display:none; align-items:center; gap:6px; padding:8px 10px; border-radius:10px; background:rgba(255,255,255,.38); color:#1f2937; font-weight:900; font-size:12px; }
.portal-body { min-height:100vh; background: radial-gradient(circle at top left, rgba(13,139,255,.24), transparent 28%), radial-gradient(circle at bottom right, rgba(36,164,71,.18), transparent 30%), #eef4fb; }
.portal-shell { width:min(1180px, 100%); margin:0 auto; padding:18px; }
.portal-hero { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin:10px 0 18px; padding:24px; border-radius:24px; color:#fff; background:linear-gradient(135deg,#101827,#0d8bff); box-shadow:var(--shadow); }
.portal-logo { width:58px; height:58px; border-radius:18px; display:grid; place-items:center; font-weight:900; font-size:22px; color:#101827; background:#ffc20a; margin-bottom:12px; }
.portal-hero h1 { margin:0 0 8px; font-size:clamp(26px,4vw,44px); }
.portal-hero p { margin:0; max-width:680px; color:#e2e8f0; }
.portal-actions { display:flex; gap:10px; flex-wrap:wrap; }
.portal-lookup { margin-bottom:14px; }
.portal-grid { display:grid; grid-template-columns:1fr; gap:14px; }
.portal-package-list { display:grid; gap:12px; }
.portal-package-card { display:grid; gap:4px; padding:14px; border:1px solid #e5e7eb; border-radius:14px; background:#f8fafc; }
.portal-package-card strong { font-size:16px; }
.portal-package-card span { color:var(--muted); }
.portal-package-card b { color:#0d8bff; }
.portal-proof-form { display:grid; gap:7px; min-width:240px; }
.portal-proof-form input { height:36px; }
.badge.survey { background:#0d8bff; }
.badge.approved { background:#22a746; }
.badge.rejected { background:#e5364e; }
@media (min-width:760px) {
  .portal-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .topbar-link { display:inline-flex; }
}


/* v0.7 UI mobile polish + customer 360 */
body.dark-mode {
  --bg: #0f172a;
  --panel: #111827;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --line: rgba(148,163,184,.22);
  --shadow: 0 18px 45px rgba(0,0,0,.25);
}
body.dark-mode .topbar { background: linear-gradient(135deg,#1f2937,#0f172a); color:#f8fafc; }
body.dark-mode .page-subtitle { color:#cbd5e1; }
body.dark-mode table, body.dark-mode tr:nth-child(even) td, body.dark-mode .footer, body.dark-mode .portal-package-card, body.dark-mode .summary-row, body.dark-mode .profit-table .total, body.dark-mode .report-card { background:#111827; }
body.dark-mode th { background:#1f2937; }
body.dark-mode select, body.dark-mode input, body.dark-mode textarea { background:#0b1220; color:#f8fafc; border-color:rgba(148,163,184,.28); }
body.dark-mode .notice-box { background:rgba(251,191,36,.12); border-color:rgba(251,191,36,.25); color:#fde68a; }
body.dark-mode .map-placeholder { background:linear-gradient(135deg,#0b1220,#111827); }
.topbar-icon-btn { width:38px; height:38px; border:0; border-radius:12px; background:rgba(255,255,255,.38); color:inherit; cursor:pointer; display:grid; place-items:center; }
.mobile-bottom-nav { position:fixed; left:10px; right:10px; bottom:10px; z-index:35; display:grid; grid-template-columns:repeat(5,1fr); gap:4px; padding:8px; border:1px solid rgba(148,163,184,.24); border-radius:22px; background:rgba(255,255,255,.92); box-shadow:0 20px 55px rgba(15,23,42,.18); backdrop-filter: blur(16px); }
.mobile-bottom-nav a { min-height:48px; border-radius:16px; display:grid; place-items:center; align-content:center; gap:2px; color:#64748b; font-size:11px; font-weight:800; }
.mobile-bottom-nav a i { font-size:17px; }
.mobile-bottom-nav a.active { background:linear-gradient(135deg,#0d8bff,#20a8b9); color:#fff; }
body.dark-mode .mobile-bottom-nav { background:rgba(15,23,42,.92); }
.content-area { padding-bottom:96px; }
.customer-card-list { display:none; }
.customer-mobile-card { background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:14px; box-shadow:var(--shadow); display:grid; gap:12px; }
.customer-mobile-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.customer-mobile-head strong { display:block; font-size:15px; }
.customer-mobile-head span:not(.badge) { display:block; color:var(--muted); font-size:12px; margin-top:3px; }
.customer-mobile-meta { display:grid; gap:8px; color:var(--muted); font-size:13px; }
.customer-mobile-meta i { width:18px; color:var(--blue); }
.customer-mobile-actions { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.customer-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; background:linear-gradient(135deg,#101827,#0d8bff); color:#fff; border:0; }
.customer-hero p { color:#dbeafe; }
.customer-hero h2 { margin:4px 0 8px; font-size:clamp(24px,4vw,38px); }
.customer-hero-main { display:flex; align-items:center; gap:16px; }
.customer-avatar-lg { width:76px; height:76px; border-radius:24px; display:grid; place-items:center; background:#ffc20a; color:#111827; font-size:34px; font-weight:900; flex:0 0 auto; }
.customer-code-chip { display:inline-flex; padding:6px 10px; border-radius:999px; background:rgba(255,255,255,.16); font-size:12px; font-weight:900; }
.hero-badges, .customer-hero-actions { display:flex; flex-wrap:wrap; gap:8px; }
.customer-stat-grid { display:grid; grid-template-columns:1fr; gap:12px; margin:14px 0; }
.customer-stat-card { padding:16px; border:1px solid var(--line); border-radius:18px; background:var(--panel); box-shadow:var(--shadow); display:grid; gap:5px; }
.customer-stat-card span { color:var(--muted); font-size:13px; font-weight:800; }
.customer-stat-card strong { font-size:22px; }
.customer-stat-card small { color:var(--muted); }
.customer-stat-card.danger strong { color:#e5364e; }
.customer-detail-grid { display:grid; grid-template-columns:1fr; gap:14px; margin-top:14px; }
.compact-list div { padding:10px 0; }
.note-form { display:grid; gap:10px; }
.timeline-list { display:grid; gap:12px; }
.timeline-item { display:flex; gap:12px; align-items:flex-start; }
.timeline-item > span { width:12px; height:12px; border-radius:999px; margin-top:5px; background:var(--blue); box-shadow:0 0 0 4px rgba(13,139,255,.14); flex:0 0 auto; }
.timeline-item strong { display:block; font-size:14px; }
.timeline-item small { display:block; color:var(--muted); margin-top:3px; }
@media (max-width: 759px) {
  .topbar { height:auto; min-height:64px; align-items:flex-start; padding:12px; }
  .topbar-actions .notif { display:none; }
  .page-title { font-size:15px; }
  .page-subtitle { font-size:11px; }
  .kpi-grid { grid-template-columns:1fr; }
  .kpi-card { min-height:112px; padding-top:14px; }
  .kpi-value { font-size:28px; }
  .responsive-table { display:none; }
  .customer-card-list { display:grid; gap:12px; }
  .customer-hero-main { align-items:flex-start; }
  .customer-avatar-lg { width:60px; height:60px; border-radius:18px; font-size:26px; }
  .customer-hero-actions { width:100%; display:grid; grid-template-columns:repeat(2,1fr); }
  .customer-hero-actions .btn { width:100%; }
}
@media (min-width:760px) {
  .customer-stat-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .customer-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:1024px) {
  .mobile-bottom-nav { display:none; }
  .content-area { padding-bottom:28px; }
}

/* v0.7 Payment Gateway */
.payment-checkout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}.checkout-qr-box{border:1px solid var(--border);border-radius:22px;padding:18px;text-align:center;background:var(--panel-2)}.fake-qr{display:grid;grid-template-columns:repeat(11,1fr);gap:4px;width:220px;height:220px;margin:0 auto 14px;padding:12px;border-radius:18px;background:#fff}.fake-qr span{border-radius:3px;background:#edf2f7}.fake-qr span.on{background:#111827}.checkout-qr-box code{display:block;word-break:break-all;font-size:11px;line-height:1.45}.payment-success,.payment-expired{margin-top:14px;padding:12px;border-radius:14px;font-weight:800}.payment-success{background:rgba(34,197,94,.15);color:#16a34a}.payment-expired{background:rgba(239,68,68,.15);color:#dc2626}.payload-box{white-space:pre-wrap;max-width:360px;background:rgba(15,23,42,.06);padding:10px;border-radius:12px}.invoice-payment-box{margin-top:18px;border:1px dashed var(--border);border-radius:18px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:14px}.mini-qr{width:82px;height:82px;border-radius:14px;background:repeating-linear-gradient(45deg,#111827 0 8px,#fff 8px 14px);font-size:8px;color:transparent;border:8px solid #fff;box-shadow:0 0 0 1px var(--border)}
@media (max-width: 760px){.payment-checkout{grid-template-columns:1fr}.fake-qr{width:190px;height:190px}.invoice-payment-box{align-items:flex-start;flex-direction:column}}

/* v0.8 finance report */
.filter-inline { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.filter-inline select { width:auto; min-width:140px; }
.mini-muted { color: var(--muted); font-size: 13px; }
.badge.cash, .badge.transfer, .badge.qris, .badge.virtual_account, .badge.gateway, .badge.deposit { background:#0c88a6; }
body.dark-mode .filter-inline select { background:#111827; color:#e5e7eb; border-color:#374151; }

/* v0.9 ticketing, teknisi, daily jobs, instalasi */
.badge.urgent { background:#991b1b; }
.badge.high { background:#e5364e; }
.badge.normal { background:#0d8bff; }
.badge.low { background:#64748b; }
.badge.on_leave { background:#ffc20a; color:#111827; }
.badge.planned, .badge.scheduled, .badge.survey { background:#0d8bff; }
.badge.in_progress { background:#0c88a6; }
.badge.done, .badge.installed { background:#22a746; }
.badge.cancelled { background:#64748b; }
.note-form .form-grid { margin: 0; }


/* v1.3 customer portal plus */
.hidden{display:none!important}.timeline{display:grid;gap:10px}.timeline-item{border-left:3px solid var(--primary);padding:8px 0 8px 12px;background:rgba(15,23,42,.03);border-radius:12px}.timeline-item strong{display:block}.timeline-item small{display:block;color:var(--muted);margin:3px 0}.portal-actions{display:flex;gap:10px;flex-wrap:wrap}.portal-proof-form{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.portal-proof-form input{min-width:140px}.badge.pending{background:#ffc20a;color:#111827}.badge.approved{background:#22a746}.badge.rejected{background:#e5364e}

/* v2.1 backup center + system health */
.badge.ok, .badge.database, .badge.full, .badge.completed { background:#22a746; }
.badge.error, .badge.deleted, .badge.cancelled { background:#e5364e; }
.badge.running, .badge.scheduled { background:#0d8bff; }
code { background:#eef2ff; color:#1d4ed8; padding:2px 6px; border-radius:6px; font-size:12px; }
body.dark-mode code { background:#0b1220; color:#93c5fd; }
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.feature-card{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--card-bg);box-shadow:var(--soft-shadow)}.feature-card i{color:#16a34a}.detail-list{display:grid;gap:10px}.detail-list>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}.detail-list span{color:var(--muted)}.timeline-list{display:grid;gap:12px}.timeline-item{padding:14px;border:1px solid var(--border);border-radius:14px;background:var(--card-bg)}.timeline-item p{margin:6px 0 0;color:var(--muted)}

/* v3.0 Menu & Flow Lockdown */
.flow-chain{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:12px}
.flow-step-card{border:1px solid var(--border-color, #e5e7eb);border-radius:16px;padding:14px;background:var(--card-bg,#fff);box-shadow:0 8px 22px rgba(15,23,42,.06)}

/* v3.3 simple workflow navigation */
.nav-group-items { display:none; padding:6px 0; }
.nav-group.open .nav-group-items { display:block; }
.nav-group-title i { transition:transform .18s ease; }
.nav-group.open .nav-group-title i { transform:rotate(180deg); }
.nav-group.open .nav-group-title { background:rgba(13,139,255,.18); color:#fff; }
.eyebrow { display:inline-flex; color:var(--blue); font-size:11px; font-weight:900; letter-spacing:.12em; }

.simple-dashboard-hero,
.feature-center-hero {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:16px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--panel);
  box-shadow:var(--shadow);
}
.simple-dashboard-hero h1,
.feature-center-hero h1 { margin:7px 0 5px; font-size:clamp(22px,3vw,32px); }
.simple-dashboard-hero p,
.feature-center-hero p { margin:0; color:var(--muted); }
.hero-date { display:flex; align-items:center; gap:9px; padding:10px 14px; border-radius:12px; background:rgba(13,139,255,.1); color:var(--blue); font-weight:900; }
.simple-overview-grid { display:grid; grid-template-columns:1fr; gap:12px; margin-bottom:14px; }
.simple-overview-card { display:flex; align-items:center; gap:13px; min-height:94px; padding:15px; border:1px solid var(--line); border-radius:18px; background:var(--panel); box-shadow:var(--shadow); }
.simple-overview-icon { width:48px; height:48px; display:grid; place-items:center; flex:0 0 auto; border-radius:15px; color:#fff; background:var(--blue); font-size:19px; }
.simple-overview-card.green .simple-overview-icon { background:var(--green); }
.simple-overview-card.red .simple-overview-icon { background:var(--red); }
.simple-overview-card.yellow .simple-overview-icon { background:var(--yellow); color:#172033; }
.simple-overview-card small { display:block; color:var(--muted); font-weight:700; }
.simple-overview-card strong { display:block; margin-top:5px; font-size:19px; }
.simple-quick-panel { margin-bottom:14px; }
.simple-quick-actions { display:flex; flex-wrap:wrap; gap:8px; }
.simple-dashboard-columns { display:grid; grid-template-columns:1fr; gap:14px; }
.simple-priority-list,
.simple-invoice-list { display:grid; }
.simple-priority-list > a,
.simple-invoice-list > div { display:flex; align-items:center; gap:11px; padding:12px 0; border-bottom:1px solid var(--line); }
.simple-priority-list > a:last-child,
.simple-invoice-list > div:last-child { border-bottom:0; }
.simple-priority-list > a > span:nth-child(2),
.simple-invoice-list > div > span:first-child { min-width:0; flex:1; }
.simple-priority-list strong,
.simple-invoice-list strong { display:block; font-size:13px; }
.simple-priority-list small,
.simple-invoice-list small { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
.priority-icon { width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; border-radius:12px; }
.priority-icon.danger { background:rgba(221,51,73,.12); color:var(--red); }
.priority-icon.warning { background:rgba(255,194,10,.16); color:#b98500; }
.priority-icon.info { background:rgba(13,139,255,.12); color:var(--blue); }
.priority-icon.success { background:rgba(36,164,71,.12); color:var(--green); }
.invoice-list-value { text-align:right; }
.invoice-list-value .badge { margin-top:4px; min-width:0; }
.simple-empty { color:var(--muted); justify-content:center; }

.feature-center-hero { align-items:flex-end; }
.feature-search { display:flex; align-items:center; gap:9px; width:min(420px,100%); height:46px; padding:0 13px; border:1px solid var(--line); border-radius:14px; background:var(--bg); }
.feature-search i { color:var(--muted); }
.feature-search input { height:auto; padding:0; border:0; outline:0; background:transparent; }
.feature-legend { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 14px; }
.feature-center-groups { display:grid; gap:14px; }
.feature-center-group { padding:18px; border:1px solid var(--line); border-radius:20px; background:var(--panel); box-shadow:var(--shadow); }
.feature-group-head { display:flex; align-items:flex-start; gap:12px; margin-bottom:14px; }
.feature-group-icon { width:44px; height:44px; display:grid; place-items:center; flex:0 0 auto; border-radius:14px; color:#fff; background:linear-gradient(135deg,var(--blue),var(--cyan)); }
.feature-group-head h2 { margin:0 0 4px; font-size:17px; }
.feature-group-head p { margin:0; color:var(--muted); font-size:12px; }
.feature-center-grid { display:grid; grid-template-columns:1fr; gap:8px; }
.feature-center-card { display:flex; align-items:center; gap:10px; min-height:64px; padding:10px; border:1px solid var(--line); border-radius:14px; background:var(--bg); transition:.16s ease; }
.feature-center-card:hover { transform:translateY(-1px); border-color:rgba(13,139,255,.45); background:var(--panel); }
.feature-card-icon { width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; border-radius:12px; color:var(--blue); background:rgba(13,139,255,.1); }
.feature-card-copy { min-width:0; flex:1; }
.feature-card-copy strong { display:block; font-size:13px; }
.feature-card-copy small { display:block; margin-top:2px; color:var(--muted); font-size:10px; }
.feature-card-arrow { color:var(--muted); font-size:11px; }
.feature-status { display:inline-flex; align-items:center; justify-content:center; padding:4px 8px; border-radius:999px; font-size:10px; font-weight:900; white-space:nowrap; }
.feature-status.utama { background:rgba(36,164,71,.12); color:#16813a; }
.feature-status.lanjutan { background:rgba(13,139,255,.12); color:#0870df; }
.feature-status.uji { background:rgba(255,194,10,.17); color:#9a7000; }
.feature-empty { margin-top:14px; }

@media (min-width:760px) {
  .simple-overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .feature-center-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:1180px) {
  .simple-overview-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .simple-dashboard-columns { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); }
  .feature-center-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
.flow-arrow{margin:8px 0;color:var(--muted-color,#64748b)}

/* v3.4 professional blue/white design system */
:root {
  --bg:#f4f8ff;
  --panel:#ffffff;
  --text:#10213d;
  --muted:#64748b;
  --dark:#0b2a55;
  --dark-2:#071f42;
  --line:#dce8f7;
  --blue:#1769e0;
  --green:#1769e0;
  --red:#0b4fad;
  --yellow:#3b82f6;
  --cyan:#2563eb;
  --shadow:0 12px 32px rgba(23,105,224,.09);
  --focus:0 0 0 3px rgba(23,105,224,.18);
}
body { background:linear-gradient(180deg,#f8fbff 0,#f2f7ff 100%); color:var(--text); }
.sidebar { background:linear-gradient(180deg,#0b2a55 0%,#071f42 100%); box-shadow:18px 0 45px rgba(7,31,66,.16); }
.brand-box { padding:24px 20px 18px; border-bottom-color:rgba(255,255,255,.12); }
.brand-mark { background:#fff; color:#1769e0; border-radius:14px; box-shadow:0 8px 24px rgba(0,0,0,.16); }
.brand-subtitle,.nav-link { color:#cfe1fb; }
.profile-card { background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.1); }
.avatar { color:#1769e0; }
.role-badge { background:#fff; color:#0b4fad; }
.nav-group-title { color:#dceaff; background:transparent; }
.nav-group.open .nav-group-title { background:rgba(255,255,255,.1); color:#fff; }
.nav-link i { color:#8dbbff; }
.nav-link:hover,.nav-link.active { background:#fff; color:#0b4fad; }
.nav-link:hover i,.nav-link.active i { color:#1769e0; }
.logout-form { margin:0; }
.logout-form .logout-link { width:100%; border:0; background:transparent; font:inherit; cursor:pointer; }
.logout-form .logout-link:hover { background:rgba(255,255,255,.1); color:#fff; }
.topbar { height:72px; padding:0 22px; background:rgba(255,255,255,.96); color:var(--text); border-bottom:1px solid var(--line); box-shadow:0 6px 22px rgba(23,105,224,.06); backdrop-filter:blur(14px); }
.page-title { font-size:17px; }
.page-subtitle { color:var(--muted); }
.page-subtitle a { color:var(--blue); font-weight:800; }
.menu-btn,.topbar-link,.topbar-icon-btn { background:#edf5ff; color:#0b4fad; border:1px solid #d6e7ff; }
.content-area { width:100%; max-width:1600px; margin:0 auto; padding:26px; }
.panel,.simple-dashboard-hero,.feature-center-hero,.simple-overview-card,.feature-center-group,.customer-stat-card { border-color:var(--line); border-radius:16px; box-shadow:var(--shadow); }
.panel-title { color:#0b2a55; letter-spacing:-.01em; }
.blue-panel,.customer-hero,.portal-hero { background:linear-gradient(135deg,#0b4fad,#1769e0); }
.kpi-card,.kpi-card.green,.kpi-card.blue,.kpi-card.red,.kpi-card.yellow,.kpi-card.cyan { background:linear-gradient(135deg,#0b4fad,#1769e0); color:#fff; border:1px solid rgba(255,255,255,.18); }
.kpi-card:nth-child(even) { background:linear-gradient(135deg,#1769e0,#3b82f6); }
.simple-overview-icon,.simple-overview-card.green .simple-overview-icon,.simple-overview-card.red .simple-overview-icon,.simple-overview-card.yellow .simple-overview-icon { background:#1769e0; color:#fff; }
.btn,.btn.primary,.btn.blue,.btn.green,.btn.red,.btn.cyan,.btn.gray,.btn.orange,.btn.amber,.btn.dark { background:#1769e0; color:#fff; border:1px solid #1769e0; box-shadow:0 5px 14px rgba(23,105,224,.15); }
.btn:hover { background:#0b4fad; border-color:#0b4fad; transform:translateY(-1px); }
.btn.soft,.btn.link { background:#edf5ff; color:#0b4fad; border-color:#d6e7ff; box-shadow:none; }
select,input,textarea { border-color:#ccdcef; background:#fff; border-radius:10px; }
select:focus,input:focus,textarea:focus,button:focus-visible,a:focus-visible { outline:none; border-color:#1769e0; box-shadow:var(--focus); }
.table-wrap,.table-responsive { border:1px solid var(--line); border-radius:12px; overflow:auto; }
table { background:#fff; }
th { background:#0b4fad; color:#fff; }
tr:nth-child(even) td { background:#f7faff; }
tr:hover td { background:#edf5ff; }
.action-icons button,.action-icons button:nth-child(1),.action-icons button:nth-child(3),.action-icons button:nth-child(4) { background:#1769e0; color:#fff; }
.badge,.badge.paid,.badge.active,.badge.online,.badge.unpaid,.badge.overdue,.badge.suspended,.badge.offline,.badge.disconnected,.badge.inactive,.badge.pending,.badge.success,.badge.failed,.badge.error,.badge.warning,.badge.sent,.badge.queued,.badge.completed { background:#e7f1ff; color:#0b4fad; border:1px solid #c9defb; }
.notice-box,.alert,.alert-success,.alert-danger,.callout { background:#edf5ff; color:#0b3f88; border:1px solid #c9defb; }
.feature-group-icon,.feature-card-icon,.priority-icon,.priority-icon.danger,.priority-icon.warning,.priority-icon.info,.priority-icon.success { background:#e7f1ff; color:#1769e0; }
.feature-status,.feature-status.utama,.feature-status.lanjutan,.feature-status.uji { background:#e7f1ff; color:#0b4fad; }
.mobile-bottom-nav a.active { background:#1769e0; }
.login-body,.portal-body { background:radial-gradient(circle at top left,rgba(23,105,224,.22),transparent 34%),#f4f8ff; }
.login-logo,.portal-logo { background:#1769e0; color:#fff; }
.login-card { border:1px solid #dce8f7; box-shadow:0 24px 70px rgba(11,79,173,.18); }
.footer { border-top-color:var(--line); }
body.dark-mode { --bg:#f4f8ff; --panel:#fff; --text:#10213d; --muted:#64748b; --line:#dce8f7; }
body.dark-mode .topbar,body.dark-mode table,body.dark-mode tr:nth-child(even) td,body.dark-mode .footer,body.dark-mode .portal-package-card,body.dark-mode .summary-row,body.dark-mode .profit-table .total,body.dark-mode .report-card { background:#fff; color:var(--text); }
body.dark-mode select,body.dark-mode input,body.dark-mode textarea { background:#fff; color:var(--text); border-color:#ccdcef; }
@media(max-width:759px){.content-area{padding:16px 12px 94px}.topbar{padding:12px 14px}.page-subtitle{max-width:65vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

/* v3.6 responsive UI refinement */
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body { line-height:1.5; }
.sidebar { width:272px; }
.brand-title { font-size:15px; line-height:1.25; }
.brand-subtitle { font-size:11px; letter-spacing:.04em; text-transform:uppercase; }
.nav-menu { padding:4px 12px 24px; }
.nav-group { margin-top:5px; padding-top:5px; }
.nav-group-title { min-height:40px; padding:9px 11px; font-size:12px; letter-spacing:.02em; }
.nav-link { min-height:40px; padding:9px 11px; font-size:13px; font-weight:650; }
.topbar { min-height:72px; height:auto; }
.page-title { font-size:18px; line-height:1.2; }
.content-area { max-width:1480px; padding:28px clamp(20px,2.2vw,34px) 36px; }
.panel { padding:20px; }
.panel-header { margin-bottom:16px; }
.panel-title { font-size:16px; }
.simple-dashboard-hero { padding:24px 26px; background:linear-gradient(135deg,#fff 0%,#f5f9ff 100%); }
.simple-overview-grid { gap:14px; }
.simple-overview-card { min-height:104px; padding:18px; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.simple-overview-card:hover { transform:translateY(-2px); border-color:#b9d4fa; box-shadow:0 16px 36px rgba(23,105,224,.13); }
.simple-overview-icon { width:46px; height:46px; border-radius:13px; }
.simple-overview-card strong { font-size:20px; letter-spacing:-.02em; }
.simple-quick-actions .btn { min-height:42px; }
.simple-priority-list > a,.simple-invoice-list > div { min-height:64px; }
.btn { transition:background .16s ease,border-color .16s ease,transform .16s ease; }
select,input,textarea { font:inherit; }
input,select { min-height:44px; }
td,th { line-height:1.4; }

.login-body { min-height:100svh; display:grid; place-items:center; padding:20px; background:linear-gradient(135deg, #0b132b 0%, #1c2541 50%, #0b2545 100%); position:relative; overflow:hidden; }
.login-body::before { content:''; position:absolute; width:500px; height:500px; background:radial-gradient(circle, rgba(13,139,255,0.25) 0%, transparent 70%); top:-150px; left:-150px; border-radius:50%; pointer-events:none; }
.login-body::after { content:''; position:absolute; width:500px; height:500px; background:radial-gradient(circle, rgba(36,164,71,0.2) 0%, transparent 70%); bottom:-150px; right:-150px; border-radius:50%; pointer-events:none; }
.login-card { width:min(440px,100%); padding:38px 32px; border-radius:24px; background:rgba(255,255,255,0.95); backdrop-filter:blur(20px); border:1px solid rgba(255,255,255,0.3); box-shadow:0 30px 90px rgba(0,0,0,0.4); position:relative; z-index:2; transition:transform 0.3s ease; }
.login-logo { width:72px; height:72px; margin:0 auto 18px; border-radius:20px; background:linear-gradient(135deg,#0d8bff,#24a447); color:#fff; font-size:30px; font-weight:900; display:grid; place-items:center; box-shadow:0 14px 30px rgba(13,139,255,0.35); }
.login-card h1 { color:#0f172a; font-size:28px; text-align:center; font-weight:900; letter-spacing:-.02em; margin:0 0 6px; }
.login-card > p { text-align:center; color:#64748b; font-size:14px; margin:0 0 20px; line-height:1.5; }
.login-card form { display:grid; gap:12px; margin-top:16px; }
.login-card label { color:#334155; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; margin-top:4px; }
.input-icon { position:relative; }
.input-icon i { position:absolute; left:16px; top:50%; transform:translateY(-50%); color:#94a3b8; font-size:15px; transition:color 0.2s; }
.login-card input { width:100%; height:50px; padding:0 16px 0 46px; border:2px solid #e2e8f0; border-radius:14px; font-size:15px; color:#0f172a; background:#f8fafc; transition:all 0.2s ease; outline:none; }
.login-card input:focus { border-color:#0d8bff; background:#fff; box-shadow:0 0 0 4px rgba(13,139,255,0.12); }
.login-card input:focus + i, .input-icon:focus-within i { color:#0d8bff; }
.login-card button { width:100%; height:50px; border:0; background:linear-gradient(135deg,#0d8bff,#0062d2); color:#fff; border-radius:14px; font-weight:900; font-size:15px; cursor:pointer; box-shadow:0 10px 25px rgba(13,139,255,0.3); transition:all 0.2s ease; margin-top:8px; }
.login-card button:hover { transform:translateY(-1px); box-shadow:0 14px 30px rgba(13,139,255,0.4); }
.login-card button:active { transform:translateY(0); }
.login-security { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:22px; color:#64748b; font-size:12px; font-weight:500; }
.login-security i { color:#24a447; }
.login-hint { margin-top:14px; font-size:12px; color:#64748b; text-align:center; background:#f1f5f9; padding:10px; border-radius:10px; border:1px dashed #cbd5e1; }
.login-card .alert { border-radius:12px; padding:12px; margin:14px 0; font-size:14px; background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }

@media (min-width:1024px) {
  .sidebar { flex-basis:272px; }
  .main-content { width:calc(100% - 272px); }
}
@media (max-width:759px) {
  .login-body { place-items:start center; overflow-y:auto; }
  .login-card { margin:auto 0; padding:26px 22px; border-radius:20px; }
  .login-logo { width:58px; height:58px; margin-bottom:14px; border-radius:16px; font-size:24px; }
  .login-card h1 { font-size:26px; }
  .login-card > p { font-size:13px; }
  .login-card form { margin-top:18px; }
  .topbar { min-height:66px; padding:10px 12px; align-items:center; }
  .page-title { font-size:15px; }
  .page-subtitle { max-width:58vw; }
  .content-area { padding:14px 12px calc(94px + env(safe-area-inset-bottom)); }
  .panel { padding:16px; border-radius:14px; }
  .simple-dashboard-hero { padding:18px; margin-bottom:12px; }
  .simple-dashboard-hero h1 { font-size:22px; }
  .hero-date { padding:8px 11px; font-size:12px; }
  .simple-overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .simple-overview-card { min-height:120px; padding:14px; align-items:flex-start; flex-direction:column; gap:10px; }
  .simple-overview-icon { width:38px; height:38px; border-radius:11px; font-size:16px; }
  .simple-overview-card small { font-size:11px; line-height:1.25; }
  .simple-overview-card strong { margin-top:3px; font-size:16px; overflow-wrap:anywhere; }
  .simple-quick-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .simple-quick-actions .btn { width:100%; padding:8px; font-size:12px; }
  .simple-priority-list > a,.simple-invoice-list > div { align-items:flex-start; }
  .invoice-list-value { max-width:42%; }
  .mobile-bottom-nav { left:8px; right:8px; bottom:max(8px,env(safe-area-inset-bottom)); padding:6px; border-radius:18px; }
  .mobile-bottom-nav a { min-height:46px; border-radius:13px; font-size:10px; }
}
@media (max-height:700px) and (max-width:759px) {
  .login-body { padding-top:12px; padding-bottom:12px; }
  .login-card { margin:0; padding:20px 22px; }
  .login-logo { width:48px; height:48px; font-size:21px; margin-bottom:10px; }
  .login-card h1 { font-size:23px; }
  .login-card > p { display:none; }
  .login-card form { margin-top:13px; }
  .login-security { margin-top:12px; }
}

/* v3.6 customer workspace */
.customer-page-head { padding:22px; }
.customer-head-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pill { display:inline-flex; align-items:center; min-height:38px; padding:0 12px; border:1px solid #d6e7ff; border-radius:10px; background:#f2f7ff; color:#0b4fad; font-size:12px; font-weight:800; }
.customer-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.customer-summary-card { min-height:82px; padding:15px 16px; border:1px solid var(--line); border-radius:13px; background:#f8fbff; display:flex; flex-direction:column; justify-content:center; transition:.16s ease; }
.customer-summary-card:hover { border-color:#a9c9f6; background:#f0f6ff; transform:translateY(-1px); }
.customer-summary-card span { color:var(--muted); font-size:12px; font-weight:700; }
.customer-summary-card strong { margin-top:3px; color:#0b2a55; font-size:25px; line-height:1.15; }
.customer-tools { margin:0 0 14px; border:1px solid var(--line); border-radius:12px; background:#f8fbff; }
.customer-tools summary { padding:12px 14px; color:#0b4fad; font-size:13px; font-weight:800; cursor:pointer; list-style:none; }
.customer-tools summary::-webkit-details-marker { display:none; }
.customer-tools summary i { margin-right:7px; }
.customer-tools[open] { padding-bottom:12px; }
.customer-tools[open] summary { border-bottom:1px solid var(--line); margin-bottom:12px; }
.customer-tools .action-grid { padding:0 12px; }
.customer-search-bar { display:grid; grid-template-columns:minmax(260px,1fr) auto; gap:10px; align-items:center; padding:12px; margin:12px 0 14px; border:1px solid var(--line); border-radius:13px; background:#f8fbff; }
.customer-search-input { display:flex; align-items:center; gap:9px; min-height:44px; padding:0 12px; border:1px solid #ccdcef; border-radius:10px; background:#fff; }
.customer-search-input i { color:#1769e0; }
.customer-search-input input { min-height:0; height:auto; padding:0; border:0; box-shadow:none!important; background:transparent; }
.customer-search-filters { display:flex; align-items:center; gap:8px; }
.customer-search-filters select { width:auto; min-width:138px; }
.customer-search-filters .btn { min-height:44px; white-space:nowrap; }

@media(max-width:900px) {
  .customer-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .customer-search-bar { grid-template-columns:1fr; }
  .customer-search-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .customer-search-filters select { width:100%; min-width:0; }
}
@media(max-width:520px) {
  .customer-page-head { padding:16px; }
  .customer-page-head .panel-header { display:grid; }
  .customer-head-actions { display:grid; grid-template-columns:1fr; }
  .customer-head-actions .btn,.customer-head-actions .pill { width:100%; justify-content:center; }
  .customer-summary-grid { gap:8px; }
  .customer-summary-card { min-height:72px; padding:12px; }
  .customer-summary-card strong { font-size:22px; }
  .customer-search-filters { grid-template-columns:1fr; }
}

/* v4.4 system, reporting, and settings workspace */
.integration-status-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.integration-status-grid .kpi-card { min-height:94px; padding:16px; border:1px solid #dce7f3; border-radius:14px; color:var(--text); background:#fff; box-shadow:0 5px 15px rgba(25,71,123,.04); }
.integration-status-grid .kpi-icon { width:36px; height:36px; color:var(--primary); background:var(--primary-soft); }
.integration-status-grid .kpi-card span,.integration-status-grid .kpi-card small { color:var(--muted); }
.integration-status-grid .kpi-card strong { color:#0b2a55; font-size:21px; }
.page-integration-center .integration-hero { min-height:130px; overflow:visible; }
.page-integration-center .integration-hero > div:first-child { min-width:0; flex:1 1 420px; }
.page-integration-center .integration-hero .hero-actions { flex:0 1 430px; }
.page-integration-center .integration-status-grid .kpi-card { display:grid!important; grid-template-columns:38px minmax(0,1fr); align-items:center; gap:11px; overflow:hidden; }
.page-integration-center .integration-status-grid .kpi-card > div:last-child { display:block; min-width:0; }
.page-integration-center .integration-status-grid .kpi-card span { display:block; margin:0 0 5px; line-height:1.25; white-space:normal; }
.page-integration-center .integration-status-grid .kpi-card strong { display:block; margin:0; line-height:1.15; white-space:normal; overflow-wrap:anywhere; }
.page-integration-center .integration-status-grid .kpi-card small { display:block; margin-top:5px; line-height:1.25; white-space:normal; }
.integration-service-card { min-height:260px; }
.service-heading { display:flex; align-items:center; gap:12px; margin-bottom:15px; }
.service-heading p { margin:3px 0 0; color:var(--muted); font-size:12px; }
.service-icon { display:grid; width:42px; height:42px; flex:0 0 auto; place-items:center; border-radius:12px; color:var(--primary); background:var(--primary-soft); font-size:18px; }
.integration-service-card .notice-box { margin-bottom:14px; color:#31506f; background:#f7faff; border-color:#dce7f3; line-height:1.8; }
.integration-table .panel-header { margin-bottom:12px; }
.report-hero { flex-wrap:wrap; }
.report-hero > .panel-header { display:contents; }
.report-hero .filter-inline { display:flex; gap:7px; flex-wrap:wrap; }
.report-period { width:100%; padding-top:12px; border-top:1px solid var(--line); }
.report-picker { margin-bottom:14px; border:1px solid #dce7f3; border-radius:14px; background:#fff; box-shadow:0 5px 15px rgba(25,71,123,.04); }
.report-picker > summary { padding:15px 17px; color:#183b63; cursor:pointer; font-size:12px; list-style:none; }
.report-picker > summary::-webkit-details-marker { display:none; }
.report-picker > summary i { margin-right:7px; color:var(--primary); }
.report-picker .report-grid { display:flex; gap:7px; padding:0 14px 14px; overflow-x:auto; }
.report-picker .report-card { min-width:max-content; min-height:40px; padding:8px 11px; border-radius:9px; box-shadow:none; }
.report-picker .report-card i { font-size:13px; }
.report-picker .report-card span { display:none; }
.settings-card { max-width:900px; margin:0 auto; }
.settings-card .form-grid { padding-top:4px; }
.app-page .nav-link > i { display:inline-grid; width:24px; height:24px; flex:0 0 24px; place-items:center; border-radius:7px; color:#58789b; background:#edf4fc; font-size:12px; line-height:1; }
.app-page .nav-link.active > i { color:#fff; background:rgba(255,255,255,.18); }
.app-page .btn > i,.app-page .topbar-link > i { display:inline-grid; width:16px; height:16px; place-items:center; flex:0 0 16px; font-size:12px; line-height:1; }
.app-page .panel-title > i { display:inline-grid; width:28px; height:28px; margin-right:7px; place-items:center; border-radius:8px; color:var(--primary); background:var(--primary-soft); font-size:13px; vertical-align:middle; }
.page-integration-center .kpi-icon { display:grid!important; width:40px!important; height:40px!important; place-items:center; flex:0 0 40px; border-radius:11px; }
.page-integration-center .kpi-icon i { display:block; font-size:16px; line-height:1; }
.page-integration-center .service-icon i { display:block; font-size:17px; line-height:1; }
.page-integration-center .service-heading .panel-title { display:flex; align-items:center; }
.dashboard-health-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:0 0 14px; }
.dashboard-health-strip > a { display:grid; grid-template-columns:10px minmax(0,1fr) 14px; align-items:center; gap:10px; min-height:66px; padding:12px 14px; border:1px solid var(--line); border-radius:13px; color:var(--text); background:#fff; box-shadow:0 4px 12px rgba(25,71,123,.035); }
.dashboard-health-strip small,.dashboard-action small,.dashboard-all-clear small { display:block; color:var(--muted); font-size:10px; font-weight:650; }
.dashboard-health-strip strong { display:block; margin-top:2px; color:#183b63; font-size:12px; }
.dashboard-health-strip > a > i { color:#8aa0b8; font-size:10px; }
.health-dot { width:9px; height:9px; border-radius:50%; background:#94a3b8; box-shadow:0 0 0 4px rgba(148,163,184,.12); }
.health-dot.online { background:#22a06b; box-shadow:0 0 0 4px rgba(34,160,107,.12); }
.health-dot.danger { background:var(--danger); box-shadow:0 0 0 4px rgba(201,54,79,.1); }
.dashboard-action-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.dashboard-action { display:grid; grid-template-columns:38px minmax(0,1fr) 14px; align-items:center; gap:10px; min-height:68px; padding:11px 12px; border:1px solid var(--line); border-radius:12px; color:var(--text); background:#fff; transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.dashboard-action:hover { transform:translateY(-1px); border-color:#9fc2ed; box-shadow:0 7px 15px rgba(23,95,202,.08); }
.dashboard-action > span { display:grid; width:38px; height:38px; place-items:center; border-radius:11px; color:var(--primary); background:var(--primary-soft); font-size:15px; }
.dashboard-action strong { display:block; color:#183b63; font-size:12px; }
.dashboard-action > i { color:#8aa0b8; font-size:10px; }
.dashboard-all-clear { display:flex; align-items:center; gap:11px; min-height:86px; padding:14px; border:1px solid #bcebd4; border-radius:12px; color:#11603d; background:var(--success-soft); }
.dashboard-all-clear > i { font-size:22px; }
.dashboard-all-clear strong { display:block; font-size:12px; }
.customer-composition { margin-bottom:14px; padding:16px 18px; }
.composition-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:13px; }
.composition-heading strong { display:block; color:#183b63; font-size:13px; }
.composition-heading small { display:block; margin-top:2px; color:var(--muted); font-size:10px; }
.composition-heading a { color:var(--primary); font-size:11px; font-weight:800; }
.composition-bar { display:flex; width:100%; height:9px; overflow:hidden; border-radius:999px; background:#e8eef5; }
.composition-bar span { min-width:0; }
.composition-bar .active,.composition-legend i.active { background:#22a06b; }
.composition-bar .suspended,.composition-legend i.suspended { background:#e6a700; }
.composition-bar .inactive,.composition-legend i.inactive { background:#94a3b8; }
.composition-legend { display:flex; gap:18px; margin-top:11px; flex-wrap:wrap; }
.composition-legend span { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:10px; }
.composition-legend i { width:7px; height:7px; border-radius:50%; }
.composition-legend strong { color:#183b63; font-size:11px; }

@media(max-width:900px) {
  .dashboard-action-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:620px) {
  .dashboard-health-strip { grid-template-columns:1fr; }
  .dashboard-action-grid { grid-template-columns:1fr; }
  .composition-heading { align-items:flex-start; }
  .composition-legend { gap:10px; justify-content:space-between; }
}

@media(max-width:900px) {
  .integration-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .report-hero .filter-inline { width:100%; }
  .report-hero .filter-inline select { flex:1; }
}
@media(min-width:901px) and (max-width:1280px) {
  .page-integration-center .integration-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .page-integration-center .integration-hero { min-height:0; align-items:flex-start; flex-direction:column; justify-content:flex-start; }
  .page-integration-center .integration-hero > div:first-child { width:100%; flex:0 0 auto; }
  .page-integration-center .integration-hero .hero-actions { width:100%; flex:0 0 auto; justify-content:flex-start; }
}
@media(max-width:520px) {
  .integration-status-grid { gap:8px; }
  .integration-status-grid .kpi-card { min-height:84px; padding:12px; }
  .integration-status-grid .kpi-card strong { font-size:17px; }
  .report-hero .filter-inline { display:grid; grid-template-columns:1fr 1fr; }
  .report-hero .filter-inline .btn { grid-column:1/-1; }
}

/* v4.3 list-first operational workspace */
.resource-hero { display:flex; align-items:center; justify-content:space-between; gap:22px; margin-bottom:14px; padding:24px 26px; border:1px solid #d9e6f4; border-radius:18px; background:linear-gradient(135deg,#fff 0%,#f2f7ff 100%); box-shadow:0 8px 24px rgba(25,71,123,.055); }
.resource-hero h2 { margin:5px 0; color:#0b2a55; font-size:clamp(23px,3vw,30px); line-height:1.15; letter-spacing:-.035em; }
.resource-hero p { max-width:680px; margin:0; color:var(--muted); font-size:13px; line-height:1.55; }
.eyebrow { color:var(--primary); font-size:10px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.hero-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.resource-hero > .panel-header { display:contents; }
.resource-hero > .resource-summary-grid { display:none; }
.resource-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.summary-tile { min-height:88px; padding:15px 17px; border:1px solid #dce7f3; border-radius:14px; background:#fff; box-shadow:0 5px 15px rgba(25,71,123,.04); }
.summary-tile span,.stat-card span { display:block; color:var(--muted); font-size:11px; font-weight:750; }
.summary-tile strong,.stat-card strong { display:block; margin-top:6px; color:#0b2a55; font-size:22px; letter-spacing:-.025em; }
.summary-money { font-size:16px!important; }
.resource-form { max-width:980px; margin:0 auto 16px; }
.row-editor { position:relative; }
.row-editor > summary,.activity-disclosure > summary,.advanced-fields > summary { display:inline-flex; align-items:center; gap:7px; min-height:34px; padding:7px 10px; border:1px solid #cbd9eb; border-radius:9px; color:#31506f; background:#fff; cursor:pointer; font-size:11px; font-weight:800; list-style:none; white-space:nowrap; }
.row-editor > summary::-webkit-details-marker,.activity-disclosure > summary::-webkit-details-marker,.advanced-fields > summary::-webkit-details-marker { display:none; }
.row-editor[open] { min-width:300px; }
.row-editor[open] > summary { margin-bottom:9px; color:#fff; background:var(--primary); border-color:var(--primary); }
.row-editor .inline-form,.row-editor .note-form { display:grid; gap:8px; padding:10px; border:1px solid var(--line); border-radius:11px; background:#f8fbff; }
.row-editor .inline-form + .inline-form { margin-top:7px; }
.activity-disclosure { margin-bottom:16px; }
.activity-disclosure > summary { margin-bottom:0; }
.activity-disclosure[open] > summary { margin-bottom:14px; }
.advanced-fields { padding:12px; border:1px solid var(--line); border-radius:12px; background:#f8fbff; }
.advanced-fields[open] > summary { margin-bottom:14px; }
.ticket-history td { padding-top:0; background:#fbfdff!important; }

@media(max-width:900px) {
  .resource-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .resource-hero { align-items:flex-start; flex-direction:column; padding:20px; }
  .hero-actions { width:100%; }
  .hero-actions .btn { flex:1; }
}
@media(max-width:520px) {
  .resource-hero { padding:17px; border-radius:14px; }
  .resource-hero h2 { font-size:22px; }
  .hero-actions { display:grid; grid-template-columns:1fr; }
  .hero-actions .btn { width:100%; }
  .resource-summary-grid { gap:8px; }
  .summary-tile { min-height:78px; padding:13px; }
  .row-editor[open] { min-width:260px; }
}

/* v4.1 unmistakable modern light shell */
.app-page { background:#eef4fb; }
.app-page .sidebar { width:258px; color:#18324f; background:#fff; border-right:1px solid #d8e4f2; box-shadow:8px 0 30px rgba(25,71,123,.06); }
.app-page .brand-box { min-height:82px; padding:18px; border-bottom:1px solid #e4edf7; }
.app-page .brand-mark { width:44px; height:44px; color:#fff; background:linear-gradient(145deg,#1769e0,#0b4fad); box-shadow:0 8px 20px rgba(23,105,224,.22); }
.app-page .brand-title { color:#0c2b50; font-size:14px; }
.app-page .brand-subtitle { color:#7890aa; }
.app-page .profile-card { margin:14px 12px; padding:11px; color:#18324f; background:#f4f8fd; border:1px solid #dfe9f5; }
.app-page .avatar { background:#e5f0ff; }
.app-page .profile-name { color:#18324f; }
.app-page .role-badge { padding:3px 7px; color:#175fca; background:#e5f0ff; }
.app-page .nav-menu { padding:2px 10px 24px; }
.app-page .nav-group { border-top:0; }
.app-page .nav-group-title { color:#71859b; background:transparent; text-transform:uppercase; letter-spacing:.07em; font-size:10px; }
.app-page .nav-group.open .nav-group-title { color:#175fca; background:transparent; }
.app-page .nav-link { margin:2px 0; color:#3f5872; border:1px solid transparent; }
.app-page .nav-link i { color:#7d9aba; }
.app-page .nav-link:hover { color:#174b87; background:#f2f7fd; border-color:#e3edf8; }
.app-page .nav-link.active { color:#fff; background:linear-gradient(135deg,#1769e0,#0b55b5); border-color:#1769e0; box-shadow:0 7px 16px rgba(23,105,224,.2); }
.app-page .nav-link.active i { color:#fff; }
.app-page .logout-form .logout-link { color:#9d4253; }
.app-page .logout-form .logout-link:hover { color:#9d2d42; background:#fff1f3; }
.app-page .main-content { background:linear-gradient(180deg,#f5f8fc 0%,#edf3fa 100%); }
.app-page .topbar { min-height:76px; background:rgba(255,255,255,.94); border-bottom:1px solid #dce7f3; box-shadow:0 4px 18px rgba(25,71,123,.045); }
.app-page .page-title { color:#0c2b50; font-size:18px; letter-spacing:-.02em; }
.app-page .content-area { padding-top:24px; }
.app-page .panel,.app-page .workflow-hero,.app-page .simple-dashboard-hero,.app-page .simple-overview-card { border-color:#dce7f3; box-shadow:0 8px 24px rgba(25,71,123,.055); }
.app-page .mobile-bottom-nav { border-color:#d7e3f1; background:rgba(255,255,255,.96); }

@media(min-width:1024px) {
  .app-page .sidebar { flex-basis:258px; }
  .app-page .main-content { width:calc(100% - 258px); }
}

/* v4.2 universal usability layer */
.ui-actions-enhanced { display:flex!important; flex-wrap:wrap; grid-template-columns:none!important; }
.ui-action-overflow { width:100%; display:flex; flex-wrap:wrap; gap:8px; padding-top:10px; margin-top:2px; border-top:1px solid var(--line); }
.ui-action-overflow[hidden] { display:none!important; }
.ui-action-toggle { order:98; }
.ui-action-overflow { order:99; }
.ui-table-toolbar { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:12px 0 8px; }
.ui-table-search { width:min(360px,100%); min-height:40px; display:flex; align-items:center; gap:8px; padding:0 11px; border:1px solid #cfddeb; border-radius:10px; background:#fff; }
.ui-table-search i { color:#6f8baa; }
.ui-table-search input { min-height:0; height:auto; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none!important; font-size:13px; }
.ui-table-count { color:var(--muted); font-size:11px; font-weight:750; white-space:nowrap; }
.ui-table-enhanced thead { position:sticky; top:0; z-index:2; }
.ui-table-enhanced tbody tr[hidden] { display:none; }
.page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:16px; padding:22px 24px; border:1px solid var(--line); border-radius:17px; background:linear-gradient(135deg,#fff,#f5f9ff); box-shadow:var(--shadow); }
.page-heading h1 { margin:0 0 5px; color:#0c2b50; font-size:clamp(23px,3vw,30px); letter-spacing:-.035em; }
.page-heading p { margin:0; color:var(--muted); font-size:13px; }
.page-heading .quick-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.content-area > style:first-child + .page-heading { margin-top:0; }
.empty-state { color:var(--muted); }

@media(max-width:759px) {
  .ui-table-toolbar { align-items:stretch; flex-direction:column; }
  .ui-table-search { width:100%; }
  .ui-table-count { padding-left:2px; }
  .page-heading { align-items:flex-start; flex-direction:column; padding:17px; }
  .page-heading .quick-actions { width:100%; display:grid; grid-template-columns:1fr; }
  .page-heading .quick-actions .btn { width:100%; }
}

/* v3.7 operator-first global interface */
:root {
  --primary:#175fca;
  --primary-dark:#0b458f;
  --primary-soft:#edf5ff;
  --danger:#c9364f;
  --danger-soft:#fff1f3;
  --success:#18794e;
  --success-soft:#edfbf4;
}
.system-dot { display:inline-block; width:7px; height:7px; margin-right:3px; border-radius:50%; background:#94a3b8; vertical-align:1px; }
.system-dot.online { background:#22a06b; box-shadow:0 0 0 3px rgba(34,160,107,.12); }
.content-area > .panel + .panel,
.content-area > .grid-2 + .panel,
.content-area > .grid-3 + .panel { margin-top:16px; }
.panel { overflow:visible; }
.panel-header > div:first-child { min-width:0; }
.panel-header .panel-title + p { max-width:720px; line-height:1.55; }
.panel-soft { background:#f7faff!important; border:1px solid var(--line); }
.blue-panel { background:#fff; color:var(--text); border-left:4px solid var(--primary); }
.blue-panel .panel-title { color:#0b2a55; }
.blue-panel p,.blue-panel .finance-summary span { color:var(--muted); }
.blue-panel .status-line { border-bottom-color:var(--line); }
.blue-panel .status-line strong { color:#0b4fad; }

.btn,.btn.primary,.btn.blue,.btn.green,.btn.cyan { background:var(--primary); border-color:var(--primary); color:#fff; }
.btn:hover,.btn.primary:hover,.btn.blue:hover,.btn.green:hover,.btn.cyan:hover { background:var(--primary-dark); border-color:var(--primary-dark); }
.btn.gray,.btn.soft,.btn.link { background:#fff; border-color:#cbd9eb; color:#31506f; box-shadow:none; }
.btn.gray:hover,.btn.soft:hover,.btn.link:hover { background:#f3f7fc; border-color:#9db6d2; color:#183b63; }
.btn.red { background:var(--danger); border-color:var(--danger); }
.btn.red:hover { background:#a9273e; border-color:#a9273e; }
.btn.amber,.btn.orange { background:#fff; border-color:#e4b94f; color:#795600; box-shadow:none; }
.btn.dark { background:#284664; border-color:#284664; }
.form-actions { padding-top:14px; border-top:1px solid var(--line); }
.form-grid { gap:15px 14px; }
.form-grid label { color:#18345d; font-weight:750; }
.form-grid label small { color:var(--muted); font-weight:500; line-height:1.4; }
select,input,textarea { transition:border-color .15s ease,box-shadow .15s ease; }
textarea { min-height:96px; }

.table-wrap { box-shadow:none; }
table { min-width:720px; }
th { padding:11px 13px; background:#123f78; font-size:11px; letter-spacing:.035em; text-transform:uppercase; }
td { padding:13px; font-size:12.5px; }
tr:nth-child(even) td { background:#fbfdff; }
tr:hover td { background:#f1f6fd; }
.icon-actions { gap:6px!important; }
.icon-actions .btn,.action-icons .btn { width:32px; min-width:32px; min-height:32px; padding:0; box-shadow:none; }
.badge { min-width:0; padding:4px 9px; font-size:10px; letter-spacing:.02em; }
.badge.active,.badge.online,.badge.paid,.badge.success,.badge.sent,.badge.completed { color:#11603d; background:var(--success-soft); border-color:#bcebd4; }
.badge.overdue,.badge.suspended,.badge.failed,.badge.error,.badge.offline { color:#9e263b; background:var(--danger-soft); border-color:#f2c4cd; }
.notice-box,.alert { border-radius:11px; }
.alert-danger { color:#9e263b; background:var(--danger-soft); border-color:#f2c4cd; }
.alert-success { color:#11603d; background:var(--success-soft); border-color:#bcebd4; }

.action-grid { align-items:center; }
.action-grid:has(> .btn:nth-child(5)) { padding:12px; border:1px solid var(--line); border-radius:12px; background:#f8fbff; }
.kpi-grid.compact .kpi-card { min-height:88px; padding:15px!important; border:1px solid var(--line)!important; background:#fff!important; color:var(--text)!important; box-shadow:none!important; }
.kpi-grid.compact .kpi-card strong { color:#0b2a55; }
.kpi-grid.compact .kpi-card span,.kpi-grid.compact .kpi-card small { color:var(--muted); }
.stat-panel { min-height:96px; }
.stat-panel strong { color:#0b2a55; letter-spacing:-.025em; }
.footer { padding:14px; font-size:11px; background:transparent; }

@media(max-width:759px) {
  .panel-header { gap:10px; }
  .panel-header > .btn,.panel-header > div:last-child:not(:first-child) { max-width:100%; }
  .table-wrap { margin-left:-4px; margin-right:-4px; border-radius:10px; }
  .filter-grid { gap:8px; }
  .form-grid { gap:12px; }
  .btn { min-height:42px; }
}

/* v4 workflow-first product experience */
.workflow-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:16px; padding:24px 26px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(135deg,#fff 0%,#f4f8ff 100%); box-shadow:var(--shadow); }
.workflow-hero h1 { margin:5px 0 5px; color:#0b2a55; font-size:clamp(23px,3vw,31px); line-height:1.15; letter-spacing:-.035em; }
.workflow-hero p { max-width:680px; margin:0; color:var(--muted); font-size:13px; }
.workflow-hero .quick-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.workflow-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr); gap:16px; align-items:start; }
.workflow-main-card { min-height:300px; }
.workflow-summary-card { display:grid; gap:3px; }
.step-number { display:inline-grid; width:28px; height:28px; margin-right:8px; place-items:center; border-radius:9px; color:#fff; background:var(--primary); font-size:12px; }
.workflow-check { display:flex; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); }
.workflow-check > i { width:36px; height:36px; display:grid; place-items:center; flex:0 0 auto; border-radius:11px; color:var(--primary); background:var(--primary-soft); }
.workflow-check span { color:var(--muted); font-size:12px; }
.workflow-check strong { display:block; margin-top:2px; color:#0b2a55; font-size:16px; }
.safe-note { display:flex; gap:10px; margin-top:12px; padding:12px; border:1px solid #bcebd4; border-radius:11px; color:#11603d; background:var(--success-soft); font-size:12px; line-height:1.5; }
.safe-note i { margin-top:2px; }
.compact-toolbar .filter-grid { margin:0; }
.mode-chip { display:inline-flex; align-items:center; gap:7px; min-height:38px; padding:0 12px; border:1px solid #c9defb; border-radius:999px; color:#0b4fad; background:#edf5ff; font-size:11px; font-weight:850; white-space:nowrap; }
.danger-workflow { border-left:4px solid var(--danger); }
.isolation-action-card { border-color:#f2c4cd; background:#fffafb; }
.simple-empty-state { display:grid; justify-items:center; gap:4px; min-height:150px; place-content:center; color:var(--muted); text-align:center; }
.simple-empty-state i { margin-bottom:5px; color:var(--success); font-size:28px; }
.simple-empty-state strong { color:#183b63; font-size:14px; }
.wagw-tabs { gap:6px!important; padding:5px; border:1px solid var(--line); border-radius:13px; background:#f3f7fc; width:max-content; max-width:100%; overflow-x:auto; flex-wrap:nowrap!important; }
.wagw-tabs a { min-height:38px; padding:8px 13px!important; border:0!important; border-radius:9px!important; background:transparent!important; color:#52677e!important; white-space:nowrap; }
.wagw-tabs a.active { color:#fff!important; background:var(--primary)!important; }
.wagw-more { width:max-content; max-width:100%; margin-top:-6px; background:#fff; }
.wagw-more-links { display:flex; gap:7px; padding:0 12px; flex-wrap:wrap; }
.wagw-more-links a { padding:8px 11px; border:1px solid var(--line); border-radius:9px; color:#31506f; background:#fff; font-size:12px; font-weight:750; }
.wagw-status-card { border-radius:16px!important; border-color:var(--line)!important; background:#fff!important; box-shadow:var(--shadow)!important; }
.wagw-menu-card { min-height:82px!important; border-radius:14px!important; box-shadow:none!important; }
.wagw-menu-card i { border-radius:12px!important; color:var(--primary)!important; background:var(--primary-soft)!important; }
.page-waha-gateway .kpi-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.page-waha-gateway .kpi-card { min-height:96px; padding:16px; border:1px solid var(--line); border-radius:14px; background:#fff!important; color:var(--text)!important; box-shadow:none; }
.page-waha-gateway .kpi-card span { color:var(--muted); font-size:11px; }
.page-waha-gateway .kpi-card strong { display:block; margin-top:5px; color:#0b2a55; font-size:18px; }
.page-waha-gateway .kpi-icon { color:var(--primary); }

@media(max-width:900px) {
  .workflow-layout { grid-template-columns:1fr; }
  .workflow-hero { align-items:flex-start; flex-direction:column; padding:20px; }
  .workflow-hero > .btn,.workflow-hero .quick-actions { width:100%; }
  .workflow-hero .quick-actions .btn { flex:1; }
  .page-waha-gateway .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:520px) {
  .workflow-hero { padding:17px; border-radius:14px; }
  .workflow-hero h1 { font-size:22px; }
  .workflow-hero .quick-actions { display:grid; }
  .workflow-hero .quick-actions .btn { width:100%; }
  .mode-chip { white-space:normal; }
  .wagw-tabs { width:100%; }
}


/* === SEBILLING LUXURY DASHBOARD OVERRIDE === */
.simple-dashboard-hero {
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 60%, #112240 100%) !important;
  color: #fff !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(11, 19, 43, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.simple-dashboard-hero h1 {
  color: #fff !important;
  font-size: 26px !important;
}
.simple-dashboard-hero p, .simple-dashboard-hero .eyebrow {
  color: #93c5fd !important;
}
.hero-date {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
}
.simple-overview-card {
  border-radius: 18px !important;
  border: 1px solid rgba(23, 105, 224, 0.15) !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.2s ease !important;
}
.simple-overview-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 45px rgba(23, 105, 224, 0.15) !important;
  border-color: #1769e0 !important;
}
.simple-overview-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 18px !important;
  background: linear-gradient(135deg, #1769e0, #0d4fb5) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(23, 105, 224, 0.3) !important;
}
.dashboard-health-strip > a, .dashboard-action {
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
  transition: all 0.2s ease !important;
}
.dashboard-health-strip > a:hover, .dashboard-action:hover {
  border-color: #1769e0 !important;
  box-shadow: 0 8px 25px rgba(23, 105, 224, 0.1) !important;
}
.customer-composition.panel, .simple-quick-panel, .simple-dashboard-columns .panel {
  border-radius: 20px !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06) !important;
  border: 1px solid #e2e8f0 !important;
}


/* === SEBILLING LIGHT SOFT-UI OVERRIDE === */
body {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}
.sidebar {
  background: #ffffff !important;
  color: #1e293b !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}
.sidebar a, .sidebar button {
  color: #475569 !important;
  font-weight: 700 !important;
}
.sidebar a:hover, .sidebar button:hover, .sidebar a.active {
  background: #f0fdf4 !important;
  color: #166534 !important;
}
.topbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: none !important;
}


/* === SEBILLING GLOBAL SOFT-UI PATCH: panel, table, badge, button === */
.panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}
.table-wrap, .table-responsive {
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
table {
  background: #ffffff !important;
}
table thead th {
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
table tbody tr {
  border-bottom: 1px solid #f1f5f9 !important;
}
table tbody tr:hover {
  background: #f8fafc !important;
}
.badge {
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
}
.badge.active, .badge.paid, .badge.success, .badge.connected {
  background: #dcfce7 !important;
  color: #166534 !important;
}
.badge.suspended, .badge.overdue, .badge.danger, .badge.failed {
  background: #fee2e2 !important;
  color: #991b1b !important;
}
.badge.pending, .badge.warning, .badge.unpaid, .badge.partial {
  background: #fef3c7 !important;
  color: #92400e !important;
}
.badge.info, .badge.queued {
  background: #dbeafe !important;
  color: #1e40af !important;
}
.btn {
  border-radius: 12px !important;
  transition: all .18s ease !important;
}
.btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1) !important;
}
