/* Menara — stylesheet (light/dark otomatis mengikuti sistem) */
:root{
  --bg:#EEF1F4; --surface:#FFFFFF; --surface-raised:#F7F9FB; --border:#DCE2E8;
  --text:#1A222A; --text-muted:#5B6B7A;
  --accent:#207A8C; --accent-soft:rgba(32,122,140,0.10);
  --ok:#2A9D5C; --ok-soft:rgba(42,157,92,0.12);
  --warn:#B3790F; --warn-soft:rgba(179,121,15,0.13);
  --crit:#C7373D; --crit-soft:rgba(199,55,61,0.11);
  --info:#5B6B7A; --info-soft:rgba(91,107,122,0.10);
  --shadow:0 1px 2px rgba(20,30,40,0.05), 0 10px 28px rgba(20,30,40,0.06);
  --radius-s:8px; --radius-m:12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0B0F14; --surface:#131A21; --surface-raised:#1B232C; --border:#29323C;
    --text:#E8EDF2; --text-muted:#8FA0AF;
    --accent:#5FC2D1; --accent-soft:rgba(95,194,209,0.14);
    --ok:#3DD68C; --ok-soft:rgba(61,214,140,0.14);
    --warn:#F5B942; --warn-soft:rgba(245,185,66,0.15);
    --crit:#F0555A; --crit-soft:rgba(240,85,90,0.16);
    --info:#8FA0AF; --info-soft:rgba(143,160,175,0.14);
    --shadow:0 1px 2px rgba(0,0,0,0.35), 0 14px 34px rgba(0,0,0,0.4);
  }
}

*{ box-sizing:border-box; }
html{ padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px); }
body{ margin:0; background:var(--bg); color:var(--text); font-family:'Manrope',ui-sans-serif,system-ui,-apple-system,sans-serif; -webkit-font-smoothing:antialiased; font-size:15px; }
a{ color:var(--accent); }
h1,h2,h3{ text-wrap:balance; margin:0; }
.mono, code, .stat-value, .tenant-code, .source-badge, .updated, .feed-time, time{ font-family:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace; }
.page{ max-width:min(1720px, 96vw); margin-inline:auto; padding-inline:20px; padding-block:18px 40px; }

/* ---------- topbar / nav ---------- */
.topbar{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding-bottom:16px; border-bottom:1px solid var(--border); margin-bottom:20px; }
.brand-link{ display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.brand svg{ color:var(--accent); flex-shrink:0; }
.brand-text{ display:flex; flex-direction:column; gap:2px; }
.brand-name{ font-size:1.25rem; font-weight:800; letter-spacing:-0.01em; }
.brand-tag{ font-size:0.76rem; color:var(--text-muted); font-weight:500; }
.nav{ display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.nav a{ text-decoration:none; color:var(--text-muted); font-weight:600; font-size:0.86rem; padding:7px 12px; border-radius:999px; }
.nav a:hover{ background:var(--surface-raised); color:var(--text); }
.nav a.active{ background:var(--accent-soft); color:var(--accent); }
.nav-user{ font-size:0.8rem; color:var(--text-muted); margin-left:10px; }
.nav-logout{ font-size:0.8rem !important; }

/* ---------- flash ---------- */
.flash{ padding:10px 14px; border-radius:var(--radius-s); margin-bottom:14px; font-size:0.86rem; font-weight:600; border:1px solid var(--border); background:var(--surface); }
.flash-ok{ color:var(--ok); background:var(--ok-soft); border-color:transparent; }
.flash-err{ color:var(--crit); background:var(--crit-soft); border-color:transparent; }
.flash-info{ color:var(--accent); background:var(--accent-soft); border-color:transparent; }

/* ---------- header row (live pill etc) ---------- */
.toolbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.toolbar h1{ font-size:1.05rem; font-weight:800; }
.toolbar-right{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.live-pill{ display:inline-flex; align-items:center; gap:7px; font-size:0.78rem; font-weight:700; color:var(--ok); background:var(--ok-soft); padding:5px 12px 5px 10px; border-radius:999px; }
.live-pill.stale{ color:var(--warn); background:var(--warn-soft); }
.pulse-dot{ width:7px; height:7px; border-radius:50%; background:currentColor; animation:pulse 2.2s infinite; }
@keyframes pulse{ 0%{ box-shadow:0 0 0 0 rgba(42,157,92,0.35);} 70%{ box-shadow:0 0 0 7px rgba(42,157,92,0);} 100%{ box-shadow:0 0 0 0 rgba(42,157,92,0);} }
@media (prefers-reduced-motion:reduce){ .pulse-dot{ animation:none; } }
.sync-time{ font-size:0.78rem; color:var(--text-muted); }
.sync-time time{ color:var(--text); }

/* ---------- stats ---------- */
.stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px; margin-bottom:24px; }
.stat-link{ text-decoration:none; color:inherit; } .stat-link:hover{ border-color:var(--accent); }
.tenant-card-head{ text-decoration:none; color:inherit; }
.chip-link{ text-decoration:none; }
.stat-tile{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m); padding:16px 18px; box-shadow:var(--shadow); border-left:3px solid var(--border); display:flex; flex-direction:column; gap:4px; }
.stat-tile.crit{ border-left-color:var(--crit); } .stat-tile.warn{ border-left-color:var(--warn); } .stat-tile.ok{ border-left-color:var(--ok); }
.stat-value{ font-size:1.6rem; font-weight:600; font-variant-numeric:tabular-nums; }
.stat-label{ font-size:0.78rem; color:var(--text-muted); font-weight:600; }

/* ---------- layout ---------- */
.dashboard-grid{ display:grid; grid-template-columns:1fr 360px; gap:22px; align-items:start; }
.section-title{ font-size:0.95rem; font-weight:700; margin-bottom:12px; display:flex; align-items:center; justify-content:space-between; }
.section-title a{ font-size:0.78rem; font-weight:600; text-decoration:none; }
.tenant-list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px; align-items:start; }

