/* eSPO — stylesheet */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --green:#15803d; --green-dark:#14532d; --green-mid:#166534; --green-light:#f0fdf4; --green-soft:#dcfce7;
  --ink:#1f2937; --muted:#6b7280; --line:#e5e7eb; --bg:#f3f4f6;
  --amber:#f59e0b; --red:#dc2626; --blue:#2563eb; --violet:#7c3aed;
}
html { scroll-behavior:smooth; }
body { font-family:'Segoe UI', system-ui, sans-serif; color:var(--ink); display:flex; min-height:100vh; font-size:14px;
       background:#e9f4ee url('bg.svg') center bottom / cover no-repeat fixed; }
a { color:var(--green); }

/* ── Sidebar (panel kaca melayang; blok logo kiri-atas berasal dari background) ── */
.sidebar { position:fixed; left:18px; top:16px; bottom:16px; width:252px; z-index:20;
  background:rgba(255,255,255,.86); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.85); border-radius:20px;
  box-shadow:0 14px 38px rgba(16,64,36,.15); color:var(--ink);
  display:flex; flex-direction:column; overflow:visible; transition:width .18s ease; }
.sb-toggle { position:absolute; top:22px; right:-13px; width:26px; height:26px; border-radius:50%; z-index:3;
  background:#fff; border:1px solid #e5e7eb; box-shadow:0 3px 10px rgba(0,0,0,.16); cursor:pointer;
  display:flex; align-items:center; justify-content:center; font-size:10px; color:var(--green-dark); padding:0; }
