: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 svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.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: 32px 32px 42px;
}

.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: 16px 18px;
    align-items: start;
    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: flex;
    align-items: center;
    width: 100%;
    height: 43px;
    padding: 0 12px;
    background: linear-gradient(135deg, #f1f5ff, #f8faff);
    border: 1px dashed #aec5f3;
    border-radius: 10px;
    align-self: start;
}

.terbilang-box strong {
    color: #274886;
    font-size: 12px;
    font-weight: 750;
    font-style: italic;
    line-height: 1.35;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 11px;
    margin-top: 32px;
    padding-top: 24px;
    margin-bottom: 6px;
    border-top: 1px solid var(--line);
}

/* ── Split-screen Auth Layout ── */
.auth-page {
    min-height: 100dvh;
    background: #f0f4fb;
}

.auth-page .page-content {
    display: grid;
    width: 100%;
    min-height: 100dvh;
    padding: 0;
}

/* Split shell: left hero + right form */
.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100dvh;
    width: 100%;
}

/* ── Left hero panel ── */
.auth-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(40px, 6vw, 80px) clamp(36px, 5vw, 72px);
    overflow: hidden;
    background: linear-gradient(145deg, #0f2764 0%, #1a4db3 55%, #2563eb 100%);
    color: #fff;
}

.auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(255, 255, 255, .12) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(99, 179, 255, .18) 0%, transparent 50%);
    pointer-events: none;
}

.auth-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .35;
    pointer-events: none;
}

.auth-hero-orb-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -100px;
    background: radial-gradient(circle, #60a5fa, #2563eb);
}

.auth-hero-orb-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -60px;
    background: radial-gradient(circle, #818cf8, #3b5bdb);
}

.auth-hero-content {
    position: relative;
    z-index: 1;
}

.auth-hero-logo {
    display: block;
    max-height: 56px;
    max-width: 200px;
    margin-bottom: 40px;
    filter: brightness(0) invert(1);
    opacity: .92;
}

.auth-hero-tagline {
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.04em;
    margin: 0 0 18px;
}

.auth-hero-tagline span {
    color: #93c5fd;
}

.auth-hero-desc {
    font-size: clamp(14px, 1.3vw, 16px);
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
    max-width: 400px;
    margin: 0 0 40px;
}

.auth-hero-features {
    display: grid;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .88);
}

.auth-hero-features li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    border: 1.5px solid rgba(255, 255, 255, .5);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 13px;
    background-repeat: no-repeat;
    background-position: center;
}

.auth-hero-footer {
    position: absolute;
    bottom: 28px;
    left: clamp(36px, 5vw, 72px);
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
    z-index: 1;
}

/* ── Right form panel ── */
.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(32px, 5vw, 60px) clamp(28px, 5vw, 64px);
    background: #fff;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card .brand-login {
    display: none;
}

/* hidden — logo is in hero */
.auth-card h1 {
    margin: 0;
    font-size: clamp(22px, 3vw, 28px);
    letter-spacing: -.035em;
    line-height: 1.18;
}

.auth-card .muted {
    margin: 7px 0 0;
    color: var(--muted);
}

.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: 900px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .nav-wrap {
        gap: 12px;
    }

    .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 {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .form-actions .btn {
        flex: 1;
        width: auto;
    }

    .form-actions .btn-ghost {
        flex: 0 0 auto;
        min-width: 100px;
    }

    .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-shell {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        min-height: auto;
        padding: 36px 28px 32px;
    }

    .auth-hero-tagline {
        font-size: 26px;
    }

    .auth-hero-desc,
    .auth-hero-features,
    .auth-hero-footer {
        display: none;
    }

    .auth-hero-logo {
        margin-bottom: 14px;
    }

    .auth-panel {
        padding: 36px 24px 48px;
    }

    .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;
    }
}

/* ══════════════════════════════════════════════
   Interactive Login Form
   ══════════════════════════════════════════════ */

/* ── Greeting header ── */
.auth-greeting {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.auth-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 16px;
    background: linear-gradient(135deg, #e8f0ff, #dce8ff);
    color: #2563eb;
    border: 1.5px solid #c7d8ff;
}

.auth-avatar svg {
    width: 26px;
    height: 26px;
}

.auth-greeting h1 {
    margin: 0;
    font-size: clamp(20px, 2.5vw, 26px);
    letter-spacing: -.035em;
}

.auth-greeting .muted {
    margin: 4px 0 0;
    font-size: 14px;
}

/* ── Error alert with icon ── */
.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: alert-slide-in .3s cubic-bezier(.22, .68, 0, 1.2);
}

.login-alert svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
}

@keyframes alert-slide-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Floating label input group ── */
/* ── Login Form Entrance Animation & Compact Spacing ── */
@keyframes login-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: .01em;
}

.lf-group {
    position: relative;
    margin-bottom: 14px;
    animation: login-fade-in-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#lf-email-group {
    animation-delay: 0.08s;
}

#lf-password-group {
    animation-delay: 0.16s;
}

.login-submit {
    animation: login-fade-in-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.24s;
}

.lf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lf-input-wrap > svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #64748b;
    pointer-events: none;
    transition: color .2s ease;
    z-index: 2;
}

.lf-input {
    width: 100%;
    min-height: 46px;
    padding: 11px 44px 11px 42px;
    font-size: 14.5px;
    font-weight: 400;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.lf-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.lf-input:hover {
    border-color: #94a3b8;
}

.lf-input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.14);
}

.lf-input-wrap:focus-within > svg {
    color: #2563eb;
}

/* Hint / error text */
.lf-hint {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: transparent;
    transition: color .2s ease;
}

.lf-hint:empty {
    display: none;
}

.lf-group.lf-error .lf-hint {
    margin-top: 4px;
    color: #c0392b;
}

.lf-group.lf-error .lf-input {
    border-color: #e5534b;
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(229, 83, 75, .12);
}

.lf-group.lf-error .lf-input:focus {
    border-color: #e5534b;
    box-shadow: 0 0 0 3.5px rgba(229, 83, 75, .18);
}

.lf-group.lf-error .lf-label {
    color: #c0392b !important;
}

/* Password right-side toggle button */
.lf-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #8898b0;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.lf-toggle-pw:hover {
    color: #2563eb;
    background: #eef4ff;
    transform: translateY(-50%) scale(1.05);
}

.lf-toggle-pw svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* Password input has extra right padding for toggle button */
#lf-password-group .lf-input {
    padding-right: 50px;
}

/* ── Submit button states ── */
.login-submit {
    position: relative;
    min-height: 52px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 13px;
    letter-spacing: .01em;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .3);
}

.login-submit:active:not(:disabled) {
    transform: translateY(0);
}