/* ---------- tenant card ---------- */
.tenant-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m); padding:16px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:12px; text-decoration:none; color:inherit; transition:transform .15s ease, box-shadow .15s ease; }
.tenant-card:hover{ transform:translateY(-2px); }
.tenant-card-head:hover .tenant-name{ color:var(--accent); }
.tenant-card-head{ display:flex; align-items:baseline; gap:8px; }
.tenant-code{ font-size:0.72rem; font-weight:600; color:var(--accent); background:var(--accent-soft); padding:2px 6px; border-radius:5px; letter-spacing:0.02em; }
.tenant-name{ font-size:0.92rem; font-weight:700; }
.service-rows{ display:flex; flex-direction:column; gap:8px; }
.service-row{ display:flex; align-items:center; gap:8px; }
.source-badge{ font-size:0.68rem; font-weight:600; padding:2px 7px; border-radius:5px; border:1px solid var(--border); color:var(--text-muted); min-width:44px; text-align:center; }
.status-chip{ font-size:0.74rem; font-weight:700; padding:2px 9px; border-radius:999px; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.status-chip::before{ content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.status-chip.ok{ color:var(--ok); background:var(--ok-soft); }
.status-chip.warn{ color:var(--warn); background:var(--warn-soft); }
.status-chip.crit{ color:var(--crit); background:var(--crit-soft); }
.status-chip.info{ color:var(--info); background:var(--info-soft); }
.status-chip.off{ color:var(--text-muted); background:var(--surface-raised); }
.updated{ margin-left:auto; font-size:0.7rem; color:var(--text-muted); }
.history-dots{ display:flex; gap:3px; }
.history-dots span{ width:9px; height:9px; border-radius:2px; background:var(--ok-soft); }
.history-dots span.warn{ background:var(--warn); } .history-dots span.crit{ background:var(--crit); }
.poll-error{ font-size:0.7rem; color:var(--crit); }

/* ---------- incident feed ---------- */
.incident-feed{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m); padding:16px; box-shadow:var(--shadow); position:sticky; top:calc(16px + env(safe-area-inset-top,0px)); }
.feed-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.feed-item{ display:flex; gap:10px; padding:12px 0; border-bottom:1px solid var(--border); }
.feed-item:last-child{ border-bottom:none; padding-bottom:0; } .feed-item:first-child{ padding-top:0; }
.feed-stripe{ width:3px; border-radius:3px; align-self:stretch; flex-shrink:0; background:var(--info); }
.feed-item.crit .feed-stripe{ background:var(--crit); } .feed-item.warn .feed-stripe{ background:var(--warn); } .feed-item.ok .feed-stripe{ background:var(--ok); }
.feed-body{ display:flex; flex-direction:column; gap:4px; min-width:0; flex:1; }
.feed-meta{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.feed-time{ margin-left:auto; font-size:0.68rem; color:var(--text-muted); }
.feed-service{ font-size:0.84rem; font-weight:700; margin:0; }
.feed-service a{ color:inherit; text-decoration:none; }
.feed-desc{ font-size:0.78rem; color:var(--text-muted); margin:0; line-height:1.4; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.feed-ack{ font-size:0.7rem; color:var(--ok); }
.empty{ color:var(--text-muted); font-size:0.84rem; padding:12px 0; }

/* ---------- cards / forms / tables ---------- */
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m); padding:18px; box-shadow:var(--shadow); margin-bottom:18px; }
.card h2{ font-size:0.95rem; font-weight:700; margin-bottom:12px; }
.form-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px 16px; }
.form-grid .full{ grid-column:1 / -1; }
.chk-row{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 28px; }
label{ display:flex; flex-direction:column; gap:5px; font-size:0.78rem; font-weight:600; color:var(--text-muted); }
label.inline{ flex-direction:row; align-items:center; gap:8px; font-weight:600; color:var(--text); }
input[type=text],input[type=email],input[type=password],input[type=url],select,textarea{
  font:inherit; font-size:0.9rem; padding:9px 11px; border-radius:var(--radius-s); border:1px solid var(--border);
  background:var(--surface-raised); color:var(--text); width:100%; }
