:root {
  --navy: #1e3a5f; --navy-dark: #122a47; --navy-light: #2c5282; --orange: #f97316; --orange-dark: #ea580c;
  --bg: #f3f5f8; --surface: #ffffff; --border: #e3e7ee; --text: #1f2937; --muted: #6b7280; --muted-2: #9ca3af;
  --green: #16a34a; --green-bg: #dcfce7; --yellow: #ca8a04; --yellow-bg: #fef9c3; --red: #dc2626; --red-bg: #fee2e2; --blue: #2563eb; --blue-bg: #dbeafe; --gray-bg: #e5e7eb; --purple: #7c3aed; --purple-bg: #ede9fe;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08); --shadow-lg: 0 10px 30px rgba(16,24,40,.15);
  --sidebar-w: 250px; --topbar-h: 58px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: 'Segoe UI', Inter, system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
a { color: var(--navy-light); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--navy-dark); }
h1 { font-size: 20px; } h2 { font-size: 17px; } h3 { font-size: 15px; } h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
p { margin: 0 0 8px; }
[v-cloak] { display: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: linear-gradient(180deg, var(--navy-dark), var(--navy)); color: #d8e1ec; position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; display: flex; flex-direction: column; transition: transform .2s ease; overflow-y: auto; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .brand .logo { width: 36px; height: 36px; border-radius: 9px; background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; letter-spacing: .02em; }
.sidebar .brand .t { font-weight: 700; color: #fff; font-size: 15px; line-height: 1.1; } .sidebar .brand .s { font-size: 11px; color: #9fb3c8; }
.sidebar nav { padding: 10px 0 20px; flex: 1; }
.sidebar .group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #8da2b8; padding: 14px 18px 6px; }
.sidebar a.item { display: flex; align-items: center; gap: 11px; padding: 9px 18px; color: #d8e1ec; font-size: 13.5px; border-left: 3px solid transparent; }
.sidebar a.item:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.sidebar a.item.active { background: rgba(255,255,255,.1); border-left-color: var(--orange); color: #fff; font-weight: 600; }
.sidebar a.item .ic { width: 20px; text-align: center; font-size: 16px; opacity: .9; }
.sidebar a.item .cnt { margin-left: auto; background: var(--orange); color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 7px; font-weight: 600; }
.sidebar .user { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #b9c8d8; }
.sidebar .user b { display: block; color: #fff; font-size: 13px; }
.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 20px; position: sticky; top: 0; z-index: 30; }
.topbar .hamburger { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--navy); padding: 4px 8px; }
.topbar .title { font-weight: 600; font-size: 16px; color: var(--navy-dark); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .search { position: relative; }
.topbar .search input { width: 260px; max-width: 40vw; }
.topbar .search .results { position: absolute; top: 40px; left: 0; width: 360px; max-width: 90vw; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 360px; overflow: auto; z-index: 50; }
.topbar .search .results a { display: block; padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--text); } .topbar .search .results a:hover { background: var(--bg); text-decoration: none; }
.topbar .bell { position: relative; background: none; border: 0; font-size: 20px; cursor: pointer; padding: 4px 8px; }
.topbar .bell .n { position: absolute; top: -2px; right: 0; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; border-radius: 10px; padding: 1px 5px; min-width: 16px; text-align: center; }
.content { padding: 20px; flex: 1; }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; }
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); } .sidebar.open { transform: none; } .main { margin-left: 0; } .topbar .hamburger { display: block; } .overlay.show { display: block; }
  .content { padding: 14px; } .topbar { padding: 0 12px; } .topbar .search input { width: 160px; }
}
@media (max-width: 640px) { .topbar .search { display: none; } .content { padding: 10px; } }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head .crumbs { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card .card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.card .card-h h3 { font-size: 14px; } .card .card-b { padding: 16px; } .card .card-b.tight { padding: 0; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; } .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1200px) { .grid-6 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-6 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 14px 16px; display: flex; align-items: center; gap: 12px; cursor: default; }
.stat.link { cursor: pointer; } .stat.link:hover { border-color: var(--navy-light); }
.stat .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.stat .v { font-size: 22px; font-weight: 700; color: var(--navy-dark); line-height: 1.1; } .stat .l { font-size: 12px; color: var(--muted); }
.stat .sub { font-size: 11px; color: var(--muted-2); }
.ic-blue { background: var(--blue-bg); color: var(--blue); } .ic-green { background: var(--green-bg); color: var(--green); } .ic-yellow { background: var(--yellow-bg); color: var(--yellow); } .ic-red { background: var(--red-bg); color: var(--red); } .ic-gray { background: var(--gray-bg); color: var(--muted); } .ic-orange { background: #ffedd5; color: var(--orange-dark); } .ic-purple { background: var(--purple-bg); color: var(--purple); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: .15s; line-height: 1.2; }
.btn:hover { background: var(--bg); text-decoration: none; } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; } .btn-primary:hover { background: var(--navy-light); }
.btn-accent { background: var(--orange); border-color: var(--orange); color: #fff; } .btn-accent:hover { background: var(--orange-dark); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; } .btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; } .btn-success:hover { background: #15803d; }
.btn-ghost { border-color: transparent; background: transparent; } .btn-ghost:hover { background: var(--bg); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; } .btn-xs { padding: 3px 8px; font-size: 12px; border-radius: 6px; } .btn-lg { padding: 12px 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; } .form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .form-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.form-grid .span-2 { grid-column: span 2; } .form-grid .span-3 { grid-column: span 3; } .form-grid .span-all { grid-column: 1 / -1; }
@media (max-width: 760px) { .form-grid, .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns: 1fr; } .form-grid .span-2, .form-grid .span-3 { grid-column: span 1; } }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: #374151; margin-bottom: 4px; } .field label .req { color: var(--red); }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 3px; } .field .err { font-size: 12px; color: var(--red); margin-top: 3px; }
.input, input:not([type]), input[type=text], input[type=number], input[type=date], input[type=datetime-local], input[type=email], input[type=password], input[type=search], input[type=time], select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #cfd6e0; border-radius: 8px; background: #fff; color: var(--text); outline: none; transition: .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(44,82,130,.15); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--red); }
textarea { min-height: 80px; resize: vertical; } input[readonly], .readonly { background: #f8fafc; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; } .checkbox input { width: 16px; height: 16px; }
.input-group { display: flex; } .input-group > * { border-radius: 0; } .input-group > :first-child { border-radius: 8px 0 0 8px; } .input-group > :last-child { border-radius: 0 8px 8px 0; }
fieldset.section { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px 16px; margin: 0 0 16px; } fieldset.section legend { font-weight: 600; color: var(--navy); padding: 0 6px; font-size: 13.5px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); background: #f9fafb; white-space: nowrap; user-select: none; }
.tbl th.sortable { cursor: pointer; } .tbl th.sortable:hover { color: var(--navy); } .tbl th .arrow { font-size: 10px; margin-left: 3px; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr:hover { background: #f7f9fc; } .tbl tr.clickable { cursor: pointer; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .sub { font-size: 12px; color: var(--muted); display: block; }
.tbl .actions { white-space: nowrap; text-align: right; }
.tbl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pager { display: flex; gap: 4px; } .pager button { min-width: 32px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px; border-bottom: 1px solid var(--border); }
.toolbar input, .toolbar select { width: auto; min-width: 140px; } .toolbar .grow { flex: 1; } .toolbar input.q { min-width: 220px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); } .empty .big { font-size: 36px; margin-bottom: 6px; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.b-green { background: var(--green-bg); color: #166534; } .b-yellow { background: var(--yellow-bg); color: #854d0e; } .b-red { background: var(--red-bg); color: #991b1b; } .b-blue { background: var(--blue-bg); color: #1e40af; } .b-gray { background: var(--gray-bg); color: #374151; } .b-orange { background: #ffedd5; color: #9a3412; } .b-purple { background: var(--purple-bg); color: #5b21b6; } .b-navy { background: var(--navy); color: #fff; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; } .dot-green { background: var(--green); } .dot-yellow { background: var(--yellow); } .dot-red { background: var(--red); } .dot-gray { background: var(--muted-2); }

/* ---------- Alerts / notif ---------- */
.alert { padding: 10px 14px; border-radius: 8px; border: 1px solid; font-size: 13.5px; margin-bottom: 12px; }
.alert-info { background: var(--blue-bg); border-color: #bfdbfe; color: #1e3a8a; } .alert-success { background: var(--green-bg); border-color: #bbf7d0; color: #14532d; } .alert-warning { background: var(--yellow-bg); border-color: #fde68a; color: #713f12; } .alert-danger { background: var(--red-bg); border-color: #fecaca; color: #7f1d1d; }
.notif-list .item { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); cursor: pointer; } .notif-list .item:hover { background: var(--bg); }
.notif-list .item.unread { background: #fffbf5; } .notif-list .item .sev { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.notif-list .item .t { font-weight: 600; font-size: 13px; } .notif-list .item .m { font-size: 12.5px; color: var(--muted); } .notif-list .item .d { font-size: 11px; color: var(--muted-2); }
.notif-drop { position: absolute; right: 12px; top: 56px; width: 380px; max-width: 94vw; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 60; max-height: 70vh; overflow: auto; }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 10px 14px; border-radius: 8px; color: #fff; background: var(--navy); box-shadow: var(--shadow-lg); font-size: 13.5px; max-width: 360px; animation: fadein .2s; } .toast.ok { background: var(--green); } .toast.err { background: var(--red); } .toast.warn { background: var(--orange-dark); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 30px 12px; overflow-y: auto; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 720px; box-shadow: var(--shadow-lg); animation: fadein .15s; margin: auto 0; }
.modal.lg { max-width: 980px; } .modal.sm { max-width: 460px; } .modal.xl { max-width: 1200px; }
.modal .m-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); } .modal .m-h h3 { font-size: 15px; }
.modal .m-h .x { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--muted); }
.modal .m-b { padding: 18px; max-height: calc(100vh - 180px); overflow-y: auto; } .modal .m-f { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .modal-bg { padding: 0; } .modal { border-radius: 0; min-height: 100vh; } .modal .m-b { max-height: none; } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font-size: 13.5px; color: var(--muted); cursor: pointer; white-space: nowrap; font-weight: 500; }
.tabs button.active { color: var(--navy); border-bottom-color: var(--orange); font-weight: 600; } .tabs button .n { background: var(--gray-bg); border-radius: 10px; padding: 0 6px; font-size: 11px; margin-left: 4px; }

/* ---------- Detail lists ---------- */
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; font-size: 13.5px; } .dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 500; word-break: break-word; }
@media (max-width: 500px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dt { margin-top: 6px; font-size: 12px; } }
.kv-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; } .kv-row span:first-child { color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 26px; } .timeline:before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline .ev { position: relative; padding: 0 0 16px 6px; } .timeline .ev .pt { position: absolute; left: -22px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-light); }
.timeline .ev.red .pt { border-color: var(--red); } .timeline .ev.green .pt { border-color: var(--green); } .timeline .ev.orange .pt { border-color: var(--orange); } .timeline .ev.gray .pt { border-color: var(--muted-2); } .timeline .ev.purple .pt { border-color: var(--purple); }
.timeline .ev .t { font-weight: 600; font-size: 13.5px; } .timeline .ev .d { font-size: 12px; color: var(--muted); } .timeline .ev .desc { font-size: 13px; color: #374151; margin-top: 2px; white-space: pre-line; }

/* ---------- Kanban ---------- */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.kanban .col { min-width: 250px; width: 250px; background: #eef1f5; border-radius: var(--radius); flex-shrink: 0; }
.kanban .col .h { padding: 10px 12px; font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; border-bottom: 2px solid var(--border); } .kanban .col .h .n { color: var(--muted); font-weight: 500; }
.kanban .col .body { padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kcard { background: #fff; border-radius: 8px; padding: 10px; box-shadow: var(--shadow); cursor: pointer; border-left: 4px solid var(--muted-2); font-size: 12.5px; }
.kcard:hover { box-shadow: var(--shadow-lg); } .kcard .no { font-weight: 700; color: var(--navy); font-size: 12px; } .kcard .ti { font-weight: 600; margin: 2px 0; } .kcard .as { color: var(--muted); } .kcard .meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.kcard.p-kritis { border-left-color: var(--red); } .kcard.p-tinggi { border-left-color: var(--orange); } .kcard.p-sedang { border-left-color: var(--blue); } .kcard.p-rendah { border-left-color: var(--green); }

/* ---------- Calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.cal .dh { padding: 6px; font-size: 12px; font-weight: 600; text-align: center; background: #f9fafb; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--muted); }
.cal .day { min-height: 96px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px; font-size: 12px; }
.cal .day.other { background: #fafafa; color: var(--muted-2); } .cal .day.today { background: #fff7ed; } .cal .day .n { font-weight: 600; margin-bottom: 2px; }
.cal .evt { display: block; padding: 2px 5px; border-radius: 4px; margin-bottom: 2px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; color: #fff; background: var(--navy-light); }
.cal .evt.wo { background: var(--green); } .cal .evt.riksa_uji { background: var(--red); } .cal .evt.overdue { background: var(--red); } .cal .evt.jadwal { background: var(--blue); }
@media (max-width: 760px) { .cal .day { min-height: 60px; } .cal .evt { font-size: 9px; padding: 1px 3px; } }

/* ---------- Steps (form bertahap) ---------- */
.steps { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; }
.steps .st { flex: 1; min-width: 120px; padding: 8px 10px; border-radius: 8px; background: #eef1f5; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.steps .st .n { width: 22px; height: 22px; border-radius: 50%; background: #cbd5e1; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.steps .st.active { background: var(--navy); color: #fff; } .steps .st.active .n { background: var(--orange); } .steps .st.done { background: var(--green-bg); color: #14532d; } .steps .st.done .n { background: var(--green); }

/* ---------- Misc ---------- */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; }
.mt { margin-top: 12px; } .mt-l { margin-top: 20px; } .mb { margin-bottom: 12px; } .muted { color: var(--muted); } .small { font-size: 12px; } .xs { font-size: 11px; } .bold { font-weight: 600; } .right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.mono { font-family: Consolas, Menlo, monospace; font-size: 12.5px; }
.text-red { color: var(--red); } .text-green { color: var(--green); } .text-orange { color: var(--orange-dark); } .text-navy { color: var(--navy); }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: #f1f5f9; }
.photo-grid { display: flex; gap: 8px; flex-wrap: wrap; } .photo-grid a img { width: 110px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.asset-photo { width: 100%; max-width: 260px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); background: #f1f5f9; }
.asset-photo-ph { width: 100%; max-width: 260px; aspect-ratio: 4/3; border-radius: var(--radius); border: 1px dashed var(--border); display: grid; place-items: center; color: var(--muted-2); font-size: 40px; background: #f8fafc; }
.sigpad { border: 1px dashed #94a3b8; border-radius: 8px; background: #fff; touch-action: none; width: 100%; height: 150px; display: block; }
.progress { height: 8px; background: var(--gray-bg); border-radius: 6px; overflow: hidden; } .progress > div { height: 100%; background: var(--green); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); font-size: 12px; } .chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chart-box { position: relative; height: 260px; } .chart-box.sm { height: 200px; }
.list-plain { list-style: none; margin: 0; padding: 0; } .list-plain li { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 10px; align-items: center; } .list-plain li:last-child { border-bottom: 0; }
.qr-box { text-align: center; } .qr-box img { width: 160px; height: 160px; border: 1px solid var(--border); border-radius: 8px; padding: 6px; background: #fff; }
.login { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-dark), var(--navy-light)); padding: 16px; }
.login .box { background: #fff; border-radius: 14px; padding: 32px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.login .box .logo { width: 56px; height: 56px; border-radius: 14px; background: var(--orange); color: #fff; font-weight: 800; font-size: 20px; display: grid; place-items: center; margin: 0 auto 12px; }
.loading { padding: 30px; text-align: center; color: var(--muted); } .spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 8px; } @keyframes spin { to { transform: rotate(360deg); } }
.scan-page { max-width: 640px; margin: 0 auto; }
.scan-page .hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy-light)); color: #fff; border-radius: 14px; padding: 18px; margin-bottom: 14px; } .scan-page .hero h2 { color: #fff; font-size: 18px; } .scan-page .hero .code { font-family: monospace; opacity: .85; }
.scan-page .quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; } .scan-page .quick .btn { flex-direction: column; padding: 12px 6px; font-size: 12px; gap: 4px; } .scan-page .quick .btn .ic { font-size: 22px; }
.dropzone { border: 2px dashed #cbd5e1; border-radius: var(--radius); padding: 18px; text-align: center; color: var(--muted); cursor: pointer; } .dropzone:hover { border-color: var(--navy-light); background: #f8fafc; }
.perm-table td, .perm-table th { text-align: center; } .perm-table td:first-child, .perm-table th:first-child { text-align: left; }
.checklist-q { padding: 12px 0; border-bottom: 1px solid var(--border); } .checklist-q .q { font-weight: 600; margin-bottom: 8px; display: flex; gap: 6px; align-items: flex-start; } .checklist-q .q .crit { font-size: 10px; background: var(--red-bg); color: var(--red); padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; } .choice button { flex: 1; min-width: 90px; padding: 12px 10px; border: 2px solid var(--border); background: #fff; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.choice button.on-ok { border-color: var(--green); background: var(--green-bg); color: #14532d; } .choice button.on-fail { border-color: var(--red); background: var(--red-bg); color: #7f1d1d; } .choice button.on { border-color: var(--navy); background: var(--blue-bg); color: var(--navy-dark); }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-dark); font-weight: 700; margin: 16px 0 4px; }
@media print { .sidebar, .topbar, .toasts, .no-print { display: none !important; } .main { margin: 0; } .content { padding: 0; } .card { box-shadow: none; } }