.login-btn-text,
.login-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: opacity .2s ease;
}

.login-btn-text svg {
    width: 18px;
    height: 18px;
}

.login-btn-loading {
    position: absolute;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

/* Loading state */
.login-submit.is-loading .login-btn-text {
    opacity: 0;
}

.login-submit.is-loading .login-btn-loading {
    opacity: 1;
}

.login-submit.is-loading {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    cursor: not-allowed;
}

/* Spinner */
.spin {
    width: 20px;
    height: 20px;
    animation: btn-spin .75s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Form shortcuts as anchor elements ── */
a.form-shortcut {
    display: flex;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    cursor: pointer;
    text-decoration: none;
}

a.form-shortcut:hover {
    transform: translateY(-2px);
    border-color: #b8d0f8;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .1);
}

/* ── Auth panel entrance animation ── */
@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-panel {
    animation: panel-in .45s cubic-bezier(.22, .68, 0, 1.1) both;
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-hero {
    animation: hero-in .45s cubic-bezier(.22, .68, 0, 1.1) both;
}

/* Staggered form element entrance */
.lf-group:nth-child(1) {
    animation: field-in .4s .1s both;
}

.lf-group:nth-child(2) {
    animation: field-in .4s .18s both;
}

.login-submit {
    animation: field-in .4s .26s both;
}

@keyframes field-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════
   Kasbon Form — Shared Styles
   ══════════════════════════════════════════════ */

/* ── Kasbon Hero (public form header) ── */
.kasbon-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0f2764 0%, #1a4db3 55%, #2563eb 100%);
    color: #fff;
    padding: 0;
}

.kasbon-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .3;
    pointer-events: none;
}

.kasbon-hero-orb-1 {
    width: 360px;
    height: 360px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, #60a5fa, #2563eb);
}

.kasbon-hero-orb-2 {
    width: 240px;
    height: 240px;
    bottom: -60px;
    left: -40px;
    background: radial-gradient(circle, #818cf8, #3b5bdb);
}

.kasbon-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 22px;
}

.kasbon-hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kasbon-hero-logo {
    display: block;
    max-height: 40px;
    max-width: 140px;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.kasbon-hero-brand-text {
    display: grid;
    gap: 2px;
}

.kasbon-hero-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.kasbon-hero-title {
    display: block;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 800;
    letter-spacing: -.025em;
    color: #fff;
}

.kasbon-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
    white-space: nowrap;
}

.kasbon-hero-back:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .4);
}

.kasbon-hero-back svg {
    width: 16px;
    height: 16px;
}

/* ── Page body spacing ── */
.kasbon-page-body {
    padding-block: 28px 56px;
}

.kasbon-public-page .container,
.kasbon-form-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* ── Step progress indicator ── */
.form-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 26px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(37, 51, 83, .05);
}

.form-progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    opacity: .45;
    transition: opacity .3s ease;
}

.form-progress-step--active {
    opacity: 1;
}

.form-progress-step--done {
    opacity: .75;
}

.fp-num {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #edf2ff;
    color: #4a6fa5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    transition: background .3s ease, color .3s ease;
}

.form-progress-step--active .fp-num {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}

.form-progress-step--done .fp-num {
    background: #e4f7ef;
    color: #0d8e62;
}

.fp-label {
    font-size: 13px;
    font-weight: 700;
    color: #31445f;
}

.form-progress-connector {
    flex: 1;
    height: 2px;
    margin-inline: 12px;
    background: linear-gradient(to right, #dce6f8, #dce6f8);
    border-radius: 2px;
}

/* ── Info card with icon ── */
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.info-card-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: #e8f0ff;
    color: #2563eb;
}

.info-card-icon--warn {
    background: #fef9ec;
    color: #c28800;
}

.info-card-icon svg {
    width: 20px;
    height: 20px;
}

/* ── Input with leading icon ── */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon>svg {
    position: absolute;
    left: 13px;
    width: 17px;
    height: 17px;
    color: #8898b0;
    pointer-events: none;
    flex: 0 0 auto;
    transition: color .2s ease;
}

.input-with-icon>input,
.input-with-icon>select {
    padding-left: 40px;
}

.input-with-icon:focus-within>svg {
    color: #2563eb;
}

.input-with-icon--disabled>svg {
    color: #b0bbcc;
}

/* ── Amount preview text ── */
.amount-preview {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: .01em;
}

/* ── Field hint text ── */
.field-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.file-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.file-drop-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e8f0ff;
    color: #2563eb;
    margin-bottom: 4px;
    transition: background .2s ease;
}

.file-drop-zone:hover .file-drop-icon,
.file-drop-zone--over .file-drop-icon {
    background: #dbeafe;
}

.file-drop-icon svg {
    width: 24px;
    height: 24px;
}

.file-drop-text strong {
    display: block;
    font-size: 14px;
    color: #31445f;
}

.file-drop-text span {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.file-drop-meta {
    font-size: 11px;
    color: #9aabb8;
    margin-top: 4px;
}

.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.file-drop-zone {
    position: relative;
    display: block;
    cursor: pointer;
    border: 2px dashed #c8d8f0;
    border-radius: 14px;
    padding: 24px 20px;
    background: #f8faff;
    text-align: center;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    user-select: none;
    min-height: 140px;
}

.file-drop-zone:hover,
.file-drop-zone--over {
    border-color: #2563eb;
    background: #eef4ff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}

.file-preview-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
}

.file-preview-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.file-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .14);
}

.file-preview-thumb {
    position: relative;
    display: grid;
    place-items: center;
    width: 94px;
    height: 74px;
    border-radius: 8px;
    background: #f0f5ff;
    overflow: hidden;
}

.file-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #2563eb;
}

.file-preview-icon svg {
    width: 28px;
    height: 28px;
}

.file-preview-ext {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    background: #2563eb;
    color: #fff;
    border-radius: 4px;
    letter-spacing: .04em;
}

.file-preview-name {
    width: 100%;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 650;
    color: #2c3e56;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.file-preview-size {
    font-size: 10px;
    color: var(--muted);
    margin-top: 1px;
}

.file-preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(239, 68, 68, .35);
    transition: transform .15s ease, background .15s ease;
}

.file-preview-remove:hover {
    background: #dc2626;
    transform: scale(1.15);
}

.file-preview-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 110px;
    height: 116px;
    border: 2px dashed #b8cde8;
    border-radius: 12px;
    background: rgba(232, 240, 255, .4);
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.file-preview-add:hover {
    background: #e8f0ff;
    border-color: #2563eb;
}

.file-preview-add svg {
    width: 24px;
    height: 24px;
}

.file-list-remove {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-left: 6px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #8898b0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.file-list-remove:hover {
    color: #d84343;
    background: #ffebeb;
    transform: scale(1.1);
}

