:root {
    --carbon: #0B0F14;
    --surface: #111820;
    --surface-2: #17212B;
    --surface-3: #202C37;

    --text: #F5F7F9;
    --muted: #8B98A4;

    --red: #EF4444;
    --yellow: #FBBF24;
    --orange: #F59E0B;
    --green: #00C853;
    --lime: #A3E635;

    --border: rgba(255,255,255,.08);

    --radius: 18px;
}


/* =========================================
   BASE
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;

    background: var(--carbon);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}


/* =========================================
   APP
   ========================================= */

.app {
    min-height: 100vh;
    padding-bottom: 90px;

    background: var(--carbon);
}


/* =========================================
   HEADER
   ========================================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        calc(14px + env(safe-area-inset-top))
        18px
        14px;

    background: rgba(11,15,20,.92);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.brand span {
    color: var(--lime);
}

.brand-subtitle {
    margin-top: 2px;

    font-size: 7px;
    letter-spacing: 1.5px;
    font-weight: 700;

    color: var(--muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button,
.avatar {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: var(--surface-2);
    color: var(--text);

    display: grid;
    place-items: center;
}

.avatar {
    background: var(--green);
    color: #031008;
    font-weight: 800;
}


/* =========================================
   CONTENT
   ========================================= */

.content {
    width: 100%;
    max-width: 720px;

    margin: auto;
    padding: 18px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}


/* =========================================
   PERIOD
   ========================================= */

.period-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 16px;
}

.period-selector strong {
    display: block;

    font-size: 19px;
}

.period-selector button {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    background: var(--surface-2);
    color: var(--text);
}


/* =========================================
   TEXT
   ========================================= */

.eyebrow {
    display: block;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;

    color: var(--muted);
}

.page-heading {
    margin-bottom: 20px;
}

.page-heading h1 {
    margin: 4px 0 0;

    font-size: 32px;
    letter-spacing: -1px;
}


/* =========================================
   FINANCIAL METER
   ========================================= */

.financial-meter-card {
    position: relative;

    padding: 22px 18px;

    isolation: isolate;
    background:
        radial-gradient(
            circle at 50% 80%,
            rgba(0,200,83,.09),
            transparent 55%
        ),
        var(--surface);

    border: 1px solid var(--border);
    border-radius: 24px;

    overflow: hidden;
}

.meter-title {
    text-align: center;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;

    color: var(--muted);
}

.meter {
    margin: 25px 12px 0;
}

.meter-scale {
    display: flex;
    justify-content: space-between;

    font-size: 8px;
    font-weight: 800;
}

.loss {
    color: var(--red);
}

.attention {
    color: var(--yellow);
}

.profit {
    color: var(--green);
}

.meter-track {
    position: relative;

    height: 15px;
    margin-top: 8px;

    border-radius: 99px;

    background:
        linear-gradient(
            90deg,
            var(--red),
            var(--yellow) 48%,
            var(--lime) 72%,
            var(--green)
        );
}

.meter-progress {
    position: absolute;
    right: 0;
    top: 0;

    width: 23%;
    height: 100%;

    background: var(--carbon);

    opacity: .7;

    border-radius: 0 99px 99px 0;
}

.meter-pointer {
    position: absolute;

    top: -5px;
    left: 73%;

    width: 25px;
    height: 25px;

    background: var(--text);

    border: 4px solid var(--carbon);

    border-radius: 50%;

    box-shadow:
        0 0 0 2px var(--green);
}

.financial-result {
    margin-top: 25px;
    text-align: center;
}

.financial-result strong {
    display: block;

    font-size: 38px;
    line-height: 1;

    letter-spacing: -2px;
}

.financial-result span {
    display: block;

    margin-top: 8px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;

    color: var(--muted);
}

.comparison {
    margin-top: 15px;

    text-align: center;

    font-size: 11px;
    font-weight: 700;
}

.positive {
    color: var(--green);
}


/* =========================================
   KPI
   ========================================= */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-top: 12px;
}

.kpi-card {
    padding: 16px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.kpi-card span {
    display: block;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;

    color: var(--muted);
}

.kpi-card strong {
    display: block;

    margin-top: 7px;

    font-size: 21px;
    letter-spacing: -.5px;
}


/* =========================================
   CARDS
   ========================================= */

.section-card {
    margin-top: 12px;

    padding: 18px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;
}

.card-header strong {
    display: block;
    margin-top: 5px;
}

.percentage {
    color: var(--green);
    font-weight: 900;
}

.progress {
    height: 8px;

    margin-top: 15px;

    background: var(--surface-3);

    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--yellow),
            var(--lime),
            var(--green)
        );

    border-radius: inherit;
}

.card-footer {
    margin-top: 10px;

    color: var(--muted);

    font-size: 11px;
}

.rent-details {
    display: flex;
    justify-content: space-between;

    margin-top: 14px;

    font-size: 12px;

    color: var(--muted);
}

.rent-details strong {
    color: var(--text);
}

.green {
    color: var(--green) !important;
}

.status {
    padding: 6px 9px;

    border-radius: 99px;

    font-size: 9px;
    font-weight: 900;
}

.status.success {
    background: rgba(0,200,83,.12);
    color: var(--green);
}


/* =========================================
   ALERT
   ========================================= */

.alert-card {
    display: flex;
    gap: 12px;

    margin-top: 12px;
    padding: 16px;

    background: rgba(251,191,36,.07);

    border: 1px solid rgba(251,191,36,.18);

    border-radius: var(--radius);
}

.alert-icon {
    font-size: 20px;
}

.alert-card strong {
    display: block;

    margin-top: 5px;

    font-size: 14px;
}

.alert-card p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================
   QUICK ACTIONS
   ========================================= */

.section-title {
    margin: 25px 0 10px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;

    color: var(--muted);
}

.quick-actions {
    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 9px;
}

.quick-actions button {
    min-height: 90px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 8px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    color: var(--text);
}

.quick-actions span {
    font-size: 24px;
}

.quick-actions strong {
    font-size: 10px;
}


/* =========================================
   JOURNEYS
   ========================================= */

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 13px 14px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 14px;
}

.search-box input {
    width: 100%;

    background: transparent;
    border: 0;
    outline: 0;

    color: var(--text);
}

.search-box input::placeholder {
    color: var(--muted);
}

.filters {
    display: flex;
    gap: 8px;

    margin: 10px 0 20px;

    overflow-x: auto;
}

.filters button,
.report-period {
    white-space: nowrap;

    padding: 8px 12px;

    background: var(--surface-2);

    border: 1px solid var(--border);

    border-radius: 99px;

    color: var(--muted);

    font-size: 10px;
}

.day-group {
    margin-bottom: 24px;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 8px;
}

.day-header strong {
    font-size: 14px;
}

.day-header span {
    font-size: 9px;
    color: var(--muted);
}

.journey-card {
    padding: 15px;

    margin-bottom: 8px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);
}

.journey-top {
    display: flex;
    justify-content: space-between;
}

.journey-top strong {
    font-size: 13px;
}

.success-text {
    color: var(--green);
    font-weight: 800;
}

.journey-info {
    margin-top: 9px;

    font-size: 11px;

    color: var(--muted);
}

.journey-stats {
    display: flex;
    gap: 12px;

    margin-top: 13px;

    font-size: 9px;

    color: var(--muted);
}


/* =========================================
   REPORTS
   ========================================= */

.report-period {
    display: inline-block;

    margin-bottom: 12px;
}

.report-summary {
    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 7px;
}

.report-summary > div {
    padding: 14px 10px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 14px;
}

.report-summary span {
    display: block;

    font-size: 8px;

    color: var(--muted);
}

.report-summary strong {
    display: block;

    margin-top: 6px;

    font-size: 14px;
}

.fake-chart {
    height: 150px;

    display: flex;
    align-items: flex-end;

    gap: 8px;

    margin-top: 20px;

    padding: 10px;

    background:
        repeating-linear-gradient(
            to top,
            transparent 0,
            transparent 29px,
            rgba(255,255,255,.05) 30px
        );
}

.fake-chart div {
    flex: 1;

    background:
        linear-gradient(
            to top,
            var(--green),
            var(--lime)
        );

    border-radius: 5px 5px 0 0;
}

.platform-row {
    display: flex;
    justify-content: space-between;

    margin-top: 15px;

    font-size: 12px;
}

.platform-bar {
    height: 7px;

    margin-top: 7px;

    background: var(--surface-3);

    border-radius: 99px;

    overflow: hidden;
}

.platform-bar div {
    height: 100%;

    background: var(--green);

    border-radius: inherit;
}

.primary-button {
    width: 100%;

    margin-top: 12px;

    padding: 15px;

    border-radius: 14px;

    background: var(--green);

    color: #031008;

    font-weight: 900;
}


/* =========================================
   MORE
   ========================================= */

.menu-group {
    margin-bottom: 12px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;
}

.menu-item {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 15px;

    background: transparent;

    color: var(--text);

    text-align: left;

    border-bottom: 1px solid var(--border);
}

.menu-item:last-child {
    border-bottom: 0;
}

.menu-item > span {
    width: 30px;

    font-size: 20px;
}

.menu-item div {
    flex: 1;
}

.menu-item strong,
.menu-item small {
    display: block;
}

.menu-item strong {
    font-size: 13px;
}

.menu-item small {
    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;
}

.menu-item b {
    color: var(--muted);
}


/* =========================================
   BOTTOM NAV
   ========================================= */

.bottom-nav {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 30;

    height: calc(70px + env(safe-area-inset-bottom));

    padding-bottom: env(safe-area-inset-bottom);

    display: grid;

    grid-template-columns: repeat(5,1fr);

    align-items: center;

    background: rgba(11,15,20,.96);

    backdrop-filter: blur(20px);

    border-top: 1px solid var(--border);
}

.nav-item {
    height: 70px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 4px;

    background: transparent;

    color: var(--muted);
}

.nav-item span {
    font-size: 19px;
}

.nav-item small {
    font-size: 8px;
    font-weight: 800;
}

.nav-item.active {
    color: var(--green);
}

.launch-button {
    width: 58px;
    height: 58px;

    justify-self: center;

    margin-top: -25px;

    border-radius: 50%;

    background: var(--green);

    color: #031008;

    font-size: 32px;
    font-weight: 400;

    border: 5px solid var(--carbon);

    box-shadow:
        0 8px 25px rgba(0,200,83,.22);
}


/* =========================================
   MODAL
   ========================================= */

.modal {
    position: fixed;

    inset: 0;

    z-index: 100;

    display: none;
}

.modal.show {
    display: block;
}

.modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(0,0,0,.65);
}

.modal-content {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding:
        10px
        18px
        calc(25px + env(safe-area-inset-bottom));

    background: var(--surface);

    border-radius: 25px 25px 0 0;

    border-top: 1px solid var(--border);

    animation: slideUp .2s ease;
}

.modal-handle {
    width: 40px;
    height: 4px;

    margin: 0 auto 20px;

    background: var(--surface-3);

    border-radius: 99px;
}

.modal-content h2 {
    margin: 0 0 15px;

    font-size: 20px;
}

.modal-content > button:not(.cancel-button) {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 16px;

    margin-top: 8px;

    background: var(--surface-2);

    color: var(--text);

    border-radius: 15px;

    text-align: left;
}

.modal-content > button span {
    font-size: 24px;
}

.modal-content > button strong,
.modal-content > button small {
    display: block;
}

.modal-content > button small {
    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;
}

.cancel-button {
    width: 100%;

    margin-top: 15px;

    padding: 14px;

    background: transparent;

    color: var(--muted);
}


/* =========================================
   TOAST
   ========================================= */

.toast {
    position: fixed;

    left: 50%;
    bottom: 95px;

    z-index: 200;

    transform:
        translateX(-50%)
        translateY(20px);

    max-width: calc(100% - 40px);

    padding: 12px 16px;

    background: var(--surface-3);

    border: 1px solid var(--border);

    border-radius: 12px;

    color: var(--text);

    font-size: 11px;

    opacity: 0;

    pointer-events: none;

    transition: .25s ease;
}

.toast.show {
    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =========================================
   ANIMATION
   ========================================= */

@keyframes slideUp {

    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }

}


/* =========================================
   LOGIN RODA+
   ========================================= */

.login-screen {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(239,68,68,.12),
            transparent 35%
        ),
        var(--carbon);

    overflow-y: auto;
}