input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{ outline:2px solid var(--accent); outline-offset:1px; }
.help{ font-size:0.72rem; color:var(--text-muted); font-weight:500; }
.btn{ font:inherit; font-size:0.84rem; font-weight:700; padding:9px 14px; border-radius:var(--radius-s); border:1px solid var(--border); background:var(--surface-raised); color:var(--text); cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; gap:6px; }
.btn:hover{ border-color:var(--accent); }
.btn-primary{ background:var(--accent); border-color:var(--accent); color:#fff; }
.btn-danger{ color:var(--crit); }
.btn-sm{ padding:5px 10px; font-size:0.76rem; }
.actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.table-wrap{ overflow-x:auto; }
td.mono, td.nowrap{ white-space:nowrap; }
table{ width:100%; border-collapse:collapse; font-size:0.84rem; }
th,td{ text-align:left; padding:10px 8px; border-bottom:1px solid var(--border); vertical-align:top; }
th{ font-size:0.72rem; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-muted); }
tr:last-child td{ border-bottom:none; }
.muted{ color:var(--text-muted); }
.small{ font-size:0.76rem; }
.webhook-url{ font-size:0.74rem; word-break:break-all; background:var(--surface-raised); padding:8px 10px; border-radius:var(--radius-s); border:1px dashed var(--border); }
.filters{ display:flex; gap:8px; flex-wrap:wrap; align-items:end; margin-bottom:14px; }
.filters label{ min-width:140px; }
.badge-role{ font-size:0.7rem; font-weight:700; padding:2px 8px; border-radius:999px; background:var(--accent-soft); color:var(--accent); }
.event-detail p{ white-space:pre-wrap; font-size:0.88rem; line-height:1.5; }
.kv{ display:grid; grid-template-columns:140px 1fr; gap:6px 12px; font-size:0.84rem; }
.kv dt{ color:var(--text-muted); font-weight:600; } .kv dd{ margin:0; }
.check-result{ display:flex; flex-direction:column; gap:6px; font-size:0.82rem; }
.check-result .ok{ color:var(--ok); } .check-result .err{ color:var(--crit); }

/* ---------- koneksi Jira ---------- */
.conn-strip{ display:flex; align-items:center; gap:12px; padding:10px 14px; margin-bottom:14px; border-radius:var(--radius-s); border:1px solid var(--border); background:var(--surface); font-size:0.84rem; flex-wrap:wrap; }
.conn-strip .conn-dot{ width:9px; height:9px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 3px var(--ok-soft); flex:none; }
.conn-strip.conn-warn .conn-dot{ background:var(--warn); box-shadow:0 0 0 3px var(--warn-soft); }
.conn-text{ display:flex; flex-direction:column; gap:2px; flex:1; min-width:200px; }
.conn-actions{ display:flex; gap:6px; }
.connect-card{ border-color:var(--accent); }
.connect-head{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:12px; }
.connect-head h2{ margin-bottom:4px; }
.steps{ margin:0 0 16px 18px; padding:0; font-size:0.86rem; line-height:1.55; display:flex; flex-direction:column; gap:8px; }
.steps code{ font-family:var(--mono, "IBM Plex Mono", monospace); font-size:0.8em; background:var(--surface-raised); padding:1px 5px; border-radius:4px; }
.copy-row{ display:flex; gap:8px; align-items:center; margin-top:6px; flex-wrap:wrap; }
.copy-row .webhook-url{ flex:1; min-width:220px; }
.alt-method{ margin-top:16px; border-top:1px dashed var(--border); padding-top:12px; }
.alt-method summary{ cursor:pointer; font-size:0.82rem; font-weight:700; color:var(--text-muted); }
.alt-method form{ margin-top:10px; }

/* ---------- login ---------- */
.login-wrap{ max-width:380px; margin:8vh auto 0; }
.login-wrap .brand-link{ justify-content:center; margin-bottom:22px; }
.login-wrap form{ display:flex; flex-direction:column; gap:12px; }

footer.note{ margin-top:26px; font-size:0.74rem; color:var(--text-muted); }

/* ---------- responsive ---------- */
@media (max-width:960px){ .dashboard-grid{ grid-template-columns:1fr; } .incident-feed{ position:static; } }
@media (max-width:640px){
  .stats{ grid-template-columns:repeat(2,1fr); }
  .topbar{ flex-direction:column; align-items:flex-start; gap:10px; }
  .nav{ width:100%; overflow-x:auto; flex-wrap:nowrap; }
  .nav a{ white-space:nowrap; }
  .nav-user{ display:none; }
  .kv{ grid-template-columns:1fr; }
}
@media (max-width:420px){ .tenant-list{ grid-template-columns:1fr; } .stat-value{ font-size:1.35rem; } .page{ padding-inline:14px; } }