/* ── File Preview Modal Lightbox (PDF & Image) ── */
.file-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.file-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .75);
    backdrop-filter: blur(4px);
}

.file-modal-dialog {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(940px, 95vw);
    height: min(85vh, 780px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .25);
    overflow: hidden;
    animation: alert-slide-in .2s ease;
}

.file-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: #f8faff;
    border-bottom: 1px solid #e2e8f0;
}

.file-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #1e293b;
}

.file-modal-title svg {
    width: 20px;
    height: 20px;
    color: #2563eb;
    flex: 0 0 auto;
}

.file-modal-title strong {
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-modal-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.file-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* ── Petty Cash Expense Table (Clean & Natural Fit) ── */
.btn-add-row {
    transition: all .2s ease-in-out !important;
}

.btn-add-row:hover {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #166534 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15) !important;
}

.btn-add-row:active {
    transform: translateY(0);
}

.expense-table-wrap {
    width: 100%;
    margin-top: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Custom smooth scrollbar for horizontal table scroll */
.expense-table-wrap::-webkit-scrollbar {
    height: 6px;
}
.expense-table-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.expense-table-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.expense-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.expense-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.expense-table.petty-table {
    table-layout: fixed;
    width: 100%;
    min-width: 880px;
}

.expense-table.petty-table td {
    min-width: 0;
}

.expense-table.petty-table input,
.expense-table.petty-table select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.expense-table th {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-align: left;
    white-space: nowrap;
}

.expense-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.expense-table input[type="date"],
.expense-table input[type="number"],
.expense-table input[type="text"],
.expense-table select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    color: #1e293b;
    background: #ffffff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.expense-table input[type="date"] {
    padding: 8px 6px;
    font-size: 12.5px;
}

.expense-table input:focus,
.expense-table select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
    outline: none;
}

.expense-table tfoot td {
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
    padding: 12px 14px;
}

@media (max-width: 768px) {
    .expense-table.petty-table {
        min-width: 820px;
    }
    .expense-table th {
        padding: 10px 8px;
        font-size: 12px;
    }
    .expense-table td {
        padding: 6px 6px;
    }
    .expense-table input[type="date"],
    .expense-table input[type="number"],
    .expense-table input[type="text"],
    .expense-table select {
        padding: 7px 8px;
        font-size: 13px;
    }
}

.file-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    overflow: hidden;
}

.file-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}

.file-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.file-modal-fallback {
    text-align: center;
    color: #ffffff;
    padding: 30px;
}

/* ── Kasbon submit button (shared) ── */
.kasbon-submit-btn {
    position: relative;
    min-height: 46px;
    padding-inline: 24px;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
}

.submit-btn-text,
.submit-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity .2s ease;
}

.submit-btn-text svg {
    width: 16px;
    height: 16px;
}

.submit-btn-loading {
    position: absolute;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.kasbon-submit-btn.is-loading .submit-btn-text {
    opacity: 0;
}

.kasbon-submit-btn.is-loading .submit-btn-loading {
    opacity: 1;
}

.kasbon-submit-btn.is-loading {
    cursor: not-allowed;
    opacity: .85;
}

/* ── User identity card (logged-in form) ── */
.user-identity-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f0f5ff, #e8f0ff);
    border: 1px solid #cddcfa;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .07);
}

.user-identity-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .28);
}

.user-identity-info {
    flex: 1;
    min-width: 0;
}

.user-identity-info strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #1a2f52;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-identity-info span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

.user-identity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.user-identity-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid #cddcfa;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #3a5598;
    white-space: nowrap;
}

.user-identity-badge svg {
    width: 13px;
    height: 13px;
}

/* ── kasbon_create page heading ── */
.kasbon-create-heading {
    margin-bottom: 18px;
}

/* ── Responsive overrides ── */
@media (max-width: 992px) {
    .kasbon-form-container {
        width: calc(100% - 32px);
    }
}

@media (max-width: 720px) {
    .kasbon-form-container {
        width: calc(100% - 20px);
    }

    .kasbon-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-block: 20px;
    }

    .kasbon-hero-back {
        align-self: flex-start;
    }

    .form-progress {
        padding: 14px 16px;
        gap: 0;
    }

    .fp-label {
        display: none;
    }

    .user-identity-card {
        flex-wrap: wrap;
    }

    .user-identity-meta {
        width: 100%;
    }

    .info-card {
        flex-direction: column;
        gap: 10px;
    }
}

/* ── Auto-complete styling & animations ── */
.auto-complete-hint {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0d8e62;
    background: #e4f7ef;
    padding: 5px 10px;
    border-radius: 7px;
    border: 1px solid #bce8d4;
    animation: alert-slide-in .25s ease;
}

.input-auto-filled {
    animation: pulse-green-highlight 1.2s ease;
}

@keyframes pulse-green-highlight {
    0% {
        background-color: #e4f7ef;
        border-color: #0d8e62;
        box-shadow: 0 0 0 3px rgba(13, 142, 98, .2);
    }

    100% {
        background-color: #fff;
        border-color: #ced7e5;
        box-shadow: none;
    }
}

/* ── Scrollable Autocomplete Dropdown ── */
.autocomplete-wrap {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100;
    background: #ffffff;
    border: 1.5px solid #cddcfa;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .16);
    max-height: 235px;
    overflow-y: auto;
    padding: 6px;
    animation: alert-slide-in .15s ease;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #27364f;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.autocomplete-item:hover {
    background: #edf4ff;
    color: #2563eb;
}

.autocomplete-item-nik {
    font-size: 11px;
    font-weight: 700;
    color: #516788;
    background: #f0f4fa;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #dce6f5;
}

/* ── Floating Toast Notifications ── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid #bce8d4;
    border-left: 5px solid #0d8e62;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(13, 142, 98, .18);
    font-size: 13px;
    font-weight: 600;
    color: #1a3328;
    animation: toast-slide-in .3s cubic-bezier(.22, .68, 0, 1.2) forwards;
}

.toast-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e4f7ef;
    color: #0d8e62;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.toast-fade-out {
    animation: toast-slide-out .3s forwards ease-in !important;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(10px) scale(.95);
    }
}

/* ── Autocomplete Dropdown & Active Item Style ── */
.autocomplete-wrap {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 260px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.15), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
    padding: 6px;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.autocomplete-item:hover,
.autocomplete-item.autocomplete-item--active {
    background-color: #eff6ff;
}

.autocomplete-item-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.autocomplete-item:hover .autocomplete-item-avatar,
.autocomplete-item.autocomplete-item--active .autocomplete-item-avatar {
    background: #2563eb;
    color: #ffffff;
}