.login-container {
    width: 100%;

    max-width: 420px;

    margin: auto;
}

.login-brand {
    text-align: center;

    margin-bottom: 32px;
}

.login-brand .brand {
    font-size: 42px;

    font-weight: 900;

    letter-spacing: -2px;
}

.login-brand .brand-subtitle {
    margin-top: 4px;

    font-size: 11px;

    letter-spacing: 1.8px;

    color: var(--muted);
}

.login-card {
    background: rgba(17,24,32,.96);

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 24px;

    padding: 28px 24px;

    box-shadow:
        0 24px 70px rgba(0,0,0,.45);
}

.login-card h1 {
    margin: 0;

    font-size: 28px;

    letter-spacing: -.6px;
}

.login-description {
    margin: 8px 0 26px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.5;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 12px;

    font-weight: 700;

    color: #cbd5df;
}

.form-group input {
    width: 100%;

    height: 52px;

    padding: 0 15px;

    border: 1px solid rgba(255,255,255,.10);

    border-radius: 13px;

    background: #0B0F14;

    color: #ffffff;

    font-size: 15px;

    outline: none;

    transition:
        border-color .2s,
        box-shadow .2s;
}

.form-group input::placeholder {
    color: #66717A;
}

.form-group input:focus {
    border-color: var(--red);

    box-shadow:
        0 0 0 3px rgba(239,68,68,.12);
}

.login-button {
    width: 100%;

    height: 52px;

    margin-top: 6px;

    border: 0;

    border-radius: 13px;

    background: var(--red);

    color: #ffffff;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: .5px;

    cursor: pointer;

    transition:
        transform .15s,
        opacity .15s;
}

.login-button:hover {
    opacity: .92;
}

.login-button:active {
    transform: scale(.98);
}

.login-button:disabled {
    opacity: .65;

    cursor: wait;
}

.login-error {
    min-height: 20px;

    margin-top: 12px;

    color: #ff6b6b;

    font-size: 13px;

    line-height: 1.4;

    text-align: center;
}

.login-links {
    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 22px;

    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,.07);
}

.login-links button {
    border: 0;

    background: transparent;

    color: #aeb8c2;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;
}

.login-links button:first-child {
    color: var(--lime);
}

.login-links button:hover {
    text-decoration: underline;
}



/* =========================================
   TELAS SECUNDÁRIAS — VEÍCULOS
   ========================================= */

.secondary-screen {
    position: fixed;
    inset: 0;
    z-index: 500;

    width: 100%;
    min-height: 100dvh;

    padding:
        calc(18px + env(safe-area-inset-top))
        18px
        calc(100px + env(safe-area-inset-bottom));

    overflow-y: auto;

    background: var(--carbon);
    color: var(--text);

    -webkit-overflow-scrolling: touch;
}

.secondary-header {
    display: flex;
    align-items: center;
    gap: 13px;

    width: 100%;
    max-width: 720px;

    margin: 0 auto 24px;
}

.secondary-header h1 {
    margin: 4px 0 0;

    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.secondary-header .eyebrow {
    margin: 0;
}

.back-button {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface-2);
    color: var(--text);

    font-size: 21px;
    line-height: 1;
}

.back-button:hover {
    background: var(--surface-3);
}


/* =========================================
   FORMULÁRIO DE VEÍCULO
   ========================================= */

.secondary-screen form,
#vehiclesList {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

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

.secondary-screen .form-group {
    margin-bottom: 16px;
}

.secondary-screen .form-group label {
    display: block;

    margin-bottom: 8px;

    color: #cbd5df;

    font-size: 12px;
    font-weight: 700;
}

.secondary-screen .form-group input,
.secondary-screen .form-group select {
    width: 100%;
    height: 52px;

    padding: 0 15px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 13px;

    outline: none;

    background: #0B0F14;
    color: var(--text);

    font-size: 15px;

    transition:
        border-color .2s,
        box-shadow .2s,
        background .2s;
}

.secondary-screen .form-group input::placeholder {
    color: #66717A;
}

.secondary-screen .form-group input:focus,
.secondary-screen .form-group select:focus {
    border-color: var(--red);

    box-shadow:
        0 0 0 3px rgba(239,68,68,.12);
}

.secondary-screen .form-group select {
    appearance: none;

    padding-right: 42px;

    background-image:
        linear-gradient(45deg, transparent 50%, #8B98A4 50%),
        linear-gradient(135deg, #8B98A4 50%, transparent 50%);

    background-position:
        calc(100% - 18px) 22px,
        calc(100% - 13px) 22px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 20px 0;

    color: var(--text);

    font-size: 13px;
    font-weight: 600;
}

.checkbox-row input {
    width: 18px;
    height: 18px;

    accent-color: var(--green);
}

.secondary-screen .primary-button {
    margin-top: 8px;
}

.danger-button {
    width: 100%;

    margin-top: 10px;
    padding: 15px;

    border: 1px solid rgba(239,68,68,.20);
    border-radius: 14px;

    background: rgba(239,68,68,.08);
    color: var(--red);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: .3px;
}

.danger-button:hover {
    background: rgba(239,68,68,.14);
}

.secondary-screen .login-error {
    margin-bottom: 10px;
}


/* =========================================
   CARDS DE VEÍCULOS
   ========================================= */

.vehicle-card {
    padding: 17px;
    margin-bottom: 10px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        border-color .2s,
        transform .15s,
        background .2s;
}

.vehicle-card:active {
    transform: scale(.99);
}

.vehicle-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}

.vehicle-card h3 {
    margin: 0;

    color: var(--text);

    font-size: 16px;
    line-height: 1.2;
}

.vehicle-card p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.4;
}

.vehicle-badge {
    flex-shrink: 0;

    padding: 5px 9px;

    border-radius: 99px;

    background: rgba(0,200,83,.12);
    color: var(--green);

    font-size: 8px;
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.vehicle-badge.inactive {
    background: rgba(255,255,255,.07);
    color: var(--muted);
}

.vehicle-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;

    margin-top: 15px;
}

.vehicle-detail {
    min-width: 0;

    padding: 10px;

    background: var(--surface-2);

    border-radius: 10px;
}

.vehicle-detail span {
    display: block;

    color: var(--muted);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.vehicle-detail strong {
    display: block;

    margin-top: 4px;

    color: var(--text);

    font-size: 12px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-card-actions {
    display: flex;
    gap: 8px;

    margin-top: 12px;
}

.vehicle-card-actions button {
    flex: 1;

    min-height: 40px;

    padding: 10px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface-3);
    color: var(--text);

    font-size: 10px;
    font-weight: 800;
}

.vehicle-card-actions button:hover {
    background: #293744;
}


/* =========================================
   ESTADO VAZIO
   ========================================= */

.empty-state {
    padding: 48px 20px;

    text-align: center;
}

.empty-state-icon {
    margin-bottom: 12px;

    font-size: 42px;
}

.empty-state strong {
    display: block;

    color: var(--text);

    font-size: 15px;
}

.empty-state p {
    max-width: 280px;

    margin: 7px auto 20px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.5;
}


/* =========================================
   DESKTOP — TELAS SECUNDÁRIAS
   ========================================= */

@media (min-width: 800px) {

    .secondary-screen {
        left: 50%;
        right: auto;

        width: min(720px, 100%);

        transform: translateX(-50%);

        padding-left: 28px;
        padding-right: 28px;

        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }

}


/* =========================================
   MOBILE — VEÍCULOS
   ========================================= */

@media (max-width: 480px) {

    .secondary-screen {
        padding-left: 16px;
        padding-right: 16px;
    }

    .secondary-header h1 {
        font-size: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

}


/* =========================================
   DESKTOP
   ========================================= */

@media (min-width: 800px) {

    .content {
        padding: 28px;
    }

    .kpi-grid {
        grid-template-columns: repeat(4,1fr);
    }

    .bottom-nav {
        left: 50%;
        right: auto;

        width: min(720px,100%);

        transform: translateX(-50%);

        border-left: 1px solid var(--border);

        border-right: 1px solid var(--border);
    }

}


/* =========================================
   LOGIN MOBILE
   ========================================= */

@media (max-width: 480px) {

    .login-screen {
        padding: 18px;
    }

    .login-brand {
        margin-bottom: 24px;
    }

    .login-brand .brand {
        font-size: 38px;
    }

    .login-card {
        padding: 24px 20px;

        border-radius: 20px;
    }

}


/* =========================================
   CONFIGURAÇÕES — MAIS
   ========================================= */

#mais { padding-bottom: 28px; }

#mais .page-header { margin-bottom: 20px; }

#mais .page-header h1 {
    margin: 5px 0 0;
    color: var(--text);
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -1.2px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    margin-bottom: 18px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.profile-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--green);
    color: #031008;
    font-size: 14px;
    font-weight: 900;
}

.profile-card strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
}

.profile-card > div:last-child span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

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

.settings-item {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 76px;
    padding: 13px 14px;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.settings-item:hover {
    background: var(--surface-2);
    border-color: rgba(255,255,255,.13);
}

.settings-item:active { transform: scale(.985); }

.settings-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    margin-right: 11px;
    border-radius: 11px;
    background: var(--surface-2);
    font-size: 18px;
    line-height: 1;
}

.settings-content {
    min-width: 0;
    padding-right: 16px;
}

.settings-content strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
}

.settings-content span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.settings-arrow {
    position: absolute;
    right: 13px;
    top: 50%;
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    transform: translateY(-50%);
}

.settings-item.danger { border-color: rgba(239,68,68,.12); }

.settings-item.danger .settings-icon {
    background: rgba(239,68,68,.10);
    color: var(--red);
}

.settings-item.danger .settings-content strong { color: var(--red); }

@media (max-width: 600px) {
    .settings-list { grid-template-columns: 1fr; }
    #mais .page-header h1 { font-size: 30px; }
}


/* =========================================
   JORNADAS — MVP FUNCIONAL
   ========================================= */

.journey-card {
    padding: 16px;
    margin-bottom: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.journey-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.journey-card-top > div {
    min-width: 0;
}

.journey-date {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.journey-card strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

.journey-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.journey-revenue {
    color: var(--green) !important;
    font-size: 17px !important;
    white-space: nowrap;
}

.journey-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 14px;
}

.journey-stats span {
    display: block;
    padding: 9px;
    background: var(--surface-2);
    border-radius: 10px;
    color: var(--muted);
    font-size: 8px;
}

.journey-stats b {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
    font-size: 11px;
}

.journey-form-header {
    margin-bottom: 18px;
}

.journey-form-header h2 {
    margin: 4px 0 0;
}

.journey-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.journey-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.journey-form label > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.journey-form input,
.journey-form select,
.journey-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    background: var(--surface-2);
    color: var(--text);
    font-size: 14px;
}

.journey-form textarea {
    min-height: 78px;
    resize: vertical;
}

.journey-form input:focus,
.journey-form select:focus,
.journey-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,200,83,.10);
}

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

