:root {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    color: #192b45;
    background: #edf3f9;
    font-size: 15px;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 250px;
    background: linear-gradient(160deg, #1a2a40, #111c2c);
    color: #d3e0f1;
    flex: none;
    padding: 26px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.brand { font-size: 21px; color: white; font-weight: 800; padding: 0 12px; }
.brand span { color: #76b7ff; }
.nav { display: grid; gap: 5px; }
.nav a { padding: 13px 15px; border-radius: 9px; font-weight: 600; font-size: 14px; }
.nav a:hover, .nav a.active { background: #315889; color: #fff; }
.sidebarfoot { margin-top: auto; padding: 12px; background: #20334c; border-radius: 14px; font-size: 13px; }
.main { padding: 30px; max-width: 1650px; flex: 1; min-width: 0; }

.top { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 25px; }
.top h1 { font-size: 29px; margin: 0 0 5px; letter-spacing: -.7px; }
.muted { color: #71829b; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.control, input, select, textarea {
    border: 1px solid #d9e4ef;
    border-radius: 9px;
    background: #fff;
    padding: 11px;
    color: #203451;
    min-width: 0;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border: 0;
    border-radius: 9px;
    background: #246de0;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}
.btn.secondary { background: #e8f0fb; color: #2869c4; }
.btn.danger { background: #fff1f1; color: #cc3e44; }
.btn:hover { filter: brightness(.96); }
.btn-upload { margin-top: 12px; }
.link-primary { color: #246de0; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card, .panel {
    background: white;
    border: 1px solid #e5edf6;
    border-radius: 15px;
    box-shadow: 0 6px 24px rgba(35, 65, 102, .04);
}
.card { padding: 19px; display: flex; align-items: center; gap: 15px; }
.icon { font-size: 25px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 13px; flex: none; }
.fuel-bg { background: #ffe9eb; }
.charge-bg { background: #ddf8e9; }
.vignette-bg { background: #e5f1ff; }
.sum-bg { background: #e2f0ff; }
.label { font-size: 13px; color: #63758f; }
.value { font-size: 24px; color: #122b56; font-weight: 800; margin-top: 5px; white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 16px; margin-top: 16px; }
.panel { padding: 20px; min-width: 0; }
.panel h2 { font-size: 18px; margin: 0 0 18px; }

/* The chart keeps the original appearance, using SVG geometry instead of inline CSS. */
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #687b92; }
.dot { width: 10px; height: 10px; display: inline-block; border-radius: 50%; margin-right: 5px; }
.dot-fuel, .chart-segment-fuel { background: #3986ed; fill: #3986ed; }
.dot-charge, .chart-segment-charge { background: #30b67d; fill: #30b67d; }
.dot-vignette, .chart-segment-vignette { background: #ffaa4e; fill: #ffaa4e; }
.dot-other, .chart-segment-other { background: #a1a9bd; fill: #a1a9bd; }
.chart { height: 240px; display: flex; align-items: flex-end; gap: 9px; padding: 15px 0 25px; border-bottom: 1px solid #dbe5f0; }
.barwrap { flex: 1; min-width: 0; text-align: center; position: relative; height: 100%; }
.chart-bar { width: 100%; height: 100%; display: block; overflow: hidden; }
.monthlabel { font-size: 11px; position: absolute; bottom: -23px; left: 0; right: 0; color: #71829b; }

.donut { width: 200px; height: 200px; margin: 20px auto; position: relative; display: grid; place-items: center; }
.donut-ring { position: absolute; inset: 0; display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-ring circle { fill: none; stroke-width: 39px; }
.donut-track { stroke: #a1a9bd; }
.donut-segment-fuel { stroke: #3986ed; }
.donut-segment-charge { stroke: #30b67d; }
.donut-segment-vignette { stroke: #ffaa4e; }
.donut-segment-other { stroke: #a1a9bd; }
.hole {
    position: relative;
    z-index: 1;
    background: white;
    width: 122px;
    height: 122px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 800;
    color: #203451;
}

.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #ecf1f6; }
.row:last-child { border: 0; }
.small { font-size: 12px; }
.statbig { font-size: 25px; font-weight: 800; color: #183c72; }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 13px; }
.field.full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.tablewrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; background: #f1f6fb; color: #4c6483; }
th, td { padding: 11px; border-bottom: 1px solid #e8eef5; white-space: nowrap; }
.notice { padding: 12px 15px; border-radius: 9px; background: #e2f7e9; color: #126b3a; margin-bottom: 17px; }
.notice.error { background: #ffedef; color: #a52b37; }
.empty { padding: 45px 20px; text-align: center; color: #7d8ca1; }
.tag { font-size: 12px; background: #e8f1fc; color: #366aa8; padding: 5px 8px; border-radius: 6px; }

/* HOME | Login only. The authenticated Vehicles screens retain their own styles. */
.home-login-page {
    min-height: 100vh;
    min-height: 100svh;
    color: #fff;
    background: #0a121d;
}

.home-login-scene {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: #141a21;
}

/* A photo-only crop of the approved visual: never bake functional controls into images. */
.home-login-scene::before {
    position: absolute;
    z-index: -3;
    inset: -34px;
    background: url('?page=login_media&name=home-villa&v=20261019-1') 28% center / cover no-repeat;
    filter: blur(35px) brightness(.65) saturate(.9);
    content: '';
    pointer-events: none;
}

.home-login-photo {
    position: absolute;
    z-index: -2;
    inset: 0 0 0 20%;
    display: block;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 19%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 19%);
    pointer-events: none;
}
.home-login-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Edge fades out naturally: no stroke, polygon clip, or second panel. */
.home-login-glass {
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 0;
    width: 44%;
    background: linear-gradient(90deg, rgb(7 12 19 / 46%), rgb(12 19 28 / 39%) 55%, rgb(12 19 28 / 16%) 83%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(112%);
    backdrop-filter: blur(18px) saturate(112%);
    -webkit-mask-image: linear-gradient(90deg, #000 0 70%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0 70%, transparent 100%);
    pointer-events: none;
}

.home-login-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    min-height: 100vh;
    min-height: 100svh;
    width: min(438px, calc(42vw - 28px));
    margin-left: max(24px, calc((43vw - min(438px, 42vw - 28px)) / 2));
    padding: 32px 0 28px;
}
.home-login-content {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 14px 0;
}

.home-login-brand { margin: 0; }
.home-login-brandrow { display: flex; align-items: center; justify-content: center; gap: 13px; }
.home-login-mark { flex: none; width: 60px; height: 60px; }
.home-login-window { fill: #328cfc; }
.home-login-chimney { stroke: #328cfc; }
.home-login-wordmark {
    margin: 0;
    font-size: clamp(46px, 3.9vw, 62px);
    font-weight: 760;
    letter-spacing: -2.1px;
    line-height: 1;
}
.home-login-wordmark span { color: #338eff; }
.home-login-tagline {
    margin: 5px 0 0 1px;
    color: #d9e5f3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3.9px;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
}

.home-login-welcome { margin: clamp(30px, 5.6vh, 52px) 0 26px; text-align: center; }
.home-login-welcome h1 {
    margin: 0 0 13px;
    font-size: clamp(33px, 3vw, 44px);
    font-weight: 790;
    line-height: 1.13;
    letter-spacing: -1.3px;
}
.home-login-welcome h1 span { color: #378fff; }
.home-login-welcome p { margin: 0; font-size: 15px; line-height: 1.55; color: #f2f5fa; }

.home-login-form { width: 100%; margin: 0; }
.home-login-error { margin: 0 0 15px; border: 1px solid rgb(245 133 147 / 50%); background: rgb(107 26 42 / 86%); color: #fff; }
.home-login-error[hidden] { display: none; }
.home-login-field { margin-bottom: 13px; }
.home-login-input-wrap { position: relative; }
.home-login-input-wrap > svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 20px;
    height: 20px;
    color: #edf4ff;
    transform: translateY(-50%);
    pointer-events: none;
}
.home-login-input-wrap input {
    display: block;
    width: 100%;
    height: 55px;
    padding: 14px 49px 12px 47px;
    border: 1px solid rgb(218 229 243 / 44%);
    border-radius: 11px;
    background: rgb(9 17 29 / 55%);
    box-shadow: inset 0 1px 5px rgb(0 0 0 / 13%);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.home-login-floating-label {
    position: absolute;
    top: 50%;
    left: 47px;
    max-width: calc(100% - 95px);
    color: #d4dfed;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    transform: translateY(-50%);
    cursor: text;
    transition: top .2s ease, left .2s ease, color .2s ease, font-size .2s ease, transform .2s ease;
}
.home-login-input-wrap:focus-within .home-login-floating-label,
.home-login-input-wrap.has-value .home-login-floating-label,
.home-login-input-wrap input:not(:placeholder-shown) + .home-login-floating-label {
    top: 0;
    left: 14px;
    max-width: calc(100% - 30px);
    padding: 2px 7px;
    border-radius: 4px;
    background: #16212e;
    color: #d7e8fb;
    font-size: 11px;
}
.home-login-input-wrap:focus-within .home-login-floating-label { color: #a9d0ff; }
.home-login-input-wrap input:focus { border-color: #8bbaff; box-shadow: 0 0 0 3px rgb(54 143 255 / 22%); }
.home-login-input-wrap input:-webkit-autofill,
.home-login-input-wrap input:-webkit-autofill:hover,
.home-login-input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 0 100px #182638 inset;
    animation: home-login-autofill-detected 1ms;
}
@keyframes home-login-autofill-detected {
    from { opacity: .999; }
    to { opacity: 1; }
}
.home-login-password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #eaf3ff;
    transform: translateY(-50%);
}
.home-login-password-toggle svg { width: 21px; height: 21px; }
.home-login-eye-crossed,
.home-login-password-toggle[aria-pressed="true"] .home-login-eye-open { display: none; }
.home-login-password-toggle[aria-pressed="true"] .home-login-eye-crossed { display: block; }

.home-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 0;
    font-size: 12px;
    color: #f5f8fd;
}
.home-login-remember { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; cursor: pointer; }
.home-login-remember input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1px solid rgb(202 221 242 / 66%);
    border-radius: 4px;
    appearance: none;
    background: rgb(8 18 30 / 50%);
    cursor: pointer;
}
.home-login-remember input:checked { border-color: #3389fd; background: #3389fd; }
.home-login-remember input:checked::after {
    display: block;
    width: 6px;
    height: 10px;
    margin: 1px 0 0 5px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    content: '';
}
.home-login-recovery { position: relative; min-width: 0; }
.home-login-recovery-toggle {
    padding: 5px 0;
    border: 0;
    background: none;
    color: #7abcff;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.home-login-recovery-panel {
    position: absolute;
    z-index: 3;
    top: calc(100% + 10px);
    right: 0;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: min(280px, 78vw);
    padding: 12px 10px 12px 14px;
    border: 1px solid rgb(185 207 234 / 46%);
    border-radius: 11px;
    background: rgb(14 28 44 / 95%);
    box-shadow: 0 13px 27px rgb(0 0 0 / 36%);
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
}
.home-login-recovery-panel[hidden] { display: none; }
.home-login-recovery-panel p { margin: 0; }
.home-login-recovery-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: rgb(255 255 255 / 12%);
    color: #fff;
    font-size: 21px;
    line-height: 1;
}
.home-login-password-toggle:focus-visible,
.home-login-submit:focus-visible,
.home-login-recovery-toggle:focus-visible,
.home-login-recovery-close:focus-visible,
.home-login-remember input:focus-visible {
    outline: 2px solid #94c2ff;
    outline-offset: 3px;
}

.home-login-submit.btn {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    min-height: 55px;
    margin-top: 18px;
    padding: 12px 54px;
    border-radius: 12px;
    background: linear-gradient(110deg, #318fff, #2474ec, #318fff);
    background-size: 180% 100%;
    box-shadow: 0 10px 27px rgb(24 100 218 / 32%);
    color: #fff;
    font-size: 15px;
    font-weight: 740;
    transition: transform .25s ease, background-position .4s ease, box-shadow .3s ease;
}
.home-login-submit.btn::before {
    position: absolute;
    inset: -70% auto -70% -50%;
    z-index: -1;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 25%), transparent);
    transform: skewX(-18deg);
    transition: left .65s ease;
    content: '';
    pointer-events: none;
}
.home-login-submit-arrow,
.home-login-submit-spinner { position: absolute; top: 50%; right: 18px; transform: translateY(-50%); }
.home-login-submit-arrow { font-size: 24px; line-height: 1; transition: transform .25s ease; }
.home-login-submit-spinner { display: none; }
.home-login-submit-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgb(255 255 255 / 35%);
    border-top-color: #fff;
    border-radius: 50%;
    animation: home-login-spin .7s linear infinite;
}
.home-login-submit.btn.is-loading .home-login-submit-arrow { display: none; }
.home-login-submit.btn.is-loading .home-login-submit-spinner { display: block; }
@keyframes home-login-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Verified sign-in feedback: centered in the full viewport, not inside the form. */
.home-login-success-screen {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgb(5 13 23 / 46%);
    -webkit-backdrop-filter: blur(10px) saturate(112%);
    backdrop-filter: blur(10px) saturate(112%);
}
.home-login-success-card {
    width: min(430px, 100%);
    padding: clamp(29px, 5vw, 44px) 26px 30px;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 24px;
    background: linear-gradient(145deg, rgb(17 41 57 / 85%), rgb(9 21 33 / 87%));
    box-shadow: 0 24px 70px rgb(0 0 0 / 35%), inset 0 1px rgb(255 255 255 / 10%);
    color: #fff;
    text-align: center;
    animation: home-login-confirm-appear .5s cubic-bezier(.2, .7, .2, 1) both;
}
.home-login-success-icon {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto 22px;
    color: #55efb6;
    filter: drop-shadow(0 0 16px rgb(72 231 171 / 30%));
}
.home-login-success-ring { stroke-dasharray: 239; stroke-dashoffset: 239; animation: home-login-confirm-stroke .7s .15s ease-out forwards; }
.home-login-success-tick { stroke-dasharray: 60; stroke-dashoffset: 60; animation: home-login-confirm-stroke .45s .65s ease-out forwards; }
.home-login-success-eyebrow {
    margin: 0 0 10px;
    color: #9fd4df;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.home-login-success-card h1 {
    margin: 0;
    font-size: clamp(26px, 4.6vw, 32px);
    font-weight: 800;
    line-height: 1.2;
}
.home-login-success-subtitle { margin: 14px 0 0; color: #d3e5eb; font-size: 14px; line-height: 1.55; }
.home-login-success-progress {
    overflow: hidden;
    height: 4px;
    margin: 26px auto 20px;
    border-radius: 100px;
    background: rgb(255 255 255 / 14%);
}
.home-login-success-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #17b98f, #80ffd0);
    transform: scaleX(0);
    transform-origin: left;
    animation: home-login-confirm-progress 3.6s linear forwards;
}
.home-login-success-link { color: #a7d9ff; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.home-login-success-link:focus-visible { outline: 2px solid #a7d9ff; outline-offset: 4px; border-radius: 3px; }
@keyframes home-login-confirm-appear {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes home-login-confirm-stroke { to { stroke-dashoffset: 0; } }
@keyframes home-login-confirm-progress { to { transform: scaleX(1); } }

.home-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 22px;
    color: #c1cfdf;
    font-size: 11px;
    white-space: nowrap;
}
.home-login-divider::before, .home-login-divider::after { flex: 1; height: 1px; background: rgb(240 247 255 / 29%); content: ''; }
.home-login-features {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.home-login-features li { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; text-align: center; color: #e5ebf4; font-size: 11px; }
.home-login-features svg { width: 28px; height: 28px; }

@media (hover: hover) and (pointer: fine) {
    .home-login-submit.btn:not(.is-loading):hover {
        background-position: 100% 0;
        box-shadow: 0 13px 35px rgb(28 112 239 / 48%);
        transform: translateY(-2px);
        filter: none;
    }
    .home-login-submit.btn:hover::before { left: 130%; }
    .home-login-submit.btn:hover .home-login-submit-arrow { transform: translate(4px, -50%); }
}

@media (max-width: 1090px) and (min-width: 761px) {
    .home-login-panel {
        width: min(375px, calc(43vw - 30px));
        margin-left: max(20px, calc((43vw - min(375px, 43vw - 30px)) / 2));
    }
    .home-login-glass { width: 69%; }
    .home-login-wordmark { font-size: 50px; }
    .home-login-mark { width: 52px; height: 52px; }
    .home-login-tagline { font-size: 9px; letter-spacing: 3px; }
}

@media (max-width: 760px) {
    .home-login-scene { min-height: 100svh; }
    .home-login-scene::before { background-position: center top; filter: blur(45px) brightness(.40); }
    .home-login-photo {
        inset: 0 0 auto;
        height: min(35svh, 280px);
        -webkit-mask-image: linear-gradient(180deg, #000 0 55%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 0 55%, transparent 100%);
    }
    .home-login-photo img { object-position: 74% 52%; }
    .home-login-page[data-login-success] .home-login-photo {
        inset: 0;
        height: 100%;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .home-login-glass {
        inset: 0;
        width: 100%;
        background: linear-gradient(180deg, rgb(7 12 19 / 15%) 0, rgb(7 12 19 / 67%) 30%, rgb(7 12 19 / 82%) 100%);
        -webkit-mask-image: none;
        mask-image: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .home-login-panel {
        width: min(430px, calc(100% - 40px));
        min-height: 100svh;
        margin: 0 auto;
        padding: clamp(40px, 12svh, 120px) 0 32px;
        justify-content: center;
    }
    .home-login-content { padding: 0; }
    .home-login-welcome { margin: 29px 0 24px; }
    .home-login-divider { margin-top: 29px; }
}

@media (max-width: 365px) {
    .home-login-panel { width: calc(100% - 30px); }
    .home-login-brandrow { gap: 9px; }
    .home-login-wordmark { font-size: 42px; }
    .home-login-mark { width: 47px; height: 47px; }
    .home-login-tagline { font-size: 8px; letter-spacing: 2.5px; }
    .home-login-welcome h1 { font-size: 32px; }
    .home-login-welcome p { font-size: 13px; }
    .home-login-options { font-size: 11px; gap: 6px; }
    .home-login-remember { gap: 5px; }
    .home-login-features li { font-size: 9px; }
    .home-login-features svg { width: 23px; height: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-login-floating-label,
    .home-login-input-wrap input,
    .home-login-submit.btn,
    .home-login-submit.btn::before,
    .home-login-submit-arrow { transition: none; }
    .home-login-submit-spinner { animation-duration: 1.5s; }
    .home-login-success-card,
    .home-login-success-ring,
    .home-login-success-tick,
    .home-login-success-progress span { animation: none; }
    .home-login-success-ring,
    .home-login-success-tick { stroke-dashoffset: 0; }
    .home-login-success-progress span { transform: none; }
}

.mobilebar { display: none; }
.help { line-height: 1.75; color: #546b88; }
.navform { margin: 0; }
.navform-spaced { margin-top: 10px; }
.navform button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.receipt { padding: 14px; border: 2px dashed #b7cde6; border-radius: 11px; background: #f7faff; }
.receipt input { width: 100%; }
.pill { display: inline-block; padding: 4px 8px; background: #e6f8f0; color: #15925c; border-radius: 7px; font-size: 12px; font-weight: 700; }

@media (max-width: 1150px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .grid3 { grid-template-columns: 1fr 1fr; }
    .grid3 .panel:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .layout { display: block; padding-bottom: 65px; }
    .sidebar { display: none; }
    .mobilebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-around;
        z-index: 9;
        background: #19283d;
        color: white;
        padding: 9px 5px calc(9px + env(safe-area-inset-bottom));
        box-shadow: 0 -2px 20px #0002;
    }
    .mobilebar a { font-size: 11px; text-align: center; padding: 5px; }
    .main { padding: 18px 13px; }
    .top { display: block; }
    .top h1 { font-size: 24px; }
    .filters { margin-top: 17px; }
    .cards { gap: 9px; }
    .card { padding: 12px; gap: 8px; }
    .icon { width: 36px; height: 36px; font-size: 20px; }
    .value { font-size: 18px; }
    .label { font-size: 11px; }
    .grid2, .grid3 { grid-template-columns: 1fr; }
    .grid3 .panel:last-child { grid-column: auto; }
    .panel { padding: 15px; }
    .chart { gap: 4px; }
    .formgrid { grid-template-columns: 1fr; }
    .donut { width: 180px; height: 180px; }
}