.autocomplete-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.autocomplete-item-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-item:hover .autocomplete-item-name,
.autocomplete-item.autocomplete-item--active .autocomplete-item-name {
    color: #1d4ed8;
}

.autocomplete-item-sub {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-item:hover .autocomplete-item-sub,
.autocomplete-item.autocomplete-item--active .autocomplete-item-sub {
    color: #3b82f6;
}

/* ── 3-column Form Grid ── */
.form-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 24px;
}

@media (max-width: 992px) {
    .form-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .form-grid-3col {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════
   Redesigned Kasbon Detail Page Styles (.kd-)
   ══════════════════════════════════════════════ */

.kd-detail-page {
    padding-block: 20px 60px;
}

/* ── Hero Banner ── */
.kd-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #0f2764 0%, #1e4db3 55%, #2563eb 100%);
    border-radius: 16px;
    padding: 24px 28px;
    color: #ffffff;
    box-shadow: 0 12px 32px -4px rgba(15, 39, 100, 0.22);
    margin-bottom: 24px;
    overflow: hidden;
}

.kd-hero-banner::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.kd-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.kd-hero-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.kd-hero-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.kd-hero-meta h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff;
    letter-spacing: -.02em;
}

.kd-hero-meta p {
    margin: 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.88);
}

.kd-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kd-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.kd-hero-btn-primary {
    background: #ffffff;
    color: #1e3a8a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.kd-hero-btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    color: #1d4ed8;
}