@media (max-width: 520px) {
    .journey-form-grid {
        grid-template-columns: 1fr;
    }

    .journey-stats {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   ABASTECIMENTOS
   ========================================= */

.fueling-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fueling-card {
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.fueling-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.fueling-card-top > div {
    min-width: 0;
}

.fueling-card strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

.fueling-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.fueling-station {
    margin-top: 12px !important;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.fueling-price-preview {
    padding: 12px 14px;
    border: 1px solid rgba(0,200,83,.18);
    border-radius: 11px;
    background: rgba(0,200,83,.07);
    color: var(--green);
    font-size: 12px;
    font-weight: 850;
}



/* =========================================
   RESPONSIVIDADE MOBILE — AJUSTE DE TELA
   ========================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-width: 0;
}

.app {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.content {
    width: 100%;
    max-width: 720px;
    padding-left: 14px;
    padding-right: 14px;
}

.page,
.section-card,
.kpi-card,
.financial-meter-card,
.quick-actions,
.journey-list,
.journey-card {
    max-width: 100%;
    min-width: 0;
}

button,
input,
select,
textarea {
    max-width: 100%;
}

.secondary-screen {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

.secondary-screen > *,
.secondary-header > *,
.secondary-screen form,
#vehiclesList,
#fuelingsList {
    min-width: 0;
    max-width: 100%;
}

.secondary-header {
    width: 100%;
    max-width: 720px;
    box-sizing: border-box;
}

.modal {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.modal-content {
    width: 100%;
    max-width: 720px;
    max-height: min(88dvh, 760px);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
}

.modal-content > *,
.journey-form,
.journey-form-grid {
    max-width: 100%;
    min-width: 0;
}

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

.journey-form input,
.journey-form select,
.journey-form textarea {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 600px) {

    .app {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .topbar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .brand {
        font-size: 23px;
    }

    .content {
        padding: 14px;
    }

    .page-header {
        max-width: 100%;
    }

    .page-header h1,
    #mais .page-header h1 {
        font-size: 27px;
    }

    .financial-meter-card {
        padding: 18px 14px;
        border-radius: 20px;
    }

    .financial-result strong {
        font-size: clamp(30px, 9vw, 38px);
        overflow-wrap: anywhere;
    }

    .meter {
        margin-left: 4px;
        margin-right: 4px;
    }

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

    .kpi-card {
        min-width: 0;
        padding: 13px 11px;
    }

    .kpi-card strong {
        font-size: clamp(17px, 5vw, 23px);
        overflow-wrap: anywhere;
    }

    .quick-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .quick-actions button {
        min-width: 0;
        padding-left: 5px;
        padding-right: 5px;
    }

    .quick-actions small {
        font-size: 8px;
    }

    .journey-card-top,
    .fueling-card-top {
        gap: 9px;
    }

    .journey-card strong,
    .fueling-card strong {
        overflow-wrap: anywhere;
    }

    .journey-revenue {
        font-size: 15px !important;
    }

    .journey-stats {
        gap: 5px;
    }

    .journey-stats span {
        min-width: 0;
        padding: 8px 6px;
        overflow: hidden;
    }

    .journey-stats b {
        font-size: 10px;
        overflow-wrap: anywhere;
    }

    .settings-item {
        min-width: 0;
        padding-left: 11px;
        padding-right: 36px;
    }

    .settings-content {
        min-width: 0;
    }

    .settings-content strong,
    .settings-content span {
        overflow-wrap: anywhere;
    }

    .settings-arrow {
        right: 10px;
    }

    .secondary-screen {
        padding-left: 14px;
        padding-right: 14px;
        padding-top: calc(14px + env(safe-area-inset-top));
    }

    .secondary-header {
        gap: 9px;
        margin-bottom: 18px;
    }

    .secondary-header h1 {
        font-size: 24px;
    }

    .secondary-header .header-action-button {
        flex: 0 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .secondary-screen .form-group input,
    .secondary-screen .form-group select {
        height: 48px;
    }

    .modal-content {
        max-height: 90dvh;
        border-radius: 20px 20px 0 0;
    }

    .modal-content h2 {
        font-size: 19px;
    }

    .modal-content > button:not(.cancel-button) {
        padding: 13px;
    }

    .journey-form-grid {
        grid-template-columns: 1fr;
    }

    .journey-form input,
    .journey-form select,
    .journey-form textarea {
        font-size: 16px;
    }

    .bottom-nav {
        width: 100%;
        max-width: 100vw;
    }

    .nav-item small {
        font-size: 7px;
    }
}

@media (max-width: 360px) {

    .content,
    .secondary-screen {
        padding-left: 10px;
        padding-right: 10px;
    }

    .topbar {
        padding-left: 10px;
        padding-right: 10px;
    }

    .brand {
        font-size: 21px;
    }

    .icon-button,
    .avatar {
        width: 36px;
        height: 36px;
    }

    .quick-actions {
        gap: 4px;
    }

    .quick-actions small {
        font-size: 7px;
    }

    .journey-revenue {
        font-size: 13px !important;
    }

    .settings-item {
        padding-left: 9px;
        padding-right: 32px;
    }

    .settings-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        margin-right: 8px;
        font-size: 16px;
    }
}


/* =========================================
   CUSTOS
   ========================================= */

.cost-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cost-card {
    width: 100%;
    min-width: 0;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cost-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cost-card-top > div {
    min-width: 0;
}

.cost-date {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.cost-card strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

.cost-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    overflow-wrap: anywhere;
}

.cost-amount {
    flex: 0 0 auto;
    color: var(--red) !important;
    font-size: 16px !important;
    white-space: nowrap;
}

.cost-card-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.cost-card-bottom span {
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.cost-card-bottom b {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 99px;
    background: rgba(239,68,68,.10);
    color: var(--red);
    font-size: 7px;
    letter-spacing: .5px;
}

.cost-delete-button {
    width: 100%;
    min-height: 38px;
    margin-top: 11px;
    padding: 9px;
    border: 1px solid rgba(239,68,68,.14);
    border-radius: 10px;
    background: rgba(239,68,68,.05);
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
}

.cost-delete-button:hover {
    background: rgba(239,68,68,.10);
}

@media (max-width: 420px) {
    .cost-card-top {
        gap: 8px;
    }

    .cost-amount {
        font-size: 14px !important;
    }

    .cost-card-bottom {
        flex-direction: column;
    }
}


/* =========================================
   DASHBOARD SPEEDOMETER
   ========================================= */

.dashboard-speedometer {
    position: relative;
    width: 100%;
    padding: 16px 14px 14px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 76%, rgba(0,230,118,.10), transparent 35%),
        #080d12;
    border: 1px solid rgba(82,112,140,.22);
    border-radius: 22px;
}

.speedometer-topline {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 8px;
}

.speedometer-side-stat {
    min-width: 0;
}

.speedometer-side-stat span,
.speedometer-month span {
    display: block;
    color: #91a4ba;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .9px;
}

.speedometer-side-stat strong {
    display: block;
    margin-top: 4px;
    color: #ff6262;
    font-size: clamp(15px, 3vw, 20px);
    line-height: 1.1;
    white-space: nowrap;
}

.speedometer-side-stat.revenue-stat {
    text-align: right;
}

.speedometer-side-stat.revenue-stat strong {
    color: #00e676;
}

.speedometer-month {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 10px;
    border: 1px solid rgba(104,136,166,.28);
    border-radius: 99px;
    white-space: nowrap;
}

.speedometer-month-icon {
    color: #d7e2ef !important;
    font-size: 11px !important;
}

.speedometer-month strong {
    color: #dce7f3;
    font-size: 8px;
    letter-spacing: .7px;
}

/* Área do velocímetro */
.speedometer {
    position: relative;
    width: 100%;
    height: clamp(235px, 34vw, 285px);
    margin: 0 auto;
    overflow: hidden;
}

/* Arco SVG: geometria estável em qualquer largura */
.speedometer-arc-svg {
    position: absolute;
    left: 50%;
    top: 4px;
    z-index: 1;
    width: min(88%, 500px);
    height: 250px;
    transform: translateX(-50%);
    overflow: visible;
    background: transparent !important;
    pointer-events: none;
}

.speedometer-arc-path {
    fill: none;
    stroke: url(#speedometerGradient);
    stroke-width: 17;
    stroke-linecap: butt;
    filter: drop-shadow(0 0 7px rgba(0,230,118,.20));
}

/* Marcações acompanham o arco */

.speedometer-ticks {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.speedometer-ticks span {
    position: absolute;
    width: 42px;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #dce7f3;
    font-size: 9px;
    font-weight: 900;
}

/* Posições da escala: esquerda -> topo -> direita */
.speedometer-ticks span:nth-child(1) { left: 14%; top: 60%; }
.speedometer-ticks span:nth-child(2) { left: 28%; top: 29%; }
.speedometer-ticks span:nth-child(3) { left: 41%; top: 13%; }
.speedometer-ticks span:nth-child(4) { left: 59%; top: 13%; }
.speedometer-ticks span:nth-child(5) { left: 72%; top: 29%; }
.speedometer-ticks span:nth-child(6) { left: 86%; top: 60%; }

.speedometer-center {
    position: absolute;
    left: 50%;
    top: 124px;
    z-index: 8;
    width: min(290px, 72%);
    min-height: 96px;
    padding: 15px 16px 12px;
    transform: translateX(-50%);
    text-align: center;
    background:
        linear-gradient(180deg, rgba(13,22,30,.98), rgba(7,13,18,.98));
    border: 1px solid rgba(96,125,150,.28);
    border-radius: 18px;
    box-shadow:
        0 10px 30px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.035);
}

.speedometer-label,
.speedometer-goal {
    display: block;
    color: #8fa3ba;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .9px;
}

.speedometer-center strong {
    display: block;
    margin: 7px 0 5px;
    color: #38ee92;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1;
    letter-spacing: -2px;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(0,230,118,.2);
}

.speedometer-needle {
    position: absolute;
    left: 50%;
    top: 188px;
    z-index: 3;
    width: clamp(75px, 11vw, 115px);
    height: 4px;
    transform-origin: 0 50%;
    transform: rotate(-52deg);
    transition: transform 3.2s cubic-bezier(.16,1,.3,1);
    background: linear-gradient(90deg,#dfffea,#3bea9b);
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(0,230,118,.5);
}

.needle-hub {
    position: absolute;
    left: -8px;
    top: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #111a22;
    border: 4px solid #cdd9e5;
    box-shadow: 0 0 0 3px #25313d;
}

.speedometer-status {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: -2px;
    color: #42ed98;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 9px rgba(0,230,118,.7);
}

/* KPIs */
.dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.dashboard-kpi {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 13px;
}

.dashboard-kpi > div:last-child {
    min-width: 0;
}

.kpi-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(0,230,118,.10);
    color: #38ee92;
    font-size: 20px;
    font-weight: 900;
}

.fuel-kpi .kpi-icon { background: rgba(239,68,68,.12); color: #ff6262; }
.costs-kpi .kpi-icon { background: rgba(245,158,11,.12); color: #ffad33; }
.result-kpi .kpi-icon { background: rgba(37,99,235,.13); color: #70a7ff; }

.dashboard-kpi strong {
    margin-top: 4px;
    font-size: 17px;
}

.dashboard-kpi small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-kpi strong {
    color: #38ee92;
}

/* Resumo */
.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 9px;
    margin-top: 10px;
}

.dashboard-summary-card {
    position: relative;
    min-width: 0;
    min-height: 112px;
    padding: 14px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.summary-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    margin-bottom: 9px;
    border-radius: 50%;
    background: #111b25;
    color: #d7e2ef;
    font-size: 12px;
    font-weight: 900;
}

.dashboard-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .7px;
}

.dashboard-summary-card strong {
    display: block;
    margin-top: 5px;
    font-size: 16px;
}

.dashboard-summary-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 8px;
}

.summary-progress {
    height: 6px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 99px;
    background: #16212d;
}

.summary-progress i {
    display: block;
    width: 55%;
    height: 100%;
    border-radius: 99px;
    background: #39a0ff;
}

.summary-progress.purple i {
    background: #b16cff;
}

/* Tablet / desktop */
@media (min-width: 601px) {
    .speedometer-arc-svg {
        width: min(82%, 520px);
        height: 260px;
    }

    .speedometer-center {
        top: 132px;
        width: min(300px, 60%);
    }

    .speedometer-needle {
        top: 199px;
    }

    .dashboard-speedometer {
        padding: 18px 20px 15px;
    }

    .speedometer {
        height: 285px;
    }


}

/* Smartphones */
@media (max-width: 600px) {
    .dashboard-speedometer {
        padding: 14px 9px 12px;
        border-radius: 20px;
    }

    .speedometer {
        height: 225px;
    }

    .speedometer-arc-svg {
        width: 92%;
        height: 220px;
        top: 2px;
    }

    .speedometer-arc {
        width: 88%;
        top: 7px;
        -webkit-mask:
            radial-gradient(
                farthest-side,
                transparent calc(100% - 13px),
                #000 calc(100% - 12px)
            );
        mask:
            radial-gradient(
                farthest-side,
                transparent calc(100% - 13px),
                #000 calc(100% - 12px)
            );
    }

    .speedometer-ticks span {
        font-size: 8px;
    }

    .speedometer-ticks span:nth-child(1) { left: 10%; top: 59%; }
    .speedometer-ticks span:nth-child(2) { left: 25%; top: 29%; }
    .speedometer-ticks span:nth-child(3) { left: 40%; top: 14%; }
    .speedometer-ticks span:nth-child(4) { left: 60%; top: 14%; }
    .speedometer-ticks span:nth-child(5) { left: 75%; top: 29%; }
    .speedometer-ticks span:nth-child(6) { left: 90%; top: 59%; }

    .speedometer-center {
        top: 108px;
        width: min(270px, 78%);
        min-height: 88px;
        padding: 13px 12px 10px;
    }

    .speedometer-center strong {
        font-size: clamp(27px, 8.5vw, 36px);
    }

    .speedometer-needle {
        top: 169px;
        width: 78px;
    }

    .dashboard-kpi {
        padding: 11px;
        gap: 8px;
    }

    .dashboard-kpi strong {
        font-size: 15px;
    }

    .dashboard-summary-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-summary-card {
        min-height: 86px;
    }
}

/* Smartphones pequenos */
@media (max-width: 390px) {
    .speedometer {
        height: 210px;
    }

    .speedometer-arc-svg {
        width: 94%;
        height: 205px;
    }

    .speedometer-month {
        padding: 6px 7px;
    }

    .speedometer-month span:last-child {
        display: none;
    }

    .speedometer-side-stat span {
        font-size: 6px;
    }

    .speedometer-side-stat strong {
        font-size: 13px;
    }

    .speedometer-ticks span {
        font-size: 7px;
    }

    .speedometer-ticks span:nth-child(1) { left: 5%; top: 54%; }
    .speedometer-ticks span:nth-child(2) { left: 21%; top: 28%; }
    .speedometer-ticks span:nth-child(3) { left: 39%; top: 14%; }
    .speedometer-ticks span:nth-child(4) { left: 61%; top: 14%; }
    .speedometer-ticks span:nth-child(5) { left: 79%; top: 28%; }
    .speedometer-ticks span:nth-child(6) { left: 95%; top: 54%; }

    .speedometer-center {
        top: 101px;
        width: min(250px, 80%);
        min-height: 82px;
        padding: 11px 10px 9px;
    }

    .speedometer-center strong {
        font-size: 26px;
        margin-top: 6px;
    }

    .speedometer-needle {
        top: 157px;
        width: 70px;
    }

    .dashboard-kpi {
        padding: 10px;
    }

    .kpi-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 340px) {
    .speedometer {
        height: 198px;
    }

    .speedometer-center {
        top: 98px;
    }

    .speedometer-center strong {
        font-size: 23px;
    }

    .speedometer-needle {
        top: 149px;
        width: 64px;
    }
}


/* =========================================
   RODA+ DASHBOARD — PAINEL AUTOMOTIVO
   REF. VISUAL
   ========================================= */

.dashboard-content:has(#inicio.active) {
    width: 100%;
    max-width: 1320px;
    padding: 24px 28px 110px;
}

.dashboard-topbar {
    padding-left: clamp(24px, 5vw, 70px);
    padding-right: clamp(24px, 5vw, 70px);
}

.dashboard-topbar .brand {
    font-size: clamp(32px, 3vw, 48px);
    letter-spacing: -2.5px;
}

.dashboard-header-actions {
    gap: 12px;
}

.dashboard-period-button {
    min-width: 250px;
    height: 58px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(104,136,166,.30);
    border-radius: 18px;
    background: rgba(10,17,24,.78);
    color: var(--text);
}

.dashboard-period-button strong {
    flex: 1;
    text-align: left;
    font-size: 16px;
    letter-spacing: .3px;
}

.period-calendar-icon {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    display: grid;
    place-items: center;
    color: #d9e4ef;
}

.period-calendar-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.period-calendar-icon svg path:nth-of-type(n+4) {
    stroke-width: 2.4;
}

.period-chevron {
    font-size: 25px;
    color: #9db0c4;
    line-height: 1;
}

.dashboard-settings-button {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #101923;
    border: 1px solid rgba(104,136,166,.16);
    color: #b9c8d8;
    font-size: 26px;
}

.dashboard-instrument-panel {
    position: relative;
    min-height: 590px;
    padding: 28px 28px 18px;
    overflow: hidden;
    border: 1px solid rgba(72,102,128,.24);
    border-radius: 32px;
    background:
        radial-gradient(circle at 50% 55%, rgba(0,230,118,.075), transparent 32%),
        radial-gradient(circle at 50% 10%, rgba(37,99,235,.06), transparent 48%),
        #070c11;
    box-shadow:
        inset 0 0 80px rgba(0,0,0,.30),
        0 20px 50px rgba(0,0,0,.18);
}

.dashboard-instrument-panel::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(99,126,151,.07);
    border-radius: 26px;
    pointer-events: none;
}

.dashboard-instrument-stats {
    position: absolute;
    left: 46px;
    right: 46px;
    top: 48px;
    z-index: 12;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.dashboard-stat span {
    display: block;
    color: #a0b1c3;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.dashboard-stat strong {
    display: block;
    margin-top: 7px;
    font-size: clamp(25px, 2.6vw, 34px);
    line-height: 1;
    letter-spacing: -1px;
    white-space: nowrap;
}

.dashboard-stat-expense strong {
    color: #ff5d64;
}

.dashboard-stat-revenue {
    text-align: right;
}

.dashboard-stat-revenue strong {
    color: #00e676;
}

.dashboard-instrument-panel > .speedometer {
    position: relative;
    width: min(820px, 82%);
    height: 470px;
    margin: 50px auto 0;
    overflow: visible;
}

.dashboard-instrument-panel .speedometer-arc-svg {
    width: 100%;
    height: 100%;
    top: 0;
}

.dashboard-instrument-panel .speedometer-arc-path {
    stroke-width: 20;
    filter:
        drop-shadow(0 0 7px rgba(0,230,118,.24))
        drop-shadow(0 0 14px rgba(0,230,118,.10));
}

.dashboard-instrument-panel .speedometer-ticks span {
    font-size: 14px;
    font-weight: 900;
}

.dashboard-instrument-panel .speedometer-ticks span:nth-child(1) { left: 7%;  top: 62%; }
.dashboard-instrument-panel .speedometer-ticks span:nth-child(2) { left: 24%; top: 29%; }
.dashboard-instrument-panel .speedometer-ticks span:nth-child(3) { left: 40%; top: 12%; }
.dashboard-instrument-panel .speedometer-ticks span:nth-child(4) { left: 60%; top: 12%; }
.dashboard-instrument-panel .speedometer-ticks span:nth-child(5) { left: 76%; top: 29%; }
.dashboard-instrument-panel .speedometer-ticks span:nth-child(6) { left: 93%; top: 62%; }

.dashboard-instrument-panel .speedometer-center {
    top: 205px;
    width: 390px;
    min-height: 145px;
    padding: 25px 26px 20px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(8,16,22,.97), rgba(5,10,14,.97));
    border-color: rgba(82,112,140,.22);
    box-shadow:
        0 18px 45px rgba(0,0,0,.34),
        inset 0 1px 0 rgba(255,255,255,.04);
}

.dashboard-instrument-panel .speedometer-label {
    font-size: 12px;
    letter-spacing: 1.3px;
}

.dashboard-instrument-panel .speedometer-center strong {
    margin: 14px 0 8px;
    font-size: clamp(48px, 5vw, 72px);
    letter-spacing: -3px;
}

.dashboard-instrument-panel .speedometer-goal {
    font-size: 15px;
    letter-spacing: .8px;
}

.dashboard-instrument-panel .speedometer-needle {
    top: 292px;
    width: 175px;
    height: 6px;
    z-index: 3;
    transition: transform 3.8s cubic-bezier(.16,1,.3,1);
    box-shadow: 0 0 14px rgba(0,230,118,.55);
}

.dashboard-instrument-panel .needle-hub {
    width: 58px;
    height: 58px;
    left: -19px;
    top: -26px;
    border-width: 7px;
    background:
        radial-gradient(circle at 35% 30%, #354352, #111a22 55%, #060b10);
    box-shadow:
        0 0 0 5px #1b2935,
        0 8px 22px rgba(0,0,0,.5);
}

.dashboard-instrument-panel .speedometer-status {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    margin: 0;
    font-size: 11px;
}

.instrument-side-gauge {
    position: absolute;
    top: 175px;
    z-index: 8;
    width: 110px;
    height: 310px;
    display: grid;
    grid-template-columns: 1fr 40px;
    grid-template-rows: 42px 1fr;
    gap: 6px;
}

.instrument-side-fuel {
    left: 34px;
}

.instrument-side-revenue {
    right: 34px;
}

.side-gauge-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dce7f1;
    color: #0a1118;
    font-size: 22px;
}

.money-icon {
    font-weight: 900;
    font-size: 24px;
}

.side-gauge-scale {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px 0 0 4px;
    color: #9fb0c4;
    font-size: 11px;
    font-weight: 800;
}

.side-gauge-track {
    grid-column: 1;
    grid-row: 2;
    align-self: stretch;
    justify-self: center;
    width: 24px;
    padding: 4px;
    border-radius: 99px;
    background: linear-gradient(180deg, #14202c, #071018);
    border: 1px solid rgba(87,112,134,.24);
    display: flex;
    align-items: flex-end;
}

.side-gauge-fill {
    width: 100%;
    height: 0%;
    min-height: 6px;
    border-radius: 99px;
    transition: height 1.2s ease;
}

.fuel-fill {
    background: linear-gradient(0deg, #ff4d4d, #ff9f2f);
    box-shadow: 0 0 10px rgba(255,76,76,.35);
}

.revenue-fill {
    background: linear-gradient(0deg, #00b96b, #00e676);
    box-shadow: 0 0 10px rgba(0,230,118,.35);
}

.dashboard-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.dashboard-kpi {
    min-height: 155px;
    padding: 20px;
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(18,28,38,.94), rgba(10,17,24,.94));
    border: 1px solid rgba(77,104,128,.25);
}

.dashboard-kpi .kpi-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 16px;
    font-size: 24px;
}

.dashboard-kpi span {
    font-size: 10px;
    letter-spacing: 1px;
}

.dashboard-kpi strong {
    font-size: 26px;
    margin-top: 8px;
}

.dashboard-kpi small {
    margin-top: 9px;
    font-size: 10px;
}

.dashboard-summary-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
    margin-top: 12px;
}

.dashboard-summary-card {
    min-height: 160px;
    padding: 20px;
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(18,28,38,.94), rgba(10,17,24,.94));
}

.dashboard-summary-card .summary-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    font-size: 17px;
}

.dashboard-summary-card span {
    font-size: 10px;
}

.dashboard-summary-card strong {
    font-size: 24px;
}

.dashboard-summary-card small {
    font-size: 10px;
}

@media (max-width: 900px) {
    .dashboard-content:has(#inicio.active) {
        padding-left: 16px;
        padding-right: 16px;
    }

    .dashboard-instrument-panel {
        min-height: 520px;
    }

    .dashboard-instrument-panel > .speedometer {
        width: 78%;
        height: 420px;
    }

    .instrument-side-gauge {
        transform: scale(.85);
        transform-origin: top center;
    }

    .instrument-side-fuel { left: 10px; }
    .instrument-side-revenue { right: 10px; }

    .dashboard-instrument-panel .speedometer-center {
        top: 180px;
    }

    .dashboard-instrument-panel .speedometer-needle {
        top: 265px;
    }

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

@media (max-width: 600px) {
    .dashboard-topbar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .dashboard-topbar .brand {
        font-size: 31px;
    }

    .dashboard-period-button {
        min-width: 0;
        width: 48px;
        height: 44px;
        padding: 0;
        justify-content: center;
        border-radius: 14px;
    }

    .dashboard-period-button strong,
    .dashboard-period-button .period-chevron {
        display: none;
    }

    .dashboard-settings-button {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .dashboard-content:has(#inicio.active) {
        padding: 14px 10px 100px;
    }

    .dashboard-instrument-panel {
        min-height: 440px;
        padding: 15px 8px 12px;
        border-radius: 22px;
    }

    .dashboard-instrument-stats {
        left: 18px;
        right: 18px;
        top: 22px;
    }

    .dashboard-stat span {
        font-size: 7px;
    }

    .dashboard-stat strong {
        font-size: 17px;
    }

    .dashboard-instrument-panel > .speedometer {
        width: 100%;
        height: 330px;
        margin-top: 48px;
    }

    .dashboard-instrument-panel .speedometer-arc-svg {
        width: 100%;
        height: 330px;
    }

    .dashboard-instrument-panel .speedometer-ticks span {
        font-size: 8px;
    }

    .dashboard-instrument-panel .speedometer-ticks span:nth-child(1) { left: 8%; top: 63%; }
    .dashboard-instrument-panel .speedometer-ticks span:nth-child(2) { left: 25%; top: 30%; }
    .dashboard-instrument-panel .speedometer-ticks span:nth-child(3) { left: 41%; top: 14%; }
    .dashboard-instrument-panel .speedometer-ticks span:nth-child(4) { left: 59%; top: 14%; }
    .dashboard-instrument-panel .speedometer-ticks span:nth-child(5) { left: 75%; top: 30%; }
    .dashboard-instrument-panel .speedometer-ticks span:nth-child(6) { left: 92%; top: 63%; }

    .dashboard-instrument-panel .speedometer-center {
        top: 142px;
        width: min(255px, 62%);
        min-height: 105px;
        padding: 16px 10px 12px;
        border-radius: 18px;
    }

    .dashboard-instrument-panel .speedometer-label {
        font-size: 7px;
    }

    .dashboard-instrument-panel .speedometer-center strong {
        margin: 9px 0 5px;
        font-size: clamp(28px, 8vw, 40px);
        letter-spacing: -1.5px;
    }

    .dashboard-instrument-panel .speedometer-goal {
        font-size: 8px;
    }

    .dashboard-instrument-panel .speedometer-needle {
        top: 203px;
        width: 92px;
        height: 4px;
    }

    .dashboard-instrument-panel .needle-hub {
        width: 38px;
        height: 38px;
        left: -13px;
        top: -17px;
        border-width: 5px;
    }

    .instrument-side-gauge {
        top: 125px;
        width: 66px;
        height: 230px;
        transform: scale(.72);
    }

    .instrument-side-fuel { left: -2px; }
    .instrument-side-revenue { right: -2px; }

    .dashboard-instrument-panel .speedometer-status {
        bottom: 15px;
        font-size: 8px;
    }

    .dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 8px;
        margin-top: 10px;
    }

    .dashboard-kpi {
        min-height: 125px;
        padding: 12px;
        border-radius: 17px;
    }

    .dashboard-kpi .kpi-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 13px;
        font-size: 18px;
    }

    .dashboard-kpi span {
        font-size: 8px;
    }

    .dashboard-kpi strong {
        font-size: 17px;
    }

    .dashboard-kpi small {
        font-size: 8px;
    }

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

    .dashboard-summary-card {
        min-height: 100px;
        padding: 14px;
    }
}

@media (max-width: 380px) {
    .dashboard-topbar .brand {
        font-size: 28px;
    }

    .dashboard-instrument-panel {
        min-height: 415px;
    }

    .dashboard-instrument-panel > .speedometer {
        height: 305px;
    }

    .dashboard-instrument-panel .speedometer-arc-svg {
        height: 305px;
    }

    .dashboard-instrument-panel .speedometer-center {
        top: 132px;
        width: 230px;
    }

    .dashboard-instrument-panel .speedometer-center strong {
        font-size: 28px;
    }

    .dashboard-instrument-panel .speedometer-needle {
        top: 190px;
        width: 82px;
    }

    .instrument-side-gauge {
        transform: scale(.62);
        top: 120px;
    }
}


/* =========================================
   DASHBOARD CLEAN — RODA+
   ========================================= */

.dashboard-clean {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.clean-result-card {
    position: relative;
    padding: 42px 28px 28px;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(82,112,140,.24);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 45%, rgba(0,230,118,.09), transparent 38%),
        linear-gradient(145deg, #101923, #080e14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.clean-result-label {
    color: #9fb0c4;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.clean-result-value {
    display: block;
    margin: 10px 0 8px;
    color: #38ee92;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1;
    letter-spacing: -3px;
}

.clean-result-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #38ee92;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.clean-goal {
    width: min(560px, 100%);
    margin: 28px auto 0;
    text-align: left;
}

.clean-goal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #91a4b9;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.clean-goal-top strong {
    color: #38ee92;
    font-size: 11px;
}

.clean-goal-bar {
    height: 9px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: #172330;
}

.clean-goal-bar i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #00b96b, #38ee92);
    transition: width 1s ease;
}

.clean-goal small {
    display: block;
    margin-top: 8px;
    color: #75889d;
    font-size: 9px;
}

.clean-financial-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.clean-info-card {
    min-width: 0;
    min-height: 126px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px;
    border: 1px solid rgba(77,104,128,.24);
    border-radius: 20px;
    background: #101821;
}

.clean-info-icon {
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(0,230,118,.10);
    color: #38ee92;
    font-size: 21px;
    font-weight: 900;
}

.costs-card .clean-info-icon {
    background: rgba(255,82,82,.10);
    color: #ff6262;
}

.fuel-card .clean-info-icon {
    background: rgba(245,158,11,.11);
    color: #ffad33;
}

.km-card .clean-info-icon {
    background: rgba(74,144,255,.11);
    color: #70a7ff;
}

.clean-info-card > div:last-child {
    min-width: 0;
}

.clean-info-card span {
    display: block;
    color: #9fb0c4;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
}

.clean-info-card strong {
    display: block;
    margin-top: 6px;
    color: #f2f6fa;
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1;
    white-space: nowrap;
}

.revenue-card strong {
    color: #38ee92;
}

.costs-card strong {
    color: #ff6262;
}

.clean-info-card small {
    display: block;
    margin-top: 7px;
    color: #71859a;
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clean-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.clean-summary-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(77,104,128,.20);
    border-radius: 20px;
    background: #0d151e;
}

.clean-summary-card span {
    display: block;
    color: #8194a8;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
}

.clean-summary-card strong {
    display: block;
    margin-top: 7px;
    color: #f2f6fa;
    font-size: 23px;
}

.clean-summary-card:nth-child(2) strong {
    color: #38ee92;
}

.clean-summary-card small {
    display: block;
    margin-top: 5px;
    color: #71859a;
    font-size: 8px;
}

.clean-mini-bar {
    height: 6px;
    margin-top: 11px;
    overflow: hidden;
    border-radius: 99px;
    background: #172330;
}

.clean-mini-bar i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #4a90ff;
}