/* ---------- tabel tiket + pager ---------- */
.ticket-cell{ min-width:260px; }
.ticket-cell a{ font-weight:600; }
.ticket-summary{ display:block; font-size:0.8rem; color:var(--text-muted); margin-top:2px; line-height:1.35; }
.due-over{ color:var(--crit); font-weight:700; }
.due-soon{ color:var(--warn); font-weight:700; }
.pager{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding-top:12px; margin-top:4px; border-top:1px solid var(--border); flex-wrap:wrap; }
.pager-btns{ display:flex; align-items:center; gap:10px; }
.btn.disabled{ opacity:0.4; pointer-events:none; }

/* ---------- panel beban engineer + due date ---------- */
.panels-2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:18px; }
.panel{ margin-bottom:0; }
.panel-head{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin-bottom:10px; flex-wrap:wrap; }
.panel-head h2{ margin-bottom:0; }
table.compact th, table.compact td{ padding:7px 6px; }
table.compact th.num, table.compact td.num{ text-align:right; font-variant-numeric:tabular-nums; }
tr.muted td{ color:var(--text-muted); }
.num-link{ text-decoration:none; font-weight:700; padding:2px 8px; border-radius:999px; background:var(--surface-raised); color:var(--text); }
.num-link.warn{ color:var(--warn); background:var(--warn-soft); }
.num-link.info{ color:var(--info); background:var(--info-soft); }
.num-link.strong{ background:var(--accent-soft); color:var(--accent); }
.num-link:hover{ outline:1px solid var(--accent); }
.due-list{ list-style:none; margin:0 0 10px; padding:0; display:flex; flex-direction:column; }
.due-item{ display:grid; grid-template-columns:64px 1fr auto; gap:10px; align-items:start; padding:8px 0; border-bottom:1px solid var(--border); font-size:0.84rem; }
.due-item:last-child{ border-bottom:none; }
.due-when{ display:flex; flex-direction:column; font-weight:700; line-height:1.2; }
.due-when small{ font-weight:500; color:var(--text-muted); font-size:0.7rem; }
.due-item.over .due-when{ color:var(--crit); } .due-item.soon .due-when{ color:var(--warn); }
.due-body{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; min-width:0; }
.due-body a{ font-weight:700; }
.due-summary{ flex-basis:100%; color:var(--text-muted); font-size:0.78rem; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.due-who{ text-align:right; white-space:nowrap; line-height:1.6; }
@media (max-width:860px){ .panels-2{ grid-template-columns:1fr; } }

/* ---------- detail tiket ---------- */
.ticket-grid{ display:grid; grid-template-columns:1fr 340px; gap:18px; align-items:start; }
.update-card{ position:sticky; top:16px; }
.update-form{ display:flex; flex-direction:column; gap:12px; }
.update-form label .help{ font-weight:500; }
.pre{ white-space:pre-wrap; font-size:0.88rem; line-height:1.5; }
.comment-form textarea{ width:100%; }
.comment-list{ list-style:none; margin:14px 0 0; padding:0; display:flex; flex-direction:column; gap:12px; }
.comment{ border-top:1px solid var(--border); padding-top:10px; }
.comment-meta{ font-size:0.82rem; margin-bottom:4px; }
.comment .pre{ margin:0; font-size:0.86rem; }
@media (max-width:900px){ .ticket-grid{ grid-template-columns:1fr; } .update-card{ position:static; } }

/* ---------- halaman Monitoring ---------- */
.mon-head{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.mon-pick{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.mon-select-label{ font-size:0.72rem; text-transform:uppercase; letter-spacing:0.05em; gap:3px; }
.mon-select-label select{ font-size:1rem; font-weight:700; min-width:260px; padding:9px 12px; }
.overall-badge{ display:inline-flex; align-items:center; gap:8px; font-weight:800; font-size:0.86rem; padding:7px 14px; border-radius:999px; }
.overall-badge .dot{ width:9px; height:9px; border-radius:50%; background:currentColor; box-shadow:0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.overall-badge.ok{ color:var(--ok); background:var(--ok-soft); } .overall-badge.warn{ color:var(--warn); background:var(--warn-soft); } .overall-badge.crit{ color:var(--crit); background:var(--crit-soft); }
.mon-stats{ grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); gap:10px; margin-bottom:18px; }
.mon-stats .stat-tile{ padding:13px 14px; } .mon-stats .stat-value{ font-size:1.4rem; } .mon-stats .stat-label{ font-size:0.72rem; }
.stat-sub{ font-size:0.9rem; color:var(--text-muted); font-weight:500; }
.timeline30{ display:grid; grid-template-columns:repeat(30,1fr); gap:3px; height:26px; }
.timeline30 span{ border-radius:3px; background:var(--ok-soft); }
.timeline30 span.warn{ background:var(--warn); } .timeline30 span.crit{ background:var(--crit); }
.timeline-axis{ display:flex; justify-content:space-between; margin-top:6px; }
.svc-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:8px; }
.svc-tile{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:9px 11px; border:1px solid var(--border); border-radius:var(--radius-s); background:var(--surface-raised); border-left:3px solid var(--ok); }
.svc-tile.warn{ border-left-color:var(--warn); } .svc-tile.crit{ border-left-color:var(--crit); background:var(--crit-soft); }
.svc-name{ font-size:0.82rem; font-weight:600; line-height:1.25; }
.mon-azure{ grid-template-columns:1fr 1fr; }
.bar-stack{ display:flex; height:12px; border-radius:999px; overflow:hidden; background:var(--surface-raised); }
.bar-stack span{ display:block; height:100%; } .bar-stack .ok{ background:var(--ok); } .bar-stack .warn{ background:var(--warn); } .bar-stack .crit{ background:var(--crit); } .bar-stack .off{ background:var(--border); }
.legend{ display:flex; gap:14px; flex-wrap:wrap; margin-top:8px; color:var(--text-muted); } .legend b{ color:var(--text); }
.sw{ display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:5px; vertical-align:-1px; } .sw.ok{ background:var(--ok); } .sw.warn{ background:var(--warn); } .sw.crit{ background:var(--crit); } .sw.off{ background:var(--border); }
.hbars{ display:flex; flex-direction:column; gap:7px; }
.hbar{ display:grid; grid-template-columns:150px 1fr 70px; gap:10px; align-items:center; font-size:0.82rem; }
.hbar-label{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-muted); font-weight:600; }
.hbar-track{ height:10px; background:var(--surface-raised); border-radius:999px; overflow:hidden; }
.hbar-fill{ display:block; height:100%; border-radius:999px; } .hbar-fill.accent{ background:var(--accent); } .hbar-fill.warn{ background:var(--warn); } .hbar-fill.crit{ background:var(--crit); }
.hbar-val{ text-align:right; font-size:0.8rem; }
.adv-list{ list-style:none; margin:12px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; font-size:0.84rem; }
.adv-list li{ border-top:1px solid var(--border); padding-top:8px; line-height:1.4; }
.conn-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:10px; font-size:0.84rem; }
.app-config{ border:1px solid var(--border); border-radius:var(--radius-s); padding:12px 14px; margin:6px 0 16px; background:var(--surface-raised); }
.app-config h3{ font-size:0.92rem; margin:0; }
.app-config .panel-head{ margin-bottom:8px; }
.conn-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.conn-item{ padding:8px 0; border-top:1px solid var(--border); }
.conn-item:first-child{ border-top:none; padding-top:2px; }
.conn-label{ min-width:110px; display:inline-block; font-size:0.9rem; }
.perm-note{ margin-top:4px; }
.perm-note summary{ cursor:pointer; }
.perm-note p{ margin:6px 0 0; }
@media (max-width:860px){ .mon-azure{ grid-template-columns:1fr; } .hbar{ grid-template-columns:110px 1fr 60px; } .mon-select-label select{ min-width:0; width:100%; } .timeline30{ height:18px; } }