.kd-hero-btn-glass {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
}
.kd-hero-btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.kd-hero-btn-danger {
    background: rgba(239, 68, 68, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}
.kd-hero-btn-danger:hover {
    background: #dc2626;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}

.kd-hero-btn-warning {
    background: rgba(245, 158, 11, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
}
.kd-hero-btn-warning:hover {
    background: #d97706;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}

/* ── Metrics Grid ── */
.kd-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kd-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.kd-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4.5px;
    height: 100%;
    background: #cbd5e1;
}

.kd-metric-card.accent-navy::before { background: #1e3a8a; }
.kd-metric-card.accent-blue::before { background: #2563eb; }
.kd-metric-card.accent-green::before { background: #10b981; }
.kd-metric-card.accent-yellow::before { background: #f59e0b; }
.kd-metric-card.accent-red::before { background: #ef4444; }

.kd-metric-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
}

.kd-metric-value {
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.kd-metric-sub {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* ── Content Grid Layout ── */
.kd-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

@media (max-width: 1024px) {
    .kd-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Card Containers ── */
.kd-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    margin-bottom: 24px;
    overflow: hidden;
}

.kd-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafbfc;
}

.kd-card-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kd-card-header h3 svg {
    width: 18px;
    height: 18px;
    color: #2563eb;
}

.kd-card-body {
    padding: 20px;
}

/* Key Value Table List */
.kd-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
}

@media (max-width: 640px) {
    .kd-info-grid {
        grid-template-columns: 1fr;
    }
}

.kd-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kd-info-item.full-width {
    grid-column: 1 / -1;
}

.kd-info-item dt {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
}

.kd-info-item dd {
    margin: 0;
    font-size: 14.5px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.5;
}

/* Attachment Badges */
.kd-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.kd-attachment-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.15s ease;
}

.kd-attachment-pill:hover {
    background: #e2e8f0;
    border-color: #2563eb;
    color: #2563eb;
}

.kd-attachment-pill svg {
    width: 15px;
    height: 15px;
    color: #2563eb;
}

/* Modern Timeline Steps */
.kd-timeline {
    position: relative;
    padding-left: 24px;
    list-style: none;
    margin: 0;
}

.kd-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #e2e8f0;
}

.kd-timeline-step {
    position: relative;
    padding-bottom: 22px;
}

.kd-timeline-step:last-child {
    padding-bottom: 0;
}

.kd-timeline-dot {
    position: absolute;
    left: -24px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    z-index: 1;
}

.kd-timeline-step.status-submitted .kd-timeline-dot,
.kd-timeline-step.status-approved .kd-timeline-dot {
    border-color: #10b981;
    background: #10b981;
}

.kd-timeline-step.status-pending .kd-timeline-dot {
    border-color: #f59e0b;
    background: #ffffff;
}

.kd-timeline-step.status-rejected .kd-timeline-dot {
    border-color: #ef4444;
    background: #ef4444;
}

.kd-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.kd-timeline-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

.kd-timeline-user {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.kd-timeline-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}

/* Action Box */
.kd-action-card {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border: 1px solid #bfdbfe;
    border-left: 5px solid #2563eb;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.kd-action-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 4px 0;
}

.kd-action-desc {
    font-size: 13.5px;
    color: #475569;
    margin: 0 0 16px 0;
}

/* ── Stepper Header Bar ── */
.kd-stepper-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.kd-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kd-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
}

.kd-step-item:not(:last-child)::after {
    content: '';
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-left: 10px;
}

.kd-step-item.completed:not(:last-child)::after {
    background: linear-gradient(to right, #10b981, #2563eb);
}

.kd-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.kd-step-item.active .kd-step-num {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.kd-step-item.completed .kd-step-num {
    background: #10b981;
    color: #ffffff;
}

.kd-step-info {
    display: flex;
    flex-direction: column;
}

.kd-step-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.kd-step-desc {
    font-size: 11px;
    color: #64748b;
}

@media (max-width: 768px) {
    .kd-step-info { display: none; }
    .kd-step-item:not(:last-child)::after { margin-left: 0; }
}

/* ── Copy Button ── */
.kd-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-left: 6px;
}
.kd-copy-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ════════════════════════════════════════════════
   Flash Notification System — Fixed Corner Toast
   ════════════════════════════════════════════════ */

/* ── Keyframe Animations ── */
@keyframes flash-slide-in {
    from {
        opacity: 0;
        transform: translateX(35px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes flash-slide-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(35px) scale(0.95);
    }
}

@keyframes flash-progress {
    from { width: 100%; }
    to   { width: 0%; }
}

/* ── Stack Container: Fixed Floating Top-Right Toast ── */
.flash-stack {
    position: fixed;
    top: 84px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
    margin-bottom: 0;
}

/* ── Single Notification Card ── */
.flash-notification {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: flash-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.flash-notification.flash-dismissing {
    animation: flash-slide-out 0.3s ease forwards;
}

@media (max-width: 640px) {
    .flash-stack {
        top: 66px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}

/* ── Type Variants ── */
.flash-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.flash-success .flash-icon {
    color: #16a34a;
    background: #dcfce7;
}
.flash-success .flash-label { color: #15803d; }
.flash-success .flash-progress { background: #16a34a; }

.flash-danger {
    background: #fff1f2;
    border-color: #fecdd3;
}
.flash-danger .flash-icon {
    color: #dc2626;
    background: #fee2e2;
}
.flash-danger .flash-label { color: #b91c1c; }
.flash-danger .flash-progress { background: #dc2626; }

.flash-warning {
    background: #fffbeb;
    border-color: #fde68a;
}
.flash-warning .flash-icon {
    color: #d97706;
    background: #fef3c7;
}
.flash-warning .flash-label { color: #b45309; }
.flash-warning .flash-progress { background: #d97706; }

.flash-info {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.flash-info .flash-icon {
    color: #2563eb;
    background: #dbeafe;
}
.flash-info .flash-label { color: #1d4ed8; }
.flash-info .flash-progress { background: #2563eb; }

/* ── Icon ── */
.flash-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    flex-shrink: 0;
}

.flash-icon svg {
    width: 18px;
    height: 18px;
}

/* ── Body ── */
.flash-body {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.flash-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 4px;
}

.flash-message {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    line-height: 1.5;
}

/* ── Close Button ── */
.flash-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #9ca3af;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    margin-top: 1px;
}

.flash-close:hover {
    background: rgba(0, 0, 0, 0.07);
    color: #374151;
}

.flash-close svg {
    width: 14px;
    height: 14px;
}

/* ── Progress Bar ── */
.flash-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 12px 12px;
    animation: flash-progress 6s linear forwards;
}

/* ════════════════════════════════════════════════
   Toast Notification (Inline JS-triggered)
   ════════════════════════════════════════════════ */

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
}

#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 360px;
}

.toast-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.14);
    color: #f1f5f9;
    pointer-events: auto;
    animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.toast-item.toast-leaving {
    animation: toast-out 0.25s ease forwards;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 14px;
}

.toast-icon.toast-icon-success { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.toast-icon.toast-icon-info    { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.toast-icon.toast-icon-warning { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.toast-icon.toast-icon-error   { background: rgba(239, 68, 68, 0.18);  color: #f87171; }

.toast-icon svg { width: 16px; height: 16px; }

.toast-body {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.toast-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: #e2e8f0;
}

.toast-text strong { color: #ffffff; }

@media (max-width: 480px) {
    #toast-container {
        left: 12px;
        right: 12px;
        bottom: 16px;
        max-width: none;
    }
}

/* ════════════════════════════════════════════════
   Action Card System (.ac-*)
   ════════════════════════════════════════════════ */

/* ── Base Card ── */
.ac-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 24px;
    border-radius: 16px;
    border: 1.5px solid;
    margin-bottom: 16px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    animation: flash-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Variants ── */
.ac-card--approval {
    border-color: #c7d7f8;
    background: linear-gradient(135deg, #f5f8ff 0%, #edf2ff 100%);
}
.ac-card--approval .ac-icon {
    background: #dbeafe;
    color: #2563eb;
}

.ac-card--disburse {
    border-color: #a7f3d0;
    background: linear-gradient(135deg, #f0fdf9 0%, #ecfdf5 100%);
}
.ac-card--disburse .ac-icon {
    background: #d1fae5;
    color: #059669;
}

.ac-card--spj {
    border-color: #c4b5fd;
    background: linear-gradient(135deg, #faf5ff 0%, #f5f0ff 100%);
}
.ac-card--spj .ac-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.ac-card--settlement {
    border-color: #fde68a;
    background: linear-gradient(135deg, #fffbeb 0%, #fef9e6 100%);
}
.ac-card--settlement .ac-icon {
    background: #fef3c7;
    color: #d97706;
}

/* ── Icon ── */
.ac-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
}

.ac-icon svg {
    width: 22px;
    height: 22px;
}

/* ── Content ── */
.ac-content {
    flex: 1;
    min-width: 0;
}

/* ── Header Row ── */
.ac-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

/* ── Badge ── */
.ac-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 6px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.ac-badge--blue {
    background: rgba(6, 182, 212, 0.12);
    color: #0e7490;
}

.ac-badge--green {
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
}

.ac-badge--red {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

/* ── Title ── */
.ac-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

/* ── Description ── */
.ac-desc {
    margin: 0;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
}

.ac-desc strong {
    color: #1e293b;
    font-weight: 600;
}

/* ── Form Note (textarea + label) ── */
.ac-form-note {
    margin-bottom: 14px;
}

.ac-note-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ac-textarea {
    width: 100%;
    max-width: 560px;
    padding: 9px 13px;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    background: rgba(255,255,255,0.8);
    font: inherit;
    font-size: 13.5px;
    color: #1e293b;
    resize: vertical;
    min-height: 52px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.ac-textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}

/* ── Grid Form (disburse/settlement) ── */
.ac-form--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px 14px;
    align-items: end;
}

.ac-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ac-field label {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ac-field--wide {
    grid-column: 1 / -1;
}

.ac-input {
    padding: 9px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.85);
    font: inherit;
    font-size: 13.5px;
    color: #1e293b;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.ac-input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}

/* ── Action Buttons Row ── */
.ac-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.ac-actions--right {
    justify-content: flex-end;
    margin-top: 10px;
}

.ac-form--grid .ac-actions--right {
    grid-column: 1 / -1;
    margin-top: 4px;
}

/* ── Buttons ── */
.ac-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 9px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    white-space: nowrap;
}

.ac-btn:active {
    transform: scale(0.97);
}

.ac-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.ac-btn--approve {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}

.ac-btn--approve:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.36);
}

.ac-btn--reject {
    background: #fff;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ac-btn--reject:hover {
    background: #fff1f2;
    border-color: #f87171;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .ac-card {
        flex-direction: column;
        gap: 12px;
        padding: 18px 16px;
    }

    .ac-icon {
        width: 38px;
        height: 38px;
    }

    .ac-header {
        flex-direction: column;
    }

    .ac-form--grid {
        grid-template-columns: 1fr 1fr;
    }

    .ac-btn {
        width: 100%;
        justify-content: center;
    }
}

@media print {
    .print-hidden { display: none !important; }
}

@media (max-width: 1024px) {
    .kd-layout-grid {
        display: flex !important;
        flex-direction: column !important;
    }
    .kd-layout-grid > aside {
        order: -1 !important;
        margin-bottom: 24px !important;
    }
}

/* ── Panel Heading & Action Buttons Responsiveness ── */
@media (max-width: 768px) {
    .panel-heading {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
        padding: 16px 16px 12px !important;
    }
    .panel-heading-right {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 8px !important;
    }
    .panel-heading-right .btn,
    .panel-heading-right .tab-filter {
        flex: 1 1 auto !important;
        width: 100% !important;
        justify-content: center !important;
    }
    .tab-filter {
        display: flex !important;
    }
    .tab-filter .tab-btn {
        flex: 1 !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* ── Filter Bar Responsiveness ── */
@media (max-width: 640px) {
    .filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 12px 16px !important;
    }
    .filter-bar > div,
    .filter-bar > label {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    .filter-bar select,
    .filter-bar input {
        width: 100% !important;
    }
}

/* ── Table Overflow Containment ── */
.table-wrap,
.expense-table-wrap {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* ════════════════════════════════════════════════════
   ADMIN FLOATING NAV BAR — Fixed Bottom
   ════════════════════════════════════════════════════ */

/* Add bottom padding to page content so content doesn't hide behind the bar */
.admin-page-content,
body:has(.admin-float-nav) .page-content,
body:has(.admin-float-nav) .site-footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px) + 20px);
}

/* Fixed bottom container */
.admin-float-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    pointer-events: none;
}

/* The pill itself */
.admin-float-nav-pill {
    pointer-events: all;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(227,232,241,0.9);
    border-radius: 18px;
    padding: 6px;
    box-shadow:
        0 8px 32px rgba(37,51,83,.16),
        0 2px 8px rgba(37,51,83,.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* Each nav item */
.admin-float-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 17px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    color: #64748b;
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s ease, background .15s ease, box-shadow .15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.admin-float-btn svg {
    flex-shrink: 0;
    width: 15px; height: 15px;
    transition: color .15s ease;
}
.admin-float-btn:hover {
    color: var(--blue, #2563eb);
    background: var(--blue-soft, #eff6ff);
}
.admin-float-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 14px rgba(37,99,235,.32);
}
.admin-float-btn.active svg {
    color: #fff;
}
.admin-float-btn.active:hover { 
    box-shadow: 0 6px 20px rgba(37,99,235,.4); 
}

/* Mobile & Tablet: full-width bar at very bottom (safe area aware) */
@media (max-width: 768px) {
    .admin-float-nav {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        transform: none;
        padding: 0 0 env(safe-area-inset-bottom, 0px);
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid rgba(227, 232, 241, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 -4px 20px rgba(37, 51, 83, 0.10);
        border-radius: 0;
        display: flex;
        justify-content: stretch;
        z-index: 999;
    }
    .admin-float-nav-pill {
        border: none;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        width: 100%;
        display: flex;
        justify-content: space-around;
        padding: 4px 4px 6px;
        animation: none;
        gap: 2px;
    }
    .admin-float-btn {
        flex: 1;
        min-width: 0;
        flex-direction: column;
        gap: 3px;
        padding: 6px 2px 5px;
        border-radius: 9px;
        font-size: 10px;
        font-weight: 600;
        text-align: center;
        justify-content: center;
        line-height: 1.15;
        transition: background .15s ease, color .15s ease;
    }
    .admin-float-btn .nav-label {
        display: block;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
    }
    .admin-float-btn svg {
        width: 19px;
        height: 19px;
        transition: color .15s ease;
    }
    .admin-float-btn.active {
        background: var(--blue-soft, #eff6ff);
        color: var(--blue, #2563eb);
        font-weight: 700;
        box-shadow: none;
    }
    .admin-float-btn.active svg {
        color: var(--blue, #2563eb);
    }
    /* On mobile page needs more bottom padding */
    .admin-page-content {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }
}

/* ═══════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Global (≤ 768px)
   ════════════════════════════════════════════════════ */

/* ── Viewport base: clip prevents horizontal scroll without breaking position:sticky ── */
html { overflow-x: clip; }
body { overflow-x: clip; }

/* ── Desktop Defaults for Mobile Navigation Elements ── */
.mobile-nav-toggle,
.mobile-nav-backdrop,
.mobile-dropdown-card {
    display: none;
}

/* ── Site Header / Navigation (≤ 768px) ── */
@media (max-width: 768px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
        min-height: 58px;
    }

    .nav-wrap {
        min-height: 58px;
        gap: 12px;
        position: relative;
        padding-block: 8px;
        align-items: center;
    }

    /* Brand logo smaller */
    .brand img { height: 28px; }
    .brand { font-size: 15px; }

    /* Hide desktop elements */
    .desktop-only-nav,
    .desktop-only {
        display: none !important;
    }

    /* Hamburger button */
    .mobile-nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px; height: 38px;
        border: 1.5px solid var(--line);
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
        margin-left: auto;
        flex-shrink: 0;
        transition: background .15s, border-color .15s;
    }
    .mobile-nav-toggle:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
    }
    .mobile-nav-toggle svg { color: var(--ink); }

    /* Backdrop overlay */
    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
    }
    .mobile-nav-backdrop.open {
        opacity: 1;
        pointer-events: all;
    }

    /* Floating Dropdown Card */
    .mobile-dropdown-card {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 66px;
        right: 14px;
        left: 14px;
        max-width: 380px;
        margin-left: auto;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        box-shadow:
            0 20px 48px rgba(15, 23, 42, 0.18),
            0 4px 14px rgba(15, 23, 42, 0.06);
        padding: 16px;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px) scale(0.96);
        transform-origin: top right;
        transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease;
        max-height: calc(100vh - 84px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-dropdown-card.open {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0) scale(1);
    }

    /* Profile info header inside dropdown */
    .mdrop-profile {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 4px 6px 12px;
    }
    .mdrop-avatar {
        width: 42px; height: 42px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--blue, #2563eb), #1d4ed8);
        color: #fff;
        display: grid;
        place-items: center;
        font-size: 17px;
        font-weight: 700;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(37,99,235,.25);
    }
    .mdrop-user-info {
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }
    .mdrop-user-info strong {
        font-size: 14.5px;
        color: #0f172a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mdrop-role-badge {
        display: inline-block;
        width: fit-content;
        font-size: 11px;
        font-weight: 700;
        color: #2563eb;
        background: #eff6ff;
        border: 1px solid #dbeafe;
        padding: 2px 8px;
        border-radius: 6px;
    }

    /* Divider */
    .mdrop-divider {
        height: 1px;
        background: #f1f5f9;
        margin: 6px 0 10px;
    }

    /* Menu links */
    .mdrop-links {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .mdrop-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 12px;
        text-decoration: none;
        color: #334155;
        transition: background .15s, color .15s;
    }
    .mdrop-item:hover {
        background: #f8fafc;
        color: #0f172a;
    }
    .mdrop-item.active {
        background: #eff6ff;
        color: #2563eb;
    }
    .mdrop-icon {
        width: 36px; height: 36px;
        border-radius: 10px;
        background: #f1f5f9;
        display: grid;
        place-items: center;
        flex-shrink: 0;
        color: #64748b;
        transition: all .15s;
    }
    .mdrop-item:hover .mdrop-icon {
        background: #e2e8f0;
        color: #1e293b;
    }
    .mdrop-item.active .mdrop-icon {
        background: #dbeafe;
        color: #2563eb;
    }
    .mdrop-icon svg {
        width: 18px; height: 18px;
    }
    .mdrop-text {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }
    .mdrop-title {
        font-size: 14px;
        font-weight: 600;
        color: inherit;
    }
    .mdrop-desc {
        font-size: 11.5px;
        color: #94a3b8;
    }

    /* Logout inside dropdown */
    .mdrop-logout-form {
        margin: 6px 0 0;
        padding: 0;
    }
    .mdrop-logout-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 11px;
        border: 1.5px solid #fee2e2;
        border-radius: 12px;
        background: #fff;
        color: #dc2626;
        font-size: 13.5px;
        font-weight: 600;
        cursor: pointer;
        transition: all .15s;
    }
    .mdrop-logout-btn:hover {
        background: #fef2f2;
        border-color: #fca5a5;
    }
    .mdrop-logout-btn svg {
        width: 16px; height: 16px;
    }
}

/* ── Page Heading ── */
@media (max-width: 640px) {
    .page-heading {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px;
        margin-bottom: 20px;
    }
    .page-heading h1 { font-size: clamp(22px, 6vw, 28px); }
    .heading-actions { flex-wrap: wrap; width: 100%; }
    .heading-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ── Metric Grid (dashboard stat cards) ── */
@media (max-width: 900px) {
    .metric-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .metric-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
    .metric-card { min-height: unset; padding: 15px 14px; }
    .metric-card strong { font-size: 24px; }
}

/* ── Chart grids ── */
@media (max-width: 900px) {
    .chart-grid-2,
    .chart-grid { grid-template-columns: 1fr !important; }
}

/* ── Data tables ── */
@media (max-width: 640px) {
    .data-table th,
    .data-table td { padding: 11px 12px; font-size: 13px; }
    .data-table th { font-size: 10px; }

    /* Hide less-important columns */
    .col-hide-mobile { display: none !important; }
}

/* ── Form grids ── */
@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
        margin-top: 16px;
    }
    .full-width { grid-column: 1 !important; }
    .form-grid-2 { grid-template-columns: 1fr !important; }
    .form-card { padding: 20px 18px 28px !important; }
}

/* ── Request Hero ── */
@media (max-width: 768px) {
    .request-hero {
        flex-direction: column !important;
        padding: 20px 18px !important;
        gap: 16px;
    }
    .hero-badges { justify-content: flex-start; }
    .hero-actions { width: 100%; justify-items: stretch; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Request Info Grid ── */
@media (max-width: 640px) {
    .request-info-grid { grid-template-columns: 1fr !important; gap: 10px; }
}

/* ── Panel heading ── */
@media (max-width: 768px) {
    .panel-heading {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 16px 16px 12px !important;
    }
    .panel-heading-right {
        width: 100%;
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
    }
    .panel-heading-right .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* ── Admin nav bar tabs ── */
@media (max-width: 640px) {
    .admin-nav-bar {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .admin-nav-bar::-webkit-scrollbar { display: none; }
    .admin-nav-btn { white-space: nowrap; flex-shrink: 0; }
}

/* ── Admin Metric / stat cards ── */
@media (max-width: 900px) {
    .metric-cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .metric-cards-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
}

/* ── Filter bar (admin search / filter row) ── */
@media (max-width: 640px) {
    .filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 14px 16px !important;
    }
    .filter-bar > div,
    .filter-bar > label { width: 100% !important; flex: 1 1 100% !important; }
    .filter-bar select,
    .filter-bar input { width: 100% !important; }
}

/* ── Settlement / Detail layout ── */
@media (max-width: 768px) {
    .kd-layout-grid {
        display: flex !important;
        flex-direction: column !important;
    }
    .kd-layout-grid > aside {
        order: -1 !important;
        margin-bottom: 20px !important;
    }
}

/* ── Page content spacing ── */
@media (max-width: 640px) {
    .page-content { padding-block: 20px 36px; }
    .container { width: calc(100% - 24px); }
}

/* ── Buttons — touch friendly ── */
@media (max-width: 640px) {
    .btn { min-height: 44px; }
    .btn-small { min-height: 38px; padding: 8px 12px; }
}

/* ── Modals ── */
@media (max-width: 640px) {
    .modal-backdrop .modal-box,
    [class*="modal"] .modal-content {
        width: calc(100vw - 32px) !important;
        max-width: 100% !important;
        margin: 16px auto !important;
        border-radius: 14px !important;
    }
}

/* ── Signature tables (print-like layout) ── */
@media (max-width: 640px) {
    .signature-table,
    .signature-table-3 {
        display: block !important;
        width: 100% !important;
    }
    .signature-table tr,
    .signature-table-3 tr {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px;
    }
    .signature-table td,
    .signature-table-3 td {
        display: block !important;
        width: 100% !important;
    }
}

/* ── Kasbon Hero Banner (create form) ── */
@media (max-width: 640px) {
    .kasbon-hero-inner {
        flex-direction: column !important;
        gap: 14px;
        padding-block: 18px;
    }
    .kasbon-hero-back { align-self: flex-start; }
}

/* ── Form progress steps ── */
@media (max-width: 480px) {
    .form-progress { gap: 4px !important; }
    .form-progress-step .fp-label { font-size: 10px !important; }
    .form-progress-connector { flex-grow: 0.5 !important; }
}

/* ── Action cards / badge rows ── */
@media (max-width: 640px) {
    .action-card-row,
    .action-buttons-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .action-card-row .btn,
    .action-buttons-row .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ── Settlement form items table ── */
@media (max-width: 640px) {
    .settlement-items-table thead { display: none !important; }
    .settlement-items-table tbody tr {
        display: flex !important;
        flex-direction: column !important;
        border: 1px solid var(--line);
        border-radius: 10px;
        margin-bottom: 12px;
        padding: 12px;
    }
    .settlement-items-table td { border: none !important; padding: 4px 0 !important; }
    .settlement-items-table td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        color: var(--muted);
        display: block;
        text-transform: uppercase;
        letter-spacing: .05em;
        margin-bottom: 3px;
    }
}

/* ── Generic: stack any flex/grid with class ── */
@media (max-width: 640px) {
    .mobile-stack { flex-direction: column !important; align-items: stretch !important; }
    .mobile-full  { width: 100% !important; }
    .mobile-hide  { display: none !important; }
    .mobile-center { text-align: center !important; justify-content: center !important; }
}

/* ══════════════════════════════════════════════════════════════
   GLOBAL CONFIRMATION MODAL
   Dipicu oleh data-confirm pada form, atau data-confirm-btn pada tombol
   ══════════════════════════════════════════════════════════════ */
.cmodal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
    transition: background 0.25s ease, backdrop-filter 0.25s ease;
}
.cmodal-overlay.open {
    background: rgba(3, 7, 18, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: all;
}

.cmodal-box {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    transform: scale(0.88) translateY(16px);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.22s ease;
}
.cmodal-overlay.open .cmodal-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ── Icon Circle ── */
.cmodal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 4px;
}
.cmodal-icon svg {
    width: 30px;
    height: 30px;
}

/* Variant: danger (merah) */
.cmodal-overlay[data-variant="danger"] .cmodal-icon {
    background: #fff1f2;
    color: #dc2626;
    border: 2px solid #fecaca;
}
.cmodal-overlay[data-variant="danger"] .cmodal-btn--ok {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(220,38,38,0.35);
}
.cmodal-overlay[data-variant="danger"] .cmodal-btn--ok:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

/* Variant: warning (kuning) */
.cmodal-overlay[data-variant="warning"] .cmodal-icon {
    background: #fffbeb;
    color: #d97706;
    border: 2px solid #fde68a;
}
.cmodal-overlay[data-variant="warning"] .cmodal-btn--ok {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}
.cmodal-overlay[data-variant="warning"] .cmodal-btn--ok:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* Variant: info (biru) */
.cmodal-overlay[data-variant="info"] .cmodal-icon {
    background: #eff6ff;
    color: #2563eb;
    border: 2px solid #bfdbfe;
}
.cmodal-overlay[data-variant="info"] .cmodal-btn--ok {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59,130,246,0.35);
}
.cmodal-overlay[data-variant="info"] .cmodal-btn--ok:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Fallback default jika variant tidak di-set */
.cmodal-overlay:not([data-variant]) .cmodal-icon,
.cmodal-overlay[data-variant=""] .cmodal-icon {
    background: #fffbeb;
    color: #d97706;
    border: 2px solid #fde68a;
}

/* ── Text ── */
.cmodal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}
.cmodal-message {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ── Buttons ── */
.cmodal-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}
.cmodal-btn {
    flex: 1;
    padding: 11px 18px;
    border-radius: 10px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    letter-spacing: 0.01em;
}
.cmodal-btn--cancel {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}
.cmodal-btn--cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.cmodal-btn--ok {
    transition: all 0.18s ease, transform 0.12s ease;
}
.cmodal-btn--ok:hover {
    transform: translateY(-1px);
}
.cmodal-btn--ok:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .cmodal-box {
        padding: 28px 20px 22px;
        border-radius: 16px;
    }
    .cmodal-actions {
        flex-direction: column-reverse;
    }
}

/* ── Simplified Quick Login Popup Modal ── */
.ql-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.2s ease;
}
.ql-modal-card {
    position: relative;
    width: 100%;
    max-width: 370px;
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 22px 22px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: scale(0.96) translateY(8px);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    box-sizing: border-box;
}
.ql-modal-overlay.open .ql-modal-card {
    transform: scale(1) translateY(0);
}
.ql-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}
.ql-modal-close svg {
    width: 16px;
    height: 16px;
}
.ql-modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}
.ql-modal-header {
    text-align: center;
    margin-bottom: 18px;
}
.ql-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.ql-modal-icon svg {
    width: 22px;
    height: 22px;
}
.ql-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.ql-modal-desc {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}
.ql-modal-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
    margin-bottom: 14px;
    line-height: 1.4;
    text-align: left;
}
.ql-modal-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    text-align: left;
}
.ql-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ql-label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin: 0;
}
.ql-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.ql-input-icon {
    position: absolute;
    left: 12px;
    width: 17px;
    height: 17px;
    color: #94a3b8;
    pointer-events: none;
}
.ql-input {
    width: 100%;
    height: 40px;
    padding: 0 38px 0 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ql-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ql-input::placeholder {
    color: #94a3b8;
}
.ql-toggle-pw {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.ql-toggle-pw:hover {
    color: #475569;
}
.ql-toggle-pw svg {
    width: 17px;
    height: 17px;
}
.ql-submit-btn {
    width: 100%;
    height: 42px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
    margin-top: 4px;
}
.ql-submit-btn:hover {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}
.ql-submit-btn:active {
    transform: translateY(0);
}
.ql-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
@media (max-width: 480px) {
    .ql-modal-card {
        padding: 22px 16px 18px;
        border-radius: 16px;
    }
}

/* ── Global Floating Toast Notifications ── */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-notification {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
    font-size: 13.5px;
    color: #1e293b;
    line-height: 1.4;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-width: 360px;
}
.toast-notification.toast-fade-out {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
}
.toast-notification.toast-success {
    border-left: 4px solid #10b981;
}
.toast-notification.toast-success .toast-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.toast-notification.toast-error {
    border-left: 4px solid #ef4444;
}
.toast-notification.toast-error .toast-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@media (max-width: 480px) {
    .toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
    }
    .toast-notification {
        max-width: 100%;
    }
}

/* ── Minimalist Table Action Buttons ── */
.tbl-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tbl-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    line-height: 1;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tbl-action-btn svg {
    width: 15px;
    height: 15px;
    stroke-width: 2;
    transition: transform 0.18s ease;
}

.tbl-action-btn:hover {
    background: #f8fafc;
    color: #0284c7;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}

.tbl-action-btn:hover svg {
    transform: scale(1.08);
}

.tbl-action-btn.tbl-action-danger {
    color: #ef4444;
    border-color: #fee2e2;
    background: #ffffff;
}

.tbl-action-btn.tbl-action-danger:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(220, 38, 38, 0.12);
}

.tbl-action-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ── Sleek Minimalist Table Action Icon Buttons ── */
.table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    padding: 0;
    line-height: 1;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-action svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
    transition: transform 0.18s ease;
}

.btn-action:hover svg {
    transform: scale(1.12);
}

.btn-action-view {
    background: #ffffff;
    color: #2563eb;
    border-color: #dbeafe;
}

.btn-action-view:hover {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.btn-action-edit {
    background: #ffffff;
    color: #d97706;
    border-color: #fde68a;
}

.btn-action-edit:hover {
    background: #fffbeb;
    color: #b45309;
    border-color: #fcd34d;
    box-shadow: 0 3px 6px rgba(217, 119, 6, 0.14);
    transform: translateY(-1px);
}

.btn-action-cancel {
    background: #ffffff;
    color: #ef4444;
    border-color: #fee2e2;
}

.btn-action-cancel:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
    box-shadow: 0 3px 6px rgba(220, 38, 38, 0.14);
    transform: translateY(-1px);
}

.btn-action:active {
    transform: translateY(0);
    box-shadow: none;
}


