@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --navy:#092e61;
    --blue:#1769c2;
    --blue2:#2f8ce8;
    --red:#ed1c2e;
    --green:#078b5b;
    --gold:#f4b72c;
    --ink:#142b4d;
    --muted:#71839b;
    --line:#e4edf7;
    --bg:#f3f8fe;
    --white:#fff;
    --shadow:0 12px 35px rgba(16,55,100,.08)
}

* {
    box-sizing:border-box
}

html {
    scroll-behavior:smooth
}

body {
    margin:0;
    background:var(--bg);
    font-family:Inter,"Segoe UI",Arial,sans-serif;
    color:var(--ink);
    font-size:14px;
    line-height:1.5
}

a {
    color:inherit
}

.topbar {
    height:78px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px clamp(16px,3vw,38px) 12px 24px;
    background:rgba(255,255,255,.97);
    border-bottom:1px solid var(--line);
    gap:16px;
    position:sticky;
    top:0;
    z-index:40;
    box-shadow:0 4px 18px rgba(12,48,86,.035)
}

.brand {
    display:flex;
    align-items:center;
    gap:11px;
    color:var(--navy);
    text-decoration:none;
    min-width:0
}

.brand-mark {
    width: 40px;
    height: 44px;
    min-width: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.brand-logo-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 40px;
    max-height: 44px;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.brand-copy b {
    font-size:21px;
    letter-spacing:-.7px;
    white-space:nowrap
}

.brand-copy em {
    font-style:normal;
    color:var(--red)
}

.brand-copy small {
    display:block;
    color:var(--muted);
    font-size:10px;
    margin-top:1px
}

.top-actions {
    display:flex;
    align-items:center;
    gap:16px
}

.icon-button {
    border:0;
    width:40px;
    height:40px;
    border-radius:13px;
    background:#edf5ff;
    color:var(--navy);
    font-size:17px;
    cursor:pointer;
    position:relative
}

.notification:after {
    content:"";
    position:absolute;
    width:7px;
    height:7px;
    background:var(--red);
    border:2px solid white;
    border-radius:50%;
    right:8px;
    top:7px
}

.user-chip {
    display:flex;
    align-items:center;
    gap:9px
}

.avatar-initial {
    width:39px;
    height:39px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:linear-gradient(145deg,var(--blue),var(--navy));
    color:#fff;
    font-size:15px;
    font-weight:800
}

.user-meta b,.user-meta small {
    display:block
}

.user-meta b {
    font-size:12px
}

.user-meta small {
    font-size:10px;
    color:var(--muted)
}

.logout {
    display:inline-flex;
    align-items:center;
    gap:7px;
    text-decoration:none;
    color:#b52835;
    font-size:12px;
    font-weight:700;
    padding:9px 12px;
    border-radius:10px;
    background:#fff1f2
}

.sidebar {
    position:fixed;
    z-index:30;
    left:0;
    top:78px;
    bottom:0;
    width:230px;
    padding:24px 14px 16px;
    background:linear-gradient(180deg,#092e61,#0b416c 68%,#075c58);
    color:#fff;
    overflow:auto;
    display:flex;
    flex-direction:column;
    gap:5px
}

.sidebar-label {
    font-size:10px;
    letter-spacing:1.5px;
    color:#b9d7f6;
    font-weight:800;
    padding:0 13px 10px
}

.side-link {
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 13px;
    border-radius:12px;
    color:#e5f1ff;
    text-decoration:none;
    font-size:12px;
    font-weight:600;
    transition:.18s
}

.side-link i {
    font-size:17px;
    width:21px;
    text-align:center
}

.side-link:hover,.side-link.active {
    background:linear-gradient(100deg,var(--red),#cf1426);
    color:#fff;
    box-shadow:0 7px 16px #0002
}

.sidebar-foot {
    margin-top:auto;
    padding:18px 10px 8px;
    border-top:1px solid #ffffff26;
    display:grid;
    justify-items:center;
    text-align:center;
    gap:4px
}

.sidebar-emblem {
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    border:2px solid #f5c65d;
    color:#f5c65d;
    border-radius:50%;
    font-weight:900;
    font-size:20px
}

.sidebar-foot b {
    font-size:10px;
    letter-spacing:1px
}

.sidebar-foot small {
    font-size:9px;
    color:#b9d7f6
}

.container {
    max-width:1500px;
    margin:0 auto;
    padding:30px clamp(18px,3vw,42px);
    min-height:calc(100vh - 150px)
}

.with-shell {
    margin-left:230px
}

.guest-shell {
    max-width:1200px
}

.mobile-nav {
    display:none
}

.page-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:22px
}

.page-heading h1 {
    font-size:clamp(24px,2.4vw,33px);
    margin:3px 0 6px;
    letter-spacing:-.9px;
    line-height:1.2;
    color:var(--navy)
}

.page-heading p {
    margin:0
}

.eyebrow {
    font-size:10px;
    letter-spacing:1.7px;
    color:var(--red);
    font-weight:900;
    margin:0 0 5px;
    text-transform:uppercase
}

.muted,small {
    color:var(--muted)
}

.stats {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:15px;
    margin-bottom:20px
}

.stat {
    padding:19px 20px;
    border-radius:18px;
    background:white;
    border:1px solid var(--line);
    box-shadow:var(--shadow);
    position:relative;
    overflow:hidden;
    min-width:0
}

.stat:before {
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:4px;
    background:var(--blue)
}

.stat.green:before {
    background:var(--green)
}

.stat.yellow:before {
    background:var(--gold)
}

.stat.red:before {
    background:var(--red)
}

.stat span,.stat small {
    display:block;
    color:var(--muted);
    font-size:12px
}

.stat strong {
    display:block;
    font-size:clamp(27px,3vw,36px);
    line-height:1.15;
    margin:10px 0 5px;
    color:var(--navy);
    overflow-wrap:anywhere
}

.stat .small-strong {
    font-size:18px
}

.panel {
    background:white;
    border:1px solid var(--line);
    border-radius:20px;
    padding:22px;
    margin-bottom:18px;
    box-shadow:var(--shadow);
    min-width:0
}

.panel h2 {
    font-size:17px;
    margin:0 0 14px;
    color:var(--navy)
}

.panel-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px
}

.panel-head a {
    color:var(--blue);
    text-decoration:none;
    font-weight:700
}

.table-wrap {
    width:100%;
    overflow:auto;
    border-radius:12px
}

table {
    width:100%;
    border-collapse:collapse;
    min-width:680px
}

th,td {
    text-align:left;
    padding:13px 14px;
    border-bottom:1px solid var(--line);
    vertical-align:top
}

th {
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.6px;
    color:#657b97;
    background:#f4f8fe;
    white-space:nowrap
}

td {
    font-size:12px
}

tr:last-child td {
    border-bottom:0
}

.block {
    display:block;
    margin-top:4px
}

.status {
    display:inline-block;
    background:#fff4d5;
    color:#875b00;
    padding:5px 10px;
    border-radius:20px;
    font-size:10px;
    font-weight:800;
    white-space:nowrap
}

.btn {
    display:inline-flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    padding:11px 16px;
    border:0;
    border-radius:11px;
    text-decoration:none;
    font-weight:800;
    cursor:pointer;
    font-size:12px;
    transition:transform .15s,box-shadow .15s
}

.btn:hover {
    transform:translateY(-1px);
    box-shadow:0 7px 16px #102f5015
}

.primary {
    background:linear-gradient(110deg,var(--red),#d80e24);
    color:#fff
}

.light {
    background:#edf5ff;
    color:var(--navy)
}

.danger-btn {
    background:#fff0f1;
    color:#b51f2c
}

.full {
    width:100%;
    margin-top:18px
}

.alert {
    padding:13px 15px;
    border-radius:12px;
    margin:12px 0;
    background:#e9f8f0;
    color:#126b42;
    font-size:12px;
    border:1px solid #d0efdf
}

.alert.danger {
    background:#fff0f1;
    color:#b51f2c;
    border-color:#ffd9dc
}

.alert.warning {
    background:#fff8e7;
    color:#7a5700;
    border-color:#f6e4b5
}

.searchbar,.year-filter {
    display:flex;
    gap:10px;
    align-items:center;
    margin-bottom:16px
}

.searchbar input {
    max-width:460px
}

.form-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px
}

.span-2 {
    grid-column:span 2
}

label {
    display:block;
    font-weight:800;
    font-size:11px;
    margin:12px 0 7px;
    color:#314c6e
}

input,select,textarea {
    width:100%;
    padding:12px 13px;
    border:1px solid #d7e3f1;
    border-radius:11px;
    background:#fbfdff;
    font:inherit;
    color:var(--ink);
    outline:none;
    transition:.15s
}

input:focus,select:focus,textarea:focus {
    border-color:var(--blue);
    box-shadow:0 0 0 3px #1268c41c;
    background:white
}

.narrow {
    max-width:720px;
    margin:0 auto
}

.mini-form {
    min-width:230px;
    padding:10px
}

.login-wrap {
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:28px;
    align-items:stretch;
    max-width:1050px;
    margin:40px auto
}

.login-art {
    background:linear-gradient(145deg,#092e61 0%,#08745f 100%);
    border-radius:26px;
    padding:clamp(26px,5vw,56px);
    color:#fff;
    min-height:430px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    position:relative;
    overflow:hidden
}

.login-art:before {
    content:"";
    position:absolute;
    inset:auto -5% -18% 35%;
    height:280px;
    border:1px solid #ffffff26;
    border-radius:50%;
    box-shadow:0 0 0 28px #ffffff08,0 0 0 58px #ffffff07,0 0 0 90px #ffffff05
}



.big-logo {
    font-size:clamp(32px,4vw,50px);
    font-weight:900;
    letter-spacing:-2px
}

.big-logo span {
    color:#f8c74e
}

.login-art h1 {
    font-size:32px;
    max-width:400px;
    margin:32px 0 8px
}

.login-art p {
    line-height:1.7;
    color:#d4e9f5;
    max-width:400px
}

.pill {
    display:inline-block;
    border:1px solid #ffffff44;
    border-radius:50px;
    padding:9px 13px;
    margin-top:18px;
    font-size:11px;
    align-self:flex-start
}

.login-card {
    background:#fff;
    border:1px solid var(--line);
    border-radius:24px;
    padding:clamp(24px,4vw,42px);
    box-shadow:0 20px 60px #12385b10;
    align-self:center
}

.login-card h2 {
    font-size:28px;
    margin:0;
    color:var(--navy)
}

.login-card label {
    margin-top:20px
}

.login-card small {
    display:block;
    line-height:1.6;
    margin-top:14px
}

.quick-links {
    display:flex;
    gap:10px;
    flex-wrap:wrap
}

details summary {
    cursor:pointer;
    color:var(--blue);
    font-weight:800
}

.footer {
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-left:230px;
    padding:18px 34px 24px;
    color:var(--muted);
    font-size:10px;
    border-top:1px solid var(--line);
    background:#fff
}

.guest-shell~.footer {
    margin-left:0
}

.role-pegawai .container {
    max-width:1180px
}

.hero-user {
    background:linear-gradient(105deg,rgba(7,42,91,.92),rgba(11,87,118,.68)),linear-gradient(25deg,#168ac0,#ccecff);
    border-radius:24px;
    padding:28px;
    color:white;
    position:relative;
    overflow:hidden;
    margin-bottom:20px;
    min-height:210px;
    display:flex;
    align-items:center
}

.hero-user:after {
    content:"";
    position:absolute;
    right:-35px;
    bottom:-130px;
    width:330px;
    height:330px;
    border:1px solid #ffffff55;
    border-radius:50%;
    box-shadow:0 0 0 25px #ffffff0d,0 0 0 55px #ffffff0a
}

.hero-user .hero-content {
    position:relative;
    z-index:1;
    max-width:680px
}

.hero-user .eyebrow {
    color:#ffe18a
}

.hero-user h1 {
    font-size:clamp(27px,4vw,42px);
    margin:7px 0;
    color:white;
    letter-spacing:-1.2px
}

.hero-user p {
    margin:0;
    color:#e4f3ff
}

.hero-user .hero-tag {
    display:inline-flex;
    margin-top:18px;
    padding:7px 11px;
    border-radius:999px;
    background:#ffffff20;
    border:1px solid #ffffff38;
    font-size:10px
}

.balance-panel {
    scroll-margin-top:95px
}

.balance-cards {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px
}

.balance-tile {
    padding:16px;
    border-radius:16px;
    background:#f1f7ff;
    border:1px solid #e3eefb;
    min-width:0
}

.balance-tile:nth-child(1) {
    background:#e8fbf2
}

.balance-tile:nth-child(2) {
    background:#eaf4ff
}

.balance-tile:nth-child(3) {
    background:#fff7df
}

.balance-tile:nth-child(4) {
    background:#f4edff
}

.tile-icon {
    width:37px;
    height:37px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:#fff;
    color:var(--blue);
    font-size:18px;
    margin-bottom:12px
}

.balance-tile:nth-child(1) .tile-icon {
    color:var(--green)
}

.balance-tile:nth-child(3) .tile-icon {
    color:#c88a00
}

.balance-tile:nth-child(4) .tile-icon {
    color:#7b4ad2
}

.balance-tile strong {
    display:block;
    font-size:27px;
    color:var(--navy);
    line-height:1.1
}

.balance-tile span {
    display:block;
    color:#637892;
    font-size:10px;
    margin-top:5px
}

.request-cta {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:20px
}

.request-cta h2 {
    margin:0
}

.recent-list {
    display:grid;
    gap:10px
}

.recent-item {
    display:flex;
    align-items:center;
    gap:12px;
    border:1px solid var(--line);
    border-radius:14px;
    padding:13px;
    background:#fff
}

.recent-icon {
    width:39px;
    height:39px;
    flex:0 0 39px;
    border-radius:12px;
    background:#eaf4ff;
    color:var(--blue);
    display:grid;
    place-items:center;
    font-size:17px
}

.recent-copy {
    min-width:0;
    flex:1
}

.recent-copy b {
    display:block;
    font-size:12px
}

.recent-copy small {
    display:block;
    font-size:10px;
    margin-top:3px
}

.chart-placeholder {
    min-height:150px;
    border-radius:15px;
    background:linear-gradient(180deg,#f4f9ff,#fff);
    border:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    color:var(--muted);
    text-align:center
}

.footer {
    line-height:1.5
}

@media(max-width:1050px) {

    .sidebar {
        width:205px
    }

    .with-shell {
        margin-left:205px
    }

    .footer {
        margin-left:205px
    }

    .stats {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }

    .balance-cards {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }

    .user-meta {
        display:none
    }
}

@media(max-width:760px) {

    .topbar {
        height:67px;
        padding:10px 14px;
        position:sticky
    }

    .brand-mark {
        width:36px;
        height:40px;
        min-width:36px;
        flex-basis:36px
    }

    .brand-copy b {
        font-size:17px
    }

    .brand-copy small {
        font-size:9px
    }

    .top-actions {
        gap:8px
    }

    .user-chip {
        display:none
    }

    .logout {
        padding:9px 10px
    }

    .logout span {
        display:none
    }

    .sidebar {
        display:none
    }

    .with-shell {
        margin-left:0
    }

    .container {
        padding:18px 14px 100px;
        min-height:calc(100vh - 120px)
    }

    .footer {
        margin-left:0;
        padding:14px 14px 95px;
        display:block;
        text-align:center
    }

    .footer span {
        display:block
    }

    .mobile-nav {
        display:flex;
        position:fixed;
        z-index:50;
        left:10px;
        right:10px;
        bottom:9px;
        min-height:65px;
        padding:7px 5px calc(7px + env(safe-area-inset-bottom));
        background:rgba(255,255,255,.97);
        backdrop-filter:blur(16px);
        border:1px solid #e2ebf6;
        border-radius:19px;
        box-shadow:0 10px 35px #092e6125;
        justify-content:space-around
    }

    .mobile-nav-link {
        display:flex;
        flex:1;
        min-width:0;
        align-items:center;
        justify-content:center;
        flex-direction:column;
        gap:3px;
        text-decoration:none;
        color:#6e83a0;
        font-size:9px;
        font-weight:700;
        border-radius:12px
    }

    .mobile-nav-link i {
        font-size:19px;
        line-height:1
    }

    .mobile-nav-link.active {
        color:var(--red);
        background:#fff1f2
    }

    .page-heading {
        align-items:flex-start;
        flex-direction:column;
        margin-bottom:17px
    }

    .page-heading h1 {
        font-size:26px
    }

    .stats {
        gap:10px
    }

    .stat {
        padding:15px;
        border-radius:15px
    }

    .stat strong {
        font-size:27px
    }

    .panel {
        padding:16px;
        border-radius:17px;
        margin-bottom:14px
    }

    .panel h2 {
        font-size:15px
    }

    .table-wrap {
        margin-right:-2px
    }

    table {
        min-width:620px
    }

    .searchbar {
        flex-wrap:wrap
    }

    .searchbar input {
        max-width:none;
        flex:1 1 100%
    }

    .searchbar button,.searchbar a {
        flex:1
    }

    .form-grid {
        grid-template-columns:1fr;
        gap:8px
    }

    .span-2 {
        grid-column:auto
    }

    .login-wrap {
        grid-template-columns:1fr;
        margin:16px auto;
        gap:15px
    }

    .login-art {
        min-height:230px;
        padding:24px;
        border-radius:20px
    }

    .login-art h1 {
        font-size:25px;
        margin:17px 0 7px
    }

    .big-logo {
        font-size:32px
    }

    .login-card {
        padding:22px;
        border-radius:20px
    }

    .hero-user {
        padding:23px 20px;
        min-height:200px;
        border-radius:20px;
        margin-bottom:14px
    }

    .hero-user h1 {
        font-size:30px
    }

    .request-cta {
        align-items:flex-start;
        flex-direction:column
    }

    .balance-cards {
        gap:8px
    }

    .balance-tile {
        padding:12px;
        border-radius:14px
    }

    .balance-tile strong {
        font-size:25px
    }

    .tile-icon {
        width:33px;
        height:33px;
        margin-bottom:9px
    }

    .panel-head {
        align-items:flex-start;
        flex-direction:column
    }

    .year-filter {
        align-items:flex-start;
        flex-direction:column
    }

    .year-filter select {
        max-width:none
    }
}

@media(max-width:390px) {

    .brand-copy b {
        font-size:15px
    }

    .brand-copy small {
        font-size:8px
    }

    .brand {
        gap:7px
    }

    .brand-mark {
        width:32px;
        height:36px;
        min-width:32px;
        flex-basis:32px
    }

    .icon-button {
        width:34px;
        height:34px
    }

    .stats {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }

    .balance-tile span {
        font-size:9px
    }

    .mobile-nav-link {
        font-size:8px
    }
}

@media print {

    .topbar,.sidebar,.mobile-nav,.btn,.searchbar,.footer,.no-print {
        display:none!important
    }

    body {
        background:white
    }

    .container,.with-shell {
        max-width:none;
        margin:0;
        padding:0
    }

    .panel {
        box-shadow:none;
        border:0;
        padding:0
    }

    .table-wrap {
        overflow:visible
    }

    table {
        min-width:0
    }

    th,td {
        font-size:10px;
        padding:6px
    }
}