.clean-launch-button {
    width: min(360px, 100%);
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px auto 0;
    border: 0;
    border-radius: 16px;
    background: #00d968;
    color: #031008;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .8px;
    box-shadow: 0 8px 24px rgba(0,217,104,.14);
}

.clean-launch-button span {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(0,0,0,.12);
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 900px) {
    .dashboard-clean {
        max-width: 760px;
    }

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

@media (max-width: 600px) {
    .dashboard-clean {
        max-width: 100%;
    }

    .clean-result-card {
        padding: 30px 16px 22px;
        border-radius: 22px;
    }

    .clean-result-value {
        font-size: clamp(38px, 12vw, 54px);
        letter-spacing: -2px;
    }

    .clean-goal {
        margin-top: 23px;
    }

    .clean-financial-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 8px;
    }

    .clean-info-card {
        min-height: 112px;
        padding: 13px;
        gap: 9px;
        border-radius: 16px;
    }

    .clean-info-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 17px;
    }

    .clean-info-card span,
    .clean-summary-card span {
        font-size: 7px;
    }

    .clean-info-card strong {
        font-size: 16px;
    }

    .clean-info-card small {
        font-size: 7px;
    }

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

    .clean-summary-card {
        padding: 14px;
        border-radius: 16px;
    }

    .clean-summary-card strong {
        font-size: 19px;
    }

    .clean-launch-button {
        min-height: 50px;
        margin-bottom: 4px;
    }
}