.sb-toggle:hover { background:#f0f7f2; border-color:var(--green); }
.sb-toggle span { transition:transform .18s ease; line-height:1; }
.brand { display:flex; gap:10px; align-items:center; padding:16px; border-bottom:1px solid var(--line); }
.brand-icon { font-size:28px; width:40px; height:40px; display:flex; align-items:center; justify-content:center; background:var(--green-soft); border-radius:10px; flex:0 0 40px; }
.brand-icon img { width:34px; height:34px; object-fit:contain; }
.brand-title { font-size:19px; font-weight:800; letter-spacing:.5px; color:var(--green-dark); }
.brand-sub { font-size:11px; color:var(--muted); }
nav { padding:12px 10px; flex:1; overflow-y:auto; scrollbar-width:thin; }
.nav-label { font-size:10.5px; text-transform:uppercase; letter-spacing:1px; color:#9ca3af; padding:10px 14px 4px; }
.nav-item { display:flex; align-items:center; gap:9px; color:#374151; text-decoration:none; padding:10px 13px; border-radius:11px; margin-bottom:3px; font-size:13.5px; font-weight:500; }
.nav-item:hover { background:#e9f6ee; color:var(--green-dark); }
.nav-item.active { background:linear-gradient(135deg,#1d8a46,#0f5a2c); color:#fff; font-weight:700; box-shadow:0 6px 14px rgba(15,90,44,.28); }
.nav-item.nav-keluar { color:#b91c1c; }
.nav-item.nav-keluar:hover { background:#fef2f2; color:#991b1b; }
.nav-item .cnt { margin-left:auto; background:var(--amber); color:#111; font-size:11px; font-weight:700; padding:1px 7px; border-radius:99px; }
.nav-item .cnt:empty { display:none; }
.sidebar-user { padding:12px 16px; border-top:1px solid var(--line); font-size:12.5px; color:var(--muted); }
.sidebar-user b { display:block; font-size:13.5px; color:var(--ink); }
.sidebar-user .role-chip { display:inline-block; margin-top:4px; font-size:10.5px; padding:2px 9px; border-radius:99px; background:var(--green-soft); color:var(--green-dark); font-weight:700; }
.role-picker { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.role-opt { display:flex; gap:9px; align-items:flex-start; border:1.5px solid var(--line); border-radius:10px; padding:9px 11px; cursor:pointer; }
.role-opt:hover { border-color:var(--green); background:#f0f7f2; }
.role-opt input { margin-top:2px; accent-color:var(--green); }
.role-opt span { display:flex; flex-direction:column; }
.role-opt b { font-size:12.5px; }
.role-opt small { color:var(--muted); font-size:11px; }
@media (max-width:560px){ .role-picker { grid-template-columns:1fr; } }
.sidebar-footer { padding:10px 16px 14px; font-size:10.5px; color:#9ca3af; letter-spacing:.5px; }

/* ── Content ── */
.content { margin-left:296px; flex:1; padding:22px 30px 0; max-width:none; width:100%; transition:margin-left .18s ease; }

/* ── Mode sidebar terlipat (rail ikon) — hanya desktop ── */
@media (min-width:761px) {
  html.sb-mini .sidebar { width:74px; }
  html.sb-mini .content { margin-left:112px; }
  html.sb-mini .brand { justify-content:center; padding:14px 8px; }
  html.sb-mini .brand > div:last-child { display:none; }
  html.sb-mini .nav-label { display:none; }
  html.sb-mini .nav-item { justify-content:center; padding:11px 6px; position:relative; }
  html.sb-mini .nav-item .nt { display:none; }
  html.sb-mini .nav-item .ni { font-size:17px; }
  html.sb-mini .nav-item .cnt { position:absolute; top:3px; right:5px; min-width:15px; font-size:10px; padding:0 5px; }
  html.sb-mini .sidebar-user, html.sb-mini .sidebar-footer { display:none; }
  html.sb-mini .sb-toggle span { transform:rotate(180deg); }
}

/* ── Hero dashboard — panel emerald premium dengan ornamen emas ── */
.hero { position:relative; display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:18px;
  border-radius:22px; min-height:178px; padding:24px 30px;
  background:linear-gradient(118deg,#0b451f 0%,#14532d 46%,#1e7c40 100%);
  border:1px solid rgba(255,255,255,.14); box-shadow:0 16px 42px rgba(10,50,28,.26); color:#fff; }
/* ornamen ::before diberi border-radius sendiri agar sudut membulat tanpa overflow:hidden
   (supaya dropdown notifikasi bisa keluar penuh dari kartu hero) */
.hero::before { content:''; position:absolute; inset:0; pointer-events:none; border-radius:22px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-40 -40 80 80'%3E%3Cg fill='none' stroke='%23e8c766' stroke-width='1.4' opacity='.32'%3E%3Crect x='-26' y='-26' width='52' height='52'/%3E%3Crect x='-26' y='-26' width='52' height='52' transform='rotate(45)'/%3E%3C/g%3E%3C/svg%3E") right -70px center / 400px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-40 -40 80 80'%3E%3Cg fill='none' stroke='%23e8c766' stroke-width='1.4' opacity='.2'%3E%3Crect x='-26' y='-26' width='52' height='52'/%3E%3Crect x='-26' y='-26' width='52' height='52' transform='rotate(45)'/%3E%3C/g%3E%3C/svg%3E") calc(100% - 310px) -90px / 230px no-repeat,
    radial-gradient(640px 320px at 88% 12%, rgba(232,199,102,.13), transparent 65%),
    radial-gradient(500px 260px at 8% 110%, rgba(255,255,255,.07), transparent 70%);
}
.hero-left, .hero-right { position:relative; z-index:1; }
.hero-hello { font-size:14.5px; font-weight:500; color:#c9e8d4; }
.hero-hello b { color:#fff; }
.hero-title { font-size:34px; font-weight:800; color:#fff; line-height:1.08; margin-top:2px; letter-spacing:.3px; }
.hero-title span { color:#e8c766; }
.hero-sub { color:#a9cdb7; font-size:13.5px; }
.hero-inst { margin-top:7px; font-weight:700; color:#f2faf5; font-size:13px; line-height:1.5; text-transform:uppercase; letter-spacing:.6px; }
.hero-inst::after { content:''; display:block; width:64px; height:3px; border-radius:3px; margin-top:10px;
  background:linear-gradient(90deg,#e8c766,#b98f2e); }
.hero-quote { margin-top:9px; font-style:italic; color:#d9c78a; font-size:12.5px; letter-spacing:.2px; }
.hero-right { display:flex; flex-direction:column; align-items:flex-end; gap:10px; flex:0 0 auto; }
.hero-top { display:flex; gap:10px; align-items:center; }
.notif-wrap { position:relative; }
.bell { position:relative; width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.94); border:1px solid #e5e7eb; cursor:pointer; font-size:19px; box-shadow:0 3px 12px rgba(0,0,0,.09); display:flex; align-items:center; justify-content:center; }
.bell:hover { border-color:var(--green); }
.bell .dot { position:absolute; top:-3px; right:-3px; min-width:18px; height:18px; padding:0 4px; border-radius:99px; background:#ef4444; color:#fff; font-size:10.5px; font-weight:700; display:flex; align-items:center; justify-content:center; border:2px solid #fff; }
.bell .dot:empty { display:none; }
.notif-menu { position:absolute; right:0; top:calc(100% + 8px); width:340px; max-width:88vw; background:#fff; border:1px solid #e5e7eb; border-radius:14px; box-shadow:0 16px 40px rgba(0,0,0,.2); z-index:60; overflow:hidden; animation:slidein .14s ease; }
.notif-head { display:flex; justify-content:space-between; align-items:center; padding:11px 14px; border-bottom:1px solid var(--line); font-weight:700; font-size:13.5px; color:var(--green-dark); }
.notif-read-all { border:none; background:none; color:var(--green); font-size:11.5px; font-weight:600; cursor:pointer; }
.notif-read-all:hover { text-decoration:underline; }
.notif-list { max-height:360px; overflow-y:auto; }
.notif-item { display:flex; gap:10px; padding:11px 14px; border-bottom:1px solid #f3f4f6; cursor:pointer; }
.notif-item:hover { background:#f0f7f2; }
.notif-item.unread { background:#eff6ff; }
.notif-item.unread:hover { background:#e0efff; }
.notif-item .ni-ic { font-size:17px; flex:0 0 auto; }
.notif-item .ni-msg { font-size:12.8px; line-height:1.45; color:var(--ink); }
.notif-item .ni-time { font-size:11px; color:var(--muted); margin-top:2px; }
.notif-empty { padding:26px; text-align:center; color:var(--muted); font-size:13px; }

.avatar-wrap { position:relative; }
.avatar-chip .chev { color:#9ca3af; font-size:11px; margin-left:2px; }
.user-menu { position:absolute; right:0; top:calc(100% + 8px); min-width:180px; background:#fff; border:1px solid #e5e7eb;
  border-radius:13px; box-shadow:0 14px 34px rgba(0,0,0,.16); padding:6px; z-index:60; animation:slidein .14s ease; }
.user-menu a { display:flex; align-items:center; gap:9px; padding:10px 13px; border-radius:9px; font-size:13.5px;
  color:var(--ink); text-decoration:none; cursor:pointer; font-weight:500; }
.user-menu a:hover { background:#f0f7f2; color:var(--green-dark); }
.user-menu a.danger { color:#b91c1c; }
.user-menu a.danger:hover { background:#fef2f2; color:#991b1b; }
.avatar-chip { display:flex; align-items:center; gap:9px; background:rgba(255,255,255,.94); border:1px solid #e5e7eb; border-radius:99px; padding:5px 15px 5px 6px; cursor:pointer; box-shadow:0 3px 12px rgba(0,0,0,.09); text-align:left; color:var(--ink); }
.avatar-chip:hover { border-color:var(--green); }
.avatar-chip .av { width:34px; height:34px; border-radius:50%; background:linear-gradient(135deg,#1d8a46,#0f5a2c); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; font-size:15px; }
.avatar-chip b { font-size:13px; display:block; line-height:1.15; }
.avatar-chip .jab { font-size:11px; color:var(--muted); }
.datetime-card { background:rgba(255,255,255,.94); border:1px solid #e5e7eb; border-radius:14px; padding:10px 16px;
  box-shadow:0 3px 12px rgba(0,0,0,.09); font-size:12.5px; color:var(--muted);
  display:flex; align-items:center; gap:14px; }
.datetime-card .tanggal-blok { text-align:right; }
.datetime-card b { display:block; font-size:13.5px; color:var(--ink); }
.datetime-card .hijri { display:block; font-size:11.5px; color:#0f766e; font-weight:600; }
.datetime-card .sholat { border-left:1px dashed #d9e2dc; padding-left:14px; font-size:12px; font-weight:700; color:#065f46; cursor:default; text-align:left; white-space:nowrap; }
.datetime-card .sholat small { display:block; font-weight:500; color:#9ca3af; font-size:10.5px; }

.empty-nice { background:#effbf3; border:1.5px dashed #a7f3d0; border-radius:14px; padding:16px; text-align:center; color:#065f46; font-size:13.5px; }
.empty-nice span { color:#4b7a60; font-size:12.5px; }
.card h3 .see-all { margin-left:auto; font-size:12px; color:var(--green); cursor:pointer; font-weight:700; white-space:nowrap; }
.card h3 .see-all:hover { text-decoration:underline; }
.view.hidden, .hidden { display:none !important; }
.page-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; gap:12px; flex-wrap:wrap; }
.page-head h1 { font-size:22px; }
.page-head .sub { font-size:13px; color:var(--muted); font-weight:400; margin-top:2px; }
.btn-group { display:flex; gap:8px; flex-wrap:wrap; }

.card { background:rgba(255,255,255,.94); border:1px solid #e6efe8; border-radius:16px; padding:18px 20px; margin-bottom:16px; box-shadow:0 4px 16px rgba(16,64,36,.06); }
.card h3 { font-size:15px; margin-bottom:12px; color:var(--green-dark); display:flex; align-items:center; gap:8px; }
.card h3 .num { background:var(--green-soft); color:var(--green-dark); width:26px; height:26px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; font-size:13px; }
.card h3 .hint { font-weight:400; font-size:12px; color:var(--muted); margin-left:auto; }

/* ── Form ── */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.span-2 { grid-column:span 2; }
.field { margin-bottom:12px; }
.field label { display:block; font-size:12.5px; font-weight:600; margin-bottom:5px; color:#374151; }
.req { color:var(--red); }
input[type=text], input[type=date], input[type=password], input[type=number], select, textarea {
  width:100%; padding:9px 12px; border:1px solid #d1d5db; border-radius:8px; font-size:14px; font-family:inherit; background:#fff; color:var(--ink);
}
input:disabled, select:disabled, textarea:disabled { background:#f9fafb; color:#6b7280; }
textarea { resize:vertical; line-height:1.55; }
textarea.mono { font-family:Consolas, 'Courier New', monospace; font-size:13px; }
input:focus, select:focus, textarea:focus { outline:2px solid var(--green); outline-offset:-1px; }
.input-row { display:flex; gap:8px; }
.input-row input { flex:1; }
.check { display:flex; align-items:center; gap:9px; font-size:14px; cursor:pointer; }
.check input { width:auto; }

/* ── Buttons ── */
.btn { padding:9px 16px; border:1px solid #d1d5db; background:#fff; border-radius:8px; font-size:13.5px; cursor:pointer; font-family:inherit; font-weight:600; color:var(--ink); white-space:nowrap; }
.btn:hover { background:#f9fafb; }
.btn:disabled { opacity:.55; cursor:not-allowed; }
.btn-primary { background:var(--green); border-color:var(--green); color:#fff; }
.btn-primary:hover { background:var(--green-dark); }
.btn-ai { background:linear-gradient(135deg,#7c3aed,#4f46e5); border:none; color:#fff; }
.btn-ai:hover { opacity:.9; }
.btn-ai:disabled { cursor:wait; }
.btn-print { border-color:var(--green); color:var(--green-dark); }
.btn-warn { background:#fffbeb; border-color:#fcd34d; color:#92400e; }
.btn-approve { background:#16a34a; border-color:#16a34a; color:#fff; }
.btn-approve:hover { background:#15803d; }
.btn-locked { opacity:.5; cursor:not-allowed !important; filter:grayscale(.3); }
.btn-locked:hover { background:#16a34a; }
.btn-pulse { box-shadow:0 0 0 0 rgba(220,38,38,.5); animation:btnpulse 1.6s infinite; }
@keyframes btnpulse { 0%{ box-shadow:0 0 0 0 rgba(220,38,38,.45);} 70%{ box-shadow:0 0 0 8px rgba(220,38,38,0);} 100%{ box-shadow:0 0 0 0 rgba(220,38,38,0);} }
.btn-reject { background:#fef2f2; border-color:#fecaca; color:var(--red); }
.btn-sm { padding:5px 10px; font-size:12.5px; }
.btn-xs { padding:3px 8px; font-size:12px; }
.btn-danger { color:var(--red); border-color:#fecaca; }
.btn-danger:hover { background:#fef2f2; }
.btn-link { border:none; background:none; color:var(--green); padding:4px 6px; }

/* ── Toolbar / table ── */
.toolbar { display:flex; gap:10px; margin-bottom:14px; flex-wrap:wrap; align-items:center; }
.toolbar input[type=text] { flex:1; min-width:200px; }
.toolbar select { max-width:240px; }
.table { width:100%; border-collapse:collapse; font-size:13.5px; }
.table th { text-align:left; padding:10px 10px; border-bottom:2px solid var(--line); color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.4px; }
.table td { padding:10px; border-bottom:1px solid var(--line); vertical-align:middle; }
.table tr:hover td { background:var(--green-light); }
.table .actions { white-space:nowrap; }
.table .actions .btn { margin-right:3px; }
.table .sub { font-size:12px; color:var(--muted); display:block; margin-top:2px; }
.table.compact td, .table.compact th { padding:6px 8px; }
.table-wrap { overflow-x:auto; }
.empty { text-align:center; padding:36px; color:var(--muted); }
.muted { color:var(--muted); font-size:12.5px; font-weight:400; }
.small { font-size:12px; }

.badge { display:inline-block; padding:3px 10px; border-radius:99px; font-size:11.5px; font-weight:700; white-space:nowrap; }
.badge-draft    { background:#e5e7eb; color:#374151; }
.badge-review   { background:#fef3c7; color:#92400e; }
.badge-checked  { background:#dbeafe; color:#1e40af; }
.badge-revisi   { background:#fef3c7; color:#92400e; border:1px solid #fcd34d; }
.badge-approved { background:#d1fae5; color:#065f46; }
.badge-rejected { background:#fee2e2; color:#991b1b; }
.badge-role-admin     { background:#ede9fe; color:#5b21b6; }
.badge-role-pokja     { background:#dbeafe; color:#1e40af; }
.badge-role-pemeriksa { background:#fef3c7; color:#92400e; }
.badge-role-pimpinan  { background:#d1fae5; color:#065f46; }
.badge-off { background:#f3f4f6; color:#9ca3af; text-decoration:line-through; }

/* ── Dashboard ── */
.stats { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; margin-bottom:16px; }
.stat { background:rgba(255,255,255,.94); border:1px solid #e6efe8; border-radius:16px; padding:13px 14px; cursor:pointer; transition:transform .12s, box-shadow .12s; display:flex; gap:11px; align-items:center; }
.stat:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(16,64,36,.13); }
.stat .ic { width:44px; height:44px; border-radius:13px; display:flex; align-items:center; justify-content:center; font-size:20px; flex:0 0 44px; }
.stat.s-total .ic { background:#dcfce7; } .stat.s-draft .ic { background:#e0e7ff; }
.stat.s-review .ic { background:#ffedd5; } .stat.s-checked .ic { background:#dbeafe; }
.stat.s-approved .ic { background:#d1fae5; } .stat.s-rejected .ic { background:#fee2e2; }
.stat .n { font-size:24px; font-weight:800; line-height:1.05; }
.stat .l { font-size:11.5px; color:var(--muted); margin-top:2px; line-height:1.25; }
.stat .t { font-size:10.5px; margin-top:3px; font-weight:700; }
.stat .t.up { color:#047857; } .stat .t.zero { color:#9ca3af; font-weight:500; }
.stat-cta { background:linear-gradient(135deg,#1d8a46,#0f5a2c); color:#fff; border:none; border-radius:16px;
  display:flex; align-items:center; justify-content:center; gap:9px; font-weight:700; font-size:14.5px;
  cursor:pointer; box-shadow:0 12px 26px rgba(15,90,44,.32); transition:transform .12s; padding:13px; text-align:center; }
.stat-cta:hover { transform:translateY(-2px); }
@media (min-width:1500px) { .stats { grid-template-columns:repeat(7,1fr); } }
.stat.s-total .n { color:var(--green-dark); }
.stat.s-draft .n { color:#4b5563; }
.stat.s-review .n { color:#b45309; }
.stat.s-checked .n { color:#1d4ed8; }
.stat.s-approved .n { color:#047857; }
.stat.s-rejected .n { color:#b91c1c; }
.dash-grid { display:grid; grid-template-columns:3fr 2fr; gap:16px; align-items:start; }
.timeline { list-style:none; }
#dash-log { max-height:330px; overflow-y:auto; padding-right:8px; scrollbar-width:thin; scrollbar-color:#c4d9cc transparent; }
#dash-log::-webkit-scrollbar { width:6px; }
#dash-log::-webkit-scrollbar-thumb { background:#c4d9cc; border-radius:99px; }
#dash-log::-webkit-scrollbar-track { background:transparent; }
.timeline li { padding:8px 0 8px 18px; border-left:2px solid var(--line); position:relative; font-size:13px; }
.timeline li::before { content:''; position:absolute; left:-6px; top:13px; width:10px; height:10px; border-radius:50%; background:var(--green); }
.timeline li.a-reject::before { background:var(--red); }
.timeline li.a-approve::before { background:#16a34a; }
.timeline li.a-submit::before { background:var(--amber); }
.timeline li.a-update::before, .timeline li.a-create::before { background:#9ca3af; }
.timeline .t { font-size:11.5px; color:var(--muted); }
.alert { padding:12px 14px; border-radius:10px; margin-bottom:14px; font-size:13.5px; border:1px solid; }
.alert-warn { background:#fffbeb; border-color:#fcd34d; color:#78350f; }
.alert-info { background:#eff6ff; border-color:#bfdbfe; color:#1e3a8a; }
.alert-ok { background:#ecfdf5; border-color:#a7f3d0; color:#065f46; }
.alert-err { background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.alert b { display:block; margin-bottom:2px; }

/* ── Editor ── */
.status-bar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 16px; border-radius:10px; background:#fff; border:1px solid var(--line); margin-bottom:16px; font-size:13px; }
.status-bar .sep { color:#d1d5db; }
.editor-tabs { display:flex; gap:4px; border-bottom:2px solid var(--line); margin-bottom:16px; flex-wrap:wrap; }
.editor-tabs button { border:none; background:none; padding:10px 14px; font-family:inherit; font-size:13.5px; font-weight:600; color:var(--muted); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; }
.editor-tabs button.active { color:var(--green-dark); border-bottom-color:var(--green); }
.tab-pane.hidden { display:none; }
.rows-table { width:100%; border-collapse:collapse; font-size:13.5px; }
.rows-table th { text-align:left; font-size:12px; color:var(--muted); padding:6px 6px; text-transform:uppercase; letter-spacing:.3px; }
.rows-table td { padding:4px 4px; vertical-align:top; }
.rows-table input, .rows-table textarea { padding:7px 9px; font-size:13.5px; }
.rows-table textarea { min-height:38px; resize:vertical; }
.rows-table .drag { color:#d1d5db; text-align:center; width:20px; }
.rows-table .ttd-ok { color:#047857; font-size:12px; white-space:nowrap; }
.rows-add { margin-top:6px; }
.ai-box { border:1px solid #ddd6fe; background:#faf5ff; }
.import-row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; background:#fff; border:1px dashed #c4b5fd; border-radius:10px; padding:12px 14px; margin-bottom:10px; }
.import-sep { text-align:center; font-size:12px; color:#8b5cf6; margin:12px 0 10px; letter-spacing:.3px; }
.import-rekom { white-space:pre-wrap; background:#f9fafb; border:1px solid var(--line); border-radius:8px; padding:10px 12px; font-size:13px; line-height:1.55; max-height:300px; overflow-y:auto; }
.ai-box textarea { background:#fff; }
.ai-actions { display:flex; justify-content:flex-end; gap:8px; align-items:center; flex-wrap:wrap; }
.ai-actions .btn-ai { padding:11px 26px; font-size:14.5px; }
.diagram-preview { margin-top:10px; border:1px dashed #d1d5db; border-radius:8px; padding:14px; background:#fff; text-align:center; overflow-x:auto; }
.diagram-preview svg { max-width:100%; height:auto; }
.diagram-preview .err { color:var(--red); font-size:12.5px; }
.locked-note { font-size:12.5px; color:#92400e; background:#fffbeb; border:1px solid #fcd34d; border-radius:8px; padding:8px 12px; }
.editor-hint { background:#eff6ff; border:1px solid #bfdbfe; border-radius:10px; padding:11px 14px; margin-bottom:14px; font-size:13px; line-height:1.55; color:#1e3a5f; }
.editor-hint b { color:#1e40af; }
.review-note { background:#fef2f2; border:1px solid #fecaca; border-radius:10px; padding:12px 14px; margin-bottom:14px; }
.review-note b { color:#991b1b; }
.fmt-help { font-size:12px; color:var(--muted); background:#f9fafb; border:1px solid var(--line); border-radius:8px; padding:8px 10px; margin-top:6px; line-height:1.6; }
.fmt-help code { background:#e5e7eb; padding:1px 5px; border-radius:4px; font-size:11.5px; }

/* ── Koreksi per bagian ── */
.koreksi-box { margin-top:12px; border:1px solid #fcd34d; background:#fffbeb; border-radius:8px; padding:10px 12px; }
.koreksi-box .koreksi-head { font-size:13px; font-weight:600; color:#92400e; }
.koreksi-box textarea { margin-top:8px; background:#fff; border-color:#fcd34d; }
.koreksi-by { font-size:11.5px; color:#b45309; margin-top:4px; }
.koreksi-view { border-color:#fca5a5; background:#fef2f2; font-size:13px; }
.koreksi-view b { color:#991b1b; }

/* ── Logo / misc ── */
.logo-row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.logo-preview { height:72px; width:72px; object-fit:contain; border:1px solid var(--line); border-radius:8px; padding:4px; background:#fff; }

/* ── Modal ── */
.modal-bg { position:fixed; inset:0; background:rgba(17,24,39,.5); display:flex; align-items:center; justify-content:center; z-index:120; padding:16px; }
.modal { background:#fff; border-radius:14px; padding:22px 24px; width:100%; max-width:520px; box-shadow:0 20px 50px rgba(0,0,0,.3); animation:slidein .18s ease; max-height:92vh; overflow-y:auto; }
.modal h3 { font-size:17px; margin-bottom:12px; color:var(--green-dark); }
.modal .modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:14px; }

/* ── Halaman login ── */
.login-screen { position:fixed; inset:0; background:linear-gradient(160deg,var(--green-dark),var(--green)); display:flex; align-items:center; justify-content:center; z-index:300; overflow:auto; padding:16px; }
.login-card { background:#fff; border-radius:16px; padding:32px 36px 24px; width:360px; max-width:100%; text-align:center; box-shadow:0 25px 60px rgba(0,0,0,.35); animation:slidein .25s ease; }
.login-card h2 { color:var(--green-dark); font-size:26px; letter-spacing:.5px; }
.login-card .field { text-align:left; }
.login-logo { height:78px; width:auto; max-width:120px; object-fit:contain; margin-bottom:8px; }
.login-emoji { font-size:42px; }
.login-inst { font-size:12px; font-weight:600; color:var(--green-mid); text-transform:uppercase; letter-spacing:.4px; margin-bottom:18px; }
.login-err { background:#fef2f2; color:var(--red); border:1px solid #fecaca; border-radius:8px; padding:8px 10px; font-size:13px; margin-bottom:12px; text-align:left; }
.login-foot { margin-top:18px; font-size:12.5px; }
.verify-ok { margin-top:16px; text-align:left; background:#ecfdf5; border:1px solid #a7f3d0; border-radius:10px; padding:12px 14px; }
.verify-title { font-weight:700; color:#065f46; margin-bottom:8px; }
.verify-table { width:100%; font-size:13px; border-collapse:collapse; }
.verify-table td { padding:4px 4px; vertical-align:top; }
.verify-table td:first-child { color:var(--muted); width:38%; }

/* ── Overlay loading AI ── */
.ai-overlay { position:fixed; inset:0; background:rgba(17,24,39,.45); backdrop-filter:blur(2px); display:flex; align-items:center; justify-content:center; z-index:150; }
.ai-loading-card { background:#fff; border-radius:16px; padding:28px 36px; text-align:center; box-shadow:0 20px 50px rgba(0,0,0,.3); max-width:360px; animation:slidein .2s ease; }
.ai-spinner { width:46px; height:46px; margin:0 auto 14px; border-radius:50%; border:4px solid #ede9fe; border-top-color:#7c3aed; animation:aispin .8s linear infinite; }
@keyframes aispin { to { transform:rotate(360deg); } }
.ai-loading-title { font-weight:700; font-size:15px; color:#4f46e5; margin-bottom:6px; }
.ai-loading-step { font-size:13px; color:var(--muted); min-height:18px; }
.ai-loading-hint { font-size:11.5px; color:#9ca3af; margin-top:10px; }

/* ── Saran duplikat judul SOP ── */
.suggest { position:absolute; left:0; right:0; top:100%; margin-top:4px; background:#fff; border:1px solid #fcd34d;
  border-radius:12px; box-shadow:0 14px 34px rgba(0,0,0,.16); z-index:70; overflow:hidden; }
.suggest-head { font-size:11.5px; font-weight:700; color:#92400e; background:#fffbeb; padding:7px 12px; border-bottom:1px solid #fde68a; }
.suggest-item { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:9px 12px; cursor:pointer; border-bottom:1px solid #f3f4f6; }
.suggest-item:hover { background:#f0f7f2; }
.suggest-item:last-child { border-bottom:none; }
.si-t { min-width:0; }
.si-t b { font-size:13px; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.si-t span { font-size:11.5px; color:var(--muted); }
.suggest-item .badge { flex:0 0 auto; }

/* ── Panduan ── */
.flow-strip { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.flow-strip .badge { font-size:12.5px; padding:6px 14px; }
.flow-arr { color:#9ca3af; font-weight:700; }
.guide ol { padding-left:22px; line-height:1.7; font-size:13.5px; }
.guide ol > li { margin-bottom:10px; }
.guide ul { padding-left:20px; margin-top:6px; }
.guide ul li { margin-bottom:4px; }
.guide code { background:#eef4ef; padding:1px 6px; border-radius:5px; font-size:12px; }

/* ── SweetAlert2 — disesuaikan tema ── */
.swal2-popup { border-radius:18px !important; font-family:'Segoe UI', system-ui, sans-serif !important; }
.swal2-title { font-size:20px !important; color:#14532d !important; }
.swal2-html-container { font-size:14px !important; color:#4b5563 !important; line-height:1.55 !important; }
.swal2-styled { border-radius:10px !important; font-weight:700 !important; padding:10px 22px !important; }
.swal2-styled.swal2-cancel { background:#f3f4f6 !important; color:#374151 !important; }
div:where(.swal2-container).swal2-backdrop-show { background:rgba(17,24,39,.5) !important; }
.swal2-popup.swal2-toast { border-radius:12px !important; box-shadow:0 8px 24px rgba(0,0,0,.18) !important; }
/* Kontainer toast tidak menghalangi klik & tidak menggelapkan halaman */
.swal2-container.swal2-backdrop-hide { background:transparent !important; pointer-events:none !important; }
.swal2-container.swal2-backdrop-hide .swal2-toast { pointer-events:auto; }

/* ── Toast ── */
.toast { position:fixed; bottom:24px; right:24px; background:var(--ink); color:#fff; padding:12px 20px; border-radius:10px; font-size:14px; box-shadow:0 6px 20px rgba(0,0,0,.25); z-index:200; animation:slidein .2s ease; max-width:420px; }
.toast.error { background:var(--red); }
@keyframes slidein { from { transform:translateY(12px); opacity:0; } to { transform:none; opacity:1; } }

/* ── Mobile toggle ── */
.menu-toggle { display:none; position:fixed; top:12px; left:12px; z-index:30; background:var(--green-dark); color:#fff; border:none; border-radius:8px; width:40px; height:40px; font-size:20px; cursor:pointer; }

@media (max-width:1200px) {
  .hero-right .datetime-card { display:none; }
}
@media (max-width:1000px) {
  .stats { grid-template-columns:repeat(3,1fr); }
  .dash-grid { grid-template-columns:1fr; }
  .grid-3, .grid-4 { grid-template-columns:1fr 1fr; }
  .hero-title { font-size:28px; }
}
@media (max-width:760px) {
  .menu-toggle { display:block; }
  .sb-toggle { display:none; }
  .sidebar { left:0; top:0; bottom:0; border-radius:0; border:none; transform:translateX(-100%); transition:transform .2s; box-shadow:0 0 40px rgba(0,0,0,.25); }
  .sidebar.open { transform:none; }
  .content { margin-left:0; padding:64px 14px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns:1fr; }
  .span-2 { grid-column:span 1; }
  .stats { grid-template-columns:repeat(2,1fr); }
  .hero { flex-direction:column-reverse; }
  .hero-right { width:100%; flex-direction:row; justify-content:flex-end; }
}