/* ---------- dashboard hero ---------- */
.hero{ display:flex; justify-content:space-between; align-items:center; gap:18px; flex-wrap:wrap; padding:20px 22px; border-radius:var(--radius-m); border:1px solid var(--border); background:linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 100%); box-shadow:var(--shadow); margin-bottom:18px; position:relative; overflow:hidden; }
.hero::before{ content:""; position:absolute; inset:0 0 auto 0; height:4px; background:var(--accent); }
.hero.ok::before{ background:var(--ok); } .hero.warn::before{ background:var(--warn); } .hero.crit::before{ background:var(--crit); }
.hero.warn{ background:linear-gradient(135deg, var(--surface) 0%, var(--warn-soft) 100%); } .hero.crit{ background:linear-gradient(135deg, var(--surface) 0%, var(--crit-soft) 100%); }
.hero-main{ display:flex; align-items:center; gap:18px; min-width:0; }
.hero-ring{ position:relative; width:76px; height:76px; flex:none; }
.hero-ring svg{ width:100%; height:100%; transform:rotate(-90deg); }
.ring-bg{ fill:none; stroke:var(--border); stroke-width:3.2; }
.ring-fg{ fill:none; stroke:var(--ok); stroke-width:3.2; stroke-linecap:round; transition:stroke-dasharray .6s ease; }
.hero.warn .ring-fg{ stroke:var(--warn); } .hero.crit .ring-fg{ stroke:var(--crit); }
.hero-pct{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:0.86rem; }
.hero-kicker{ font-size:0.72rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-muted); font-weight:700; }
.hero-title{ font-size:1.35rem; font-weight:800; margin:2px 0 4px; letter-spacing:-0.01em; }
.hero-sub{ margin:0; font-size:0.86rem; color:var(--text-muted); }
.hero-side{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.hero-legend{ display:flex; gap:10px; font-size:0.76rem; color:var(--text-muted); }
.hero-legend .lg::before{ content:""; display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; }
.hero-legend .ok::before{ background:var(--ok); } .hero-legend .warn::before{ background:var(--warn); } .hero-legend .crit::before{ background:var(--crit); }
.hero-legend b{ color:var(--text); }
.stat-tile{ position:relative; }
.stat-ico{ position:absolute; top:14px; right:14px; width:30px; height:30px; border-radius:8px; background:var(--surface-raised); display:flex; align-items:center; justify-content:center; color:var(--text-muted); }
.stat-ico svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.stat-tile.crit .stat-ico{ color:var(--crit); background:var(--crit-soft); } .stat-tile.warn .stat-ico{ color:var(--warn); background:var(--warn-soft); } .stat-tile.ok .stat-ico{ color:var(--ok); background:var(--ok-soft); }
.tenant-card{ border-top:3px solid var(--ok); cursor:pointer; }
.card-foot{ display:flex; justify-content:space-between; align-items:center; }
.detail-link{ color:var(--accent); font-weight:700; }
.tenant-card.lvl-warn{ border-top-color:var(--warn); } .tenant-card.lvl-crit{ border-top-color:var(--crit); box-shadow:0 0 0 1px var(--crit-soft), var(--shadow); }
.tenant-card-head{ flex-wrap:wrap; }
.lvl-pill{ margin-left:auto; font-size:0.68rem; font-weight:700; padding:2px 8px; border-radius:999px; }
.lvl-pill.ok{ color:var(--ok); background:var(--ok-soft); } .lvl-pill.warn{ color:var(--warn); background:var(--warn-soft); } .lvl-pill.crit{ color:var(--crit); background:var(--crit-soft); }
.facts{ display:flex; flex-direction:column; gap:4px; font-size:0.76rem; color:var(--text-muted); border-top:1px dashed var(--border); padding-top:8px; }
.fact b{ color:var(--text); font-family:'IBM Plex Mono',monospace; }
.fact.warn b{ color:var(--warn); } .fact.crit b{ color:var(--crit); }
@media (max-width:640px){ .hero-side{ align-items:flex-start; } .hero-title{ font-size:1.1rem; } }

/* ---------- pesan bisa ditutup + auto-poll ---------- */
.flash{ position:relative; padding-right:40px; transition:opacity .18s ease, height .18s ease, margin .18s ease, padding .18s ease; }
.flash-close{ position:absolute; top:6px; right:8px; width:26px; height:26px; line-height:1; font-size:1.15rem; border:0; border-radius:50%; background:transparent; color:inherit; opacity:.55; cursor:pointer; }
.flash-close:hover{ opacity:1; background:rgba(128,128,128,0.15); }
.flash-closing{ opacity:0; height:0 !important; margin:0; padding-block:0; overflow:hidden; }
.auto-poll{ display:inline-flex; flex-direction:row !important; align-items:center; gap:6px; white-space:nowrap; font-size:0.78rem; color:var(--text-muted); background:var(--surface); border:1px solid var(--border); border-radius:999px; padding:3px 10px 3px 8px; }
.auto-poll select{ width:auto; font-size:0.78rem; font-weight:700; padding:2px 4px; border:0; background:transparent; color:var(--text); }
.auto-poll select:focus{ outline:2px solid var(--accent); border-radius:4px; }
.auto-poll-ico{ color:var(--accent); font-size:0.9rem; }
#autopoll-next{ font-family:'IBM Plex Mono',monospace; white-space:nowrap; }

/* ---------- detail issue layanan M365 ---------- */
.svc-tile.svc-clickable{ cursor:pointer; text-align:left; width:100%; font:inherit; color:inherit; }
.svc-tile.svc-clickable:hover{ border-color:var(--accent); }
.svc-tile-foot{ display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; }
.svc-more{ font-size:0.7rem; font-weight:700; color:var(--accent); white-space:nowrap; }
.svc-dialog{ width:min(720px,92vw); max-height:84vh; border:1px solid var(--border); border-radius:var(--radius-m); background:var(--surface); color:var(--text); padding:22px; box-shadow:var(--shadow); }
.svc-dialog::backdrop{ background:rgba(8,12,16,0.55); }
.svc-dialog h2{ font-size:1.05rem; display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:14px; padding-right:40px; }
.svc-dialog-close{ position:absolute; top:12px; right:14px; margin:0; }
.svc-issue{ border-top:1px solid var(--border); padding-top:12px; margin-top:12px; }
.svc-issue:first-of-type{ border-top:0; padding-top:0; margin-top:0; }
.svc-issue h3{ font-size:0.95rem; font-weight:700; margin:6px 0 2px; }
.svc-issue .pre{ font-size:0.84rem; margin:8px 0 0; }
.svc-post{ background:var(--surface-raised); border-radius:var(--radius-s); padding:10px 12px; }

/* ---------- Customer List ---------- */
.filter-actions{ display:flex; gap:8px; align-items:flex-end; }
.view-toggle{ display:inline-flex; align-self:flex-end; border:1px solid var(--border); border-radius:999px; overflow:hidden; }
.view-toggle a{ padding:6px 14px; font-size:0.78rem; font-weight:700; color:var(--text-muted); text-decoration:none; }
.view-toggle a.active{ background:var(--accent); color:#fff; }
.cust-grid{ display:grid; gap:14px; grid-template-columns:repeat(auto-fill,minmax(360px,1fr)); }
.cust-card{ display:flex; flex-direction:column; gap:10px; }
.cust-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.cust-name{ font-size:1.02rem; font-weight:800; line-height:1.25; }
.cust-counts{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.cust-cost{ margin-left:auto; font-family:'IBM Plex Mono',monospace; font-size:0.8rem; font-weight:600; color:var(--text-muted); }
.cust-contracts{ list-style:none; display:flex; flex-direction:column; gap:8px; border-top:1px dashed var(--border); padding-top:10px; }
.cust-contracts li{ display:flex; flex-direction:column; gap:3px; }
.cust-row-top{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.cust-svc{ font-size:0.86rem; font-weight:600; line-height:1.3; }
.cust-row-meta{ display:flex; flex-wrap:wrap; gap:4px 10px; font-size:0.72rem; color:var(--text-muted); }
.cust-days{ font-family:'IBM Plex Mono',monospace; font-size:0.72rem; font-weight:700; color:var(--text-muted); white-space:nowrap; }
.cust-days.warn{ color:var(--warn); } .cust-days.crit{ color:var(--crit); }
td.num, th.num{ text-align:right; }
@media (max-width:640px){ .cust-grid{ grid-template-columns:1fr; } }
.cust-total{ font-size:1.05rem !important; font-family:'IBM Plex Mono',monospace; line-height:1.25; word-break:break-word; padding-right:26px; }
.exp-list{ list-style:none; display:flex; flex-direction:column; }
.exp-item{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; padding:9px 0; border-top:1px solid var(--border); font-size:0.82rem; }
.exp-item:first-child{ border-top:0; }
.exp-when{ font-family:'IBM Plex Mono',monospace; font-size:0.78rem; color:var(--text-muted); white-space:nowrap; min-width:88px; }
.exp-who{ flex:1 1 240px; min-width:0; }
.exp-item .status-chip{ white-space:nowrap; }
.cust-row-top .status-chip{ white-space:nowrap; flex:none; }
.cust-svc{ flex:1 1 auto; min-width:0; overflow-wrap:anywhere; }
td.nw, th.nw{ white-space:nowrap; }
.page-wide .cust-grid{ grid-template-columns:repeat(auto-fill,minmax(420px,1fr)); }

/* ---------- layar lebar: manfaatkan ruang, jangan biarkan kolom melar ---------- */
@media (min-width:1400px){
  .dashboard-grid{ grid-template-columns:1fr 400px; }
  .ticket-grid{ grid-template-columns:1fr 380px; }
  .tenant-list{ grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); }
  .svc-grid{ grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); }
  .panels-2{ gap:18px; }
}

/* ---------- Resource Health per resource ---------- */
.rh-list{ list-style:none; display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.rh-item{ border-left:3px solid var(--border); background:var(--surface-raised); border-radius:var(--radius-s); padding:10px 12px; }
.rh-item.crit{ border-left-color:var(--crit); } .rh-item.warn{ border-left-color:var(--warn); } .rh-item.off{ border-left-color:var(--border); }
.rh-head{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; }
.rh-sum{ font-size:0.82rem; line-height:1.5; margin:6px 0 0; }
.rh-more{ margin-top:7px; font-size:0.78rem; }
.rh-more summary{ cursor:pointer; color:var(--accent); font-weight:600; }
.rh-acts, .rh-hist{ list-style:none; display:flex; flex-direction:column; gap:6px; margin:8px 0 0; padding-left:2px; }
.rh-acts li{ line-height:1.5; padding-left:14px; position:relative; }
.rh-acts li::before{ content:'→'; position:absolute; left:0; color:var(--accent); }
.rh-hist li{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; border-top:1px dashed var(--border); padding-top:6px; }
.rh-hist li:first-child{ border-top:0; padding-top:0; }

/* ---------- paginasi isi kartu (maks 10 baris) ---------- */
.card-pager{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap;
  margin-top:10px; padding-top:10px; border-top:1px solid var(--border); }
.card-pager-info{ font-family:'IBM Plex Mono',monospace; font-size:0.74rem; color:var(--text-muted); }
.card-pager-btns{ display:flex; gap:8px; }
.card-pager .btn[disabled]{ opacity:.4; cursor:default; }

/* ---------- ringkasan Azure & Microsoft 365 di dashboard ---------- */
.cloud-summary{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:24px; align-items:start; }
.cloud-card{ display:flex; flex-direction:column; gap:10px; position:relative; overflow:hidden; }
.cloud-card::before{ content:''; position:absolute; inset:0 0 auto 0; height:3px; }
.cloud-card.az::before{ background:linear-gradient(90deg,#0a7bbd,#4fc3f7); }
.cloud-card.ms::before{ background:linear-gradient(90deg,#d13438,#f2a900 35%,#2d9c3f 70%,#0a7bbd); }
.cloud-card.cx::before{ background:linear-gradient(90deg,#7c5cff,#c77cff); }
@media (max-width:1400px){ .cloud-summary{ grid-template-columns:1fr 1fr; } }
.cloud-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.cloud-head h2{ font-size:1.02rem; display:flex; align-items:center; gap:8px; }
.cloud-ico{ font-size:1.05rem; color:var(--accent); }
.cloud-sub{ font-size:0.78rem; color:var(--text-muted); margin:-4px 0 2px; }
.cloud-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(132px,1fr)); gap:10px; }
.cloud-metric{ display:flex; flex-direction:column; gap:2px; padding:10px 12px; border:1px solid var(--border);
  border-left-width:3px; border-radius:var(--radius-s); background:var(--surface-raised); text-decoration:none; color:inherit; transition:border-color .15s ease, transform .15s ease; }
.cloud-metric:hover{ border-color:var(--accent); transform:translateY(-1px); }
.cloud-metric.ok{ border-left-color:var(--ok); } .cloud-metric.warn{ border-left-color:var(--warn); } .cloud-metric.crit{ border-left-color:var(--crit); }
.cloud-num{ font-size:1.5rem; font-weight:800; line-height:1.15; font-family:'IBM Plex Mono',monospace; overflow-wrap:anywhere; white-space:normal; }
.cloud-num small{ font-size:0.8rem; font-weight:600; color:var(--text-muted); }
.cloud-num.money{ font-size:1.15rem; white-space:nowrap; }
.cloud-lbl{ font-size:0.76rem; font-weight:700; }
.cloud-note{ font-size:0.68rem; color:var(--text-muted); }
@media (max-width:900px){ .cloud-summary{ grid-template-columns:1fr; } }

/* ---------- pilar Zero Trust (halaman Zero Trust) ---------- */
.zt-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:22px; }
.zt-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m); padding:16px 18px;
  box-shadow:var(--shadow); border-left:3px solid var(--border); display:flex; flex-direction:column; gap:10px; }
.zt-card.ok{ border-left-color:var(--ok); } .zt-card.warn{ border-left-color:var(--warn); } .zt-card.crit{ border-left-color:var(--crit); }
.zt-card.gap{ border-left-color:var(--border); opacity:.72; }
.zt-card-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.zt-card-head h3{ font-size:0.98rem; margin:0; }
.zt-score{ font-family:'IBM Plex Mono',monospace; font-weight:800; font-size:1.35rem; white-space:nowrap; }
.zt-score.ok{ color:var(--ok); } .zt-score.warn{ color:var(--warn); } .zt-score.crit{ color:var(--crit); }
.zt-checks{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.zt-checks li{ font-size:0.8rem; padding-left:18px; position:relative; }
.zt-checks li.ok::before{ content:'✓'; position:absolute; left:0; color:var(--ok); font-weight:700; }
.zt-checks li.bad::before{ content:'✕'; position:absolute; left:0; color:var(--crit); font-weight:700; }
@media (max-width:1100px){ .zt-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:680px){ .zt-grid{ grid-template-columns:1fr; } }

/* ---------- identitas subscription (halaman Azure) ---------- */
.sub-strip{ display:flex; flex-direction:column; align-items:stretch; gap:0;
  background:var(--surface); border:1px solid var(--border); border-left:3px solid var(--accent);
  border-radius:var(--radius-m); padding:10px 14px 2px; margin-bottom:16px; }
.sub-main{ display:flex; align-items:center; gap:12px; min-width:0; }
.sub-ico{ font-size:1.02rem; color:var(--accent); }
.sub-name{ font-size:0.88rem; display:block; }
.sub-side{ display:flex; flex-direction:column; gap:2px; text-align:right; }
@media (max-width:760px){ .sub-side{ text-align:left; } }
.sub-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding-bottom:9px; }
.sub-head > div{ flex:1; min-width:0; }
.sub-head strong{ font-size:0.84rem; }
.sub-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:0 8px; margin-top:2px; color:var(--text-muted); font-size:0.71rem; }
.sub-meta span{ display:flex; align-items:center; gap:8px; }
.sub-meta span:not(:last-child)::after{ content:''; width:3px; height:3px; border-radius:50%; background:var(--border); display:inline-block; }
.sub-meta .mono{ font-family:'IBM Plex Mono',monospace; }
.sub-list{ list-style:none; display:flex; flex-direction:column; }
.sub-item{ display:flex; align-items:center; justify-content:space-between; gap:10px 16px; flex-wrap:wrap;
  padding:7px 0; border-top:1px solid var(--border); }
.sub-item-main{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:0.8rem; }
.sub-item-id{ display:flex; flex-wrap:wrap; align-items:center; gap:7px; font-size:0.68rem; color:var(--text-muted); }
.sub-item-id .mono{ font-family:'IBM Plex Mono',monospace; }
.sub-item-id .btn{ padding:2px 8px; font-size:0.68rem; }