@media (max-width: 360px) {
    .clean-result-card {
        padding-left: 12px;
        padding-right: 12px;
    }

    .clean-result-value {
        font-size: 35px;
    }

    .clean-info-card {
        padding: 11px;
    }

    .clean-info-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    .clean-info-card strong {
        font-size: 14px;
    }
}


/* =========================================
   AJUSTE FINAL — DASHBOARD LIMPO
   ========================================= */

#inicio .dashboard-clean {
    display: block;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

#inicio .clean-result-card {
    display: block;
    width: 100%;
}

#inicio .clean-financial-grid {
    display: grid;
}

#inicio .clean-bottom-grid {
    display: grid;
}

#inicio .clean-launch-button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
}

#inicio .clean-launch-button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

#inicio .clean-launch-button:active {
    transform: translateY(0);
}

/* Ações rápidas ficam substituídas pelo botão Novo Lançamento
   no dashboard simplificado. */
#inicio .dashboard-clean ~ .section-title,
#inicio .dashboard-clean ~ .quick-actions {
    display: none;
}

@media (min-width: 901px) {
    #inicio .clean-result-card {
        min-height: 280px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #inicio .clean-result-value {
        font-size: clamp(56px, 6vw, 78px);
    }
}

@media (max-width: 600px) {
    #inicio .dashboard-clean {
        padding: 0;
    }

    #inicio .clean-result-card {
        min-height: 265px;
    }

    #inicio .clean-financial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #inicio .clean-bottom-grid {
        grid-template-columns: 1fr;
    }
}


.journey-delete-button {
    width: 100%;
    min-height: 36px;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(239,68,68,.18);
    border-radius: 10px;
    background: rgba(239,68,68,.05);
    color: #ff6262;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .8px;
}

.journey-delete-button:hover {
    background: rgba(239,68,68,.11);
}

.journey-delete-button:active {
    transform: translateY(1px);
}


.journey-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.journey-actions .journey-edit-button,
.journey-actions .journey-delete-button {
    width: 100%;
    min-height: 36px;
    margin-top: 0;
}

.journey-edit-button {
    padding: 8px 12px;
    border: 1px solid rgba(56,238,146,.18);
    border-radius: 10px;
    background: rgba(56,238,146,.05);
    color: #38ee92;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .8px;
}

.journey-edit-button:hover {
    background: rgba(56,238,146,.11);
}


.fueling-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.fueling-edit-button,
.fueling-delete-button {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .8px;
}

.fueling-edit-button {
    border: 1px solid rgba(56,238,146,.18);
    background: rgba(56,238,146,.05);
    color: #38ee92;
}

.fueling-delete-button {
    border: 1px solid rgba(239,68,68,.18);
    background: rgba(239,68,68,.05);
    color: #ff6262;
}

.fueling-edit-button:hover {
    background: rgba(56,238,146,.11);
}

.fueling-delete-button:hover {
    background: rgba(239,68,68,.11);
}


.cost-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.cost-edit-button,
.cost-delete-button {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .8px;
}

.cost-edit-button {
    border: 1px solid rgba(56,238,146,.18);
    background: rgba(56,238,146,.05);
    color: #38ee92;
}

.cost-edit-button:hover {
    background: rgba(56,238,146,.11);
}


/* =========================================
   CARREGAMENTO INICIAL DO SISTEMA
   ========================================= */

.system-loading {
    width: 100vw;
    height: 100dvh;
    min-height: 100vh;
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: grid;
    place-items: center;

    padding: calc(32px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));

    background:
        radial-gradient(circle at 50% 42%, rgba(0,200,83,.10), transparent 34%),
        var(--carbon);

    opacity: 1;
    visibility: visible;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}

.system-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.system-loading-content {
    width: min(360px, 100%);
    text-align: center;
}

.system-loading-logo {
    font-size: clamp(48px, 15vw, 72px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -5px;
}

.system-loading-logo span {
    color: var(--lime);
}

.system-loading-tagline {
    margin-top: 10px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.system-loading-spinner {
    position: relative;
    width: 46px;
    height: 46px;
    margin: 46px auto 24px;
    border: 3px solid rgba(255,255,255,.08);
    border-top-color: var(--lime);
    border-right-color: var(--green);
    border-radius: 50%;
    animation: rodaLoadingSpin .85s linear infinite;
}

.system-loading-spinner span {
    position: absolute;
    inset: 8px;
    border: 2px solid rgba(255,255,255,.06);
    border-bottom-color: var(--red);
    border-radius: 50%;
    animation: rodaLoadingSpin 1.2s linear infinite reverse;
}

.system-loading-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.2px;
}

.system-loading-message {
    min-height: 20px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.system-loading-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 18px;
}

.system-loading-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--muted);
    animation: rodaLoadingPulse 1s ease-in-out infinite;
}

.system-loading-dots i:nth-child(2) {
    animation-delay: .15s;
}

.system-loading-dots i:nth-child(3) {
    animation-delay: .3s;
}

