:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #18283f;
  background: #f3f6fb;
  font-synthesis: none;
  --navy: #0b2346;
  --blue: #1767cc;
  --muted: #73839a;
  --line: #e5ebf3;
  --green: #159c70;
  --orange: #f18a18;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 1060px; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 226px; display: flex; flex-direction: column; background: var(--navy); color: white; padding: 0 12px 13px; }
.brand { height: 78px; display: flex; align-items: center; gap: 12px; padding: 0 8px; color: inherit; text-decoration: none; border-bottom: 1px solid #ffffff1a; }
.brand-logo { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 11px; }
.brand strong { display: block; font-size: 22px; letter-spacing: .2px; }
.brand small { display: block; margin-top: 2px; color: #bdcde2; font-size: 10px; }
#navigation { display: grid; gap: 4px; padding-top: 15px; }
.nav-item { border: 0; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; color: #c8d4e4; background: transparent; padding: 11px 12px; border-radius: 7px; font-size: 13px; }
.nav-item:hover, .nav-item.active { background: #1767cc; color: #fff; }
.nav-icon { width: 21px; text-align: center; font-size: 16px; }
.sidebar-footer { margin-top: auto; padding-top: 13px; color: #8fa4bf; text-align: center; font-size: 10px; }
.main { width: calc(100% - 226px); min-height: 100vh; margin-left: 226px; }
.topbar { position: sticky; z-index: 2; top: 0; height: 62px; display: flex; justify-content: space-between; align-items: center; padding: 0 26px; border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #293c56; font-size: 13px; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.topbar-right { display: flex; align-items: center; gap: 10px; color: #66768b; font-size: 12px; }
.trial-remaining { border: 1px solid #f4d6a5; border-radius: 20px; padding: 7px 11px; background: #fff8ec; color: #966019; font-size: 11px; font-weight: 600; }
.content { max-width: 1600px; margin: auto; padding: 22px 24px 28px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 19px; }
.page-heading h1 { margin: 0; font-size: 22px; color: #18283f; }
.page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.actions { display: flex; gap: 8px; }
.btn { border: 1px solid #d9e2ef; border-radius: 6px; padding: 9px 13px; color: #344862; background: white; font-size: 12px; font-weight: 600; }
.btn:hover { background: #f5f8fc; }
.btn-primary { border-color: var(--blue); background: var(--blue); color: white; }
.btn-primary:hover { background: #105ab5; }
.btn-accent { border-color: #139a78; background: #139a78; color: #fff; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.metric-card, .panel { border: 1px solid #e7edf5; border-radius: 8px; background: #fff; box-shadow: 0 2px 7px #203e6010; }
.metric-card { min-height: 112px; padding: 15px; }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: #65758a; font-size: 11px; }
.metric-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: #eaf2ff; color: var(--blue); font-size: 15px; }
.metric-icon.green { color: #0e9d71; background: #e9f7f1; }
.metric-icon.orange { color: #e37b13; background: #fff2e5; }
.metric-icon.purple { color: #7052cd; background: #f1edff; }
.metric-value { margin-top: 6px; font-size: 21px; font-weight: 700; letter-spacing: -.3px; }
.metric-caption { margin-top: 5px; color: var(--muted); font-size: 10px; }
.grid-2 { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1.5fr); gap: 14px; margin-bottom: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.panel { padding: 15px; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-heading h2 { margin: 0; font-size: 13px; }
.panel-heading span { color: var(--muted); font-size: 10px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; }
th { background: #f7f9fc; color: #718096; font-size: 10px; font-weight: 600; text-align: left; }
td { color: #32455e; font-size: 11px; }
th, td { padding: 9px 8px; border-bottom: 1px solid #edf1f6; }
tbody tr:last-child td { border-bottom: 0; }
.progress { width: 74px; height: 6px; display: inline-block; overflow: hidden; vertical-align: middle; border-radius: 6px; background: #edf1f6; }
.progress i { height: 100%; display: block; background: var(--green); border-radius: inherit; }
.pill { display: inline-block; padding: 4px 7px; border-radius: 10px; background: #e9f7f1; color: #12805e; font-size: 10px; }
.pill.warning { color: #ae660d; background: #fff3df; }
.pill.danger { color: #c13c43; background: #fff0f0; }
.chart { height: 193px; display: flex; align-items: end; gap: 11px; padding: 20px 8px 21px; border-bottom: 1px solid #e7edf5; background: repeating-linear-gradient(to bottom,transparent 0,transparent 47px,#eff3f8 48px); }
.chart-column { flex: 1; height: 100%; display: flex; justify-content: end; align-items: end; gap: 4px; position: relative; }
.chart-column i { width: 28%; min-height: 3px; border-radius: 4px 4px 0 0; background: #1767cc; }
.chart-column i.secondary { background: #f18a18; }
.chart-column small { position: absolute; bottom: -19px; color: #8290a2; font-size: 9px; }
.legend { display: flex; gap: 15px; color: #6d7e94; font-size: 10px; }
.legend b { color: #1767cc; }
.legend b.orange-dot { color: #f18a18; }
.toolbar { display: flex; gap: 9px; margin: 0 0 12px; }
.search { width: min(330px,40vw); padding: 9px 11px; border: 1px solid #dfe7f0; border-radius: 6px; outline: none; font-size: 12px; }
.search:focus, input:focus, select:focus { border-color: #6da2e4; box-shadow: 0 0 0 3px #1767cc18; outline: none; }
.empty { padding: 25px; text-align: center; color: var(--muted); font-size: 12px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border: 0; }
.setting-row strong { display: block; font-size: 12px; }
.setting-row p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
#modalHost:empty { display: none; }
#modalHost { position: fixed; z-index: 5; inset: 0; display: grid; place-items: center; padding: 20px; background: #06152d88; }
.modal { width: min(520px,95vw); max-height: 90vh; overflow: auto; padding: 22px; border-radius: 10px; background: #fff; box-shadow: 0 16px 60px #06152d40; }
.modal h2 { margin: 0; font-size: 17px; }
.modal-subtitle { margin: 5px 0 18px; color: var(--muted); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.field { display: grid; gap: 6px; font-size: 11px; color: #52657e; }
.field.full { grid-column: 1/-1; }
.field input, .field select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #dfe7f0; border-radius: 6px; background: white; font-size: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; }
#toast { position: fixed; z-index: 10; right: 22px; bottom: 20px; max-width: 420px; padding: 12px 17px; border-radius: 7px; color: white; background: #183756; box-shadow: 0 5px 25px #102b4826; font-size: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }
#toast.show { opacity: 1; transform: translateY(0); }
#toast.error { background: #b6383e; }
.report-note { padding: 11px 13px; border-radius: 6px; color: #6a5a27; background: #fff8e7; font-size: 11px; line-height: 1.5; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-filters { display: flex; align-items: end; gap: 14px; margin-bottom: 14px; }
.report-filters .field { min-width: 185px; }
.report-filters .actions { margin-left: auto; }
.report-chart-panel { height: 330px; }
.report-chart-panel canvas { width: 100% !important; height: 265px !important; }
.error-note { color: #a52f37; background: #fff0f0; }
[hidden] { display: none !important; }
.trial-lock { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: #081a36ed; }
.trial-lock-card { width: min(420px,95vw); padding: 34px; border-radius: 12px; background: white; text-align: center; box-shadow: 0 16px 60px #06152d70; }
.trial-lock-logo { width: 66px; height: 66px; }
.trial-lock-card h1 { margin: 16px 0 7px; font-size: 22px; }
.trial-lock-card p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
@media (max-width: 1250px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
