:root {
    --ink: #202a25;
    --muted: #707971;
    --lime: #b5d744;
    --dark: #20352d;
    --bg: #f4f6f2;
    --line: #e5e9e1;
    --white: #ffffff;
    --danger: #a84234;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--ink);
    background: var(--bg);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
.button {
    cursor: pointer;
    transition:
        background 0.15s,
        transform 0.15s;
}

button:disabled {
    opacity: 0.55;
    cursor: wait;
}

button:hover,
.button:hover {
    filter: brightness(0.96);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #7b9925;
    outline-offset: 3px;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(27px, 3vw, 38px);
    letter-spacing: -1.4px;
    line-height: 1.12;
}

h2 {
    font-size: 21px;
    letter-spacing: -0.6px;
}

h3 {
    font-size: 17px;
}

p {
    line-height: 1.6;
}

.muted {
    color: var(--muted);
}

/* Logo */

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1.2px;
}

.brand img,
.brand img.logo-clikcar {
    display: block;
    width: 130px;
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    object-position: left center;
    flex: 0 1 130px;
}

.brand-mark {
    display: grid;
    place-items: center;
    background: var(--lime);
    color: var(--dark);
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 27px;
    transform: rotate(-6deg);
}

.brand span:last-child {
    color: #8da82e;
}

/* Estrutura */

.layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    min-height: 100dvh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    background: var(--white);
    border-right: 1px solid var(--line);
    padding: 35px 22px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar small {
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nav button {
    border: 0;
    background: transparent;
    color: #727b74;
    text-align: left;
    padding: 13px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.nav button.active {
    background: #edf3dc;
    color: #394e21;
}

.nav svg,
.tile svg {
    width: 20px;
    height: 20px;
}

.sidefoot {
    margin-top: auto;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 17px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.6;
}

.sidefoot strong {
    display: block;
    margin-bottom: 5px;
}

.sidefoot button {
    margin-top: 10px;
}

.workspace {
    min-width: 0;
    padding: 0 44px 40px;
}

/* Cabeçalho */

.topbar {
    height: 88px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    margin-bottom: 34px;
    gap: 14px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 10px;
}

.topbar .eyebrow {
    margin: 0;
}

.identity {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.avatar {
    height: 37px;
    width: 37px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e2eacb;
    font-weight: 700;
    flex-shrink: 0;
}

.identity small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

.heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.heading h1 {
    margin-bottom: 7px;
}

.heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Botões */

.button,
button.primary {
    background: var(--lime);
    border: 0;
    padding: 12px 18px;
    border-radius: 9px;
    font-weight: 700;
    color: #263922;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secondary {
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    padding: 10px 15px;
    font-weight: 600;
    color: var(--ink);
}

.textbutton {
    border: 0;
    background: none;
    color: #57731a;
    text-decoration: underline;
    padding: 7px;
}

.ghost {
    border: 0;
    background: none;
    padding: 8px;
    color: var(--muted);
}

/* Cards */

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 25px #20352d03;
}

.hero {
    background: var(--dark);
    color: var(--white);
    border: 0;
    position: relative;
    overflow: hidden;
    min-height: 235px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border: 45px solid #c2de6a0b;
    border-radius: 50%;
    right: -75px;
    top: -50px;
    pointer-events: none;
}

.hero .eyebrow {
    color: #c4d2c8;
}

.hero h2 {
    font-size: 31px;
    max-width: 400px;
    line-height: 1.18;
}

.hero p {
    color: #bbc9bf;
    font-size: 14px;
    max-width: 430px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 6px;
    background: #eff4df;
    color: #52622b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.hero .badge {
    background: #c5e27522;
    color: #d3eb96;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 23px;
}

.stat {
    font-size: 28px;
    font-weight: 750;
    margin: 9px 0;
    letter-spacing: -0.7px;
}

.card small {
    color: var(--muted);
}

.tile {
    text-align: left;
    display: block;
    width: 100%;
    color: inherit;
}

.tile .tile-icon {
    background: #f0f4e5;
    color: #658231;
    border-radius: 10px;
    padding: 11px;
    width: 43px;
    height: 43px;
    margin-bottom: 20px;
}

.tile h3 {
    margin-bottom: 5px;
}

.tile p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.cardhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.cardhead h2 {
    margin: 0;
}

/* Listagens */

.rows {
    display: flex;
    flex-direction: column;
}

.row {
    padding: 16px 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.row:first-child {
    border-top: 0;
}

.row p {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.row strong {
    font-size: 14px;
}

.row-side {
    text-align: right;
    flex-shrink: 0;
}

.row-side .badge {
    margin-top: 7px;
}

.empty {
    padding: 35px 15px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.empty svg {
    display: block;
    margin: 0 auto 14px;
    width: 32px;
    height: 32px;
    color: #9baf83;
}

/* Avisos */

.notice {
    padding: 14px 17px;
    background: #edf2e1;
    border: 1px solid #dce5c9;
    color: #596745;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.error {
    background: #fff0e9;
    border-color: #f0d6cb;
    color: #984733;
}

/* Seletor de locação */

.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toolbar label {
    margin: 0;
}

.toolbar select {
    min-width: 240px;
    max-width: 100%;
}

/* Placa */

.plate {
    display: inline-block;
    border: 1px solid #dde2d7;
    border-top: 6px solid #304f84;
    color: #26322b;
    background: var(--white);
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 24px;
    letter-spacing: 2px;
    font-weight: 800;
    margin: 12px 0;
}

/* Formulários */

.fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field label,
label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 7px;
}

input,
select {
    width: 100%;
    background: var(--white);
    border: 1px solid #dce2d7;
    color: var(--ink);
    border-radius: 9px;
    padding: 12px;
    min-height: 46px;
}

input[readonly] {
    background: #f1f3ee;
    color: var(--muted);
}

.field {
    margin-bottom: 17px;
}

/* Login */

.auth {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-story {
    background: var(--dark);
    color: var(--white);
    padding: 60px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    position: relative;
    overflow: hidden;
}

.auth-story h1 {
    font-size: clamp(40px, 5vw, 66px);
    max-width: 510px;
    letter-spacing: -3px;
    margin: 0;
}

.auth-story h1 em {
    font-style: normal;
    color: var(--lime);
}

.auth-story p {
    color: #b9c7bd;
    max-width: 410px;
}

.auth-story .brand {
    margin-bottom: 45px;
}

.auth-content {
    padding: 50px max(30px, 10%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-content h2 {
    font-size: 28px;
}

.auth-content form {
    max-width: 440px;
}

.auth-content .primary {
    width: 100%;
    margin-top: 8px;
}

.auth-content .fields {
    gap: 12px;
}

.auth-content footer {
    margin-top: 35px;
    font-size: 12px;
    color: var(--muted);
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.tabs button {
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    padding: 11px 12px;
    color: var(--muted);
}

.tabs button.active {
    color: var(--ink);
    border-color: #8ba829;
    font-weight: 700;
}

/* Carregamento e rodapé */

.loading {
    padding: 40px;
    color: var(--muted);
}

.footer {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    gap: 10px;
}

/* Documentos */

.doc-link {
    display: flex;
    padding: 14px 0;
    gap: 10px;
    color: #536d27;
    overflow-wrap: anywhere;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-grid div {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
}

.detail-grid small {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

/* Janela de detalhes */

dialog {
    width: min(760px, 94vw);
    max-height: 85dvh;
    border: 0;
    border-radius: 20px;
    padding: 30px;
    color: var(--ink);
    box-shadow: 0 30px 100px #0003;
}

dialog::backdrop {
    background: #15291e88;
    backdrop-filter: blur(3px);
}

.close {
    float: right;
    border: 0;
    background: #f2f4ef;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 23px;
}

/* Notificação */

#toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 22px;
    background: var(--dark);
    color: var(--white);
    border-radius: 10px;
    z-index: 100;
    max-width: 90vw;
    font-size: 14px;
    display: none;
}

/* Utilitários */

.mobile-brand {
    display: none;
}

.space {
    margin-top: 20px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #8faa40;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.split-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Telas grandes */

@media (min-width: 1500px) {
    .workspace {
        padding-left: 65px;
        padding-right: 65px;
        max-width: 1500px;
    }
}

/* Tablets */

@media (max-width: 1100px) {
    .layout {
        grid-template-columns: 205px 1fr;
    }

    .workspace {
        padding: 0 25px 35px;
    }

    .sidebar {
        padding: 30px 15px;
    }

    .columns {
        grid-template-columns: 1fr;
    }

    .grid {
        gap: 12px;
    }

    .card {
        padding: 20px;
    }

    .identity span {
        display: none;
    }
}

/* Celulares */

@media (max-width: 760px) {
    .layout {
        display: block;
    }

    .sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        width: 100%;
        height: auto;
        padding:
            8px
            4px
            max(8px, env(safe-area-inset-bottom));
        z-index: 20;
        border-top: 1px solid var(--line);
        border-right: 0;
        gap: 0;
    }

    .sidebar > .brand,
    .sidebar > small,
    .sidefoot {
        display: none;
    }

    .nav {
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
    }

    .nav button {
        font-size: 9px;
        flex-direction: column;
        padding: 7px 3px;
        gap: 4px;
        flex: 1;
        border-radius: 8px;
    }

    .nav button svg {
        width: 20px;
        height: 20px;
    }

    .workspace {
        padding: 0 18px 100px;
    }

    .topbar {
        height: 75px;
        margin-bottom: 27px;
    }

    .topbar > .eyebrow {
        display: none;
    }

    .mobile-brand {
        display: flex;
        min-width: 0;
    }

    .heading {
        align-items: flex-start;
    }

    .heading h1 {
        font-size: 29px;
    }

    .heading .secondary {
        font-size: 11px;
        padding: 10px;
    }

    .identity .avatar {
        height: 32px;
        width: 32px;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid > .card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .fields {
        grid-template-columns: 1fr;
    }

    .auth {
        grid-template-columns: 1fr;
    }

    .auth-story {
        padding: 30px 25px;
        gap: 15px;
    }

    .auth-story .brand {
        margin-bottom: 10px;
    }

    .auth-story h1 {
        font-size: 37px;
        letter-spacing: -1.5px;
        max-width: 450px;
    }

    .auth-story p {
        display: none;
    }

    .auth-content {
        padding: 25px;
    }

    .auth-content .fields {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        min-height: 220px;
    }

    .hero h2 {
        font-size: 27px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .toolbar select {
        width: 100%;
        min-width: 0;
    }

    .row {
        gap: 10px;
    }

    .row-side {
        max-width: 45%;
    }

    .footer {
        display: block;
    }

    .footer span {
        display: block;
        margin-top: 7px;
    }

    .cardhead h2 {
        font-size: 18px;
    }

    .stat {
        font-size: 24px;
    }

    .auth-content footer {
        margin-top: 22px;
    }
    
    
    .install-dialog {
    width: min(420px, 92vw);
    padding: 28px;
    text-align: center;
}

.install-dialog .close {
    float: none;
    position: absolute;
    top: 12px;
    right: 12px;
}

.install-logo {
    display: block;
    width: 130px;
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    margin: 10px auto 24px;
}

.install-dialog h2 {
    font-size: 25px;
    margin-bottom: 12px;
}

.install-dialog > p {
    color: var(--muted);
    font-size: 14px;
}

.install-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.install-actions button {
    width: 100%;
}

}
/* ClikCar — atualização visual do portal */
:root {
    --ink: #193b32;
    --muted: #748078;
    --lime: #c4e866;
    --dark: #153f34;
    --bg: #f3f6f3;
    --line: #e3ebe4;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}
body { background: var(--bg); }
button { letter-spacing: -.1px; }
h1 { font-weight: 750; letter-spacing: -1.35px; line-height: 1.16; }
h2 { font-weight: 700; letter-spacing: -.65px; }
.layout { grid-template-columns: 254px minmax(0, 1fr); }
.sidebar { padding: 36px 22px 24px; gap: 30px; border-right: 1px solid #e1e9e1; }
.sidebar > .brand { padding: 10px 14px; min-height: 66px; }
.brand img, .brand img.logo-clikcar { width: 130px; max-width: 100%; height: auto; max-height: 52px; object-fit: contain; flex: 0 1 130px; }
.sidebar > small { margin: 5px 14px -12px; color: #95a298; letter-spacing: 2px; font-size: 10px; }
.nav { gap: 8px; }
.nav button { padding: 14px 16px; color: #758179; border: 1px solid transparent; border-radius: 13px; font-weight: 600; transition: background .18s, color .18s; }
.nav button:hover { background: #f2f6ee; color: #244c3a; filter: none; }
.nav button.active { background: var(--dark); color: #eff8e7; box-shadow: 0 7px 15px #173b3020; }
.nav button.active svg { color: var(--lime); }
.nav svg { width: 20px; height: 20px; stroke-width: 1.65; }
.sidefoot { background: linear-gradient(150deg,#eef5e5,#f6f8f0); border: 1px solid #e1eacd; border-radius: 17px; padding: 20px 17px; color: #6c7b60; }
.sidefoot strong { color: #304d37; font-size: 14px; }
.sidefoot .secondary { background: #fff; width: 100%; font-size: 12px; border: 1px solid #dce6cd; margin-top: 17px; }
.workspace { padding: 0 42px 36px; }
.topbar { height: 96px; margin-bottom: 36px; border-bottom-color: #e1e9e1; }
.topbar > .eyebrow { color: #829087; letter-spacing: 2px; font-size: 10px; }
.identity { gap: 11px; }
.identity > span { color: #2a463a; font-weight: 650; }
.identity small { font-size: 11px; font-weight: 400; color: #8a968e; }
.avatar { width: 40px; height: 40px; border-radius: 13px; background: #e6efdb; color: #426134; border: 1px solid #dbe6cc; }
.ghost { border: 1px solid #dce6dd; border-radius: 9px; background: #fff; padding: 8px 13px; font-size: 12px; }
.heading { margin-bottom: 30px; gap: 16px; }
.heading h1 { margin-bottom: 9px; font-size: clamp(29px, 3vw, 38px); }
.heading p { font-size: 14px; color: #7d8980; }
.heading .secondary { background: #fff; font-size: 12px; padding: 12px 17px; box-shadow: 0 3px 10px #233d2704; }
.card { border: 1px solid #e4ebe2; border-radius: 21px; padding: 27px; box-shadow: 0 4px 20px #153f3403; }
.cardhead { margin-bottom: 21px; }
.cardhead h2 { font-size: 20px; }
.columns { gap: 22px; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
.columns > * { min-width: 0; }
.hero { background: linear-gradient(120deg,#103e31,#245947); min-height: 285px; border: 0; padding: 31px; isolation: isolate; }
.hero > :not(.hero-road) { position: relative; z-index: 1; }
.hero .eyebrow { color: #c7dda7; letter-spacing: 1.9px; font-size: 10px; margin-bottom: 24px; }
.hero h2 { color: #fff; font-size: clamp(30px,3vw,39px); letter-spacing: -1.3px; line-height: 1.14; margin-bottom: 17px; max-width: 85%; }
.hero p { color: #c0d4c7; font-size: 13px; max-width: 310px; margin-bottom: 22px; }
.hero .badge { padding: 7px 11px; font-size: 10px; font-weight: 550; color: #d6e8ba; background: #d4e8ad12; border: 1px solid #d4e8ad22; border-radius: 20px; }
.hero::after { width: 330px; height: 330px; border: 1px solid #b3d28a20; right: -170px; top: 35px; z-index: -1; }
.hero-road { position: absolute; right: -25px; bottom: -9px; width: 240px; height: 200px; opacity: .22; color: #93b376; pointer-events: none; z-index: 0; }
.hero-road svg { width: 100%; height: 100%; }
.layout[data-view="home"] .columns > .card:not(.hero) { padding: 29px 25px; }
.layout[data-view="home"] .columns > .card:not(.hero) h2 { font-size: 23px; margin-bottom: 24px; }
.layout[data-view="home"] .columns .row { padding: 20px 0; }
.layout[data-view="home"] .columns .row strong { font-size: 13px; }
.layout[data-view="home"] .columns .row .secondary { font-size: 11px; padding: 9px 12px; border-radius: 9px; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; }
.grid { gap: 19px; }
.tile { position: relative; padding: 25px; border-radius: 20px; min-height: 185px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 30px #193b3210; border-color: #bfcead; filter: none; }
.tile::after { content: '↗'; position: absolute; right: 23px; top: 25px; font-size: 21px; font-weight: 400; color: #9ba995; }
.tile .tile-icon { border-radius: 14px; width: 47px; height: 47px; padding: 13px; color: #50713d; background: #edf4e3; margin-bottom: 23px; }
.tile[data-page="bills"] .tile-icon { background: #e9f1ed; color: #346b57; }
.tile[data-page="requests"] .tile-icon { background: #f7f1e4; color: #927036; }
.tile h3 { font-size: 17px; letter-spacing: -.35px; margin-bottom: 7px; }
.tile p { font-size: 12px; line-height: 1.7; color: #8a938a; }
.button, button.primary { border-radius: 12px; padding: 13px 19px; font-size: 13px; font-weight: 700; box-shadow: 0 3px 7px #b0cb6d18; }
.secondary { border-radius: 11px; font-size: 12px; padding: 11px 15px; }
.button:hover, button.primary:hover { background: #b8dd53; filter: none; }
.badge { padding: 6px 10px; border-radius: 7px; background: #edf4e4; color: #617747; font-size: 10px; letter-spacing: .15px; }
.row { padding: 20px 0; border-top-color: #edf0ea; }
.row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.row p { line-height: 1.7; margin-top: 5px; }
.row-side .secondary { margin-top: 9px; }
.notice { background: #eef3e9; border: 1px solid #e1e9d9; color: #708065; border-radius: 14px; padding: 17px 20px; font-size: 12px; line-height: 1.8; }
.error { background: #fff2ed; border-color: #f2d9ce; color: #9d5945; }
.empty { padding: 44px 20px; color: #8b978d; font-size: 13px; }
.empty svg { opacity: .7; }
.toolbar { background: #eaf0e7; border: 1px solid #e0e8db; border-radius: 15px; padding: 12px 16px; gap: 15px; }
.toolbar label { color: #708167; font-size: 11px; }
.toolbar select { width: auto; flex: 1; min-width: 180px; background-color: #fff; font-size: 13px; border-color: #dae4d2; }
.plate { border-color: #dde4d8; border-top-color: #34558b; border-radius: 9px; padding: 11px 23px; font-size: 26px; margin: 12px 0 27px; background: #fbfcfa; }
.detail-grid { gap: 0 20px; }
.detail-grid > div { padding: 18px 4px; border-color: #eaf0e6; font-size: 14px; font-weight: 550; }
.detail-grid small { font-size: 11px; font-weight: 450; color: #879382; margin-bottom: 8px; }
.space { margin-top: 30px; }
.space > h3 { font-size: 17px; padding-top: 19px; border-top: 1px solid #e4ebe0; }
.doc-link { border-bottom: 1px solid #edf1e9; padding: 17px 4px; font-size: 13px; text-decoration: none; }
.doc-link:hover { color: #2c5321; text-decoration: underline; }
input, select { border-color: #dde5d7; border-radius: 11px; min-height: 48px; background: #fcfdfb; font-size: 14px; }
input:focus, select:focus { border-color: #9bb577; }
label { color: #65725f; font-size: 12px; font-weight: 550; }
input[readonly] { background: #f1f5ed; }
.auth { background: #fafcf8; grid-template-columns: 1.08fr 1fr; }
.auth-story { padding: 55px 12%; background: radial-gradient(ellipse at 100% 100%,#34634a 0,transparent 65%),#153f34; gap: 24px; }
.auth-story::after { content: ''; width: 430px; height: 430px; border: 1px solid #c4e86625; position: absolute; right: -270px; bottom: 50px; border-radius: 50%; box-shadow: 0 0 0 65px #c4e86607,0 0 0 130px #c4e86604; pointer-events: none; }
.auth-story .brand { background: #fff; width: fit-content; border-radius: 13px; padding: 15px 19px; margin-bottom: 38px; }
.auth-story h1 { font-size: clamp(40px,4.6vw,65px); letter-spacing: -2.6px; line-height: 1.08; position: relative; z-index: 1; }
.auth-story h1 em { color: #c4e866; }
.auth-story .badge { background: #edf5cf10; color: #c4d6b4; border: 1px solid #c4d6b42b; border-radius: 20px; padding: 9px 14px; }
.auth-story > .eyebrow { color: #bfd49a; }
.auth-content { padding: 60px 12%; }
.auth-content h2 { font-size: 30px; letter-spacing: -1px; }
.auth-content > .muted { font-size: 14px; margin-bottom: 25px; }
.auth-content form { max-width: 450px; width: 100%; }
.auth-content footer { line-height: 1.8; color: #8e998b; }
.tabs { background: #eef3e8; width: fit-content; border-radius: 12px; padding: 4px; gap: 2px; margin-bottom: 32px; }
.tabs button { border: 0; border-radius: 9px; padding: 11px 18px; font-size: 12px; }
.tabs button.active { background: #fff; color: #33552d; box-shadow: 0 2px 6px #29412e0b; }
.auth-content .primary { min-height: 49px; margin-top: 12px; }
dialog { border: 1px solid #e1e8dc; border-radius: 24px; padding: 32px; box-shadow: 0 25px 100px #0a291b35; }
dialog::backdrop { background: #102d2390; backdrop-filter: blur(5px); }
.close { border-radius: 10px; color: #718367; }
.install-dialog { padding: 35px 28px; }
.install-dialog h2 { font-size: 27px; }
#toast { border: 1px solid #496c45; border-radius: 14px; box-shadow: 0 12px 35px #173c3025; }
.footer { color: #96a08f; font-size: 10px; letter-spacing: .1px; padding-top: 26px; }
.status-dot { width: 6px; height: 6px; background: #8dad62; }
.loading { font-size: 13px; }
@media (min-width:1500px) { .workspace { padding-left:65px; padding-right:65px; max-width:1600px; } }
@media (max-width:1100px) {
    .layout { grid-template-columns:218px minmax(0,1fr); }
    .workspace { padding:0 26px 35px; }
    .sidebar { padding:28px 15px 20px; }
    .columns { grid-template-columns:1fr; }
    .hero { min-height:260px; }
    .hero p { max-width:65%; }
    .hero-road { right:10px; opacity:.3; }
    .card { padding:24px; }
    .identity > span { display:none; }
    .auth-story { padding:45px 9%; }
    .auth-content { padding:45px 9%; }
}
@media (max-width:760px) {
    .layout { display:block; }
    .workspace { padding:0 18px 120px; }
    .topbar { height:82px; margin-bottom:28px; gap:10px; }
    .topbar > .eyebrow { display:none; }
    .mobile-brand { display:flex; }
    .brand img, .brand img.logo-clikcar { width:110px; max-height:44px; flex-basis:110px; }
    .identity { gap:8px; }
    .avatar, .identity .avatar { width:32px; height:32px; border-radius:11px; font-size:12px; }
    .ghost { font-size:11px; padding:7px 10px; }
    .identity > .secondary { padding:7px 9px; font-size:10px; }
    .heading { margin-bottom:24px; }
    .heading h1 { font-size:30px; letter-spacing:-1px; }
    .heading p { font-size:12px; line-height:1.7; }
    .heading .secondary { padding:10px 12px; font-size:11px; }
    .sidebar { position:fixed; top:auto; bottom:12px; left:12px; right:12px; width:auto; height:auto; border:1px solid #e0e7d8; padding:7px 4px calc(7px + env(safe-area-inset-bottom)); border-radius:21px; box-shadow:0 8px 35px #1c3e241c; gap:0; background:#fff; z-index:20; }
    .sidebar > .brand, .sidebar > small, .sidefoot { display:none; }
    .nav { flex-direction:row; justify-content:space-around; gap:1px; }
    .nav button { flex:1; min-width:0; flex-direction:column; gap:6px; font-size:8px; letter-spacing:-.15px; padding:9px 1px; border-radius:13px; }
    .nav button.active { box-shadow:none; }
    .nav button svg { width:19px; height:19px; }
    .hero { border-radius:22px; min-height:285px; padding:27px 25px; }
    .hero h2 { font-size:34px; max-width:90%; }
    .hero .eyebrow { font-size:9px; margin-bottom:22px; letter-spacing:1.5px; }
    .hero p { max-width:76%; font-size:12px; }
    .hero-road { width:175px; height:170px; right:-26px; bottom:-10px; opacity:.2; }
    .columns { gap:0; }
    .layout[data-view="home"] .columns > .card:not(.hero) { padding:25px; }
    .layout[data-view="home"] .columns > .card:not(.hero) h2 { font-size:21px; margin-bottom:12px; }
    .layout[data-view="home"] .columns .row { padding:15px 0; }
    .grid { gap:12px; grid-template-columns:1fr 1fr; }
    .tile { min-height:170px; padding:21px 18px; border-radius:18px; }
    .tile h3 { font-size:15px; }
    .tile p { font-size:11px; }
    .tile::after { right:16px; top:18px; font-size:18px; }
    .tile .tile-icon { width:42px; height:42px; padding:11px; margin-bottom:20px; }
    .grid > .card:last-child:nth-child(odd) { grid-column:1/-1; min-height:140px; }
    .grid > .tile:last-child:nth-child(odd) .tile-icon { float:left; margin:5px 17px 12px 0; }
    .card { padding:22px; border-radius:19px; margin-bottom:17px; }
    .row { gap:12px; padding:18px 0; }
    .row strong { font-size:13px; }
    .row p { font-size:11px; }
    .row-side { max-width:46%; }
    .row-side .secondary { padding:9px 11px; font-size:10px; }
    .space > .row { flex-wrap:wrap; }
    .space > .row > .button { width:100%; }
    .notice { padding:15px 17px; font-size:11px; border-radius:13px; }
    .toolbar { padding:14px; gap:9px; }
    .toolbar label { width:100%; }
    .toolbar select { min-width:0; width:100%; flex-basis:100%; font-size:12px; }
    .detail-grid { grid-template-columns:1fr; }
    .detail-grid > div { padding:16px 2px; font-size:13px; }
    .fields { grid-template-columns:1fr; }
    .auth { display:block; }
    .auth-story { padding:30px 27px 33px; gap:18px; }
    .auth-story .brand { padding:11px 15px; margin-bottom:8px; border-radius:11px; }
    .auth-story h1 { font-size:37px; letter-spacing:-1.5px; max-width:450px; }
    .auth-story > p { display:none; }
    .auth-story .badge { font-size:9px; padding:7px 11px; }
    .auth-content { padding:28px 26px 40px; }
    .auth-content h2 { font-size:27px; }
    .auth-content .fields { grid-template-columns:1fr 1fr; }
    .tabs { margin-bottom:25px; }
    .footer { display:block; font-size:10px; line-height:1.7; }
    .footer span { display:block; margin-top:6px; }
    dialog { padding:25px; border-radius:21px; }
    #toast { bottom:110px; font-size:12px; }
}
@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}

.finance-overdue { background: #fff0e9; color: #984733; }
.finance-paid { background: #e7f4e6; color: #266537; }
.finance-cancelled { background: #eef0f2; color: #626970; }
.finance-pending { background: #fff5d9; color: #806516; }

.pix-payment { max-width: 460px; margin: 0 auto; text-align: center; }
.pix-payment textarea { width: 100%; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font: 12px/1.5 monospace; margin-bottom: 16px; color: var(--ink); background: var(--bg); }
.pix-payment .install-actions { display: flex; flex-direction: column; gap: 10px; }
.pix-help { margin: 18px 0 0; font-size: 12px; }
.pix-success { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: #e7f4e6; color: #266537; font-size: 40px; }
.pix-qr { width: min(260px,100%); margin: 20px auto; }
.pix-qr svg { display: block; width: 100%; height: auto; background: #fff; }

/* CLIKCAR — PALETA DO SITE */
:root {
    --ink: #17351f;
    --muted: #657263;
    --lime: #b5ce32;
    --dark: #063c20;
    --bg: #f7f9f5;
    --line: #e0e5df;
    --white: #ffffff;
    --green: #488b32;
    --soft-green: #f0f6e8;
    --brand-gradient: linear-gradient(135deg, #063c20 0%, #488b32 50%, #b5ce32 100%);
}
body { background: var(--bg); color: var(--ink); }
h1, h2, h3 { color: var(--ink); }
.muted, .heading p, .card small, .row p, .identity small,
.footer, .auth-content footer, .auth-content > p, .tile p { color: var(--muted); }
.sidebar, .card, .auth-content, dialog { background: #fff; border-color: var(--line); }
.brand span:last-child { color: var(--green); }
.brand-mark { background: var(--lime); color: var(--dark); }
.topbar { border-bottom-color: var(--line); }
.topbar > .eyebrow, .eyebrow { color: #657263; }
.avatar { background: #edf4e6; color: var(--dark); }
.nav button { color: #657263; }
.nav button:hover { background: #f0f6e8; color: #063c20; }
.nav button.active, .nav button.active:hover {
    background: linear-gradient(135deg, #488b32, #063c20);
    color: #fff;
    box-shadow: 0 7px 15px rgba(6,60,32,.14);
}
.nav button.active svg { color: #e6f29a; }
.sidefoot { background: #f0f6e8; border-color: #d5dfd0; color: #526449; }
.sidefoot strong { color: #063c20; }
.hero, .auth-story {
    background: linear-gradient(90deg, rgba(6,60,32,.58), rgba(6,60,32,.18)), var(--brand-gradient);
    color: #fff;
}
.hero h2, .auth-story h1 { color: #fff; }
.hero p, .auth-story p { color: #eef5e9; }
.hero .eyebrow, .auth-story > .eyebrow { color: #e3eebd; }
.auth-story h1 em { color: #e3ef8c; }
.hero .badge, .auth-story .badge {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.30);
    color: #fff;
}
.hero::after { border-color: rgba(255,255,255,.16); }
.hero-road { color: #dce993; }
.auth-story::after { border-color: rgba(229,241,176,.24); box-shadow: 0 0 0 65px rgba(181,206,50,.05), 0 0 0 130px rgba(181,206,50,.03); }
.auth-story .brand { background: #fff; }
.button, button.primary {
    background: linear-gradient(rgba(0,0,0,.12),rgba(0,0,0,.12)), linear-gradient(135deg,#488b32,#063c20);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(6,60,32,.13);
}
.button:hover, button.primary:hover {
    background: linear-gradient(135deg,#397429,#063c20);
    color: #fff;
    filter: none;
}
.secondary { background: #fff; color: #063c20; border-color: #d5dfd0; }
.secondary:hover { background: #f0f6e8; border-color: #488b32; color: #063c20; }
.textbutton, .doc-link { color: #2f6c24; }
.textbutton:hover, .doc-link:hover { color: #063c20; }
.ghost { color: #657263; }
.tabs button { color: #657263; }
.tabs button.active { color: #063c20; border-color: #488b32; }
.badge { background: #f0f6e8; color: #315c23; border-color: #d5dfd0; }
.status-dot { background: #488b32; }
.tile .tile-icon { background: #f0f6e8; color: #39782b; }
.tile:hover { border-color: #85aa5e; box-shadow: 0 12px 30px rgba(6,60,32,.08); }
.tile::after { color: #488b32; }
.stat { color: #063c20; }
.hero .stat { color: #fff; }
.notice { background: #f0f6e8; border-color: #d5dfd0; color: #34582b; }
.notice.error, .error { background: #fff3f3; border-color: #e1b5b5; color: #922525; }
input, select, textarea { border-color: #d5dfd0; color: #17351f; }
input, select { background: #fff; }
input[readonly] { background: #f0f3ed; color: #657263; }
input::placeholder, textarea::placeholder { color: #737f6e; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible { outline: 3px solid #488b32; outline-offset: 3px; }
.row, .detail-grid div { border-color: var(--line); }
.detail-grid small { color: #657263; }
.toolbar { background: #f8faf5; border-color: #e0e5df; }
.empty { color: #657263; }
.empty svg { color: #488b32; }
.close { background: #edf3e7; color: #063c20; }
dialog { color: #17351f; }
dialog::backdrop { background: rgba(0,25,12,.65); }
#toast { background: #063c20; color: #fff; }
.finance-paid { background: #edf4e6; color: #275f27; }
.finance-overdue { background: #fff0e9; color: #984733; }
.finance-pending { background: #fff5d9; color: #806516; }
.finance-cancelled { background: #eef0f2; color: #626970; }
.pix-success { background: #edf4e6; color: #275f27; }
.pix-payment textarea { background: #f7f9f5; color: #17351f; border-color: #d5dfd0; }
.pix-qr, .pix-qr svg { background: #fff; }
@media (max-width:760px) {
    .sidebar { background: #fff; border-color: #e0e5df; box-shadow: 0 8px 35px rgba(6,60,32,.12); }
    .nav button.active { box-shadow: none; }
}