@keyframes rodaLoadingSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rodaLoadingPulse {
    0%, 100% { opacity: .25; transform: scale(.75); }
    50% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .system-loading-spinner,
    .system-loading-spinner span,
    .system-loading-dots i {
        animation: none;
    }
}


/* =========================================
   FILTRO DE PERÍODO DO DASHBOARD
   ========================================= */

.dashboard-date-filter-content {
    padding-bottom: calc(25px + env(safe-area-inset-bottom));
}

.dashboard-filter-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 18px 0;
}

.dashboard-filter-shortcuts button {
    min-height: 44px;
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
}

.dashboard-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-filter-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dashboard-filter-grid label span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.dashboard-filter-grid input {
    width: 100%;
    min-height: 48px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
}

.dashboard-filter-grid input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,230,118,.10);
}

@media (max-width: 430px) {
    .dashboard-filter-shortcuts {
        grid-template-columns: 1fr;
    }
}


.form-help {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}


/* =========================================
   ACOMPANHAMENTO DE ALUGUEL E METAS UBER
   ========================================= */

.dashboard-progress-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 18px 0;
}

.dashboard-progress-card {
    padding: 20px;
    border: 1px solid rgba(104,136,166,.20);
    border-radius: 22px;
    background: #0c141d;
}

.dashboard-progress-card > small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.dashboard-progress-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-progress-head span {
    display: block;
    margin-bottom: 6px;
    color: #8fa4b9;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.8px;
}

.dashboard-progress-head strong {
    color: #f1f6fb;
    font-size: 20px;
    font-weight: 900;
}

.dashboard-progress-head > strong {
    color: var(--green);
    font-size: 17px;
}

.dashboard-progress-bar {
    width: 100%;
    height: 10px;
    margin: 16px 0 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #172431;
}

.dashboard-progress-bar i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
    transition: width .5s ease;
}

.dashboard-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #8295a8;
    font-size: 10px;
    font-weight: 700;
}

.dashboard-progress-meta b {
    color: #cdd8e3;
}

.rental-progress-card .dashboard-progress-bar i {
    background: #38ee92;
}

.uber-progress-card .dashboard-progress-bar i {
    background: #4f91ff;
}

@media (min-width: 700px) {
    .dashboard-progress-grid {
        grid-template-columns: 1fr 1fr;
    }
}


.goal-settings-content {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.goal-settings-content p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.goal-settings-section {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid rgba(104,136,166,.18);
    border-radius: 18px;
    background: #0c141d;
}

.goal-settings-title {
    display: block;
    margin-bottom: 12px;
    color: #9eb1c4;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.goal-settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.goal-settings-row label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #9eb1c4;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.goal-settings-row input {
    width: 100%;
    min-height: 46px;
    padding: 0 11px;
    border: 1px solid rgba(104,136,166,.25);
    border-radius: 12px;
    background: #111c27;
    color: #f1f6fb;
    font: inherit;
}

.goal-settings-help {
    margin-top: -4px;
    margin-bottom: 12px;
}

@media (max-width: 380px) {
    .goal-settings-row {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   CONTROLE DE VERSÃO
   ========================================= */

.app-version-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid rgba(104,136,166,.20);
    border-radius: 18px;
    background: #0c141d;
}

.app-version-card > div {
    min-width: 0;
}

.app-version-card strong {
    display: block;
    margin: 4px 0;
    color: #f1f6fb;
    font-size: 18px;
    font-weight: 900;
}

.app-version-card span:last-child {
    display: block;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.app-update-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: var(--green);
    color: #06100a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .6px;
}

.app-update-button:active {
    transform: scale(.98);
}

.app-version-card.update-available {
    border-color: rgba(0,230,118,.45);
    box-shadow: 0 0 0 1px rgba(0,230,118,.08);
}

@media (max-width: 380px) {
    .app-version-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-update-button {
        width: 100%;
    }
}


/* =========================================
   MODAL DE METAS — ROLAGEM MOBILE
   ========================================= */

body.modal-open {
    overflow: hidden;
}

.goal-settings-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 24px);
    max-height: calc(100vh - 24px);
    overflow: hidden;
    padding: 0;
}

.goal-settings-header {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 10px;
}

.goal-settings-header h2 {
    margin: 5px 0 7px;
}

.goal-settings-header p {
    margin: 0;
}

.goal-settings-close {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(104,136,166,.22);
    border-radius: 50%;
    background: #111c27;
    color: #cbd7e3;
    font-size: 25px;
    line-height: 1;
}

.goal-settings-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 4px 20px calc(24px + env(safe-area-inset-bottom));
}

.goal-settings-scroll .goal-settings-section {
    margin: 12px 0;
}

.goal-settings-actions {
    display: grid;
    gap: 10px;
    padding: 8px 0 4px;
}

.goal-settings-scroll::-webkit-scrollbar {
    width: 4px;
}

.goal-settings-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #304255;
}

@media (max-width: 430px) {
    .goal-settings-content {
        max-height: calc(100dvh - 12px);
        border-radius: 26px 26px 0 0;
    }

    .goal-settings-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .goal-settings-scroll {
        padding-left: 18px;
        padding-right: 18px;
    }
}


/* =========================================
   AVISO DE NOVA VERSÃO
   ========================================= */

.app-update-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.app-update-modal.show {
    display: flex;
}

.app-update-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.app-update-dialog {
    position: relative;
    width: min(100%, 430px);
    padding: 28px 22px 22px;
    border: 1px solid rgba(104,136,166,.25);
    border-radius: 26px;
    background: #0c141d;
    box-shadow: 0 24px 70px rgba(0,0,0,.5);
    text-align: center;
}

.app-update-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: rgba(0, 230, 118, .12);
    color: var(--green);
    font-size: 32px;
    font-weight: 900;
}

.app-update-dialog h2 {
    margin: 7px 0 10px;
    color: #f3f7fb;
    font-size: 24px;
}

.app-update-dialog p {
    margin: 0 auto 18px;
    max-width: 340px;
    color: #8fa3b6;
    font-size: 13px;
    line-height: 1.55;
}

.app-update-version {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 18px;
    margin: 0 auto 20px;
    padding: 13px;
    border-radius: 15px;
    background: #111c27;
}

.app-update-version span {
    color: #71879b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.app-update-version strong {
    color: #eaf2f8;
    font-size: 15px;
}

.app-update-version strong:last-child {
    color: var(--green);
}

.app-update-actions {
    display: grid;
    gap: 9px;
}

.app-update-primary,
.app-update-later {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .8px;
}

.app-update-primary {
    border: 0;
    background: var(--green);
    color: #06100a;
}

.app-update-later {
    border: 1px solid rgba(104,136,166,.25);
    background: transparent;
    color: #9cafc0;
}

.app-update-dialog small {
    display: block;
    margin-top: 13px;
    color: #657b8e;
    font-size: 9px;
}

@media (max-width: 380px) {
    .app-update-dialog {
        padding: 23px 17px 18px;
    }

    .app-update-dialog h2 {
        font-size: 21px;
    }
}


/* =========================================
   SIMULADOR DE GANHOS
   ========================================= */

.simulator-target-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #9eb1c4;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.simulator-target-label input {
    width: 100%;
    min-height: 50px;
    padding: 0 13px;
    border: 1px solid rgba(104,136,166,.25);
    border-radius: 13px;
    background: #111c27;
    color: #f1f6fb;
    font: inherit;
    font-size: 16px;
}

.simulator-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.simulator-result-grid > div {
    padding: 13px;
    border-radius: 14px;
    background: #111c27;
}

.simulator-result-grid span {
    display: block;
    margin-bottom: 5px;
    color: #71879b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
}

.simulator-result-grid strong {
    color: #f1f6fb;
    font-size: 16px;
    font-weight: 900;
}

.simulator-result-grid > div:nth-child(2) strong,
.simulator-result-grid > div:nth-child(4) strong {
    color: var(--green);
}

.simulator-target-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(0,230,118,.08);
}

.simulator-target-result span {
    color: #9eb1c4;
    font-size: 10px;
    line-height: 1.4;
}

.simulator-target-result strong {
    color: var(--green);
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 380px) {
    .simulator-result-grid {
        grid-template-columns: 1fr;
    }

    .simulator-target-result {
        align-items: flex-start;
        flex-direction: column;
    }
}


.journey-close-field {
    display: none !important;
}

.journey-open-hint {
    margin: 4px 0 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 230, 118, .08);
    color: #9eb1c4;
    font-size: 11px;
    line-height: 1.45;
}

.tire-calibration-reminder {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid #203041;
    border-radius: 16px;
    background: #101a24;
    display: grid;
    gap: 6px;
}
.tire-calibration-reminder strong {
    font-size: 14px;
    color: #f1f5f9;
}
.tire-calibration-reminder span,
.tire-calibration-reminder small {
    color: #91a3b6;
    line-height: 1.45;
}
.tire-calibration-reminder small {
    font-size: 11px;
}
.tire-calibration-reminder.is-due {
    border-color: rgba(255, 193, 7, .45);
}

.dashboard-tire-reminder {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(250, 204, 21, .42);
    border-radius: 16px;
    background: rgba(250, 204, 21, .07);
    align-items: center;
    gap: 12px;
}
.dashboard-tire-reminder-icon {
    font-size: 25px;
}
.dashboard-tire-reminder-content {
    display: grid;
    gap: 3px;
    flex: 1;
}
.dashboard-tire-reminder-content strong {
    font-size: 12px;
    letter-spacing: .08em;
}
.dashboard-tire-reminder-content span {
    color: #e5e7eb;
    font-size: 12px;
}
.dashboard-tire-reminder-content small {
    color: #94a3b8;
    line-height: 1.35;
    font-size: 10px;
}
.dashboard-tire-reminder button {
    border: 0;
    border-radius: 10px;
    padding: 9px 10px;
    font-weight: 800;
    font-size: 10px;
    background: #facc15;
    color: #111827;
}

.dashboard-analytics { margin: 18px 0; }
.dashboard-analytics-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.dashboard-analytics-card { padding:15px; border:1px solid #203041; border-radius:16px; background:#101a24; }
.dashboard-analytics-card > strong { display:block; margin-bottom:12px; font-size:11px; letter-spacing:.08em; text-transform:uppercase; }
.dashboard-stat-row { display:flex; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.05); }
.dashboard-stat-row:last-child { border-bottom:0; }
.dashboard-stat-row span { color:#91a3b6; font-size:12px; }
.dashboard-stat-row strong { font-size:12px; }
@media (max-width:480px) { .dashboard-analytics-grid { grid-template-columns:1fr; } }

.dashboard-period-chart {
    height: 190px;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 12px;
    padding: 10px 4px 0;
    margin-bottom: 12px;
}
.dashboard-bar-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}
.dashboard-bar-value {
    font-size: 9px;
    color: #cbd5e1;
    white-space: nowrap;
}
.dashboard-bar-track {
    width: min(42px, 70%);
    height: 105px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 8px 8px 3px 3px;
    background: rgba(255,255,255,.05);
}
.dashboard-bar-track i {
    display: block;
    width: 100%;
    min-height: 4px;
    border-radius: 8px 8px 3px 3px;
    background: #60a5fa;
}
.dashboard-bar-column strong {
    font-size: 10px;
}
.dashboard-bar-column small,
.dashboard-stat-row small {
    display: block;
    color: #91a3b6;
    font-size: 9px;
    font-weight: 500;
}

.dashboard-platform-chart {
    height: 190px;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 10px;
    padding: 10px 4px 0;
    position: relative;
}
.dashboard-platform-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}
.dashboard-platform-bars {
    height: 125px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
}
.dashboard-platform-bar-wrap {
    height: 125px;
    width: min(28px, 35%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}
.dashboard-platform-value {
    font-size: 9px;
    color: #cbd5e1;
}
.dashboard-platform-track {
    width: 100%;
    height: 105px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 6px 6px 2px 2px;
    background: rgba(255,255,255,.05);
}
.dashboard-platform-track i {
    display: block;
    width: 100%;
    min-height: 0;
    border-radius: 6px 6px 2px 2px;
}
.dashboard-platform-track i.platform-99,
.dashboard-platform-legend i.platform-99 {
    background: #f59e0b;
}
.dashboard-platform-track i.platform-uber,
.dashboard-platform-legend i.platform-uber {
    background: #60a5fa;
}
.dashboard-platform-column > strong {
    font-size: 10px;
}
.dashboard-platform-legend {
    position: absolute;
    left: 4px;
    bottom: 0;
    display: flex;
    gap: 12px;
    font-size: 9px;
    color: #91a3b6;
}
.dashboard-platform-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dashboard-platform-legend i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    display: inline-block;
}

