:root {
    --ink: #17233a;
    --muted: #6c7890;
    --line: #e3e8f1;
    --surface: #ffffff;
    --canvas: #f5f7fb;
    --navy: #1e3a8a;
    --blue: #2563eb;
    --blue-soft: #e8f0ff;
    --green: #0f9f6e;
    --green-soft: #e4f7ef;
    --yellow: #d78b00;
    --yellow-soft: #fff6d9;
    --red: #d84343;
    --red-soft: #ffebeb;
    --shadow: 0 14px 36px rgba(26, 44, 77, .08);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: 'Poppins', Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.page-content { padding-block: 34px 50px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 70px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(227, 232, 241, .9);
    backdrop-filter: blur(12px);
}
.nav-wrap { min-height: 70px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 18px; font-weight: 850; letter-spacing: .03em; }
.brand-mark { display: inline-grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--blue), #273a9d); box-shadow: 0 8px 18px rgba(37,99,235,.26); }
.main-nav { display: flex; gap: 6px; }
.main-nav a { padding: 8px 11px; color: var(--muted); border-radius: 9px; font-weight: 650; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); background: var(--blue-soft); }
.user-menu { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.logout-form { margin: 0; }
.user-copy { display: grid; text-align: right; line-height: 1.25; }
.user-copy strong { font-size: 13px; }
.user-copy span { color: var(--muted); font-size: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 10px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue), #1d4ed8); box-shadow: 0 8px 16px rgba(37,99,235,.18); }
.btn-primary:hover { box-shadow: 0 12px 22px rgba(37,99,235,.26); }
.btn-ghost { color: #40516e; background: #fff; border-color: #d6deeb; }
.btn-ghost:hover { color: var(--blue); border-color: #a8c0ef; background: var(--blue-soft); }
.btn-danger { color: #bc3535; background: #fff; border-color: #f1c3c3; }
.btn-danger:hover { color: #fff; background: var(--red); border-color: var(--red); }
.btn-small { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.btn-block { width: 100%; min-height: 46px; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading h1 { margin: 3px 0 7px; font-size: clamp(28px, 4vw, 36px); letter-spacing: -.035em; line-height: 1.1; }
.page-heading p { margin: 0; color: var(--muted); }
.compact-heading h1 { font-size: clamp(25px, 3vw, 31px); }
.request-hero {
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
    margin-bottom: 18px;
    border: 1px solid #dfe8f8;
    border-radius: 22px;
    background: linear-gradient(125deg, #ffffff 0%, #f2f6ff 100%);
    box-shadow: 0 16px 36px rgba(23, 35, 58, .07);
}
.request-hero .hero-copy { flex: 1; }
.request-hero .hero-copy h1 { margin-top: 4px; margin-bottom: 8px; }
.request-hero .hero-copy p { max-width: 720px; }
.hero-actions { display: grid; gap: 12px; justify-items: end; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #38507d; background: #f5f8ff; border: 1px solid #dbe6ff; border-radius: 999px; font-size: 12px; font-weight: 750; }
.hero-badge i { font-style: normal; }
.request-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.info-card { padding: 18px 19px; background: #fff; border: 1px solid #e1e8f3; border-radius: 16px; box-shadow: 0 10px 22px rgba(22, 37, 63, .04); }
.info-card h3 { margin: 0 0 8px; font-size: 15px; }
.info-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.info-card-accent { background: linear-gradient(135deg, #f4f8ff 0%, #eef4ff 100%); border-color: #caddff; }
.heading-actions { display: flex; gap: 10px; }
.eyebrow { display: block; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }

.alert { margin-bottom: 20px; padding: 13px 15px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; }
.alert-success { color: #08734d; background: var(--green-soft); border-color: #bce8d4; }
.alert-warning { color: #936100; background: var(--yellow-soft); border-color: #f5dc93; }
.alert-danger { color: #ad3535; background: var(--red-soft); border-color: #f4c1c1; }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.metric-card { min-height: 147px; padding: 21px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 22px rgba(37, 51, 83, .04); }
.metric-card strong { display: block; margin-top: 9px; font-size: 31px; line-height: 1; letter-spacing: -.04em; }
.metric-card small { display: block; margin-top: 12px; color: var(--muted); }
.metric-label { color: #51617b; font-size: 13px; font-weight: 750; }
.accent-yellow { border-top: 4px solid #f2b52d; }
.accent-green { border-top: 4px solid #29b783; }
.accent-blue { border-top: 4px solid #5a8dfa; }
.accent-red { border-top: 4px solid #e77b7b; }

.panel, .form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { margin-bottom: 22px; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 22px 15px; }
.panel-heading h2, .line-items-head h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.panel-heading p, .line-items-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.count-pill { padding: 5px 9px; color: var(--blue); background: var(--blue-soft); border-radius: 99px; font-size: 12px; font-weight: 800; }

.table-wrap, .expense-table-wrap { width: 100%; overflow-x: auto; }
.data-table, .expense-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
.data-table th { color: #66758e; background: #fbfcfe; font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.data-table td { font-size: 14px; }
.data-table td small { display: block; margin-top: 2px; color: var(--muted); }
.empty-cell { padding: 34px !important; color: var(--muted); text-align: center !important; }

.status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-success { color: #08734d; background: var(--green-soft); }
.status-warning { color: #976400; background: var(--yellow-soft); }
.status-danger { color: #b52f2f; background: var(--red-soft); }
.status-info { color: #1759ba; background: var(--blue-soft); }

.form-card { padding: 29px; }
.form-section-head { display: flex; align-items: center; gap: 14px; }
.form-section-head h2 { margin: 0; font-size: 19px; }
.form-section-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.section-number { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 13px; font-weight: 850; }
.section-gap { margin-top: 30px; padding-top: 29px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 22px; }
label { display: grid; gap: 7px; color: #3c4b64; font-size: 13px; font-weight: 760; }
label > span { color: #3c4b64; }
input, select, textarea { width: 100%; min-height: 43px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #ced7e5; border-radius: 10px; outline: none; transition: border .15s ease, box-shadow .15s ease; }
textarea { min-height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #6092ee; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
input:disabled { color: #56637a; background: #f4f6f9; }
input[type=file] { padding: 8px; cursor: pointer; }
input[type=file]::file-selector-button { margin-right: 10px; padding: 7px 10px; color: #245abc; background: #eef4ff; border: 0; border-radius: 7px; font: inherit; font-weight: 750; cursor: pointer; }
label small { color: var(--muted); font-weight: 600; }
.optional-label { color: var(--muted); font-style: normal; font-weight: 600; }
.full-width { grid-column: 1 / -1; }
.terbilang-box { display: grid; gap: 5px; padding: 16px; background: linear-gradient(135deg, #f1f5ff, #f8faff); border: 1px dashed #aec5f3; border-radius: 12px; }
.terbilang-box span { color: var(--muted); font-size: 12px; font-weight: 750; }
.terbilang-box strong { color: #274886; font-size: 15px; font-weight: 750; }
.form-actions { display: flex; justify-content: flex-end; gap: 11px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }

.auth-page {
    min-height: 100dvh;
    background:
        radial-gradient(circle at 15% 10%, rgba(113, 151, 255, .2), transparent 27rem),
        radial-gradient(circle at 85% 92%, rgba(100, 185, 255, .16), transparent 25rem),
        #f5f7fb;
}
.auth-page .page-content {
    display: grid;
    align-items: center;
    justify-items: end;
    width: 100%;
    min-height: 100dvh;
    padding: clamp(16px, 4vw, 32px);
}
.auth-shell {
    width: min(100%, 455px);
    margin: auto;
}
.auth-panel { width: 100%; }
.auth-card {
    width: 100%;
    padding: 40px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #e0e7f2;
    border-radius: 22px;
    box-shadow: 0 24px 56px rgba(38, 66, 123, .14);
}
.auth-card .brand-login { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-card h1 { margin: 0; font-size: clamp(25px, 4vw, 29px); letter-spacing: -.035em; line-height: 1.18; text-align: center; }
.auth-card .muted { margin: 8px 0 0; color: var(--muted); text-align: center; }
.form-stack { display: grid; gap: 17px; margin-top: 28px; }
.form-stack label { gap: 8px; }
.form-stack input { min-height: 48px; border-radius: 11px; }
.form-stack .btn { min-height: 48px; margin-top: 4px; border-radius: 11px; }
.auth-card > .alert { margin: 22px 0 -7px; }
.demo-note { margin-top: 20px; padding: 13px 14px; color: #52637c; background: #f4f7fc; border: 1px solid #e6ecf6; border-radius: 10px; font-size: 12px; line-height: 1.65; }
.form-shortcuts { margin-top: 22px; padding: 16px; background: linear-gradient(135deg, #f8faff, #f1f6ff); border: 1px solid #dce7fb; border-radius: 14px; }
.form-shortcuts-title { margin: 0 0 11px; color: #526783; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.form-shortcuts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-shortcut { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; background: rgba(255, 255, 255, .85); border: 1px solid #e1eaf8; border-radius: 10px; }
.form-shortcut-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: #2563eb; background: #e8f0ff; border-radius: 9px; }
.form-shortcut-icon-cash { color: #0d8e62; background: #e4f7ef; }
.form-shortcut-icon svg { width: 19px; height: 19px; }
.form-shortcut-copy { display: grid; min-width: 0; line-height: 1.25; }
.form-shortcut-copy strong { overflow: hidden; color: #31445f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.form-shortcut-copy small { overflow: hidden; margin-top: 3px; color: #7a899f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.document-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; padding: 22px 26px; color: #fff; background: linear-gradient(120deg, #172f71, #245abc); border-radius: var(--radius); box-shadow: 0 15px 34px rgba(28,62,143,.2); }
.document-hero > div { display: grid; gap: 5px; }
.document-hero strong { font-size: 20px; letter-spacing: -.02em; }
.doc-label { color: #c8d8ff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.document-hero .status { align-self: start; width: max-content; }

.action-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 22px; padding: 21px 23px; background: #fff; border: 1px solid #cddcfa; border-left: 5px solid var(--blue); border-radius: 14px; box-shadow: 0 8px 18px rgba(37,99,235,.06); }
.action-card h2 { margin: 3px 0; font-size: 18px; }
.action-card p { margin: 0; color: var(--muted); }
.inline-action-form { display: flex; align-items: center; gap: 8px; min-width: min(100%, 480px); }
.inline-action-form input { min-width: 180px; }
.compact-form-grid { display: grid; grid-template-columns: repeat(3, minmax(125px, 1fr)); gap: 10px; min-width: min(100%, 650px); }
.compact-form-grid label { gap: 4px; font-size: 11px; }
.compact-form-grid input, .compact-form-grid select { min-height: 37px; padding: 7px 9px; font-size: 13px; }
.compact-form-grid .wide { grid-column: span 2; }
.compact-form-grid .btn { align-self: end; min-height: 37px; font-size: 13px; }

.content-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.detail-list > div { padding: 15px 22px; border-top: 1px solid var(--line); }
.detail-list dt { margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.detail-list dd { margin: 0; color: #27364f; font-weight: 650; }
.detail-list .wide { grid-column: 1 / -1; }
.text-danger { color: var(--red) !important; }

.workflow-list { display: grid; gap: 0; padding: 0 22px 19px; margin: 0; list-style: none; }
.workflow-list li { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 10px; min-height: 59px; border-bottom: 1px solid var(--line); }
.workflow-list li:last-child { border-bottom: 0; }
.workflow-dot { width: 10px; height: 10px; background: #ced6e4; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px #dce4ef; }
.workflow-approved .workflow-dot, .workflow-submitted .workflow-dot, .workflow-received .workflow-dot { background: var(--green); box-shadow: 0 0 0 2px #b9e9d7; }
.workflow-rejected .workflow-dot { background: var(--red); box-shadow: 0 0 0 2px #f6c6c6; }
.workflow-list strong, .workflow-list small { display: block; }
.workflow-list small { color: var(--muted); font-size: 12px; }
.workflow-meta { text-align: right; font-size: 11px; font-weight: 750; }
.workflow-meta span { display: block; color: #40516d; }

.settlement-heading { display: flex; align-items: center; justify-content: space-between; margin: 35px 0 15px; }
.settlement-heading h2 { margin: 4px 0; font-size: 25px; letter-spacing: -.035em; }
.settlement-heading p { max-width: 700px; margin: 0; color: var(--muted); }
.settlement-metrics .metric-card { min-height: 122px; }
.settlement-metrics .metric-card strong { font-size: 25px; }
.file-link { display: block; color: var(--blue); font-size: 12px; font-weight: 750; }
.payment-list { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.payment-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); }
.payment-list small { display: block; color: var(--muted); }

.settlement-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin-bottom: 25px; background: var(--line); border: 1px solid var(--line); border-radius: 13px; }
.settlement-summary div { display: grid; gap: 4px; padding: 16px; background: #fff; }
.settlement-summary span { color: var(--muted); font-size: 12px; font-weight: 700; }
.settlement-summary strong { font-size: 19px; }
.line-items-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 25px 0 14px; }
.expense-table { min-width: 1080px; border: 1px solid var(--line); }
.expense-table th { padding: 10px; color: #5f6f88; background: #f8faff; border-bottom: 1px solid var(--line); font-size: 11px; text-align: left; white-space: nowrap; }
.expense-table td { min-width: 80px; padding: 7px; vertical-align: middle; border-bottom: 1px solid var(--line); }
.expense-table td:nth-child(2) { min-width: 220px; }
.expense-table input, .expense-table select { min-height: 37px; padding: 7px; border-radius: 7px; font-size: 12px; }
.expense-table input[type=file] { width: 160px; padding: 5px; }
.row-number { text-align: center; color: var(--muted); font-weight: 800; }
.item-idr { color: #2a4c87; font-size: 12px; font-weight: 800; white-space: nowrap; }
.icon-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; color: var(--red); background: #fff; border: 1px solid #f1cbcb; border-radius: 8px; font-size: 20px; line-height: 1; }
.icon-button:hover { color: #fff; background: var(--red); border-color: var(--red); }

.site-footer { padding: 20px 0; color: var(--muted); border-top: 1px solid var(--line); background: #fff; font-size: 12px; }

/* ── Role-based dashboard additions ── */

/* Badge "Perlu Aksi" di dalam sel tabel */
.action-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 7px;
    padding: 2px 7px;
    color: #9a5800;
    background: var(--yellow-soft);
    border: 1px solid #f0cc6e;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

/* Highlight baris yang perlu aksi */
.data-table tr[data-needs-action="1"] {
    background: #fffdf5;
}
.data-table tr[data-needs-action="1"]:hover {
    background: #fff8e6;
}

/* Kursor pointer di baris tabel yang bisa diklik */
.data-table tbody tr { cursor: default; }

/* Tab filter (Semua / Perlu Aksi) */
.tab-filter {
    display: flex;
    gap: 6px;
}
.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    color: var(--muted);
    background: #f5f7fb;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 750;
    transition: color .15s, background .15s, border-color .15s;
    cursor: pointer;
}
.tab-btn:hover { color: var(--blue); background: var(--blue-soft); border-color: #c2d5f9; }
.tab-btn.active { color: var(--blue); background: var(--blue-soft); border-color: #a8c0ef; }
.tab-btn:hover { transform: none; }

/* Panel heading: kanan memuat tab filter + tombol aksi sejajar */
.panel-heading-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Count pill variasi kuning */
.count-pill-yellow {
    color: #8a5a00;
    background: var(--yellow-soft);
}

/* Metric card yang urgent (ada pending action) */
.metric-urgent {
    position: relative;
    overflow: hidden;
}
.metric-urgent::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 2px rgba(215, 139, 0, .25);
    animation: urgent-pulse 2.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes urgent-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .35; }
}

/* Metric card: baris atas dengan label + ikon */
.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2px;
}
.metric-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
}
.metric-icon svg { width: 17px; height: 17px; }
.metric-icon-blue   { color: var(--blue);   background: var(--blue-soft); }
.metric-icon-yellow { color: var(--yellow); background: var(--yellow-soft); }
.metric-icon-green  { color: var(--green);  background: var(--green-soft); }

/* Metric card dengan metric-top: kurangi margin top angka */
.metric-card:has(.metric-top) strong { margin-top: 6px; }

.kasbon-print-form { display: none; }

@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; }
    .action-card { align-items: stretch; flex-direction: column; }
    .inline-action-form, .compact-form-grid { width: 100%; min-width: 0; }
    .inline-action-form { flex-wrap: wrap; }
    .inline-action-form input { flex: 1 1 220px; }
    .request-hero { flex-direction: column; }
    .hero-actions { justify-items: start; }
    .hero-badges { justify-content: flex-start; }
    .request-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .container { width: min(100% - 28px, 1180px); }
    .site-header { position: static; }
    .nav-wrap { flex-wrap: wrap; gap: 10px; padding-block: 12px; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; }
    .user-menu { margin-left: auto; }
    .user-copy { display: none; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .page-heading > .btn, .heading-actions { width: 100%; }
    .heading-actions .btn { flex: 1; }
    .request-hero { padding: 18px; border-radius: 16px; }
    .hero-badges { flex-direction: column; align-items: flex-start; }
    .hero-actions .btn { width: 100%; }
    .metric-grid, .form-grid, .document-hero, .settlement-summary { grid-template-columns: 1fr; }
    .form-card { padding: 20px; }
    .form-actions { align-items: stretch; flex-direction: column-reverse; }
    .form-actions .btn { width: 100%; }
    .compact-form-grid { grid-template-columns: 1fr 1fr; }
    .compact-form-grid .wide { grid-column: 1 / -1; }
    .detail-list { grid-template-columns: 1fr; }
    .detail-list .wide { grid-column: auto; }
    .workflow-list li { grid-template-columns: 14px 1fr; }
    .workflow-meta { grid-column: 2; text-align: left; margin-top: -12px; padding-bottom: 9px; }
    .auth-page .page-content { justify-items: center; padding: 18px; }
    .auth-card { padding: 30px 24px; border-radius: 18px; }
    .form-shortcuts-list { grid-template-columns: 1fr; }
}

@media print {
    @page { size: A4 landscape; margin: 8mm; }

    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body { margin: 0; background: #fff; color: #000; font-family: Arial, sans-serif; font-size: 9pt; line-height: 1.2; }
    .site-header, .site-footer, .print-hidden, .btn { display: none !important; }
    .page-content, .container { width: 100%; max-width: none; padding: 0; margin: 0; }
    .page-content > :not(.kasbon-print-form) { display: none !important; }
    .kasbon-print-form { display: block; width: 100%; }

    .kasbon-print-form table { width: 100%; border-collapse: collapse; color: #000; }
    .kasbon-print-form th, .kasbon-print-form td { padding: 2px 4px; border: 1px solid #000; vertical-align: top; }
    .print-document-header { height: 28mm; margin-bottom: 5mm; table-layout: fixed; }
    .print-document-header .print-logo-cell { width: 29%; text-align: center; vertical-align: middle; }
    .print-logo-cell img { display: inline-block; width: 34mm; max-height: 23mm; object-fit: contain; }
    .print-form-title { width: 34%; padding: 4mm !important; font-weight: 700; font-size: 10pt; line-height: 1.35; text-align: center; vertical-align: middle !important; }
    .print-company { height: 5mm; font-weight: 700; text-align: center; vertical-align: middle !important; }
    .print-document-header td:nth-child(3) { width: 17%; }
    .print-document-header td:nth-child(4) { width: 20%; }
    .print-meta-label { white-space: nowrap; }
    .print-section-title { padding: 2px 4px; margin: 0; border-top: 1px solid #000; border-bottom: 1px solid #000; background: #bfbfbf !important; font-size: 9pt; font-weight: 700; }
    .print-request-table { margin: 4mm 0 0; border: 0 !important; }
    .print-request-table th, .print-request-table td { padding: 2px 4px; border: 0; }
    .print-request-table th { width: 28%; font-weight: 400; text-align: left; }
    .print-request-table td:nth-child(2) { width: 1.5%; text-align: center; }
    .print-request-table td:nth-child(3) { width: 70.5%; }
    .print-box { min-height: 8mm; border: 1px solid #000 !important; }
    .print-purpose { height: 20mm; vertical-align: top; }
    .print-italic { font-style: italic; }
    .print-note { margin: 4mm 0 1mm; }
    .print-signatures { table-layout: fixed; margin-bottom: 5mm; }
    .print-signatures th { height: 5mm; text-align: left; font-weight: 400; }
    .print-signatures td { height: 20mm; padding-top: 2mm; }
    .print-signatures strong { display: inline-block; margin-left: 8mm; font-weight: 400; }
    .print-receipt-table { margin: 4mm 0 0; }
    .print-receipt-table th, .print-receipt-table td { padding: 2px 4px; border: 0; text-align: left; }
    .print-receipt-table th:first-child { width: 2.5%; }
    .print-receipt-table th:nth-child(2) { width: 40%; }
    .print-receipt-table td:nth-child(3) { width: 1.5%; text-align: center; }
    .print-receipt-table td:nth-child(4) { width: 21%; border: 1px solid #000; }
    .print-receipt-table th:nth-child(5) { width: 7%; }
    .print-receipt-table td:last-child { border: 1px solid #000; }
    .print-expense-table { table-layout: fixed; margin-top: 1mm; }
    .print-expense-table th { font-weight: 700; text-align: center; }
    .print-expense-table th:nth-child(1), .print-expense-table td:nth-child(1) { width: 3%; text-align: center; }
    .print-expense-table th:nth-child(2) { width: 42%; }
    .print-expense-table th:nth-child(3) { width: 14%; }
    .print-expense-table th:nth-child(4) { width: 14%; }
    .print-expense-table th:nth-child(5) { width: 7%; }
    .print-expense-table th:nth-child(6) { width: 20%; }
    .print-expense-table td { height: 5mm; }
    .print-empty-row td { height: 5mm; }
    .print-expense-table tfoot th { text-align: right; }
    .print-expense-table tfoot td { text-align: right; font-weight: 700; }
    .print-settlement-signatures { margin-top: 5mm; }
    .print-settlement-signatures td { height: 19mm; }
}

.public-request-page { background: #f3f6fb; }
.public-request-page .container { width: min(1180px, calc(100% - 32px)); }
.public-request-page .page-content { padding-top: 24px; padding-bottom: 32px; }
.public-request-page .page-heading { margin-bottom: 20px; }
.public-request-page .page-heading h1 { margin-top: 5px; margin-bottom: 6px; }
.public-request-page .page-heading p { max-width: 760px; margin-bottom: 0; }
.public-request-page .public-request-form {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid #d9e3f1;
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(23, 35, 58, .08);
}
.public-request-page .form-section-head { padding-bottom: 4px; }
.public-request-page .form-grid { gap: 19px; }
.public-request-page .form-grid label > span { letter-spacing: .01em; }
.public-request-page input,
.public-request-page select,
.public-request-page textarea { border-color: #c8d5e7; }
.public-request-page input:hover,
.public-request-page select:hover,
.public-request-page textarea:hover { border-color: #9fb8df; }
.public-request-page .section-number { color: #fff; background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 7px 14px rgba(37,99,235,.2); }
.public-request-page .terbilang-box {
    min-height: 70px;
    background: #f5f8ff;
    border-color: #9ebcff;
}
.public-request-page .form-actions { padding-top: 22px; }

@media (max-width: 720px) {
    .public-request-page .container { width: min(100% - 20px, 1180px); }
    .public-request-page .page-content { padding-top: 16px; }
    .public-request-page .public-request-form { padding: 22px 16px; border-radius: 14px; }
}