.dashboard-analytics-single { grid-template-columns: 1fr; }
.dashboard-merged-chart { height: 250px; display:flex; align-items:stretch; justify-content:space-around; gap:20px; padding:12px 8px 28px; position:relative; }
.dashboard-merged-column { flex:1; max-width:150px; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:6px; }
.dashboard-merged-value { font-size:11px; font-weight:700; color:#e8eef5; }
.dashboard-merged-track { width:min(64px,70%); height:155px; display:flex; flex-direction:column-reverse; overflow:hidden; border-radius:9px 9px 3px 3px; background:rgba(255,255,255,.05); }
.dashboard-merged-track i { display:block; width:100%; min-height:0; }
.dashboard-merged-track i.merged-99, .dashboard-merged-legend i.merged-99 { background:#f59e0b; }
.dashboard-merged-track i.merged-uber, .dashboard-merged-legend i.merged-uber { background:#60a5fa; }
.dashboard-merged-column strong { font-size:11px; }
.dashboard-merged-column small { color:#91a3b6; font-size:10px; }
.dashboard-merged-legend { position:absolute; left:8px; bottom:0; display:flex; gap:14px; font-size:10px; color:#91a3b6; }
.dashboard-merged-legend span { display:inline-flex; align-items:center; gap:5px; }
.dashboard-merged-legend i { width:8px; height:8px; border-radius:2px; display:inline-block; }

.dashboard-open-journey-reminder {
    margin: 0 0 18px;
    padding: 15px 16px;
    border: 1px solid rgba(249, 115, 22, .45);
    border-radius: 16px;
    background: rgba(249, 115, 22, .08);
    align-items: center;
    gap: 12px;
}
.dashboard-open-journey-icon { font-size: 25px; }
.dashboard-open-journey-content { flex: 1; display:grid; gap:3px; }
.dashboard-open-journey-content strong { font-size:12px; letter-spacing:.08em; }
.dashboard-open-journey-content span { font-size:12px; color:#e5e7eb; }
.dashboard-open-journey-content small { font-size:10px; line-height:1.4; color:#94a3b8; }
.dashboard-open-journey-reminder button {
    border:0; border-radius:10px; padding:9px 10px;
    font-size:10px; font-weight:800; background:#f97316; color:#fff;
}

/* TEMA CLARO / ESCURO */
html[data-theme="light"] {
    --carbon: #eef2f5;
    --surface: #ffffff;
    --surface-2: #e3e8ed;
    --surface-3: #cbd4dc;
    --text: #101820;
    --muted: #425466;
    --border: rgba(15, 23, 42, .20);
}
html[data-theme="light"] .topbar,
html[data-theme="light"] .bottom-nav {
    background: rgba(255,255,255,.94);
}
html[data-theme="light"] .modal-overlay {
    background: rgba(15,23,42,.38);
}
html[data-theme="light"] .modal-content {
    box-shadow: 0 -12px 40px rgba(15,23,42,.16);
}
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
    background: var(--surface);
    color: var(--text);
}
html[data-theme="light"] .launch-button {
    border-color: var(--carbon);
    box-shadow: 0 8px 25px rgba(0,120,55,.18);
}
html[data-theme="light"] .dashboard-open-journey-reminder,
html[data-theme="light"] .dashboard-tire-reminder,
html[data-theme="light"] .tire-calibration-reminder {
    background: #fff8e8;
}
.nav-icon {
    width: 21px;
    height: 21px;
    display: inline-grid;
    place-items: center;
}
.nav-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nav-item.active .nav-icon {
    transform: translateY(-1px);
}

.nav-icon-home svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.settings-theme-item { align-items:center; }
.theme-choice-group { display:flex; gap:5px; margin-left:auto; }
.theme-choice-group button { border:1px solid var(--border); background:var(--surface-2); color:var(--muted); border-radius:10px; padding:7px 8px; font-size:10px; font-weight:700; }
.theme-choice-group button.active { background:var(--text); color:var(--carbon); border-color:var(--text); }
html[data-theme="light"] .theme-choice-group button.active { background:#16202a; color:#fff; }
html[data-theme="light"] .dashboard-analytics-card,
html[data-theme="light"] .dashboard-progress-card,
html[data-theme="light"] .clean-result-card { background:#fff; border-color:rgba(15,23,42,.10); }
html[data-theme="light"] .dashboard-stat-row { border-bottom-color:rgba(15,23,42,.07); }
html[data-theme="light"] .dashboard-stat-row span,
html[data-theme="light"] .dashboard-analytics-card small { color:#647383; }

/* =========================================
   MODO CLARO — CONTRASTE REFORÇADO
   ========================================= */
html[data-theme="light"] body,
html[data-theme="light"] .app {
    color: #101820;
}

html[data-theme="light"] .topbar {
    background: rgba(255,255,255,.97);
    border-bottom-color: rgba(15,23,42,.16);
}

html[data-theme="light"] .brand {
    color: #101820;
}

html[data-theme="light"] .brand span {
    color: #008f45;
}

html[data-theme="light"] .brand-subtitle,
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .section-title,
html[data-theme="light"] .meter-title,
html[data-theme="light"] .kpi-card span,
html[data-theme="light"] .card-footer,
html[data-theme="light"] .rent-details,
html[data-theme="light"] .alert-card p {
    color: #425466;
}

html[data-theme="light"] .section-card,
html[data-theme="light"] .kpi-card,
html[data-theme="light"] .quick-actions button,
html[data-theme="light"] .search-box,
html[data-theme="light"] .financial-meter-card,
html[data-theme="light"] .dashboard-analytics-card {
    box-shadow: 0 2px 10px rgba(15,23,42,.06);
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
    border-color: rgba(15,23,42,.22);
    background: #ffffff;
    color: #101820;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: #687787;
    opacity: 1;
}

html[data-theme="light"] .period-selector button,
html[data-theme="light"] .icon-button {
    background: #e3e8ed;
    color: #101820;
    border: 1px solid rgba(15,23,42,.16);
}

html[data-theme="light"] .bottom-nav {
    background: rgba(255,255,255,.98);
    border-top-color: rgba(15,23,42,.16);
}

html[data-theme="light"] .nav-item {
    color: #526273;
}

html[data-theme="light"] .nav-item.active {
    color: #008f45;
}

html[data-theme="light"] .settings-item {
    background: #ffffff;
    border-color: rgba(15,23,42,.16);
    color: #101820;
}

html[data-theme="light"] .settings-item span {
    color: #425466;
}

html[data-theme="light"] .modal-content {
    background: #ffffff;
    color: #101820;
}

html[data-theme="light"] .modal-content button {
    border-color: rgba(15,23,42,.14);
}

html[data-theme="light"] .journey-card,
html[data-theme="light"] .fueling-card,
html[data-theme="light"] .cost-card {
    background: #ffffff;
    border-color: rgba(15,23,42,.16);
}

html[data-theme="light"] .dashboard-stat-row {
    border-bottom-color: rgba(15,23,42,.10);
}

html[data-theme="light"] .dashboard-stat-row span,
html[data-theme="light"] .dashboard-analytics-card small {
    color: #425466;
}

html[data-theme="light"] .tire-calibration-reminder,
html[data-theme="light"] .dashboard-tire-reminder {
    background: #fff8df;
    border-color: rgba(146,102,0,.28);
    color: #332500;
}

html[data-theme="light"] .dashboard-open-journey-reminder {
    background: #fff0e5;
    border-color: rgba(180,83,9,.30);
    color: #3b1d08;
}

/* Ajustes finais de legibilidade — modo claro */
html[data-theme="light"] .dashboard-progress-card,
html[data-theme="light"] .goal-settings-section {
    background: #ffffff;
    border-color: rgba(15,23,42,.16);
}

html[data-theme="light"] .dashboard-progress-head span,
html[data-theme="light"] .goal-settings-title {
    color: #425466;
}

html[data-theme="light"] .dashboard-progress-head strong:not(.dashboard-progress-head > strong) {
    color: #101820;
}

html[data-theme="light"] .dashboard-progress-meta {
    color: #425466;
}

html[data-theme="light"] .dashboard-progress-meta b {
    color: #101820;
}

html[data-theme="light"] .dashboard-progress-bar {
    background: #cbd4dc;
}

html[data-theme="light"] .dashboard-bar-value,
html[data-theme="light"] .dashboard-bar-column strong {
    color: #101820;
}

html[data-theme="light"] .dashboard-bar-track {
    background: #d6dde3;
}

html[data-theme="light"] .dashboard-bar-column small,
html[data-theme="light"] .dashboard-stat-row small {
    color: #526273;
}

html[data-theme="light"] .dashboard-analytics-card {
    background: #ffffff;
    border-color: rgba(15,23,42,.16);
}

html[data-theme="light"] .dashboard-analytics-card > strong {
    color: #101820;
}

html[data-theme="light"] .dashboard-stat-row span {
    color: #425466;
}

html[data-theme="light"] .dashboard-open-journey-content span {
    color: #425466;
}

html[data-theme="light"] .dashboard-open-journey-content small {
    color: #526273;
}

html[data-theme="light"] .dashboard-open-journey-content strong {
    color: #3b1d08;
}

html[data-theme="light"] .dashboard-tire-reminder-content span {
    color: #4b3b08;
}

html[data-theme="light"] .dashboard-tire-reminder-content small {
    color: #5f522d;
}

html[data-theme="light"] .dashboard-tire-reminder-content strong {
    color: #332500;
}

html[data-theme="light"] .financial-result span {
    color: #425466;
}

html[data-theme="light"] .comparison,
html[data-theme="light"] .card-footer,
html[data-theme="light"] .rent-details {
    color: #425466;
}

html[data-theme="light"] .rent-details strong {
    color: #101820;
}

html[data-theme="light"] .progress {
    background: #cbd4dc;
}

html[data-theme="light"] .period-selector strong,
html[data-theme="light"] .page-heading h1,
html[data-theme="light"] .card-header strong,
html[data-theme="light"] .journey-top strong,
html[data-theme="light"] .day-header strong {
    color: #101820;
}

/* Correção final dos cards do Dashboard no modo claro */
html[data-theme="light"] .dashboard-summary-card {
    background: #ffffff !important;
    border-color: rgba(15,23,42,.16);
    box-shadow: 0 2px 10px rgba(15,23,42,.06);
}

html[data-theme="light"] .dashboard-summary-card .summary-icon {
    background: #e8eef3;
    color: #243443;
}

html[data-theme="light"] .dashboard-summary-card span {
    color: #425466;
}

html[data-theme="light"] .dashboard-summary-card strong {
    color: #101820;
}

html[data-theme="light"] .dashboard-summary-card small {
    color: #526273;
}

html[data-theme="light"] .summary-progress {
    background: #cbd4dc;
}

html[data-theme="light"] .dashboard-progress-card {
    background: #ffffff !important;
    border-color: rgba(15,23,42,.16);
    box-shadow: 0 2px 10px rgba(15,23,42,.06);
}

html[data-theme="light"] .dashboard-progress-head strong {
    color: #101820;
}

html[data-theme="light"] .dashboard-progress-meta {
    color: #425466;
}

html[data-theme="light"] .dashboard-progress-meta b {
    color: #101820;
}

html[data-theme="light"] .dashboard-progress-bar {
    background: #cbd4dc;
}

/* MODO CLARO — substituir fundos escuros restantes do Dashboard */
html[data-theme="light"] .dashboard-kpi,
html[data-theme="light"] .dashboard-summary-card {
    background: #ffffff !important;
    border-color: rgba(15,23,42,.16) !important;
    box-shadow: 0 2px 10px rgba(15,23,42,.06);
}

html[data-theme="light"] .dashboard-kpi strong,
html[data-theme="light"] .dashboard-summary-card strong {
    color: #101820;
}

html[data-theme="light"] .dashboard-kpi span,
html[data-theme="light"] .dashboard-summary-card span {
    color: #425466;
}

html[data-theme="light"] .dashboard-kpi small,
html[data-theme="light"] .dashboard-summary-card small {
    color: #526273;
}

html[data-theme="light"] .dashboard-kpi .kpi-icon,
html[data-theme="light"] .dashboard-summary-card .summary-icon {
    background: #e8eef3;
    color: #243443;
}

html[data-theme="light"] .dashboard-kpi .result-kpi,
html[data-theme="light"] .result-kpi {
    background: #ffffff !important;
}

html[data-theme="light"] .dashboard-summary-card {
    background: #ffffff !important;
}

html[data-theme="light"] .summary-progress {
    background: #cbd4dc !important;
}


/* =========================================================
   TEMA CLARO — DASHBOARD CLEAN
   Garante que nenhum card financeiro herde o fundo escuro.
   ========================================================= */
html[data-theme="light"] #inicio .clean-result-card {
    background:
        radial-gradient(circle at 50% 45%, rgba(0,143,69,.055), transparent 38%),
        #ffffff !important;
    border-color: rgba(15,23,42,.14) !important;
    box-shadow: 0 2px 10px rgba(15,23,42,.06) !important;
}

html[data-theme="light"] #inicio .clean-result-label {
    color: #425466 !important;
}

html[data-theme="light"] #inicio .clean-goal-top {
    color: #425466 !important;
}

html[data-theme="light"] #inicio .clean-goal-bar,
html[data-theme="light"] #inicio .clean-mini-bar {
    background: #cbd4dc !important;
}

html[data-theme="light"] #inicio .clean-goal small {
    color: #526273 !important;
}

html[data-theme="light"] #inicio .clean-info-card,
html[data-theme="light"] #inicio .clean-summary-card {
    background: #ffffff !important;
    border-color: rgba(15,23,42,.14) !important;
    box-shadow: 0 2px 10px rgba(15,23,42,.05) !important;
}

html[data-theme="light"] #inicio .clean-info-card span,
html[data-theme="light"] #inicio .clean-summary-card span {
    color: #425466 !important;
}

html[data-theme="light"] #inicio .clean-info-card strong,
html[data-theme="light"] #inicio .clean-summary-card strong {
    color: #101820 !important;
}

html[data-theme="light"] #inicio .clean-info-card small,
html[data-theme="light"] #inicio .clean-summary-card small {
    color: #526273 !important;
}

html[data-theme="light"] #inicio .clean-info-card.revenue-card strong,
html[data-theme="light"] #inicio .clean-summary-card:nth-child(2) strong {
    color: #008f45 !important;
}

html[data-theme="light"] #inicio .clean-info-card.costs-card strong {
    color: #d93636 !important;
}

html[data-theme="light"] #inicio .clean-info-icon {
    background: #e8eef3 !important;
    color: #243443 !important;
}

html[data-theme="light"] #inicio .revenue-card .clean-info-icon {
    background: rgba(0,143,69,.10) !important;
    color: #008f45 !important;
}

html[data-theme="light"] #inicio .costs-card .clean-info-icon {
    background: rgba(217,54,54,.10) !important;
    color: #d93636 !important;
}

html[data-theme="light"] #inicio .fuel-card .clean-info-icon {
    background: rgba(180,120,0,.10) !important;
    color: #a06a00 !important;
}

html[data-theme="light"] #inicio .km-card .clean-info-icon {
    background: rgba(37,99,235,.10) !important;
    color: #2563eb !important;
}


/* =========================================================
   MODO CLARO — CABEÇALHO DO DASHBOARD
   ========================================================= */
html[data-theme="light"] .dashboard-topbar {
    background: #ffffff !important;
    border-bottom-color: rgba(15,23,42,.14) !important;
}

html[data-theme="light"] .dashboard-period-button {
    background: #e3e8ed !important;
    border-color: rgba(15,23,42,.16) !important;
    color: #101820 !important;
    box-shadow: none;
}

html[data-theme="light"] .dashboard-period-button strong {
    color: #101820 !important;
}

html[data-theme="light"] .period-calendar-icon {
    color: #243443 !important;
}

html[data-theme="light"] .period-chevron {
    color: #526273 !important;
}

html[data-theme="light"] .dashboard-settings-button {
    background: #e3e8ed !important;
    border-color: rgba(15,23,42,.16) !important;
    color: #243443 !important;
    box-shadow: none;
}

html[data-theme="light"] .dashboard-settings-button:hover,
html[data-theme="light"] .dashboard-period-button:hover {
    background: #d9e0e6 !important;
}


/* =========================================================
   CAMPOS ARRASTÁVEIS — FILTRO DO DASHBOARD
   ========================================================= */
.dashboard-filter-grid {
    position: relative;
}

.dashboard-filter-field {
    position: relative;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}

.dashboard-filter-field::after {
    content: "";
    position: absolute;
    inset: -2px;
    border: 1px dashed transparent;
    border-radius: 14px;
    pointer-events: none;
    transition: border-color .16s ease, background .16s ease;
}

.dashboard-filter-drag-handle {
    position: absolute;
    top: 6px;
    right: 10px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    color: #71879b;
    font-size: 18px;
    line-height: 1;
    letter-spacing: -4px;
    opacity: .65;
    pointer-events: none;
}

.dashboard-filter-field:active {
    cursor: grabbing;
}

.dashboard-filter-grid.is-dragging-fields .dashboard-filter-field {
    cursor: grabbing;
}

.dashboard-filter-grid.is-dragging-fields .dashboard-filter-field::after {
    border-color: rgba(0, 230, 118, .22);
}

.dashboard-filter-field.is-dragging {
    z-index: 10;
    opacity: .82;
    transform: scale(.985);
    box-shadow: 0 12px 30px rgba(0,0,0,.20);
}

.dashboard-filter-field.is-dragging::after {
    border-color: rgba(0, 230, 118, .70);
    background: rgba(0, 230, 118, .035);
}

.dashboard-filter-field input {
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
}

@media (hover: hover) {
    .dashboard-filter-field:hover .dashboard-filter-drag-handle {
        opacity: 1;
    }
}

html[data-theme="light"] .dashboard-filter-drag-handle {
    color: #526273;
}

html[data-theme="light"] .dashboard-filter-field.is-dragging::after {
    border-color: rgba(0, 143, 69, .55);
    background: rgba(0, 143, 69, .035);
}


/* =========================================
   JORNADA — PAUSAS
   ========================================= */

.dashboard-open-journey-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.dashboard-open-journey-actions button {
    min-width: 132px;
}

.dashboard-journey-pause-button,
.dashboard-journey-resume-button {
    background: var(--surface-2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

.journey-pause-fields {
    display: grid;
    gap: 14px;
    margin-bottom: 8px;
}

.journey-pause-fields label {
    display: block;
}

.journey-pause-fields label > span {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
}

.journey-pause-fields input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-2);
    color: var(--text);
}

.journey-pause-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-width: 560px) {
    .journey-pause-fields {
        grid-template-columns: repeat(2, 1fr);
    }

    .journey-pause-fields label:last-child {
        grid-column: 1 / -1;
    }
}



/* =========================================
   HISTÓRICO DE JORNADAS — PAUSAS
   ========================================= */

.journey-duration-line {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    padding: 10px 0 0;
    border-top: 1px solid var(--border);
}

.journey-duration-line span,
.journey-pause-history-meta span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .5px;
}

.journey-duration-line b,
.journey-pause-history-meta b {
    color: var(--text);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
}

.journey-pauses-history {
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2, var(--surface));
    overflow: hidden;
}

.journey-pauses-history summary {
    padding: 9px 11px;
    cursor: pointer;
    list-style: none;
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .7px;
}

.journey-pauses-history summary::-webkit-details-marker {
    display: none;
}

.journey-pauses-history summary::after {
    content: "＋";
    float: right;
    font-size: 11px;
}

.journey-pauses-history[open] summary::after {
    content: "−";
}

.journey-pauses-list {
    border-top: 1px solid var(--border);
}

.journey-pause-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 11px;
}

.journey-pause-history-item + .journey-pause-history-item {
    border-top: 1px solid var(--border);
}

.journey-pause-history-item > div:first-child {
    min-width: 0;
}

.journey-pause-history-item strong {
    display: block;
    color: var(--text);
    font-size: 9px;
    font-weight: 900;
}

.journey-pause-history-item > div:first-child span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.journey-pause-history-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.journey-no-pauses {
    margin-top: 10px;
    padding: 9px 11px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .6px;
}

@media (max-width: 560px) {
    .journey-duration-line {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .journey-duration-line span:last-child {
        grid-column: 1 / -1;
    }

    .journey-pause-history-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .journey-pause-history-meta {
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}


/* CONFIGURAÇÕES — SEÇÕES */
#mais .settings-groups{display:grid;gap:22px}
#mais .settings-section{display:grid;overflow:hidden}
#mais .settings-section-heading{margin:0 0 9px 2px;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:1.2px}
#mais .settings-section .settings-item{min-height:68px;border-radius:0;border-bottom:1px solid var(--border);background:var(--surface)}
#mais .settings-section .settings-item:first-of-type,#mais .settings-section .settings-theme-item{border-radius:16px 16px 0 0}
#mais .settings-section .settings-item:last-child{border-radius:0 0 16px 16px;border-bottom:0}
#mais .settings-section .settings-item:only-child{border-radius:16px}
#mais .settings-section .settings-icon{color:var(--orange,#ff6b00);background:transparent}
#mais .settings-section .settings-item:hover{background:var(--surface-2)}
#mais .settings-about-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:9px;padding:13px 14px;background:var(--surface);border:1px solid var(--border);border-radius:16px}
#mais .settings-about-row span,#mais .settings-about-row small{display:block;color:var(--muted);font-size:9px}
#mais .settings-about-row strong{display:block;margin-top:3px;color:var(--text);font-size:15px}
#mais .settings-about-row small{margin-top:3px}
#mais .settings-about-row .app-update-button{width:auto;min-height:36px;padding:8px 12px}
@media(max-width:600px){#mais .settings-groups{gap:19px}#mais .settings-section-heading{font-size:9px}#mais .settings-section .settings-item{min-height:70px}#mais .settings-about-row{align-items:flex-start}}


/* JORNADAS — FILTRO DE PERÍODO */
.journey-filter-bar{display:inline-flex;align-items:center;gap:4px;margin:2px 0 14px;padding:4px;background:var(--surface-2);border:1px solid var(--border);border-radius:13px}
.journey-filter-button{appearance:none;border:0;min-height:36px;padding:0 13px;border-radius:9px;background:transparent;color:var(--muted);font-family:inherit;font-size:11px;font-weight:850;cursor:pointer;transition:background .15s ease,color .15s ease,transform .15s ease}
.journey-filter-button:hover{color:var(--text);background:rgba(255,255,255,.05)}
.journey-filter-button:active{transform:scale(.97)}
.journey-filter-button.active{background:var(--orange);color:#fff;box-shadow:0 4px 12px rgba(255,107,0,.18)}
html[data-theme="light"] .journey-filter-button:hover{background:rgba(0,0,0,.05)}
@media(max-width:600px){.journey-filter-bar{width:100%;display:grid;grid-template-columns:repeat(4,1fr)}.journey-filter-button{width:100%;padding:0 7px}}


/* JORNADAS — BOTÃO NOVA JORNADA */
#jornadas .page-header .header-action-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--orange);
    color: #fff;
    font-family: inherit;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(255,107,0,.18);
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}

#jornadas .page-header .header-action-button:hover {
    filter: brightness(1.05);
}

#jornadas .page-header .header-action-button:active {
    transform: scale(.95);
}

@media (max-width: 600px) {
    #jornadas .page-header .header-action-button {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }
}


/* JORNADA — PAUSAS */
.dashboard-open-journey-actions{display:flex;flex-direction:column;gap:8px;flex-shrink:0}.dashboard-open-journey-actions button{min-width:132px}.dashboard-journey-pause-button,.dashboard-journey-resume-button{background:var(--surface-2)!important;color:var(--text)!important;border:1px solid var(--border)!important}.journey-pause-fields{display:grid;gap:14px;margin-bottom:8px}.journey-pause-fields label{display:block}.journey-pause-fields label>span{display:block;margin-bottom:7px;font-size:11px;font-weight:800;color:var(--muted)}.journey-pause-fields input{width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--border);border-radius:13px;background:var(--surface-2);color:var(--text)}.journey-pause-modal-content{max-height:90vh;overflow-y:auto}@media (min-width:560px){.journey-pause-fields{grid-template-columns:repeat(2,1fr)}.journey-pause-fields label:last-child{grid-column:1/-1}}
