:root {
    --bg: #090d12;
    --surface: #10161e;
    --surface-2: #151d27;
    --surface-3: #1b2531;

    --border: rgba(255, 255, 255, .075);
    --border-strong: rgba(255, 255, 255, .12);

    --text: #f6f7f9;
    --text-soft: #d2d7df;
    --muted: #8e99a8;

    --red: #e32636;
    --red-dark: #b81624;
    --red-soft: rgba(227, 38, 54, .12);

    --success: #27c878;

    --sidebar-width: 272px;
    --topbar-height: 76px;

    --radius-lg: 22px;
    --radius-md: 15px;
    --radius-sm: 11px;

    --shadow-panel:
        0 18px 50px rgba(0, 0, 0, .18);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;

    min-width: 320px;
    min-height: 100vh;

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

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

    -webkit-font-smoothing: antialiased;
}

body.sidebar-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   LAYOUT
========================================================= */

.app-layout {
    min-height: 100vh;
}

.app-main {
    min-height: 100vh;

    margin-left: var(--sidebar-width);

    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;

    padding:
        30px
        clamp(22px, 3vw, 42px)
        42px;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;

    inset:
        0
        auto
        0
        0;

    z-index: 50;

    width: var(--sidebar-width);

    display: flex;
    flex-direction: column;

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

    background:
        linear-gradient(
            180deg,
            #0d1218 0%,
            #0b1016 100%
        );
}

.sidebar-brand {
    min-height: 112px;

    display: flex;

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

    padding: 22px;

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

.brand-link {
    display: inline-flex;

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

.sidebar-logo {
    display: block;

    width: min(192px, 100%);
    height: auto;

    object-fit: contain;
}

.sidebar-nav {
    flex: 1;

    overflow-y: auto;

    padding: 22px 14px;

    scrollbar-width: thin;
}

.nav-group + .nav-group {
    margin-top: 26px;
}

.nav-group-bottom {
    padding-top: 4px;
}

.nav-label {
    display: block;

    margin:
        0
        12px
        9px;

    color: #5f6a78;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.nav-item {
    min-height: 46px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        0
        13px;

    border: 1px solid transparent;
    border-radius: 12px;

    color: #9ea8b5;

    text-decoration: none;

    font-size: 13px;
    font-weight: 650;

    transition:
        background .16s ease,
        color .16s ease,
        border-color .16s ease;
}

.nav-item + .nav-item {
    margin-top: 4px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, .035);

    color: #fff;
}

.nav-item.is-active {
    border-color: rgba(227, 38, 54, .16);

    background:
        linear-gradient(
            90deg,
            rgba(227, 38, 54, .14),
            rgba(227, 38, 54, .045)
        );

    color: #fff;
}

.nav-item.is-active::before {
    content: "";

    width: 3px;
    height: 20px;

    margin-left: -14px;
    margin-right: -1px;

    border-radius: 999px;

    background: var(--red);
}

.nav-icon {
    width: 19px;
    height: 19px;

    flex: 0 0 19px;

    display: inline-flex;
}

.nav-icon svg {
    width: 100%;
    height: 100%;

    fill: currentColor;
}

.sidebar-footer {
    padding:
        17px
        26px
        21px;

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

.sidebar-footer span,
.sidebar-footer small {
    display: block;
}

.sidebar-footer span {
    color: #adb5c0;

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

.sidebar-footer small {
    margin-top: 3px;

    color: #586372;

    font-size: 10px;
}

/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    position: sticky;

    top: 0;

    z-index: 30;

    min-height: var(--topbar-height);

    display: flex;

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

    gap: 22px;

    padding:
        0
        clamp(22px, 3vw, 42px);

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

    background: rgba(9, 13, 18, .88);

    backdrop-filter: blur(20px);
}

.topbar-left,
.topbar-right {
    display: flex;

    align-items: center;
}

.topbar-context {
    display: flex;

    align-items: center;

    gap: 14px;
}

.topbar-app-name {
    color: #dce1e7;

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

.topbar-status {
    position: relative;

    padding-left: 14px;

    color: #75808e;

    font-size: 11px;
}

.topbar-status::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 0;

    width: 6px;
    height: 6px;

    transform: translateY(-50%);

    border-radius: 999px;

    background: var(--success);

    box-shadow:
        0 0 0 4px rgba(39, 200, 120, .07);
}

.icon-button {
    border: 0;

    background: transparent;

    color: #fff;

    cursor: pointer;
}

.mobile-menu-button {
    width: 42px;
    height: 42px;

    display: none;

    margin-right: 12px;

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

.mobile-menu-button span {
    display: block;

    width: 17px;
    height: 2px;

    margin: 3px auto;

    border-radius: 999px;

    background: currentColor;
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    min-height: 48px;

    display: flex;

    align-items: center;

    gap: 10px;

    border: 1px solid transparent;
    border-radius: 13px;

    padding:
        4px
        8px
        4px
        5px;

    background: transparent;

    color: inherit;

    cursor: pointer;

    transition:
        border-color .16s ease,
        background .16s ease;
}

.user-menu-trigger:hover,
.user-menu-trigger[aria-expanded="true"] {
    border-color: var(--border);

    background: rgba(255, 255, 255, .035);
}

.user-avatar {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(227, 38, 54, .25);
    border-radius: 12px;

    background: var(--red-soft);

    color: #ff717c;

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

.user-info {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    min-width: 105px;
}

.user-info strong {
    max-width: 160px;

    overflow: hidden;

    color: #e4e8ed;

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

    font-size: 12px;
}

.user-info small {
    margin-top: 2px;

    color: #6c7785;

    font-size: 10px;
}

.user-chevron {
    width: 19px;
    height: 19px;

    fill: #66717e;
}

.user-menu-dropdown {
    position: absolute;

    top: calc(100% + 9px);
    right: 0;

    width: 190px;

    overflow: hidden;

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

    background: #111821;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .38);
}

.user-menu-dropdown form {
    margin: 0;
}

.dropdown-item {
    width: 100%;
    min-height: 44px;

    display: flex;

    align-items: center;

    border: 0;

    padding:
        0
        15px;

    background: transparent;

    color: #bdc5cf;

    text-decoration: none;

    cursor: pointer;

    font-size: 12px;
    font-weight: 650;

    text-align: left;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, .045);

    color: #fff;
}

.dropdown-danger {
    color: #ff7f89;
}

/* =========================================================
   PAGE HEADING
========================================================= */

.page-heading {
    min-height: 70px;

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}

.page-kicker,
.panel-kicker {
    display: block;

    color: #ff5a67;

    font-size: 10px;
    font-weight: 850;
    letter-spacing: .13em;
}

.page-heading h1 {
    margin:
        7px
        0
        5px;

    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.page-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}

.page-heading-actions {
    padding-top: 8px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    min-height: 42px;

    display: inline-flex;

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

    border-radius: 11px;

    padding:
        0
        15px;

    text-decoration: none;

    cursor: pointer;

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

.btn-secondary {
    border: 1px solid var(--border);

    background: rgba(255, 255, 255, .035);

    color: #d9dee5;
}

.btn-secondary:hover {
    border-color: var(--border-strong);

    background: rgba(255, 255, 255, .06);
}

/* =========================================================
   METRICS
========================================================= */

.metrics-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 18px;
}

.metric-card {
    min-width: 0;

    padding: 20px;

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

    background:
        linear-gradient(
            145deg,
            rgba(18, 25, 34, .96),
            rgba(13, 18, 25, .96)
        );

    box-shadow: var(--shadow-panel);
}

.metric-card-head {
    display: flex;

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

    gap: 10px;

    margin-bottom: 20px;
}

.metric-label {
    color: #9ca6b3;

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

.metric-badge {
    padding:
        5px
        7px;

    border: 1px solid rgba(227, 38, 54, .13);
    border-radius: 8px;

    background: rgba(227, 38, 54, .07);

    color: #dc6770;

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

.metric-value {
    display: block;

    overflow: hidden;

    margin-bottom: 9px;

    color: #fff;

    font-size: clamp(23px, 3vw, 30px);
    line-height: 1;
    letter-spacing: -.035em;

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

.metric-meta {
    display: block;

    overflow: hidden;

    color: #697482;

    font-size: 10px;

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

/* =========================================================
   PANELS
========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(300px, .65fr);

    gap: 18px;

    margin-top: 18px;
}

.panel {
    min-width: 0;

    padding: 22px;

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

    background:
        linear-gradient(
            145deg,
            rgba(17, 23, 31, .94),
            rgba(12, 17, 23, .94)
        );

    box-shadow: var(--shadow-panel);
}

.panel-head {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 20px;
}

.panel-head h2 {
    margin:
        6px
        0
        0;

    color: #e9edf1;

    font-size: 16px;
    letter-spacing: -.02em;
}

.panel-link {
    flex: 0 0 auto;

    color: #8a95a3;

    text-decoration: none;

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

.panel-link:hover {
    color: #fff;
}

/* =========================================================
   EMPTY STATES
========================================================= */

.empty-state {
    min-height: 222px;

    display: flex;
    flex-direction: column;

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

    padding: 26px;

    border: 1px dashed rgba(255, 255, 255, .075);
    border-radius: 16px;

    background: rgba(255, 255, 255, .018);

    text-align: center;
}

.empty-state.compact {
    min-height: 170px;
}

.empty-state-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    margin-bottom: 15px;

    border: 1px solid rgba(227, 38, 54, .17);
    border-radius: 14px;

    background: rgba(227, 38, 54, .07);

    color: #da5964;

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

.empty-state h3 {
    margin: 0 0 7px;

    color: #cdd3db;

    font-size: 13px;
}

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

    margin: 0;

    color: #646f7d;

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

/* =========================================================
   FINANCE SUMMARY
========================================================= */

.finance-summary {
    display: grid;

    gap: 1px;

    overflow: hidden;

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

    background: var(--border);
}

.finance-summary > div {
    min-height: 62px;

    display: flex;

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

    gap: 20px;

    padding:
        0
        16px;

    background: #10161e;
}

.finance-summary span {
    color: #7f8a98;

    font-size: 11px;
}

.finance-summary strong {
    color: #dfe4ea;

    font-size: 13px;
}

.finance-summary-total {
    background:
        linear-gradient(
            90deg,
            rgba(227, 38, 54, .08),
            #10161e
        ) !important;
}

.finance-summary-total strong {
    color: #ff6975;
}

/* =========================================================
   FOOTER
========================================================= */

.app-footer {
    min-height: 58px;

    display: flex;

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

    gap: 16px;

    padding:
        0
        clamp(22px, 3vw, 42px);

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

    color: #535d69;

    font-size: 10px;
}

/* =========================================================
   BACKDROP
========================================================= */

.sidebar-backdrop {
    position: fixed;

    inset: 0;

    z-index: 45;

    opacity: 0;

    background: rgba(0, 0, 0, .58);

    transition: opacity .18s ease;
}

.sidebar-backdrop.is-visible {
    opacity: 1;
}

/* =========================================================
   LOGIN BASE - MANTÉM COMPATIBILIDADE
========================================================= */

.login-page,
.setup-page {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 16% 16%,
            rgba(227, 38, 54, .11),
            transparent 28rem
        ),
        radial-gradient(
            circle at 88% 82%,
            rgba(227, 38, 54, .055),
            transparent 24rem
        ),
        var(--bg);
}

.login-shell,
.setup-shell {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 28px;
}

.login-card,
.setup-card {
    width: min(100%, 440px);

    position: relative;
    overflow: hidden;

    padding: 38px;

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

    background:
        linear-gradient(
            145deg,
            rgba(20, 27, 36, .98),
            rgba(11, 16, 22, .98)
        );

    box-shadow:
        0 30px 90px rgba(0, 0, 0, .48);
}

.login-card::before,
.setup-card::before {
    content: "";

    position: absolute;

    inset:
        0
        0
        auto;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--red),
            transparent
        );
}

.brand {
    display: flex;
    justify-content: center;

    margin-bottom: 30px;
}

.brand-logo {
    display: block;

    width: min(250px, 82%);
    height: auto;

    object-fit: contain;
}

.eyebrow {
    display: inline-flex;

    margin-bottom: 10px;

    color: #ff6672;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.login-heading {
    margin-bottom: 28px;
}

.login-heading h1,
.setup-card h1 {
    margin: 0 0 8px;

    font-size: clamp(27px, 6vw, 34px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.login-heading p,
.setup-card p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.65;
}

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

.field {
    margin-bottom: 19px;
}

.field label {
    display: block;

    margin-bottom: 8px;

    color: #dce2e9;

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

.field input {
    width: 100%;
    height: 52px;

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

    outline: none;

    padding:
        0
        15px;

    background: rgba(255, 255, 255, .035);

    color: var(--text);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 88px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 8px;

    transform: translateY(-50%);

    min-width: 72px;
    height: 36px;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: #aab3bf;

    cursor: pointer;

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

.primary-button {
    width: 100%;
    min-height: 50px;

    display: inline-flex;

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

    border: 0;
    border-radius: var(--radius-md);

    background:
        linear-gradient(
            135deg,
            var(--red),
            var(--red-dark)
        );

    color: #fff;

    cursor: pointer;

    font-weight: 800;
}

.notice {
    margin-bottom: 18px;

    padding: 12px 14px;

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

    font-size: 13px;
    line-height: 1.45;
}

.notice-error {
    border: 1px solid rgba(227, 38, 54, .24);

    background: rgba(227, 38, 54, .095);

    color: #ffb0b7;
}

.notice-success {
    border: 1px solid rgba(36, 200, 117, .23);

    background: rgba(36, 200, 117, .09);

    color: #8cf0b8;
}

.notice-info {
    border: 1px solid rgba(255, 255, 255, .09);

    background: rgba(255, 255, 255, .035);

    color: #c7cdd6;
}

.security-note {
    display: flex;

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

    gap: 8px;

    margin-top: 25px;

    color: #697585;

    font-size: 11px;
}

.security-dot {
    width: 6px;
    height: 6px;

    border-radius: 999px;

    background: var(--success);
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 1180px) {
    .metrics-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);

        box-shadow:
            30px
            0
            70px
            rgba(0, 0, 0, .38);

        transition: transform .18s ease;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .mobile-menu-button {
        display: inline-block;
    }
}

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

    .topbar-app-name {
        display: none;
    }
}

@media (max-width: 640px) {
    .page-content {
        padding:
            22px
            16px
            32px;
    }

    .topbar {
        padding:
            0
            16px;
    }

    .page-heading {
        flex-direction: column;

        align-items: stretch;
    }

    .page-heading-actions {
        padding-top: 0;
    }

    .page-heading-actions .btn {
        width: 100%;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .user-info {
        display: none;
    }

    .user-chevron {
        display: none;
    }

    .user-menu-trigger {
        padding-right: 5px;
    }

    .panel,
    .metric-card {
        padding: 18px;
    }

    .app-footer {
        min-height: 70px;

        flex-direction: column;

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

        padding:
            14px
            16px;
    }

    .login-shell,
    .setup-shell {
        padding: 18px;
    }

    .login-card,
    .setup-card {
        padding: 28px 22px;

        border-radius: 20px;
    }
}


/* =========================================================
   DASHBOARD PRIME - REFERÊNCIA COMERCIAL BOHER
========================================================= */

.dashboard-page {
    background:
        radial-gradient(
            circle at 74% 0%,
            rgba(227, 38, 54, .035),
            transparent 32rem
        ),
        var(--bg);
}

.dashboard-titlebar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 24px;
}

.dashboard-titlebar h1 {
    margin: 6px 0 5px;

    font-size: clamp(29px, 4vw, 38px);
    line-height: 1;
    letter-spacing: -.045em;
}

.dashboard-titlebar p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
}

.dashboard-primary-action {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 15px;

    border: 1px solid rgba(227, 38, 54, .28);
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            rgba(227, 38, 54, .96),
            rgba(184, 22, 36, .96)
        );

    box-shadow:
        0 10px 26px rgba(227, 38, 54, .14);

    color: #fff;

    text-decoration: none;

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

.dashboard-primary-action:hover {
    filter: brightness(1.06);
}

.action-plus {
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

/* =========================================================
   PRIME METRICS
========================================================= */

.prime-metrics {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 14px;
}

.prime-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    padding: 17px;

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

    background:
        linear-gradient(
            145deg,
            rgba(18, 24, 32, .97),
            rgba(12, 17, 23, .97)
        );

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .15);
}

.prime-card::after {
    content: "";

    position: absolute;

    inset:
        auto
        0
        0;

    height: 2px;

    opacity: .75;
}

.prime-card-red::after {
    background:
        linear-gradient(
            90deg,
            transparent,
            #e32636,
            transparent
        );
}

.prime-card-blue::after {
    background:
        linear-gradient(
            90deg,
            transparent,
            #4f8fe8,
            transparent
        );
}

.prime-card-amber::after {
    background:
        linear-gradient(
            90deg,
            transparent,
            #e1a53a,
            transparent
        );
}

.prime-card-green::after {
    background:
        linear-gradient(
            90deg,
            transparent,
            #37bd72,
            transparent
        );
}

.prime-card-top {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 13px;
}

.prime-icon {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    flex: 0 0 30px;

    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 9px;

    background: rgba(255, 255, 255, .035);

    color: #e5e8ec;

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

.prime-card-red .prime-icon {
    border-color: rgba(227, 38, 54, .18);
    background: rgba(227, 38, 54, .08);
    color: #ff6672;
}

.prime-card-blue .prime-icon {
    border-color: rgba(79, 143, 232, .18);
    background: rgba(79, 143, 232, .08);
    color: #7cb0f5;
}

.prime-card-amber .prime-icon {
    border-color: rgba(225, 165, 58, .18);
    background: rgba(225, 165, 58, .08);
    color: #edbb5f;
}

.prime-card-green .prime-icon {
    border-color: rgba(55, 189, 114, .18);
    background: rgba(55, 189, 114, .08);
    color: #72da9e;
}

.prime-context {
    overflow: hidden;

    color: #818c9a;

    font-size: 10px;
    font-weight: 700;

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

.prime-card > strong {
    display: block;

    overflow: hidden;

    margin-bottom: 7px;

    color: #fff;

    font-size: clamp(20px, 2.4vw, 27px);
    line-height: 1;
    letter-spacing: -.04em;

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

.prime-card > small {
    display: block;

    overflow: hidden;

    color: #5f6a77;

    font-size: 9px;

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

/* =========================================================
   PRIME PANELS
========================================================= */

.dashboard-main-grid {
    display: grid;

    grid-template-columns:
        minmax(320px, 1.15fr)
        minmax(220px, .58fr)
        minmax(280px, .78fr);

    gap: 12px;

    margin-bottom: 14px;
}

.prime-panel {
    min-width: 0;

    padding: 18px;

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

    background:
        linear-gradient(
            145deg,
            rgba(16, 22, 30, .97),
            rgba(11, 16, 22, .97)
        );

    box-shadow:
        0 14px 38px rgba(0, 0, 0, .16);
}

.prime-panel-head {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 15px;
}

.prime-panel-head h2 {
    margin: 5px 0 0;

    color: #e7ebef;

    font-size: 14px;
    letter-spacing: -.02em;
}

.prime-panel-head > a {
    flex: 0 0 auto;

    color: #7d8896;

    text-decoration: none;

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

.prime-panel-head > a:hover {
    color: #fff;
}

.panel-subtitle {
    color: #66717e;

    font-size: 9px;
}

.prime-empty {
    min-height: 120px;

    display: grid;
    place-items: center;

    border: 1px dashed rgba(255, 255, 255, .065);
    border-radius: 11px;

    color: #626d7b;

    font-size: 10px;

    text-align: center;
}

.prime-empty.compact {
    min-height: 155px;
}

/* =========================================================
   STATUS OVERVIEW
========================================================= */

.status-overview {
    min-height: 175px;

    display: grid;

    grid-template-columns:
        145px
        minmax(0, 1fr);

    align-items: center;

    gap: 18px;
}

.status-ring {
    width: 118px;
    height: 118px;

    display: grid;
    place-items: center;

    justify-self: center;

    border-radius: 50%;

    background:
        conic-gradient(
            #e32636 0deg 86deg,
            #e1a53a 86deg 138deg,
            #4f8fe8 138deg 196deg,
            #37bd72 196deg 292deg,
            #4d5866 292deg 360deg
        );

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.status-ring-inner {
    width: 78px;
    height: 78px;

    display: grid;
    place-items: center;

    align-content: center;

    border-radius: 50%;

    background: #0d131a;

    box-shadow:
        inset 0 0 0 1px var(--border);
}

.status-ring-inner span {
    color: #687381;

    font-size: 9px;
}

.status-ring-inner strong {
    margin-top: 2px;

    font-size: 23px;
    letter-spacing: -.04em;
}

.status-list {
    display: grid;

    gap: 9px;
}

.status-list > div {
    display: grid;

    grid-template-columns:
        8px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 8px;

    min-width: 0;
}

.status-list span:nth-child(2) {
    overflow: hidden;

    color: #818c99;

    font-size: 9px;

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

.status-list strong {
    color: #d6dbe1;

    font-size: 10px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
}

.status-dot-red {
    background: #e32636;
}

.status-dot-green {
    background: #37bd72;
}

.status-dot-amber {
    background: #e1a53a;
}

.status-dot-blue {
    background: #4f8fe8;
}

.status-dot-muted {
    background: #596575;
}

/* =========================================================
   QUICK SUMMARY
========================================================= */

.quick-list {
    display: grid;

    gap: 7px;
}

.quick-list > div {
    min-height: 39px;

    display: grid;

    grid-template-columns:
        27px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 8px;

    padding: 0 9px;

    border: 1px solid rgba(255, 255, 255, .045);
    border-radius: 9px;

    background: rgba(255, 255, 255, .018);
}

.quick-list > div > span:nth-child(2) {
    overflow: hidden;

    color: #8994a1;

    font-size: 9px;

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

.quick-list strong {
    color: #dfe3e8;

    font-size: 10px;
}

.quick-icon {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    border-radius: 7px;

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

.quick-red {
    background: rgba(227, 38, 54, .1);
    color: #ff6672;
}

.quick-amber {
    background: rgba(225, 165, 58, .1);
    color: #eab759;
}

.quick-blue {
    background: rgba(79, 143, 232, .1);
    color: #78aef6;
}

.quick-green {
    background: rgba(55, 189, 114, .1);
    color: #69d596;
}

/* =========================================================
   LATEST OS
========================================================= */

.latest-os-list {
    display: grid;
}

.latest-os-item {
    min-height: 43px;

    display: flex;

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

    gap: 10px;

    border-bottom: 1px solid rgba(255, 255, 255, .045);
}

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

.latest-os-item > div {
    min-width: 0;
}

.latest-os-item strong,
.latest-os-item span {
    display: block;
}

.latest-os-item strong {
    color: #dce1e6;

    font-size: 9px;
}

.latest-os-item > div span {
    overflow: hidden;

    margin-top: 2px;

    color: #6d7885;

    font-size: 8px;

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

/* =========================================================
   STATUS BADGES
========================================================= */

.status-badge {
    flex: 0 0 auto;

    padding: 5px 7px;

    border-radius: 7px;

    font-size: 7px;
    font-weight: 800;

    white-space: nowrap;
}

.status-aberta,
.status-agendada {
    background: rgba(79, 143, 232, .08);
    color: #78aef6;
}

.status-em_execucao {
    background: rgba(227, 38, 54, .09);
    color: #ff6975;
}

.status-finalizacao {
    background: rgba(225, 165, 58, .09);
    color: #e8b354;
}

.status-pronta,
.status-entregue {
    background: rgba(55, 189, 114, .09);
    color: #70d99c;
}

.status-cancelada {
    background: rgba(255, 255, 255, .05);
    color: #77818e;
}

/* =========================================================
   VEHICLE FLOW
========================================================= */

.vehicle-flow-panel {
    margin-bottom: 14px;
}

.vehicle-flow {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}

.flow-column {
    min-width: 0;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 11px;

    background: rgba(255, 255, 255, .016);
}

.flow-column-head {
    padding: 11px 12px;

    border-bottom: 1px solid rgba(255, 255, 255, .045);
}

.flow-column-head strong,
.flow-column-head span {
    display: block;
}

.flow-column-head strong {
    margin-bottom: 3px;

    color: #d5dae0;

    font-size: 9px;
}

.flow-column-head span {
    color: #687381;

    font-size: 7px;
}

.flow-scheduled .flow-column-head {
    background: rgba(79, 143, 232, .045);
}

.flow-running .flow-column-head {
    background: rgba(227, 38, 54, .055);
}

.flow-finishing .flow-column-head {
    background: rgba(225, 165, 58, .05);
}

.flow-ready .flow-column-head {
    background: rgba(55, 189, 114, .05);
}

.flow-cards {
    display: grid;

    gap: 6px;

    padding: 8px;
}

.flow-card {
    min-width: 0;

    padding: 8px 9px;

    border: 1px solid rgba(255, 255, 255, .045);
    border-radius: 8px;

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

.flow-card strong,
.flow-card span,
.flow-card small {
    display: block;

    overflow: hidden;

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

.flow-card strong {
    color: #cfd5dc;

    font-size: 8px;
}

.flow-card span {
    margin-top: 3px;

    color: #747f8c;

    font-size: 7px;
}

.flow-card small {
    margin-top: 3px;

    color: #555f6c;

    font-size: 7px;
}

.flow-empty {
    min-height: 75px;

    display: grid;
    place-items: center;

    color: #4f5965;

    font-size: 8px;
}

/* =========================================================
   DASHBOARD BOTTOM
========================================================= */

.dashboard-bottom-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 12px;
}

.module-preview {
    min-height: 100px;

    display: grid;

    grid-template-columns:
        76px
        minmax(0, 1fr);

    align-items: center;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 11px;

    background: rgba(255, 255, 255, .016);
}

.module-preview-day {
    height: 100%;

    display: grid;
    place-items: center;

    align-content: center;

    border-right: 1px solid rgba(255, 255, 255, .055);

    background: rgba(227, 38, 54, .045);
}

.module-preview-day span {
    color: #8b4b50;

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

.module-preview-day strong {
    margin-top: 2px;

    color: #ff6672;

    font-size: 25px;
}

.module-preview-content {
    min-width: 0;

    padding: 15px;
}

.module-preview-content strong,
.module-preview-content span {
    display: block;
}

.module-preview-content strong {
    color: #cdd3da;

    font-size: 10px;
}

.module-preview-content span {
    max-width: 420px;

    margin-top: 6px;

    color: #687381;

    font-size: 8px;
    line-height: 1.55;
}

.financial-preview {
    display: grid;

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

    gap: 8px;
}

.financial-preview-item {
    min-width: 0;

    padding: 12px;

    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 9px;

    background: rgba(255, 255, 255, .018);
}

.financial-preview-item span,
.financial-preview-item strong {
    display: block;
}

.financial-preview-item span {
    margin-bottom: 5px;

    color: #747f8c;

    font-size: 8px;
}

.financial-preview-item strong {
    overflow: hidden;

    font-size: 11px;

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

.financial-receive strong {
    color: #6dd69a;
}

.financial-pay strong {
    color: #ff737e;
}

.financial-balance strong {
    color: #d9dee5;
}

.module-hint {
    margin:
        10px
        0
        0;

    color: #56616e;

    font-size: 8px;
}

/* =========================================================
   PRIME RESPONSIVE
========================================================= */

@media (max-width: 1280px) {
    .dashboard-main-grid {
        grid-template-columns:
            minmax(0, 1.2fr)
            minmax(220px, .8fr);
    }

    .latest-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1080px) {
    .prime-metrics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .dashboard-titlebar {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-primary-action {
        width: 100%;
    }

    .dashboard-main-grid,
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .status-overview {
        grid-template-columns: 1fr;
    }

    .status-ring {
        margin-bottom: 4px;
    }

    .vehicle-flow {
        grid-template-columns: 1fr;
    }
}

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

    .financial-preview {
        grid-template-columns: 1fr;
    }

    .module-preview {
        grid-template-columns:
            64px
            minmax(0, 1fr);
    }
}


/* =========================================================
   CADASTROS PRIME
========================================================= */

body.modal-open {
    overflow: hidden;
}

.cadastros-heading {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 24px;
}

.cadastros-heading h1 {
    margin:
        6px
        0
        5px;

    font-size: clamp(29px, 4vw, 38px);
    line-height: 1;
    letter-spacing: -.045em;
}

.cadastros-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
}

.cadastros-shell {
    overflow: hidden;

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

    background:
        linear-gradient(
            145deg,
            rgba(16, 22, 30, .98),
            rgba(11, 16, 22, .98)
        );

    box-shadow:
        0 16px 42px rgba(0, 0, 0, .16);
}

.cadastros-tabs {
    min-height: 60px;

    display: flex;

    align-items: flex-end;

    gap: 4px;

    padding:
        0
        18px;

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

.cadastro-tab {
    position: relative;

    min-height: 59px;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    border: 0;

    padding:
        0
        14px;

    background: transparent;

    color: #74808e;

    cursor: pointer;

    font-size: 11px;
    font-weight: 750;

    transition:
        color .16s ease,
        background .16s ease;
}

.cadastro-tab:hover {
    color: #cfd5dc;
}

.cadastro-tab.is-active {
    color: #fff;
}

.cadastro-tab.is-active::after {
    content: "";

    position: absolute;

    right: 10px;
    bottom: -1px;
    left: 10px;

    height: 2px;

    border-radius: 999px 999px 0 0;

    background: var(--red);
}

.tab-count {
    min-width: 22px;
    height: 20px;

    display: inline-grid;
    place-items: center;

    padding:
        0
        6px;

    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 7px;

    background: rgba(255, 255, 255, .035);

    color: #7e8996;

    font-size: 8px;
}

.cadastro-tab.is-active .tab-count {
    border-color: rgba(227, 38, 54, .16);

    background: rgba(227, 38, 54, .08);

    color: #ff6874;
}

.cadastros-toolbar {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 14px 18px;

    border-bottom: 1px solid rgba(255, 255, 255, .045);
}

.search-field {
    position: relative;

    flex: 1;

    min-width: 160px;
}

.search-field svg {
    position: absolute;

    top: 50%;
    left: 13px;

    width: 16px;
    height: 16px;

    transform: translateY(-50%);

    fill: #5f6a77;

    pointer-events: none;
}

.search-field input,
.filter-select {
    height: 40px;

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

    outline: none;

    background: rgba(255, 255, 255, .025);

    color: #dce1e6;

    font-size: 10px;

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

.search-field input {
    width: 100%;

    padding:
        0
        14px
        0
        39px;
}

.search-field input::placeholder {
    color: #596470;
}

.filter-select {
    min-width: 128px;

    padding:
        0
        12px;

    cursor: pointer;
}

.search-field input:focus,
.filter-select:focus {
    border-color: rgba(227, 38, 54, .45);

    background: rgba(255, 255, 255, .04);

    box-shadow:
        0 0 0 3px rgba(227, 38, 54, .06);
}

.cadastro-panel {
    min-height: 400px;
}

.table-wrap {
    width: 100%;

    overflow-x: auto;

    scrollbar-width: thin;
}

.prime-table {
    width: 100%;

    border-collapse: collapse;

    table-layout: auto;
}

.prime-table th,
.prime-table td {
    text-align: left;

    vertical-align: middle;
}

.prime-table thead th {
    height: 43px;

    padding:
        0
        16px;

    border-bottom: 1px solid rgba(255, 255, 255, .055);

    background: rgba(255, 255, 255, .012);

    color: #596572;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;

    text-transform: uppercase;

    white-space: nowrap;
}

.prime-table tbody td {
    min-height: 58px;

    padding:
        11px
        16px;

    border-bottom: 1px solid rgba(255, 255, 255, .042);

    color: #9ba5b1;

    font-size: 10px;
}

.prime-table tbody tr {
    transition: background .14s ease;
}

.prime-table tbody tr:hover {
    background: rgba(255, 255, 255, .018);
}

.prime-table tbody tr:last-child td {
    border-bottom: 0;
}

.table-actions-col,
.table-actions-cell {
    width: 1%;

    white-space: nowrap;
}

.table-identity {
    min-width: 160px;

    display: flex;

    align-items: center;

    gap: 10px;
}

.table-avatar {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    flex: 0 0 34px;

    border: 1px solid rgba(227, 38, 54, .14);
    border-radius: 10px;

    background: rgba(227, 38, 54, .065);

    color: #e75b66;

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

.table-avatar-car {
    border-color: rgba(79, 143, 232, .14);

    background: rgba(79, 143, 232, .06);

    color: #74a8ee;
}

.table-avatar-item {
    border-color: rgba(225, 165, 58, .14);

    background: rgba(225, 165, 58, .06);

    color: #e6af4f;
}

.table-identity strong,
.table-identity small {
    display: block;
}

.table-identity strong {
    overflow: hidden;

    max-width: 260px;

    color: #d9dee4;

    font-size: 10px;
    font-weight: 720;

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

.table-identity small {
    margin-top: 3px;

    color: #596470;

    font-size: 8px;
}

.table-status {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding:
        5px
        8px;

    border-radius: 7px;

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

.table-status::before {
    content: "";

    width: 5px;
    height: 5px;

    border-radius: 50%;
}

.table-status.is-active {
    background: rgba(55, 189, 114, .07);

    color: #65cf90;
}

.table-status.is-active::before {
    background: #42c77c;
}

.table-status.is-inactive {
    background: rgba(255, 255, 255, .04);

    color: #727d8a;
}

.table-status.is-inactive::before {
    background: #5a6572;
}

.row-actions {
    display: inline-flex;

    align-items: center;

    gap: 5px;
}

.row-action {
    min-height: 30px;

    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 8px;

    padding:
        0
        9px;

    background: rgba(255, 255, 255, .025);

    color: #8f99a6;

    cursor: pointer;

    font-size: 8px;
    font-weight: 750;

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

.row-action:hover {
    border-color: rgba(255, 255, 255, .11);

    background: rgba(255, 255, 255, .05);

    color: #fff;
}

.row-action-danger:hover {
    border-color: rgba(227, 38, 54, .18);

    background: rgba(227, 38, 54, .07);

    color: #ff707b;
}

.row-action-success:hover {
    border-color: rgba(55, 189, 114, .18);

    background: rgba(55, 189, 114, .07);

    color: #68d695;
}

.plate-badge {
    display: inline-flex;

    min-width: 65px;

    justify-content: center;

    padding:
        5px
        7px;

    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 6px;

    background: rgba(255, 255, 255, .025);

    color: #c5ccd4;

    font-family:
        ui-monospace,
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .05em;
}

.table-money {
    color: #d9dee4 !important;

    font-weight: 750;
}

.item-type {
    display: inline-flex;

    padding:
        5px
        8px;

    border-radius: 7px;

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

.item-type-servico {
    background: rgba(227, 38, 54, .07);

    color: #ee6873;
}

.item-type-peca {
    background: rgba(79, 143, 232, .07);

    color: #73a7ed;
}

.item-type-produto {
    background: rgba(55, 189, 114, .07);

    color: #67d292;
}

.item-type-outro {
    background: rgba(225, 165, 58, .07);

    color: #e3ad50;
}

.table-loading,
.table-empty {
    height: 280px !important;

    text-align: center !important;

    color: #57626f !important;

    font-size: 10px !important;
}

/* =========================================================
   MODAIS PRIME
========================================================= */

.prime-modal[hidden] {
    display: none !important;
}

.prime-modal {
    position: fixed;

    inset: 0;

    z-index: 100;

    display: grid;
    place-items: center;

    padding: 20px;

    opacity: 0;

    transition: opacity .18s ease;
}

.prime-modal.is-open {
    opacity: 1;
}

.prime-modal-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(2, 5, 8, .78);

    backdrop-filter: blur(5px);
}

.prime-modal-dialog {
    position: relative;

    z-index: 1;

    width: min(100%, 560px);
    max-height: calc(100vh - 40px);

    overflow-y: auto;

    transform:
        translateY(8px)
        scale(.99);

    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #121923,
            #0d131a
        );

    box-shadow:
        0 30px 100px rgba(0, 0, 0, .55);

    transition: transform .18s ease;

    scrollbar-width: thin;
}

.prime-modal.is-open .prime-modal-dialog {
    transform:
        translateY(0)
        scale(1);
}

.prime-modal-lg {
    width: min(100%, 760px);
}

.prime-modal-confirm {
    width: min(100%, 470px);
}

.prime-modal-header {
    min-height: 72px;

    display: flex;

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

    gap: 20px;

    padding:
        16px
        20px;

    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.modal-kicker {
    display: block;

    margin-bottom: 4px;

    color: #df4b57;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: .11em;
}

.prime-modal-header h2 {
    margin: 0;

    color: #edf0f3;

    font-size: 15px;
    letter-spacing: -.02em;
}

.modal-close {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 9px;

    background: rgba(255, 255, 255, .02);

    color: #788391;

    cursor: pointer;

    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, .05);

    color: #fff;
}

.modal-body {
    padding: 20px;
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

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

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field-wide-2 {
    grid-column: span 2;
}

.form-field-wide-3 {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;

    margin-bottom: 7px;

    color: #a7b0bc;

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

.form-field input,
.form-field select {
    width: 100%;
    height: 42px;

    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 9px;

    outline: none;

    padding:
        0
        12px;

    background: rgba(255, 255, 255, .025);

    color: #e1e5e9;

    font-size: 10px;

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

.form-field input:focus,
.form-field select:focus {
    border-color: rgba(227, 38, 54, .45);

    background: rgba(255, 255, 255, .04);

    box-shadow:
        0 0 0 3px rgba(227, 38, 54, .055);
}

.form-field input::placeholder {
    color: #505b67;
}

.money-field {
    position: relative;
}

.money-field > span {
    position: absolute;

    top: 50%;
    left: 12px;

    transform: translateY(-50%);

    color: #626e7a;

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

.money-field input {
    padding-left: 35px;
}

.fuel-label-row {
    display: flex;

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

    gap: 12px;
}

.fuel-label-row strong {
    color: #e65b66;

    font-size: 9px;
}

.fuel-range {
    height: 28px !important;

    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;

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

.fuel-scale {
    display: flex;

    justify-content: space-between;

    margin-top: -3px;

    color: #505b67;

    font-size: 7px;
}

.prime-modal-footer {
    min-height: 66px;

    display: flex;

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

    gap: 8px;

    padding:
        12px
        20px;

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

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

.modal-button {
    min-height: 38px;

    border-radius: 9px;

    padding:
        0
        14px;

    cursor: pointer;

    font-size: 9px;
    font-weight: 800;

    transition:
        opacity .15s ease,
        background .15s ease,
        border-color .15s ease;
}

.modal-button:disabled {
    cursor: wait;

    opacity: .6;
}

.modal-button-secondary {
    border: 1px solid rgba(255, 255, 255, .075);

    background: rgba(255, 255, 255, .025);

    color: #929ca8;
}

.modal-button-secondary:hover {
    background: rgba(255, 255, 255, .05);

    color: #fff;
}

.modal-button-primary {
    border: 1px solid rgba(227, 38, 54, .25);

    background:
        linear-gradient(
            135deg,
            #df2635,
            #b71623
        );

    color: #fff;
}

.modal-button-danger {
    border: 1px solid rgba(227, 38, 54, .22);

    background: rgba(227, 38, 54, .1);

    color: #ff707b;
}

.modal-button-success {
    border: 1px solid rgba(55, 189, 114, .2);

    background: rgba(55, 189, 114, .09);

    color: #69d696;
}

.confirmation-content {
    display: grid;

    grid-template-columns:
        44px
        minmax(0, 1fr);

    align-items: center;

    gap: 14px;
}

.confirmation-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(227, 38, 54, .17);
    border-radius: 12px;

    background: rgba(227, 38, 54, .07);

    color: #e85e69;

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

.confirmation-content strong {
    display: block;

    margin-bottom: 5px;

    color: #dfe4e8;

    font-size: 11px;
}

.confirmation-content p {
    margin: 0;

    color: #707b88;

    font-size: 9px;
    line-height: 1.55;
}

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

.toast-container {
    position: fixed;

    top: 90px;
    right: 20px;

    z-index: 150;

    width: min(340px, calc(100vw - 32px));

    display: grid;

    gap: 8px;

    pointer-events: none;
}

.prime-toast {
    display: grid;

    grid-template-columns:
        4px
        minmax(0, 1fr);

    overflow: hidden;

    opacity: 0;

    transform: translateX(10px);

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

    background: #121922;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .36);

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.prime-toast.is-visible {
    opacity: 1;

    transform: translateX(0);
}

.toast-indicator {
    background: #3bc47b;
}

.prime-toast-error .toast-indicator {
    background: #e32636;
}

.toast-content {
    padding:
        11px
        13px;
}

.toast-content strong,
.toast-content span {
    display: block;
}

.toast-content strong {
    color: #dfe4e9;

    font-size: 9px;
}

.toast-content span {
    margin-top: 3px;

    color: #7d8896;

    font-size: 8px;
    line-height: 1.45;
}

/* =========================================================
   CADASTROS RESPONSIVO
========================================================= */

@media (max-width: 760px) {
    .cadastros-heading {
        flex-direction: column;

        align-items: stretch;
    }

    .cadastros-heading .dashboard-primary-action {
        width: 100%;
    }

    .cadastros-tabs {
        overflow-x: auto;

        align-items: stretch;

        padding:
            0
            8px;
    }

    .cadastro-tab {
        flex: 0 0 auto;
    }

    .cadastros-toolbar {
        flex-direction: column;

        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

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

    .form-field-wide,
    .form-field-wide-2,
    .form-field-wide-3 {
        grid-column: auto;
    }

    .prime-modal {
        padding: 10px;
    }

    .prime-modal-dialog {
        max-height: calc(100vh - 20px);

        border-radius: 14px;
    }

    .prime-modal-footer {
        flex-direction: column-reverse;
    }

    .modal-button {
        width: 100%;
    }

    .toast-container {
        top: 78px;
        right: 16px;
        left: 16px;

        width: auto;
    }
}


/* =========================================================
   MODAIS PRIME V2 - MAIORES, MAIS LEGÍVEIS E PREMIUM
========================================================= */

.prime-modal {
    padding: 28px;
}

.prime-modal-dialog {
    width: min(100%, 680px);
    max-height: calc(100vh - 56px);

    border-radius: 20px;
}

.prime-modal-lg {
    width: min(100%, 920px);
}

.prime-modal-item {
    width: min(100%, 760px);
}

.prime-modal-confirm {
    width: min(100%, 520px);
}

.prime-modal-header {
    min-height: 88px;

    padding:
        20px
        26px;
}

.modal-kicker {
    margin-bottom: 6px;

    font-size: 10px;
    letter-spacing: .13em;
}

.prime-modal-header h2 {
    font-size: 20px;
    line-height: 1.2;
}

.modal-subtitle {
    max-width: 620px;

    margin:
        7px
        0
        0;

    color: #737f8d;

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

.modal-close {
    width: 40px;
    height: 40px;

    flex-basis: 40px;

    border-radius: 11px;

    font-size: 24px;
}

.modal-body {
    padding: 26px;
}

.form-grid {
    gap: 20px;
}

.form-field label {
    margin-bottom: 9px;

    color: #c0c7d0;

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

.form-field input,
.form-field select {
    height: 48px;

    border-radius: 11px;

    padding:
        0
        14px;

    font-size: 13px;
}

.form-field input::placeholder {
    color: #56616e;
}

.form-field input:focus,
.form-field select:focus {
    border-color: rgba(227, 38, 54, .58);

    box-shadow:
        0 0 0 4px rgba(227, 38, 54, .075);
}

.field-help {
    display: block;

    margin-top: 7px;

    color: #66717e;

    font-size: 10px;
    line-height: 1.45;
}

.form-section + .form-section {
    margin-top: 26px;

    padding-top: 24px;

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

.form-section-title {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 20px;
}

.form-section-icon {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    flex: 0 0 36px;

    border: 1px solid rgba(227, 38, 54, .16);
    border-radius: 10px;

    background: rgba(227, 38, 54, .07);

    color: #ed6570;

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

.form-section-title strong,
.form-section-title small {
    display: block;
}

.form-section-title strong {
    color: #dce1e6;

    font-size: 12px;
}

.form-section-title small {
    margin-top: 3px;

    color: #65707d;

    font-size: 9px;
}

/* Select nativo estilizado: premium, sem CDN e sem dependência externa */
.premium-select-wrap {
    position: relative;
}

.premium-select-wrap::after {
    content: "";

    position: absolute;

    top: 50%;
    right: 16px;

    width: 8px;
    height: 8px;

    border-right: 2px solid #778391;
    border-bottom: 2px solid #778391;

    transform:
        translateY(-70%)
        rotate(45deg);

    pointer-events: none;
}

.form-field select,
.premium-select {
    appearance: none;
    -webkit-appearance: none;

    padding-right: 46px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .038),
            rgba(255, 255, 255, .022)
        );

    cursor: pointer;
}

.form-field select:hover,
.premium-select:hover {
    border-color: rgba(255, 255, 255, .13);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .055),
            rgba(255, 255, 255, .03)
        );
}

.form-field select option {
    background: #111821;
    color: #e8ebef;
}

.money-field-premium > span {
    left: 15px;

    font-size: 12px;
}

.money-field-premium input {
    padding-left: 44px;

    font-size: 15px;
    font-weight: 750;
}

.prime-modal-footer {
    min-height: 76px;

    gap: 10px;

    padding:
        14px
        26px;
}

.modal-button {
    min-height: 44px;

    border-radius: 10px;

    padding:
        0
        18px;

    font-size: 11px;
}

/* =========================================================
   TABELA - ESTADO DA PEÇA
========================================================= */

.part-condition {
    display: inline-flex;

    align-items: center;

    min-height: 26px;

    padding:
        0
        9px;

    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 7px;

    background: rgba(255, 255, 255, .025);

    color: #939eaa;

    font-size: 8px;
    font-weight: 750;

    white-space: nowrap;
}

.part-condition.is-genuine {
    border-color: rgba(55, 189, 114, .14);
    background: rgba(55, 189, 114, .055);
    color: #6dd397;
}

.part-condition.is-parallel {
    border-color: rgba(79, 143, 232, .14);
    background: rgba(79, 143, 232, .055);
    color: #79aaed;
}

.part-condition.is-reconditioned {
    border-color: rgba(225, 165, 58, .14);
    background: rgba(225, 165, 58, .055);
    color: #e4b159;
}

/* Um pouco mais de legibilidade geral na área de cadastros */
.prime-table thead th {
    font-size: 9px;
}

.prime-table tbody td {
    font-size: 11px;
}

.table-identity strong {
    font-size: 11px;
}

.table-identity small {
    font-size: 9px;
}

.row-action {
    min-height: 32px;

    padding:
        0
        10px;

    font-size: 9px;
}

@media (max-width: 760px) {
    .prime-modal {
        padding: 10px;
    }

    .prime-modal-dialog {
        max-height: calc(100vh - 20px);
    }

    .prime-modal-header {
        padding:
            18px
            18px;
    }

    .modal-body {
        padding: 20px 18px;
    }

    .prime-modal-footer {
        padding:
            14px
            18px;
    }
}

/* =========================================================
   TABELAS PRIME V2 - MAIS LEGÍVEIS
========================================================= */

.prime-table thead th {
    height: 52px;
    padding: 0 18px;
    color: #6f7c8c;
    font-size: 10px;
    letter-spacing: .07em;
}

.prime-table tbody td {
    height: 68px;
    padding: 13px 18px;
    color: #aeb7c2;
    font-size: 12px;
}

.prime-table tbody tr:hover {
    background: linear-gradient(
        90deg,
        rgba(227, 38, 54, .024),
        rgba(255, 255, 255, .018)
    );
}

.table-identity {
    gap: 12px;
}

.table-avatar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 11px;
    font-size: 11px;
}

.table-identity strong {
    max-width: 320px;
    font-size: 13px;
    font-weight: 760;
}

.table-identity small {
    margin-top: 4px;
    color: #687482;
    font-size: 10px;
}

.plate-badge {
    min-width: 76px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 10px;
    letter-spacing: .08em;
}

.table-status {
    min-height: 28px;
    padding: 0 9px;
    font-size: 9px;
}

.table-status::before {
    width: 6px;
    height: 6px;
}

/* =========================================================
   AÇÕES SOMENTE COM ÍCONES
========================================================= */

.row-actions {
    gap: 7px;
}

.row-action-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
    color: #8e99a6;
    cursor: pointer;
    transition:
        color .15s ease,
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.row-action-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.row-action-icon:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .055);
    color: #fff;
}

.row-action-icon.is-edit:hover {
    border-color: rgba(79, 143, 232, .2);
    background: rgba(79, 143, 232, .08);
    color: #7db0f5;
}

.row-action-icon.is-disable:hover {
    border-color: rgba(227, 38, 54, .2);
    background: rgba(227, 38, 54, .08);
    color: #ff707b;
}

.row-action-icon.is-enable:hover {
    border-color: rgba(55, 189, 114, .2);
    background: rgba(55, 189, 114, .08);
    color: #70d99c;
}

.row-action-icon:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 38, 54, .09);
}

/* =========================================================
   DETALHES DO VEÍCULO
========================================================= */

.vehicle-detail-stack {
    display: grid;
    gap: 3px;
}

.vehicle-detail-stack strong {
    color: #d7dde4;
    font-size: 12px;
}

.vehicle-detail-stack span {
    color: #6e7a88;
    font-size: 10px;
}

.fuel-table {
    min-width: 74px;
}

.fuel-table-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
    color: #7c8794;
    font-size: 9px;
}

.fuel-table-bar {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
}

.fuel-table-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b71927, #e32636);
}

.cadastros-toolbar {
    padding: 16px 18px;
}

.search-field input,
.filter-select {
    height: 44px;
    font-size: 11px;
}

.cadastro-tab {
    font-size: 12px;
}

.tab-count {
    font-size: 9px;
}


/* =========================================================
   SIDEBAR V2 - SEM BARRA DE ROLAGEM VISÍVEL
========================================================= */

.sidebar-nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Mantém o menu rolável em telas menores, porém sem poluir a UI */
.sidebar-nav {
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* =========================================================
   TOPBAR V2 - MAIS LIMPA
========================================================= */

.topbar {
    min-height: 68px;
}

.topbar-left {
    min-width: 42px;
}

@media (min-width: 1025px) {
    .topbar-left {
        min-width: 0;
    }
}


/* =========================================================
   SELECTS PREMIUM V3 - MELHOR VISUALIZAÇÃO
========================================================= */

/* Selects do filtro da tabela */
.filter-select,
.search-field select,
.toolbar-select,
select.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    min-width: 148px;
    height: 46px;

    padding:
        0
        44px
        0
        14px;

    border: 1px solid rgba(227, 38, 54, .18);
    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            rgba(21, 27, 36, .98),
            rgba(14, 19, 28, .98)
        );

    color: #f2f5f8;

    font-size: 13px;
    font-weight: 650;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .02),
        0 8px 20px rgba(0, 0, 0, .16);

    cursor: pointer;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.filter-select:hover,
.search-field select:hover,
.toolbar-select:hover,
select.filter-select:hover {
    border-color: rgba(227, 38, 54, .34);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .03),
        0 10px 24px rgba(0, 0, 0, .2);
}

.filter-select:focus,
.search-field select:focus,
.toolbar-select:focus,
select.filter-select:focus {
    outline: none;

    border-color: rgba(227, 38, 54, .52);

    box-shadow:
        0 0 0 4px rgba(227, 38, 54, .09),
        0 12px 26px rgba(0, 0, 0, .22);
}

/* Wrapper com seta mais elegante */
.filter-select-wrap,
.select-wrap {
    position: relative;
}

.filter-select-wrap::after,
.select-wrap::after {
    content: "";

    position: absolute;

    top: 50%;
    right: 16px;

    width: 9px;
    height: 9px;

    border-right: 2px solid #c6ced8;
    border-bottom: 2px solid #c6ced8;

    transform:
        translateY(-70%)
        rotate(45deg);

    pointer-events: none;

    opacity: .9;
}

/* Selects de modal também mais bonitos e consistentes */
.premium-select-wrap {
    position: relative;
}

.premium-select-wrap::after {
    content: "";

    position: absolute;

    top: 50%;
    right: 16px;

    width: 9px;
    height: 9px;

    border-right: 2px solid #c6ced8;
    border-bottom: 2px solid #c6ced8;

    transform:
        translateY(-70%)
        rotate(45deg);

    pointer-events: none;
}

.premium-select,
.form-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    min-height: 48px;

    padding-right: 46px;

    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            rgba(22, 28, 38, .98),
            rgba(16, 21, 31, .98)
        );

    color: #edf1f5;

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

.premium-select:hover,
.form-field select:hover {
    border-color: rgba(227, 38, 54, .28);
}

.premium-select:focus,
.form-field select:focus {
    border-color: rgba(227, 38, 54, .48);

    box-shadow:
        0 0 0 4px rgba(227, 38, 54, .08);
}

/* Opções do dropdown em tema escuro */
select option,
.filter-select option,
.premium-select option,
.form-field select option {
    background: #111821;
    color: #eef2f7;
}

/* Pequeno refinamento no toolbar para o select não ficar "solto" */
.cadastros-toolbar .filter-select {
    min-width: 150px;
}

@media (max-width: 760px) {
    .filter-select,
    .search-field select,
    .toolbar-select,
    select.filter-select {
        min-width: 132px;
        font-size: 12px;
    }
}


/* =========================================================
   TOAST / AVISOS PRIME V2 - MAIOR E MAIS LEGÍVEL
========================================================= */

.toast-container {
    top: 92px;
    right: 28px;
    width: min(430px, calc(100vw - 40px));
    gap: 12px;
}

.prime-toast {
    grid-template-columns: 6px minmax(0, 1fr);
    min-height: 86px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            rgba(20, 27, 37, .99),
            rgba(14, 20, 28, .99)
        );
    box-shadow: 0 22px 55px rgba(0, 0, 0, .42);
    backdrop-filter: blur(14px);
}

.toast-indicator {
    width: 6px;
}

.toast-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 16px 18px;
}

.toast-content strong {
    margin-bottom: 5px;
    color: #f3f6f9;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.toast-content span {
    margin: 0;
    color: #a5afbb;
    font-size: 11px;
    line-height: 1.55;
}

.prime-toast-success {
    border-color: rgba(55, 189, 114, .14);
}

.prime-toast-success .toast-indicator {
    background: #37bd72;
}

.prime-toast-error {
    border-color: rgba(227, 38, 54, .20);
}

.prime-toast-error .toast-indicator {
    background: #e32636;
}

.prime-toast-error .toast-content strong {
    color: #ff8a94;
}

.prime-toast-warning {
    border-color: rgba(225, 165, 58, .18);
}

.prime-toast-warning .toast-indicator {
    background: #e1a53a;
}

.prime-toast-warning .toast-content strong {
    color: #efc16d;
}

@media (max-width: 760px) {
    .toast-container {
        top: 78px;
        right: 16px;
        left: 16px;
        width: auto;
    }

    .prime-toast {
        min-height: 82px;
    }

    .toast-content {
        padding: 15px 16px;
    }

    .toast-content strong {
        font-size: 12px;
    }

    .toast-content span {
        font-size: 10px;
    }
}


/* =========================================================
   ORÇAMENTOS PRIME
========================================================= */

.orcamentos-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.orcamentos-heading h1 {
    margin: 6px 0 5px;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1;
    letter-spacing: -.045em;
}

.orcamentos-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.orcamento-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.orcamento-metric-card {
    min-width: 0;
    padding: 17px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            rgba(17, 23, 31, .97),
            rgba(12, 17, 23, .97)
        );
    box-shadow: 0 12px 32px rgba(0, 0, 0, .13);
}

.orcamento-metric-card > span,
.orcamento-metric-card > strong,
.orcamento-metric-card > small {
    display: block;
}

.orcamento-metric-card > span {
    margin-bottom: 10px;
    color: #788493;
    font-size: 10px;
    font-weight: 700;
}

.orcamento-metric-card > strong {
    overflow: hidden;
    margin-bottom: 6px;
    color: #f0f3f6;
    font-size: clamp(20px, 2.2vw, 28px);
    letter-spacing: -.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orcamento-metric-card > small {
    color: #596572;
    font-size: 9px;
}

.orcamentos-shell {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background:
        linear-gradient(
            145deg,
            rgba(16, 22, 30, .98),
            rgba(11, 16, 22, .98)
        );
    box-shadow: 0 16px 42px rgba(0, 0, 0, .16);
}

.orcamentos-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.orcamentos-toolbar .search-field {
    flex: 1;
}

.orcamentos-table .table-money {
    color: #eef1f4 !important;
    font-size: 12px !important;
}

.orcamento-number strong,
.orcamento-number small {
    display: block;
}

.orcamento-number strong {
    color: #e2e7ec;
    font-size: 12px;
    font-weight: 800;
}

.orcamento-number small {
    max-width: 150px;
    overflow: hidden;
    margin-top: 4px;
    color: #687482;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orcamento-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.status-pendente {
    background: rgba(225, 165, 58, .08);
    color: #e7b45b;
}

.status-aprovado,
.status-convertido_os {
    background: rgba(55, 189, 114, .08);
    color: #6bd496;
}

.status-expirado,
.status-recusado,
.status-cancelado {
    background: rgba(227, 38, 54, .08);
    color: #ed6873;
}

.status-rascunho {
    background: rgba(79, 143, 232, .08);
    color: #78aaf0;
}

/* =========================================================
   MODAL DE ORÇAMENTO
========================================================= */

.prime-modal-orcamento {
    width: min(96vw, 1180px);
    max-height: calc(100vh - 36px);
}

.orcamento-modal-body {
    padding: 0;
}

.orcamento-form-section {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.orcamento-form-section:last-child {
    border-bottom: 0;
}

.orcamento-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.orcamento-add-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    border: 1px solid rgba(227, 38, 54, .16);
    border-radius: 10px;
    padding: 0 12px;
    background: rgba(227, 38, 54, .065);
    color: #ef6873;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.orcamento-add-button span {
    font-size: 16px;
    font-weight: 500;
}

.orcamento-add-button:hover {
    border-color: rgba(227, 38, 54, .28);
    background: rgba(227, 38, 54, .11);
    color: #fff;
}

/* =========================================================
   SMART SELECT
========================================================= */

.smart-select {
    position: relative;
}

.smart-select-input-wrap {
    position: relative;
}

.smart-select-input {
    padding-right: 42px !important;
}

.smart-select-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #75808e;
    cursor: pointer;
    font-size: 18px;
}

.smart-select-clear:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.smart-select-dropdown {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    z-index: 30;
    max-height: 270px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    background: #111821;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .45);
    scrollbar-width: thin;
}

.smart-select-option {
    width: 100%;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    padding: 8px 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.smart-select-option:hover {
    background: rgba(255, 255, 255, .045);
}

.smart-select-option strong,
.smart-select-option small {
    display: block;
}

.smart-select-option strong {
    color: #e0e5ea;
    font-size: 11px;
}

.smart-select-option small {
    margin-top: 4px;
    color: #737f8d;
    font-size: 9px;
}

.smart-select-empty {
    padding: 16px 12px;
    color: #707b88;
    font-size: 10px;
    text-align: center;
}

/* =========================================================
   ITENS DO ORÇAMENTO
========================================================= */

.orcamento-items-list {
    display: grid;
    gap: 9px;
}

.orcamento-items-empty {
    min-height: 68px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, .065);
    border-radius: 11px;
    background: rgba(255, 255, 255, .012);
    color: #586471;
    font-size: 10px;
}

.orcamento-items-empty[hidden] {
    display: none;
}

.orcamento-item-row {
    display: grid;
    align-items: end;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    background: rgba(255, 255, 255, .018);
}

.service-row {
    grid-template-columns:
        minmax(260px, 1fr)
        95px
        145px
        135px
        38px;
}

.piece-row {
    grid-template-columns:
        minmax(230px, 1fr)
        minmax(170px, .7fr)
        85px
        135px
        130px
        38px;
}

.orcamento-item-main,
.orcamento-item-field,
.orcamento-item-condition {
    min-width: 0;
}

.orcamento-item-row label,
.orcamento-item-total > span {
    display: block;
    margin-bottom: 6px;
    color: #75808d;
    font-size: 9px;
    font-weight: 700;
}

.orcamento-item-row input,
.orcamento-item-row select {
    width: 100%;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 9px;
    outline: none;
    padding: 0 11px;
    background: rgba(255, 255, 255, .025);
    color: #e1e6eb;
    font-size: 10px;
}

.orcamento-item-row input:focus,
.orcamento-item-row select:focus {
    border-color: rgba(227, 38, 54, .42);
    box-shadow: 0 0 0 3px rgba(227, 38, 54, .055);
}

.orcamento-item-total {
    min-width: 0;
    padding-bottom: 5px;
}

.orcamento-item-total strong {
    display: block;
    overflow: hidden;
    color: #edf0f3;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orcamento-item-actions {
    display: flex;
    align-items: end;
    justify-content: center;
    padding-bottom: 2px;
}

.orcamento-item-remove {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(227, 38, 54, .12);
    border-radius: 9px;
    background: rgba(227, 38, 54, .045);
    color: #d95b65;
    cursor: pointer;
}

.orcamento-item-remove:hover {
    border-color: rgba(227, 38, 54, .24);
    background: rgba(227, 38, 54, .09);
    color: #ff747f;
}

.orcamento-item-remove svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   FECHAMENTO
========================================================= */

.orcamento-closing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: stretch;
}

.orcamento-observacoes textarea {
    width: 100%;
    min-height: 176px;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 12px;
    outline: none;
    padding: 13px 14px;
    background: rgba(255, 255, 255, .025);
    color: #e1e5e9;
    font: inherit;
    font-size: 12px;
    line-height: 1.55;
}

.orcamento-observacoes textarea:focus {
    border-color: rgba(227, 38, 54, .45);
    box-shadow: 0 0 0 4px rgba(227, 38, 54, .06);
}

.orcamento-totals-card {
    align-self: stretch;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            rgba(20, 27, 36, .72),
            rgba(13, 19, 26, .72)
        );
}

.orcamento-total-row,
.orcamento-total-final {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.orcamento-total-row {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.orcamento-total-row span,
.orcamento-total-final span {
    color: #8994a1;
    font-size: 10px;
}

.orcamento-total-row strong {
    color: #dbe0e5;
    font-size: 13px;
}

.orcamento-discount-field {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.orcamento-discount-field label {
    display: block;
    margin-bottom: 8px;
    color: #8994a1;
    font-size: 10px;
}

.orcamento-total-final {
    padding-top: 17px;
}

.orcamento-total-final strong {
    color: #ff6672;
    font-size: 21px;
    letter-spacing: -.035em;
}

.orcamento-modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 8;
    background: rgba(13, 19, 26, .96);
    backdrop-filter: blur(16px);
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 1240px) {
    .service-row {
        grid-template-columns:
            minmax(220px, 1fr)
            85px
            125px
            115px
            38px;
    }

    .piece-row {
        grid-template-columns:
            minmax(210px, 1fr)
            minmax(150px, .7fr)
            80px
            120px
            110px
            38px;
    }
}

@media (max-width: 980px) {
    .orcamento-metrics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .service-row,
    .piece-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .orcamento-item-main {
        grid-column: 1 / -1;
    }

    .orcamento-item-actions {
        justify-content: flex-end;
    }

    .orcamento-closing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .orcamentos-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .orcamentos-heading .dashboard-primary-action {
        width: 100%;
    }

    .orcamento-metrics {
        grid-template-columns: 1fr;
    }

    .orcamentos-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .prime-modal-orcamento {
        width: 100%;
        max-height: calc(100vh - 20px);
    }

    .orcamento-form-section {
        padding: 20px 18px;
    }

    .orcamento-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .orcamento-add-button {
        width: 100%;
    }

    .service-row,
    .piece-row {
        grid-template-columns: 1fr;
    }

    .orcamento-item-main {
        grid-column: auto;
    }

    .orcamento-item-actions {
        justify-content: flex-end;
    }

    .orcamento-item-remove {
        width: 42px;
        height: 42px;
    }
}


/* =========================================================
   ORÇAMENTO - CAMPO DE DESCONTO V2
========================================================= */

.orcamento-discount-field .money-field {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 11px;

    background:
        linear-gradient(
            180deg,
            rgba(19, 26, 35, .98),
            rgba(14, 20, 28, .98)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .025);

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

.orcamento-discount-field .money-field:focus-within {
    border-color: rgba(227, 38, 54, .48);

    background:
        linear-gradient(
            180deg,
            rgba(22, 29, 39, .99),
            rgba(15, 21, 30, .99)
        );

    box-shadow:
        0 0 0 4px rgba(227, 38, 54, .07),
        inset 0 1px 0 rgba(255, 255, 255, .03);
}

.orcamento-discount-field .money-field > span {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 48px;
    padding: 0 12px;

    border-right: 1px solid rgba(255, 255, 255, .065);

    background: rgba(255, 255, 255, .018);

    color: #8d98a5;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.orcamento-discount-field .money-field input {
    flex: 1;
    min-width: 0;
    height: 44px;

    border: 0 !important;
    outline: 0 !important;

    padding: 0 14px !important;

    background: transparent !important;

    color: #f0f3f6 !important;

    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1;

    box-shadow: none !important;
}

.orcamento-discount-field .money-field input::placeholder {
    color: #66717e;
}

.orcamento-discount-field .money-field input:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.orcamento-discount-field .money-field:hover {
    border-color: rgba(227, 38, 54, .22);
}

.orcamento-discount-field > label {
    margin-bottom: 9px;
    color: #8c97a4;
    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   ORÇAMENTO - CORREÇÃO DO PREFIXO R$ NO DESCONTO
========================================================= */

.orcamento-discount-field .money-field > span {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;

    flex: 0 0 48px;
    min-width: 48px;

    padding: 0 !important;
}

.orcamento-discount-field .money-field input {
    position: static !important;

    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;

    padding-left: 14px !important;
}


/* =========================================================
   ORÇAMENTO - VISUALIZAÇÃO / APROVAÇÃO V3
========================================================= */

.row-action-icon.is-view:hover {
    border-color: rgba(145, 157, 171, .22);
    background: rgba(145, 157, 171, .08);
    color: #d7dde4;
}

.row-action-icon.is-approve:hover {
    border-color: rgba(55, 189, 114, .24);
    background: rgba(55, 189, 114, .09);
    color: #74dda0;
}

.row-action-icon.is-reject:hover {
    border-color: rgba(227, 38, 54, .22);
    background: rgba(227, 38, 54, .08);
    color: #ff727d;
}

.prime-modal-orcamento-view {
    width: min(94vw, 1040px);
    max-height: calc(100vh - 36px);
}

.orcamento-view-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
}

.orcamento-view-title-line h2 {
    margin: 0;
}

.orcamento-view-body {
    padding: 0;
}

.orcamento-view-os {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    margin: 20px 24px 0;
    padding: 14px 16px;
    border: 1px solid rgba(55, 189, 114, .16);
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            rgba(55, 189, 114, .075),
            rgba(55, 189, 114, .025)
        );
}

.orcamento-view-os[hidden] {
    display: none;
}

.orcamento-view-os-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(55, 189, 114, .18);
    border-radius: 12px;
    background: rgba(55, 189, 114, .08);
    color: #74dda0;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
}

.orcamento-view-os span,
.orcamento-view-os strong,
.orcamento-view-os small {
    display: block;
}

.orcamento-view-os span {
    margin-bottom: 3px;
    color: #5cae7c;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
}

.orcamento-view-os strong {
    color: #dff5e8;
    font-size: 14px;
}

.orcamento-view-os small {
    margin-top: 3px;
    color: #739183;
    font-size: 9px;
    line-height: 1.45;
}

.orcamento-view-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 20px 24px 12px;
}

.orcamento-view-card {
    min-width: 0;
    padding: 17px 18px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 13px;
    background: rgba(255, 255, 255, .018);
}

.orcamento-view-label {
    display: block;
    margin-bottom: 8px;
    color: #697583;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
}

.orcamento-view-card strong,
.orcamento-view-card small {
    display: block;
}

.orcamento-view-card strong {
    overflow: hidden;
    color: #e8ecf0;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orcamento-view-card small {
    margin-top: 5px;
    color: #788491;
    font-size: 10px;
}

.orcamento-view-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0 24px 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 12px;
    background: rgba(255, 255, 255, .012);
}

.orcamento-view-meta > div {
    min-width: 0;
    padding: 13px 15px;
    border-right: 1px solid rgba(255, 255, 255, .05);
}

.orcamento-view-meta > div:last-child {
    border-right: 0;
}

.orcamento-view-meta span,
.orcamento-view-meta strong {
    display: block;
}

.orcamento-view-meta span {
    margin-bottom: 5px;
    color: #66717e;
    font-size: 8px;
}

.orcamento-view-meta strong {
    overflow: hidden;
    color: #cfd5db;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orcamento-view-section {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.orcamento-view-section-title > div {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.orcamento-view-section-title > div > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    border: 1px solid rgba(227, 38, 54, .14);
    border-radius: 8px;
    background: rgba(227, 38, 54, .055);
    color: #db5964;
    font-size: 8px;
    font-weight: 900;
}

.orcamento-view-section-title strong,
.orcamento-view-section-title small {
    display: block;
}

.orcamento-view-section-title strong {
    color: #dce1e6;
    font-size: 11px;
}

.orcamento-view-section-title small {
    margin-top: 3px;
    color: #687380;
    font-size: 8px;
}

.orcamento-view-items {
    display: grid;
    gap: 7px;
}

.orcamento-view-item-row {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        70px
        125px
        130px;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 10px;
    background: rgba(255, 255, 255, .014);
}

.orcamento-view-item-main {
    min-width: 0;
}

.orcamento-view-item-main strong,
.orcamento-view-item-main small {
    display: block;
}

.orcamento-view-item-main strong {
    overflow: hidden;
    color: #dfe4e9;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orcamento-view-item-main small {
    margin-top: 3px;
    color: #7b8794;
    font-size: 8px;
}

.orcamento-view-item-qty,
.orcamento-view-item-unit {
    color: #8b96a2;
    font-size: 9px;
    text-align: right;
}

.orcamento-view-item-total {
    color: #e4e8ec;
    font-size: 11px;
    text-align: right;
}

.orcamento-view-empty {
    min-height: 58px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, .055);
    border-radius: 10px;
    color: #5e6975;
    font-size: 9px;
}

.orcamento-view-empty[hidden] {
    display: none;
}

.orcamento-view-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    padding: 20px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.orcamento-view-notes {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 12px;
    background: rgba(255, 255, 255, .012);
}

.orcamento-view-notes p {
    margin: 0;
    color: #929ca7;
    font-size: 10px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.orcamento-view-totals {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 12px;
    background:
        linear-gradient(
            145deg,
            rgba(20, 27, 36, .72),
            rgba(13, 19, 26, .72)
        );
}

.orcamento-view-totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 34px;
}

.orcamento-view-totals > div + div {
    border-top: 1px solid rgba(255, 255, 255, .045);
}

.orcamento-view-totals span {
    color: #77828f;
    font-size: 9px;
}

.orcamento-view-totals strong {
    color: #d9dee3;
    font-size: 11px;
}

.orcamento-view-total-final {
    margin-top: 4px;
    padding-top: 8px;
}

.orcamento-view-total-final strong {
    color: #ff6672;
    font-size: 18px;
    letter-spacing: -.03em;
}

.orcamento-view-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(13, 19, 26, .97);
    backdrop-filter: blur(16px);
}

.orcamento-view-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.orcamento-view-actions [hidden] {
    display: none;
}

.orcamento-approve-button {
    min-width: 170px;
}

@media (max-width: 820px) {
    .orcamento-view-meta {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .orcamento-view-meta > div:nth-child(2) {
        border-right: 0;
    }

    .orcamento-view-meta > div:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, .05);
    }

    .orcamento-view-item-row {
        grid-template-columns:
            minmax(160px, 1fr)
            60px
            105px
            110px;
    }

    .orcamento-view-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .prime-modal-orcamento-view {
        width: 100%;
        max-height: calc(100vh - 16px);
    }

    .orcamento-view-people,
    .orcamento-view-meta {
        grid-template-columns: 1fr;
    }

    .orcamento-view-meta > div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
    }

    .orcamento-view-meta > div:last-child {
        border-bottom: 0;
    }

    .orcamento-view-item-row {
        grid-template-columns: 1fr 1fr;
    }

    .orcamento-view-item-main {
        grid-column: 1 / -1;
    }

    .orcamento-view-item-qty {
        text-align: left;
    }

    .orcamento-view-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .orcamento-view-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .orcamento-view-actions .modal-button,
    .orcamento-view-footer > .modal-button {
        width: 100%;
    }
}


/* =========================================================
   ORÇAMENTOS PREMIUM V13
========================================================= */

.orcamentos-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

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

.orcamento-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.orcamento-metric-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 20px 20px 18px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(15, 22, 31, .98),
            rgba(10, 16, 23, .98)
        );
    box-shadow:
        0 18px 40px rgba(0, 0, 0, .16),
        inset 0 1px 0 rgba(255, 255, 255, .03);
}

.orcamento-metric-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    opacity: .9;
}

.metric-pending::after {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(235, 167, 48, .95),
            transparent
        );
}

.metric-approved::after {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(46, 201, 118, .95),
            transparent
        );
}

.metric-value::after {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(227, 38, 54, .95),
            transparent
        );
}

.metric-expired::after {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(111, 129, 150, .9),
            transparent
        );
}

.orcamento-metric-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.orcamento-metric-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.metric-pending .orcamento-metric-icon {
    background: rgba(235, 167, 48, .12);
    border-color: rgba(235, 167, 48, .28);
    color: #ebb47b;
}

.metric-approved .orcamento-metric-icon {
    background: rgba(46, 201, 118, .12);
    border-color: rgba(46, 201, 118, .28);
    color: #46df89;
}

.metric-value .orcamento-metric-icon {
    background: rgba(227, 38, 54, .12);
    border-color: rgba(227, 38, 54, .28);
    color: #ff6b79;
}

.metric-expired .orcamento-metric-icon {
    background: rgba(124, 136, 151, .12);
    border-color: rgba(124, 136, 151, .26);
    color: #aab5c3;
}

.orcamento-metric-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orcamento-metric-copy {
    min-width: 0;
}

.orcamento-metric-copy > span,
.orcamento-metric-copy > small {
    display: block;
}

.orcamento-metric-copy > span {
    color: #dfe6ed;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.orcamento-metric-copy > small {
    margin-top: 4px;
    color: #718091;
    font-size: 11px;
    line-height: 1.35;
}

.orcamento-metric-card > strong {
    display: block;
    color: #ffffff;
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1;
}

.orcamentos-shell {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(15, 22, 31, .98),
            rgba(10, 16, 23, .98)
        );
    box-shadow:
        0 18px 46px rgba(0, 0, 0, .17),
        inset 0 1px 0 rgba(255, 255, 255, .025);
}

.orcamentos-shell-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.shell-kicker {
    display: block;
    margin-bottom: 6px;
    color: #83a7da;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.orcamentos-shell-head h2 {
    margin: 0 0 4px;
    color: #f7f9fb;
    font-size: 24px;
    letter-spacing: -.03em;
}

.orcamentos-shell-head p {
    max-width: 760px;
    margin: 0;
    color: #95a1af;
    font-size: 13px;
    line-height: 1.5;
}

.shell-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(120, 145, 177, .18);
    border-radius: 12px;
    background: rgba(16, 27, 41, .5);
    color: #a9bfd8;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.orcamentos-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

@media (max-width: 1240px) {
    .orcamento-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .orcamentos-heading,
    .orcamentos-shell-head {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    .orcamento-metrics {
        grid-template-columns: 1fr;
    }

    .shell-badge {
        align-self: flex-start;
    }
}


/* =========================================================
   ORÇAMENTOS - CARDS TOP MAIS CLEAN V14
========================================================= */

.orcamento-metrics {
    gap: 14px;
}

.orcamento-metric-card {
    padding: 18px 18px 17px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    background:
        linear-gradient(
            180deg,
            rgba(14, 20, 28, .985),
            rgba(11, 16, 23, .985)
        );
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .10),
        inset 0 1px 0 rgba(255, 255, 255, .02);
}

.orcamento-metric-card::after {
    height: 1px;
    opacity: .75;
}

.orcamento-metric-top {
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.orcamento-metric-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .035);
    box-shadow: none;
}

.metric-pending .orcamento-metric-icon {
    background: rgba(235, 167, 48, .08);
    border-color: rgba(235, 167, 48, .18);
    color: #dba85b;
}

.metric-approved .orcamento-metric-icon {
    background: rgba(46, 201, 118, .08);
    border-color: rgba(46, 201, 118, .18);
    color: #4bd484;
}

.metric-value .orcamento-metric-icon {
    background: rgba(227, 38, 54, .08);
    border-color: rgba(227, 38, 54, .18);
    color: #ef5e6e;
}

.metric-expired .orcamento-metric-icon {
    background: rgba(137, 149, 164, .08);
    border-color: rgba(137, 149, 164, .16);
    color: #a2acb8;
}

.orcamento-metric-icon svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.85;
}

.orcamento-metric-copy > span {
    color: #f0f4f7;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.15;
}

.orcamento-metric-copy > small {
    margin-top: 3px;
    color: #778596;
    font-size: 11px;
    line-height: 1.35;
}

.orcamento-metric-card > strong {
    color: #ffffff;
    font-size: clamp(24px, 2.2vw, 31px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
}

.metric-value.orcamento-metric-card > strong {
    color: #fff4f5;
}


/* =========================================================
   ORÇAMENTOS - CARDS COM ALTURA PADRÃO V15
========================================================= */

.orcamento-metrics {
    align-items: stretch;
}

.orcamento-metric-card {
    min-height: 140px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.orcamento-metric-top {
    min-height: 50px;
    margin-bottom: 0;
}

.orcamento-metric-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 40px;
}

.orcamento-metric-card > strong {
    margin-top: 18px;
    display: block;
    white-space: nowrap;
}

@media (max-width: 1240px) {
    .orcamento-metric-card {
        min-height: 132px;
    }
}

@media (max-width: 720px) {
    .orcamento-metric-card {
        min-height: 124px;
    }
}


/* =========================================================
   ORÇAMENTOS - CARDS RESUMO SIMPLES V16
========================================================= */

.orcamento-metrics {
    gap: 14px;
}

.orcamento-metric-card {
    min-height: 92px;
    padding: 18px 18px;
    justify-content: center;
}

.orcamento-metric-card::after {
    height: 0;
    background: none;
}

.orcamento-metric-top {
    align-items: center;
    gap: 14px;
    min-height: auto;
    margin: 0;
}

.orcamento-metric-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
}

.orcamento-metric-copy {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.orcamento-metric-copy > span {
    color: #9fb0c3;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.15;
}

.orcamento-metric-copy > strong,
.orcamento-metric-card > strong {
    margin-top: 0;
    color: #ffffff;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    white-space: nowrap;
}

.metric-value .orcamento-metric-copy > strong {
    color: #fff7f8;
}

@media (max-width: 1240px) {
    .orcamento-metric-card {
        min-height: 88px;
    }
}

@media (max-width: 720px) {
    .orcamento-metric-card {
        min-height: 84px;
    }
}


/* =========================================================
   ORÇAMENTOS - REFINAMENTOS FINAIS V17
========================================================= */

/* Contador do histórico */
.shell-badge {
    min-width: 92px;
    border-color: rgba(132, 151, 174, .14);
    background: rgba(255, 255, 255, .025);
    color: #9aaabd;
    font-size: 11px;
    font-weight: 700;
}

/* Tabela mais limpa */
.orcamentos-table tbody tr {
    transition:
        background .16s ease,
        box-shadow .16s ease;
}

.orcamentos-table tbody tr:hover {
    background: rgba(255, 255, 255, .018);
    box-shadow:
        inset 3px 0 0 rgba(227, 38, 54, .22);
}

.orcamentos-table tbody td {
    transition: color .16s ease;
}

.orcamentos-table tbody tr:hover .orcamento-number strong,
.orcamentos-table tbody tr:hover .table-identity strong,
.orcamentos-table tbody tr:hover .vehicle-detail-stack strong {
    color: #ffffff;
}

/* Status premium, sem pesar */
.orcamento-status {
    position: relative;
    gap: 6px;
    min-height: 27px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 9px;
    letter-spacing: .01em;
}

.orcamento-status::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 999px;
    background: currentColor;
    opacity: .9;
}

.status-pendente {
    border-color: rgba(225, 165, 58, .12);
    background: rgba(225, 165, 58, .07);
    color: #dfae57;
}

.status-aprovado,
.status-convertido_os {
    border-color: rgba(55, 189, 114, .13);
    background: rgba(55, 189, 114, .07);
    color: #65cf91;
}

.status-expirado {
    border-color: rgba(139, 151, 165, .13);
    background: rgba(139, 151, 165, .07);
    color: #a0aab6;
}

.status-recusado,
.status-cancelado {
    border-color: rgba(227, 38, 54, .12);
    background: rgba(227, 38, 54, .065);
    color: #e46a75;
}

.status-rascunho {
    border-color: rgba(79, 143, 232, .12);
    background: rgba(79, 143, 232, .065);
    color: #78aaf0;
}

/* Ações */
.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
}

.row-action-icon {
    position: relative;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .018);
}

.row-action-icon:hover {
    transform: translateY(-1px);
}

.row-action-icon.is-print:hover {
    border-color: rgba(149, 162, 177, .18);
    background: rgba(149, 162, 177, .065);
    color: #c3ccd6;
}

.row-action-icon.is-os:hover {
    border-color: rgba(55, 189, 114, .2);
    background: rgba(55, 189, 114, .075);
    color: #69d494;
}

/*
   O atributo title continua ativo para tooltip nativo do navegador,
   inclusive onde o container da tabela poderia cortar um tooltip CSS.
*/
.row-action-icon[data-tooltip] {
    cursor: pointer;
}

/* Aprovado ganha uma indicação muito sutil na linha */
.orcamentos-table tbody tr[data-status="aprovado"]:hover {
    box-shadow:
        inset 3px 0 0 rgba(55, 189, 114, .22);
}

.orcamentos-table tbody tr[data-status="pendente"]:hover {
    box-shadow:
        inset 3px 0 0 rgba(225, 165, 58, .22);
}

@media (max-width: 760px) {
    .row-actions {
        gap: 5px;
    }

    .row-action-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
}


/* =========================================================
   ACESSIBILIDADE / LEGIBILIDADE V18
   Aumento geral de textos miúdos
========================================================= */

/* Subtítulos e textos explicativos dos modais */
.modal-kicker {
    font-size: 11px !important;
}

.modal-subtitle {
    font-size: 13px !important;
    line-height: 1.65 !important;
}

.confirmation-content strong {
    font-size: 14px !important;
    line-height: 1.35 !important;
}

.confirmation-content p {
    font-size: 13px !important;
    line-height: 1.65 !important;
}

/* Toasts / avisos */
.toast-container {
    width: min(420px, calc(100vw - 32px));
}

.toast-content {
    padding: 13px 15px !important;
}

.toast-content strong {
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.toast-content span {
    font-size: 12px !important;
    line-height: 1.6 !important;
}

/* Ajuda e descrições de campos */
.field-help,
.form-section-title small,
.smart-select-option small,
.table-identity small,
.orcamento-number small,
.orcamento-view-card small,
.orcamento-view-os small,
.orcamento-view-section-title small,
.orcamento-view-item-main small,
.prime-card > small,
.flow-card small,
.user-info small,
.sidebar-footer small {
    font-size: 12px !important;
    line-height: 1.55 !important;
}

/* Labels e títulos menores */
.form-section-title strong {
    font-size: 14px !important;
}

.form-field label {
    font-size: 13px !important;
}

.form-field input,
.form-field select,
.premium-select {
    font-size: 14px !important;
}

/* Pequenos metadados de tabela e listas */
.vehicle-detail-stack span,
.orcamento-number span,
.table-identity span,
.smart-select-option span,
.prime-table thead th {
    font-size: 12px !important;
}

/* Alguns micro textos de cards e métricas */
.orcamento-metric-copy > span,
.shell-badge,
.page-kicker,
.shell-kicker,
.cadastro-tab-badge,
.orcamento-status {
    font-size: 12px !important;
}

/* Modal de visualização do orçamento */
.orcamento-view-item-main strong,
.orcamento-view-card strong,
.orcamento-view-os strong {
    line-height: 1.35 !important;
}

/* Responsivo: manter leitura confortável */
@media (max-width: 760px) {
    .modal-subtitle,
    .confirmation-content p,
    .toast-content span,
    .field-help,
    .form-section-title small,
    .table-identity small,
    .orcamento-number small,
    .orcamento-view-card small,
    .orcamento-view-item-main small {
        font-size: 12px !important;
    }
}


/* =========================================================
   ORDENS DE SERVIÇO V19
========================================================= */

.os-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.os-heading h1 {
    margin: 6px 0 5px;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1;
    letter-spacing: -.045em;
}

.os-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.dashboard-secondary-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 11px;
    background: rgba(255, 255, 255, .025);
    color: #b8c2cd;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-secondary-action:hover {
    border-color: rgba(227, 38, 54, .18);
    background: rgba(227, 38, 54, .05);
    color: #ffffff;
}

.os-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.os-metric-card {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    background:
        linear-gradient(
            180deg,
            rgba(14, 20, 28, .985),
            rgba(11, 16, 23, .985)
        );
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .10),
        inset 0 1px 0 rgba(255, 255, 255, .02);
}

.os-metric-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 13px;
    background: rgba(255, 255, 255, .035);
}

.os-metric-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.os-metric-open .os-metric-icon {
    border-color: rgba(79, 143, 232, .18);
    background: rgba(79, 143, 232, .08);
    color: #79aaf0;
}

.os-metric-running .os-metric-icon {
    border-color: rgba(227, 38, 54, .18);
    background: rgba(227, 38, 54, .08);
    color: #ef6673;
}

.os-metric-ready .os-metric-icon {
    border-color: rgba(55, 189, 114, .18);
    background: rgba(55, 189, 114, .08);
    color: #5dd38d;
}

.os-metric-value .os-metric-icon {
    border-color: rgba(225, 165, 58, .18);
    background: rgba(225, 165, 58, .08);
    color: #dfad55;
}

.os-metric-card > div > span,
.os-metric-card > div > strong {
    display: block;
}

.os-metric-card > div > span {
    margin-bottom: 5px;
    color: #9fb0c3;
    font-size: 13px;
    font-weight: 500;
}

.os-metric-card > div > strong {
    overflow: hidden;
    color: #ffffff;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.os-shell {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(15, 22, 31, .98),
            rgba(10, 16, 23, .98)
        );
    box-shadow:
        0 18px 46px rgba(0, 0, 0, .17);
}

.os-shell-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.os-shell-head h2 {
    margin: 0 0 4px;
    color: #f7f9fb;
    font-size: 24px;
    letter-spacing: -.03em;
}

.os-shell-head p {
    margin: 0;
    color: #95a1af;
    font-size: 13px;
    line-height: 1.5;
}

.os-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.os-toolbar .search-field {
    flex: 1;
}

.os-number strong,
.os-number small {
    display: block;
}

.os-number strong {
    color: #e7ebef;
    font-size: 13px;
    font-weight: 800;
}

.os-number small {
    margin-top: 4px;
    max-width: 150px;
    overflow: hidden;
    color: #73808f;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.os-origin-number {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 8px;
    background: rgba(255, 255, 255, .02);
    color: #aab5c0;
    font-size: 12px;
    font-weight: 800;
}

.os-status-badge {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.os-status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}

.os-status-aberta,
.os-status-agendada {
    border-color: rgba(79, 143, 232, .13);
    background: rgba(79, 143, 232, .07);
    color: #7aacf2;
}

.os-status-em_execucao {
    border-color: rgba(227, 38, 54, .13);
    background: rgba(227, 38, 54, .07);
    color: #ee6b77;
}

.os-status-finalizacao {
    border-color: rgba(225, 165, 58, .13);
    background: rgba(225, 165, 58, .07);
    color: #e0b15e;
}

.os-status-pronta,
.os-status-entregue {
    border-color: rgba(55, 189, 114, .13);
    background: rgba(55, 189, 114, .07);
    color: #68d293;
}

.os-status-cancelada {
    border-color: rgba(139, 151, 165, .13);
    background: rgba(139, 151, 165, .07);
    color: #9da8b5;
}

.os-table tbody tr {
    transition:
        background .16s ease,
        box-shadow .16s ease;
}

.os-table tbody tr:hover {
    background: rgba(255, 255, 255, .018);
    box-shadow:
        inset 3px 0 0 rgba(227, 38, 54, .2);
}

.os-table .table-money {
    color: #eef2f5 !important;
    font-size: 13px !important;
}

/* Modal OS */
.prime-modal-os {
    width: min(94vw, 1040px);
    max-height: calc(100vh - 36px);
}

.os-view-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
}

.os-view-title-line h2 {
    margin: 0;
}

.os-view-origin {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    background: rgba(255, 255, 255, .015);
}

.os-view-origin > div {
    padding: 14px 16px;
}

.os-view-origin > div + div {
    border-left: 1px solid rgba(255, 255, 255, .05);
}

.os-view-origin span,
.os-view-origin strong {
    display: block;
}

.os-view-origin span {
    margin-bottom: 5px;
    color: #718091;
    font-size: 12px;
    font-weight: 700;
}

.os-view-origin strong {
    color: #e4e9ed;
    font-size: 14px;
}

.os-view-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.os-view-card {
    min-width: 0;
    padding: 17px 18px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 13px;
    background: rgba(255, 255, 255, .018);
}

.os-view-label {
    display: block;
    margin-bottom: 8px;
    color: #7c8997;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
}

.os-view-card strong,
.os-view-card small {
    display: block;
}

.os-view-card strong {
    color: #e8edf1;
    font-size: 14px;
}

.os-view-card small {
    margin-top: 5px;
    color: #8b97a4;
    font-size: 12px;
    line-height: 1.5;
}

.os-view-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 12px;
}

.os-view-meta > div {
    padding: 13px 15px;
    border-right: 1px solid rgba(255, 255, 255, .05);
}

.os-view-meta > div:last-child {
    border-right: 0;
}

.os-view-meta span,
.os-view-meta strong {
    display: block;
}

.os-view-meta span {
    margin-bottom: 5px;
    color: #7d8996;
    font-size: 12px;
}

.os-view-meta strong {
    color: #d7dde3;
    font-size: 13px;
}

.os-view-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.os-view-section-title > div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.os-view-section-line {
    width: 3px;
    height: 32px;
    flex: 0 0 3px;
    border-radius: 999px;
    background: var(--red);
}

.os-view-section-title strong,
.os-view-section-title small {
    display: block;
}

.os-view-section-title strong {
    color: #e1e6ea;
    font-size: 14px;
}

.os-view-section-title small {
    margin-top: 3px;
    color: #808c99;
    font-size: 12px;
}

.os-view-items {
    display: grid;
    gap: 7px;
}

.os-view-item-row {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        70px
        125px
        130px;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 10px;
    background: rgba(255, 255, 255, .014);
}

.os-view-item-main strong,
.os-view-item-main small {
    display: block;
}

.os-view-item-main strong {
    color: #dfe4e8;
    font-size: 13px;
}

.os-view-item-main small {
    margin-top: 3px;
    color: #85919e;
    font-size: 12px;
}

.os-view-item-row > span {
    color: #909ba7;
    font-size: 12px;
    text-align: right;
}

.os-view-item-row > strong {
    color: #e5e9ed;
    font-size: 13px;
    text-align: right;
}

.os-view-empty {
    min-height: 58px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, .06);
    border-radius: 10px;
    color: #788492;
    font-size: 12px;
}

.os-view-empty[hidden] {
    display: none;
}

.os-view-closing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.os-view-notes,
.os-view-totals {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    background: rgba(255, 255, 255, .012);
}

.os-view-notes p {
    margin: 0;
    color: #929da8;
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.os-view-totals > div {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.os-view-totals > div + div {
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.os-view-totals span {
    color: #7f8a96;
    font-size: 12px;
}

.os-view-totals strong {
    color: #dce1e5;
    font-size: 13px;
}

.os-view-total-final {
    margin-top: 5px;
    padding-top: 8px;
}

.os-view-total-final strong {
    color: #ff6875;
    font-size: 19px;
}

.os-status-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: center;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(79, 143, 232, .1);
    border-radius: 13px;
    background: rgba(79, 143, 232, .025);
}

.os-status-control-copy strong {
    display: block;
    color: #e0e5e9;
    font-size: 14px;
}

.os-status-control-copy p {
    margin: 5px 0 0;
    color: #8b97a4;
    font-size: 12px;
    line-height: 1.6;
}

.os-status-control-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
}

.os-status-control-action .filter-select {
    width: 100%;
}

.os-view-footer {
    justify-content: space-between;
}

@media (max-width: 1240px) {
    .os-metrics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .os-heading,
    .os-shell-head {
        flex-direction: column;
        align-items: stretch;
    }

    .os-view-meta {
        grid-template-columns: 1fr;
    }

    .os-view-meta > div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
    }

    .os-view-meta > div:last-child {
        border-bottom: 0;
    }

    .os-view-closing,
    .os-status-control {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .os-metrics,
    .os-view-people,
    .os-view-origin {
        grid-template-columns: 1fr;
    }

    .os-view-origin > div + div {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .05);
    }

    .os-view-item-row {
        grid-template-columns: 1fr 1fr;
    }

    .os-view-item-main {
        grid-column: 1 / -1;
    }

    .os-status-control-action {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   ORDENS DE SERVIÇO - STATUS NA LISTA V20
========================================================= */

.os-table .table-actions-col {
    width: 240px;
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
}

.row-status-select {
    min-width: 150px;
    height: 36px;
    padding: 0 40px 0 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    outline: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.016));
    color: #e7edf2;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        border-color .16s ease,
        background .16s ease,
        opacity .16s ease,
        box-shadow .16s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #9fb0c3 50%),
        linear-gradient(135deg, #9fb0c3 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.row-status-select:hover {
    border-color: rgba(227, 38, 54, .18);
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

.row-status-select:focus {
    border-color: rgba(227, 38, 54, .3);
    box-shadow: 0 0 0 4px rgba(227, 38, 54, .08);
}

.row-status-select:disabled {
    opacity: .72;
    cursor: default;
}

.row-status-select.is-loading {
    opacity: .58;
    pointer-events: none;
}

@media (max-width: 960px) {
    .os-table .table-actions-col {
        width: 210px;
    }

    .row-status-select {
        min-width: 132px;
        font-size: 12px;
    }
}


/* =========================================================
   ORDENS DE SERVIÇO - MODAL DE STATUS V21
========================================================= */

/* Link "Ver orçamento" como botão real */
.os-view-budget-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    color: #cbd4dd !important;
}

.os-view-budget-link:hover {
    border-color: rgba(227, 38, 54, .18);
    background: rgba(227, 38, 54, .055);
    color: #ffffff !important;
}

.os-view-budget-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Botão de status na tabela */
.row-action-icon.is-status {
    color: #a8b4c0;
}

.row-action-icon.is-status:hover:not(:disabled) {
    border-color: rgba(79, 143, 232, .22);
    background: rgba(79, 143, 232, .08);
    color: #7fb0f3;
}

.row-action-icon.is-status:disabled {
    opacity: .38;
    cursor: default;
}

/* Modal de status */
.prime-modal-os-status {
    width: min(100%, 440px);
}

.prime-modal-os-status .prime-modal-header {
    min-height: auto;
    padding: 20px 22px;
}

.prime-modal-os-status .modal-subtitle {
    margin-top: 6px;
}

.os-status-options {
    display: grid;
    gap: 9px;
}

.os-status-option {
    position: relative;
    min-height: 54px;
    display: grid;
    grid-template-columns:
        18px
        24px
        minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 12px;
    background: rgba(255, 255, 255, .018);
    cursor: pointer;
    transition:
        border-color .16s ease,
        background .16s ease,
        transform .16s ease;
}

.os-status-option:hover {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .03);
}

.os-status-option:has(input:checked) {
    border-color: rgba(227, 38, 54, .28);
    background:
        linear-gradient(
            90deg,
            rgba(227, 38, 54, .08),
            rgba(227, 38, 54, .025)
        );
}

.os-status-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.os-status-radio {
    width: 14px;
    height: 14px;
    display: grid;
    place-items: center;
    border: 2px solid #8794a2;
    border-radius: 999px;
    background: #f5f7f9;
}

.os-status-option:has(input:checked) .os-status-radio {
    border: 4px solid #4f8fe8;
    background: #ffffff;
}

.os-status-option-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #9ba7b3;
}

.os-status-option-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.os-option-aberta .os-status-option-icon,
.os-option-agendada .os-status-option-icon {
    color: #e0ad54;
}

.os-option-execucao .os-status-option-icon {
    color: #72a8f0;
}

.os-option-finalizacao .os-status-option-icon {
    color: #df7b85;
}

.os-option-pronta .os-status-option-icon,
.os-option-entregue .os-status-option-icon {
    color: #57ce88;
}

.os-option-cancelada .os-status-option-icon {
    color: #9aa5b1;
}

.os-status-option strong {
    color: #e4e9ed;
    font-size: 14px;
    font-weight: 750;
}

.os-status-footer {
    justify-content: flex-end;
}

.os-status-footer .modal-button {
    min-width: 100px;
}

/* Esconde estilos antigos do select inline caso ainda tenham cache */
.row-status-select {
    display: none !important;
}

@media (max-width: 520px) {
    .prime-modal-os-status {
        width: 100%;
    }

    .os-status-option {
        min-height: 56px;
    }
}


/* =========================================================
   CHECKLIST DE ENTRADA / SAÍDA V22
========================================================= */

.os-table .table-actions-col {
    width: 230px;
}

.row-action-icon.is-checkin,
.row-action-icon.is-checkout {
    color: #9ca9b6;
}

.row-action-icon.is-checkin:hover:not(:disabled) {
    border-color: rgba(79, 143, 232, .22);
    background: rgba(79, 143, 232, .075);
    color: #7fb0f3;
}

.row-action-icon.is-checkout:hover:not(:disabled) {
    border-color: rgba(55, 189, 114, .22);
    background: rgba(55, 189, 114, .075);
    color: #6ad596;
}

.row-action-icon.is-checkin.is-complete,
.row-action-icon.is-checkout.is-complete {
    border-color: rgba(55, 189, 114, .15);
    background: rgba(55, 189, 114, .055);
    color: #64cf90;
}

.row-action-icon.is-checkin:disabled,
.row-action-icon.is-checkout:disabled {
    opacity: .32;
    cursor: default;
}

/* Modal */
.prime-modal-checklist {
    width: min(95vw, 1080px);
    max-height: calc(100vh - 34px);
}

.checklist-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.checklist-title-line h2 {
    margin: 0;
}

.checklist-saved-badge {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid rgba(55, 189, 114, .15);
    border-radius: 9px;
    background: rgba(55, 189, 114, .07);
    color: #67d392;
    font-size: 12px;
    font-weight: 800;
}

.checklist-saved-badge[hidden] {
    display: none;
}

.checklist-body {
    padding-top: 20px;
}

.checklist-context {
    display: grid;
    grid-template-columns:
        160px
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 13px;
    background: rgba(255, 255, 255, .016);
}

.checklist-context > div {
    min-width: 0;
    padding: 14px 16px;
    border-right: 1px solid rgba(255, 255, 255, .05);
}

.checklist-context > div:last-child {
    border-right: 0;
}

.checklist-context span,
.checklist-context strong {
    display: block;
}

.checklist-context span {
    margin-bottom: 5px;
    color: #7c8997;
    font-size: 12px;
    font-weight: 750;
}

.checklist-context strong {
    overflow: hidden;
    color: #e6ebef;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checklist-section {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.checklist-section-head > div {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}

.checklist-section-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border: 1px solid rgba(227, 38, 54, .16);
    border-radius: 10px;
    background: rgba(227, 38, 54, .065);
    color: #ec6672;
    font-size: 11px;
    font-weight: 900;
}

.checklist-section-head strong,
.checklist-section-head small {
    display: block;
}

.checklist-section-head strong {
    color: #e1e6ea;
    font-size: 15px;
}

.checklist-section-head small {
    margin-top: 3px;
    color: #84909d;
    font-size: 12px;
    line-height: 1.5;
}

.checklist-basic-grid {
    display: grid;
    grid-template-columns:
        minmax(220px, .72fr)
        minmax(360px, 1.28fr);
    gap: 14px;
}

.checklist-field-label {
    display: block;
    margin-bottom: 9px;
    color: #c4ccd4;
    font-size: 13px;
    font-weight: 750;
}

.checklist-km-field {
    display: flex;
    align-items: center;
    min-height: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 11px;
    background: rgba(255, 255, 255, .025);
}

.checklist-km-field input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 0 !important;
    outline: 0 !important;
    padding: 0 14px !important;
    background: transparent !important;
    color: #eef2f5 !important;
    font-size: 14px !important;
    font-weight: 750;
    box-shadow: none !important;
}

.checklist-km-field > span {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-left: 1px solid rgba(255, 255, 255, .06);
    color: #7e8996;
    font-size: 12px;
    font-weight: 800;
}

.checklist-fuel-card {
    padding: 14px 16px 12px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    background: rgba(255, 255, 255, .018);
}

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

.checklist-fuel-head span {
    color: #bdc6cf;
    font-size: 13px;
    font-weight: 750;
}

.checklist-fuel-head strong {
    color: #f0f3f6;
    font-size: 14px;
}

.checklist-fuel-gauge {
    margin-top: 13px;
}

.checklist-fuel-track {
    position: relative;
    height: 8px;
    overflow: visible;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
}

.checklist-fuel-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            #d13a47,
            #dea441,
            #43bd76
        );
}

.checklist-fuel-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 3px solid #f3f6f8;
    border-radius: 999px;
    background: #151d27;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.checklist-fuel-gauge input[type="range"] {
    width: 100%;
    height: 26px;
    margin: -17px 0 0;
    opacity: 0;
    cursor: pointer;
}

.checklist-fuel-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    color: #758290;
    font-size: 11px;
}

.checklist-condition-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.checklist-condition {
    position: relative;
    min-height: 76px;
    display: grid;
    grid-template-columns:
        20px
        minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    background: rgba(255, 255, 255, .016);
    cursor: pointer;
    transition:
        border-color .16s ease,
        background .16s ease;
}

.checklist-condition:hover {
    border-color: rgba(227, 38, 54, .14);
    background: rgba(255, 255, 255, .025);
}

.checklist-condition:has(input:checked) {
    border-color: rgba(227, 38, 54, .22);
    background: rgba(227, 38, 54, .055);
}

.checklist-condition input {
    position: absolute;
    opacity: 0;
}

.checklist-condition-check {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 1px solid #697684;
    border-radius: 6px;
    background: rgba(255, 255, 255, .03);
}

.checklist-condition:has(input:checked)
.checklist-condition-check {
    border-color: #e32636;
    background: #e32636;
}

.checklist-condition:has(input:checked)
.checklist-condition-check::after {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}

.checklist-condition strong,
.checklist-condition small {
    display: block;
}

.checklist-condition strong {
    color: #dfe4e8;
    font-size: 13px;
}

.checklist-condition small {
    margin-top: 4px;
    color: #7e8a97;
    font-size: 12px;
    line-height: 1.4;
}

/* Fotos */
.checklist-photo-area {
    display: grid;
    grid-template-columns:
        180px
        minmax(0, 1fr);
    gap: 12px;
}

.checklist-photo-upload {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    border: 1px dashed rgba(227, 38, 54, .24);
    border-radius: 13px;
    background: rgba(227, 38, 54, .025);
    cursor: pointer;
    text-align: center;
}

.checklist-photo-upload:hover {
    border-color: rgba(227, 38, 54, .42);
    background: rgba(227, 38, 54, .045);
}

.checklist-photo-upload.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.checklist-photo-upload[hidden] {
    display: none;
}

.checklist-photo-upload input {
    display: none;
}

.checklist-photo-upload-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(227, 38, 54, .08);
    color: #ef6874;
}

.checklist-photo-upload-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.checklist-photo-upload strong {
    color: #e2e7eb;
    font-size: 13px;
}

.checklist-photo-upload small {
    color: #7e8996;
    font-size: 11px;
}

.checklist-photo-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 9px;
    align-content: start;
}

.checklist-photo-card {
    position: relative;
    min-height: 112px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 11px;
    background: #0c1118;
}

.checklist-photo-card img {
    width: 100%;
    height: 112px;
    display: block;
    object-fit: cover;
}

.checklist-photo-remove {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    background: rgba(9, 13, 18, .82);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.checklist-photo-remove:hover {
    border-color: rgba(227, 38, 54, .35);
    background: rgba(227, 38, 54, .78);
}

.checklist-photo-new {
    position: absolute;
    left: 7px;
    bottom: 7px;
    min-height: 23px;
    display: inline-flex;
    align-items: center;
    padding: 0 7px;
    border-radius: 7px;
    background: rgba(79, 143, 232, .88);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

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

.checklist-text-grid textarea {
    width: 100%;
    min-height: 112px;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 11px;
    outline: 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .025);
    color: #e8edf1;
    font-size: 13px;
    line-height: 1.6;
}

.checklist-text-grid textarea:focus {
    border-color: rgba(227, 38, 54, .4);
    box-shadow: 0 0 0 4px rgba(227, 38, 54, .07);
}

.checklist-responsavel-field {
    margin-top: 12px;
}

.checklist-readonly-notice {
    margin-top: 20px;
    padding: 13px 14px;
    border: 1px solid rgba(225, 165, 58, .16);
    border-radius: 11px;
    background: rgba(225, 165, 58, .055);
    color: #d4b477;
    font-size: 12px;
    line-height: 1.55;
}

.checklist-readonly-notice[hidden] {
    display: none;
}

.checklist-footer {
    position: sticky;
    bottom: 0;
    z-index: 4;
    background: rgba(13, 19, 26, .97);
    backdrop-filter: blur(14px);
}

@media (max-width: 900px) {
    .checklist-condition-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .checklist-photo-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .checklist-context,
    .checklist-basic-grid,
    .checklist-text-grid,
    .checklist-photo-area {
        grid-template-columns: 1fr;
    }

    .checklist-context > div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
    }

    .checklist-context > div:last-child {
        border-bottom: 0;
    }

    .checklist-photo-upload {
        min-height: 110px;
    }
}

@media (max-width: 560px) {
    .checklist-condition-grid {
        grid-template-columns: 1fr;
    }

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


/* =========================================================
   OS - RESUMO DOS CHECKLISTS + IMPRESSÃO V23
========================================================= */

.os-view-checklists-section {
    margin-top: 22px;
}

.os-view-checklists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.os-view-checklist-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .024),
            rgba(255, 255, 255, .012)
        );
}

.os-view-checklist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.os-view-checklist-head > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.os-view-checklist-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 11px;
}

.os-view-checklist-icon.is-entry {
    border: 1px solid rgba(79, 143, 232, .17);
    background: rgba(79, 143, 232, .07);
    color: #80b0f2;
}

.os-view-checklist-icon.is-exit {
    border: 1px solid rgba(55, 189, 114, .17);
    background: rgba(55, 189, 114, .07);
    color: #6cd697;
}

.os-view-checklist-icon svg,
.os-view-print-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.os-view-checklist-kicker {
    display: block;
    margin-bottom: 3px;
    color: #788694;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
}

.os-view-checklist-head strong {
    display: block;
    overflow: hidden;
    color: #e6ebef;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.os-view-checklist-status {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 850;
}

.os-view-checklist-status.is-pending {
    border: 1px solid rgba(225, 165, 58, .14);
    background: rgba(225, 165, 58, .06);
    color: #dbae5e;
}

.os-view-checklist-status.is-complete {
    border: 1px solid rgba(55, 189, 114, .14);
    background: rgba(55, 189, 114, .06);
    color: #69d394;
}

.os-view-checklist-pending {
    min-height: 94px;
    display: flex;
    align-items: center;
    padding: 16px;
    color: #84919e;
    font-size: 12px;
    line-height: 1.55;
}

.os-view-checklist-content {
    padding: 13px 14px 0;
}

.os-view-checklist-content[hidden] {
    display: none;
}

.os-view-checklist-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 10px;
}

.os-view-checklist-metrics > div {
    min-width: 0;
    padding: 10px 8px;
    border-right: 1px solid rgba(255, 255, 255, .05);
}

.os-view-checklist-metrics > div:last-child {
    border-right: 0;
}

.os-view-checklist-metrics span,
.os-view-checklist-metrics strong {
    display: block;
}

.os-view-checklist-metrics span {
    margin-bottom: 4px;
    color: #798694;
    font-size: 11px;
}

.os-view-checklist-metrics strong {
    overflow: hidden;
    color: #dce2e7;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.os-view-checklist-responsible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    margin-top: 9px;
    padding: 0 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .018);
}

.os-view-checklist-responsible span {
    color: #7f8b98;
    font-size: 11px;
}

.os-view-checklist-responsible strong {
    overflow: hidden;
    color: #cdd5dc;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.os-view-checklist-thumbs {
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
}

.os-view-checklist-thumb {
    width: 50px;
    height: 43px;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 8px;
    background: #0b1117;
}

.os-view-checklist-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.os-view-checklist-more {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    color: #a9b5c1;
    font-size: 11px;
    font-weight: 850;
}

.os-view-checklist-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 14px 14px;
}

.os-view-checklist-actions .modal-button {
    min-height: 37px;
    padding: 0 12px;
    font-size: 12px;
}

.os-view-checklist-actions [hidden] {
    display: none;
}

.os-view-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.os-view-print-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.row-action-icon.is-print:hover {
    border-color: rgba(149, 162, 177, .2);
    background: rgba(149, 162, 177, .07);
    color: #cbd4dd;
}

@media (max-width: 850px) {
    .os-view-checklists {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .os-view-checklist-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .os-view-checklist-metrics > div:nth-child(2) {
        border-right: 0;
    }

    .os-view-checklist-metrics > div:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, .05);
    }

    .os-view-footer-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .os-view-footer-actions .modal-button {
        width: 100%;
    }
}


/* =========================================================
   CHECKLIST - VISUALIZADOR DE FOTOS EM MODAL V24
========================================================= */

.os-view-checklist-thumb,
.os-view-checklist-more {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.os-view-checklist-thumb {
    padding: 0;
    outline: none;
    transition:
        border-color .16s ease,
        transform .16s ease,
        box-shadow .16s ease;
}

.os-view-checklist-thumb:hover {
    border-color: rgba(227, 38, 54, .28);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.os-view-checklist-more {
    border: 1px solid rgba(255, 255, 255, .06);
    outline: none;
}

.os-view-checklist-more:hover {
    border-color: rgba(227, 38, 54, .22);
    background: rgba(227, 38, 54, .07);
    color: #ffffff;
}

/* Fica acima do modal da OS */
.checklist-photo-viewer-modal {
    z-index: 150;
}

.checklist-photo-viewer-dialog {
    width: min(94vw, 980px);
    max-height: calc(100vh - 44px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(
            145deg,
            #111922,
            #0c1219
        );
}

.checklist-photo-viewer-header {
    min-height: 86px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.checklist-photo-viewer-header h2 {
    margin: 0;
    color: #f0f3f6;
    font-size: 22px;
    line-height: 1.15;
}

.checklist-photo-viewer-header .modal-subtitle {
    margin: 5px 0 0;
}

.checklist-photo-viewer-stage {
    position: relative;
    min-height: 500px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    align-items: center;
    gap: 10px;
    padding: 18px;
    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,.025),
            transparent 62%
        ),
        #080d12;
}

.checklist-photo-viewer-image-wrap {
    min-width: 0;
    height: min(64vh, 620px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 14px;
    background: #05090d;
}

.checklist-photo-viewer-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.checklist-photo-nav {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, .035);
    color: #c7d0d9;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition:
        background .16s ease,
        border-color .16s ease,
        color .16s ease,
        opacity .16s ease;
}

.checklist-photo-nav:hover:not(:disabled) {
    border-color: rgba(227, 38, 54, .24);
    background: rgba(227, 38, 54, .08);
    color: #ffffff;
}

.checklist-photo-nav:disabled {
    opacity: .28;
    cursor: default;
}

.checklist-photo-viewer-footer {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 20px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.checklist-photo-viewer-footer > span {
    color: #a4afba;
    font-size: 12px;
    font-weight: 750;
}

.checklist-photo-viewer-dots {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.checklist-photo-viewer-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    outline: none;
    background: #48535f;
    cursor: pointer;
    transition:
        width .16s ease,
        background .16s ease;
}

.checklist-photo-viewer-dot.is-active {
    width: 22px;
    background: #e32636;
}

@media (max-width: 720px) {
    .checklist-photo-viewer-dialog {
        width: 100%;
    }

    .checklist-photo-viewer-stage {
        min-height: 380px;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 6px;
        padding: 12px 8px;
    }

    .checklist-photo-viewer-image-wrap {
        height: 52vh;
        min-height: 320px;
    }

    .checklist-photo-nav {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .checklist-photo-viewer-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   AGENDA PREMIUM V25
========================================================= */

.agenda-page {
    padding-bottom: 34px;
}

.agenda-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.agenda-heading h1 {
    margin: 6px 0 5px;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1;
    letter-spacing: -.045em;
}

.agenda-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.agenda-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.agenda-metric-card {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    background:
        linear-gradient(
            180deg,
            rgba(14, 20, 28, .985),
            rgba(11, 16, 23, .985)
        );
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .10),
        inset 0 1px 0 rgba(255, 255, 255, .02);
}

.agenda-metric-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 13px;
    background: rgba(255, 255, 255, .035);
}

.agenda-metric-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.metric-today .agenda-metric-icon {
    border-color: rgba(79, 143, 232, .18);
    background: rgba(79, 143, 232, .08);
    color: #7daef2;
}

.metric-confirmed .agenda-metric-icon {
    border-color: rgba(55, 189, 114, .18);
    background: rgba(55, 189, 114, .08);
    color: #65d391;
}

.metric-attending .agenda-metric-icon {
    border-color: rgba(227, 38, 54, .18);
    background: rgba(227, 38, 54, .08);
    color: #ef6976;
}

.metric-pending .agenda-metric-icon {
    border-color: rgba(225, 165, 58, .18);
    background: rgba(225, 165, 58, .08);
    color: #dfad58;
}

.agenda-metric-card > div {
    min-width: 0;
}

.agenda-metric-card span,
.agenda-metric-card strong {
    display: block;
}

.agenda-metric-card > div > span {
    margin-bottom: 5px;
    color: #9fb0c3;
    font-size: 13px;
    font-weight: 500;
}

.agenda-metric-card > div > strong {
    overflow: hidden;
    color: #ffffff;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Shell */
.agenda-shell {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(15, 22, 31, .98),
            rgba(10, 16, 23, .98)
        );
    box-shadow:
        0 18px 46px rgba(0, 0, 0, .17);
}

.agenda-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.agenda-date-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.agenda-nav-button,
.agenda-today-button,
.agenda-view-button {
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, .075);
    outline: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
    color: #aeb9c4;
    cursor: pointer;
    transition:
        border-color .16s ease,
        background .16s ease,
        color .16s ease;
}

.agenda-nav-button {
    width: 40px;
    padding: 0;
    font-size: 25px;
    line-height: 1;
}

.agenda-today-button {
    padding: 0 13px;
    font-size: 12px;
    font-weight: 800;
}

.agenda-nav-button:hover,
.agenda-today-button:hover,
.agenda-view-button:hover {
    border-color: rgba(227, 38, 54, .2);
    background: rgba(227, 38, 54, .055);
    color: #ffffff;
}

.agenda-period-copy {
    min-width: 0;
    margin-left: 7px;
}

.agenda-period-copy span,
.agenda-period-copy strong {
    display: block;
}

.agenda-period-copy span {
    margin-bottom: 3px;
    color: #7199d2;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
}

.agenda-period-copy strong {
    overflow: hidden;
    color: #edf1f4;
    font-size: 17px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: capitalize;
}

.agenda-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    background: rgba(255, 255, 255, .018);
}

.agenda-view-button {
    min-height: 34px;
    padding: 0 12px;
    border-color: transparent;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
}

.agenda-view-button.is-active {
    border-color: rgba(227, 38, 54, .22);
    background: rgba(227, 38, 54, .11);
    color: #ffffff;
}

.agenda-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.agenda-filters .search-field {
    flex: 1;
}

.agenda-filters .filter-select {
    width: min(230px, 36vw);
}

.agenda-status-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 10px 18px 11px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    background: rgba(255, 255, 255, .008);
}

.agenda-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8793a0;
    font-size: 12px;
    white-space: nowrap;
}

.agenda-legend-item i {
    width: 7px;
    height: 7px;
    display: block;
    border-radius: 999px;
    background: currentColor;
}

.agenda-legend-item.status-agendado {
    color: #dca854;
}

.agenda-legend-item.status-confirmado {
    color: #5ecb8a;
}

.agenda-legend-item.status-em_atendimento {
    color: #ef6976;
}

.agenda-legend-item.status-concluido {
    color: #79aaf1;
}

.agenda-legend-item.status-faltou {
    color: #a98ce7;
}

.agenda-legend-item.status-cancelado {
    color: #8894a0;
}

.agenda-calendar {
    min-height: 520px;
}

.agenda-loading,
.agenda-empty-state {
    min-height: 520px;
    display: grid;
    place-items: center;
    color: #7f8b97;
    font-size: 13px;
}

/* Month */
.agenda-month-view {
    min-width: 0;
}

.agenda-month-header {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.agenda-month-header span {
    padding: 11px 12px;
    color: #778594;
    font-size: 11px;
    font-weight: 850;
    text-align: center;
    text-transform: uppercase;
}

.agenda-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.agenda-month-day {
    min-width: 0;
    min-height: 132px;
    padding: 8px;
    border-right: 1px solid rgba(255, 255, 255, .045);
    border-bottom: 1px solid rgba(255, 255, 255, .045);
    background: rgba(255, 255, 255, .006);
}

.agenda-month-day:nth-child(7n) {
    border-right: 0;
}

.agenda-month-day.is-other-month {
    background: rgba(255, 255, 255, .002);
}

.agenda-month-day.is-other-month .agenda-day-number {
    opacity: .42;
}

.agenda-month-day.is-today {
    background:
        linear-gradient(
            180deg,
            rgba(227, 38, 54, .032),
            rgba(227, 38, 54, .008)
        );
}

.agenda-month-day-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 28px;
    margin-bottom: 5px;
}

.agenda-day-number {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #abb6c1;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.is-today .agenda-day-number {
    background: #e32636;
    color: #ffffff;
}

.agenda-day-number:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.agenda-month-events {
    display: grid;
    gap: 5px;
}

.agenda-month-event {
    min-width: 0;
    min-height: 31px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
}

.agenda-month-event span {
    font-size: 10px;
    font-weight: 850;
}

.agenda-month-event strong {
    overflow: hidden;
    font-size: 11px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agenda-month-more {
    min-height: 27px;
    padding: 0 7px;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, .022);
    color: #7f8b98;
    font-size: 10px;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.agenda-month-more:hover {
    background: rgba(255, 255, 255, .04);
    color: #c8d0d8;
}

/* Status */
.agenda-month-event.status-agendado,
.agenda-timeline-event.status-agendado {
    border-color: rgba(225, 165, 58, .14);
    background: rgba(225, 165, 58, .07);
    color: #e2b15d;
}

.agenda-month-event.status-confirmado,
.agenda-timeline-event.status-confirmado {
    border-color: rgba(55, 189, 114, .14);
    background: rgba(55, 189, 114, .07);
    color: #69d393;
}

.agenda-month-event.status-em_atendimento,
.agenda-timeline-event.status-em_atendimento {
    border-color: rgba(227, 38, 54, .16);
    background: rgba(227, 38, 54, .085);
    color: #ef6b78;
}

.agenda-month-event.status-concluido,
.agenda-timeline-event.status-concluido {
    border-color: rgba(79, 143, 232, .14);
    background: rgba(79, 143, 232, .07);
    color: #7cacf0;
}

.agenda-month-event.status-faltou,
.agenda-timeline-event.status-faltou {
    border-color: rgba(154, 118, 218, .14);
    background: rgba(154, 118, 218, .07);
    color: #ad91e5;
}

.agenda-month-event.status-cancelado,
.agenda-timeline-event.status-cancelado {
    border-color: rgba(130, 143, 157, .12);
    background: rgba(130, 143, 157, .05);
    color: #929da8;
    opacity: .66;
}

/* Week/day timeline */
.agenda-week-view,
.agenda-day-view {
    min-width: 0;
}

.agenda-timeline-header {
    --agenda-days: 7;
    display: grid;
    grid-template-columns:
        72px
        repeat(var(--agenda-days), minmax(120px, 1fr));
    min-width: calc(72px + var(--agenda-days) * 120px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: #0f161f;
}

.agenda-time-spacer {
    border-right: 1px solid rgba(255, 255, 255, .05);
}

.agenda-timeline-day-head {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .05);
    background: transparent;
    color: #8b97a4;
    cursor: pointer;
}

.agenda-timeline-day-head:last-child {
    border-right: 0;
}

.agenda-timeline-day-head span {
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.agenda-timeline-day-head strong {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #d4dbe2;
    font-size: 14px;
}

.agenda-timeline-day-head.is-today strong {
    background: #e32636;
    color: #fff;
}

.agenda-time-scroll {
    max-height: 680px;
    overflow: auto;
}

.agenda-timeline-body {
    --agenda-days: 7;
    position: relative;
    display: grid;
    grid-template-columns:
        72px
        repeat(var(--agenda-days), minmax(120px, 1fr));
    min-width: calc(72px + var(--agenda-days) * 120px);
}

.agenda-time-column {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, .05);
    background: rgba(255, 255, 255, .006);
}

.agenda-time-label {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 5px 10px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, .035);
    color: #697684;
    font-size: 10px;
    font-weight: 700;
}

.agenda-time-day {
    position: relative;
    min-width: 0;
    border-right: 1px solid rgba(255, 255, 255, .045);
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent calc(var(--agenda-slot-height) - 1px),
            rgba(255,255,255,.035) calc(var(--agenda-slot-height) - 1px),
            rgba(255,255,255,.035) var(--agenda-slot-height)
        );
}

.agenda-time-day:last-child {
    border-right: 0;
}

.agenda-time-slot {
    position: absolute;
    inset-inline: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

.agenda-time-slot:hover {
    background: rgba(227, 38, 54, .025);
}

.agenda-timeline-event {
    position: absolute;
    z-index: 3;
    min-width: 0;
    overflow: hidden;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.agenda-timeline-event:hover {
    z-index: 6;
    filter: brightness(1.08);
}

.agenda-timeline-event span,
.agenda-timeline-event strong,
.agenda-timeline-event small {
    display: block;
}

.agenda-timeline-event .agenda-event-time {
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 850;
}

.agenda-timeline-event > strong {
    overflow: hidden;
    color: #f1f4f6;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agenda-timeline-event small {
    margin-top: 3px;
    overflow: hidden;
    color: currentColor;
    font-size: 10px;
    opacity: .84;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agenda-timeline-event .agenda-event-service {
    opacity: .68;
}

/* Modal */
.prime-modal-agendamento {
    width: min(94vw, 900px);
    max-height: calc(100vh - 38px);
}

.agendamento-body {
    padding-top: 20px;
}

.agendamento-section + .agendamento-section {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.agendamento-grid {
    display: grid;
    gap: 12px;
}

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

.agendamento-grid-time {
    grid-template-columns:
        minmax(180px, 1.2fr)
        minmax(130px, .8fr)
        minmax(130px, .8fr);
}

.agenda-smart-select {
    position: relative;
}

.agenda-smart-input {
    width: 100%;
}

.agenda-smart-dropdown {
    position: absolute;
    z-index: 20;
    inset: calc(100% + 7px) 0 auto;
    max-height: 290px;
    overflow: auto;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 12px;
    background: #131b24;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

.agenda-smart-dropdown[hidden] {
    display: none;
}

.agenda-smart-option {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #dce3e9;
    text-align: left;
    cursor: pointer;
}

.agenda-smart-option:hover {
    background: rgba(227, 38, 54, .07);
}

.agenda-smart-option strong {
    font-size: 13px;
}

.agenda-smart-option small {
    color: #7f8b98;
    font-size: 12px;
    line-height: 1.4;
}

.agenda-smart-empty {
    padding: 14px 12px;
    color: #7f8b98;
    font-size: 12px;
}

.agenda-duration-shortcuts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.agenda-duration-shortcuts button {
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    color: #9da9b5;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.agenda-duration-shortcuts button:hover {
    border-color: rgba(227, 38, 54, .2);
    background: rgba(227, 38, 54, .055);
    color: #fff;
}

.agendamento-section textarea {
    width: 100%;
    min-height: 105px;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 11px;
    outline: 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .025);
    color: #e8edf1;
    font-size: 14px;
    line-height: 1.6;
}

.agendamento-section textarea:focus {
    border-color: rgba(227, 38, 54, .38);
    box-shadow: 0 0 0 4px rgba(227, 38, 54, .07);
}

.agenda-conflict-note {
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid rgba(225, 165, 58, .18);
    border-radius: 11px;
    background: rgba(225, 165, 58, .06);
    color: #dbb56d;
    font-size: 13px;
    line-height: 1.55;
}

.agenda-conflict-note[hidden] {
    display: none;
}

/* Scrollbars da agenda */
.agenda-time-scroll::-webkit-scrollbar,
.agenda-smart-dropdown::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.agenda-time-scroll::-webkit-scrollbar-thumb,
.agenda-smart-dropdown::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    background-clip: padding-box;
}

@media (max-width: 1200px) {
    .agenda-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 880px) {
    .agenda-heading,
    .agenda-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .agenda-view-switch {
        align-self: flex-start;
    }

    .agenda-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .agenda-filters .filter-select {
        width: 100%;
    }

    .agenda-month-view {
        overflow-x: auto;
    }

    .agenda-month-header,
    .agenda-month-grid {
        min-width: 770px;
    }

    .agenda-grid-2,
    .agendamento-grid-2 {
        grid-template-columns: 1fr;
    }

    .agendamento-grid-time {
        grid-template-columns: 1fr 1fr;
    }

    .agendamento-grid-time .form-field:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .agenda-metrics {
        grid-template-columns: 1fr;
    }

    .agenda-date-navigation {
        flex-wrap: wrap;
    }

    .agenda-period-copy {
        width: 100%;
        margin: 5px 0 0;
    }

    .agenda-period-copy strong {
        white-space: normal;
    }

    .agenda-status-legend {
        gap: 8px 10px;
    }

    .agenda-month-header,
    .agenda-month-grid {
        min-width: 700px;
    }

    .agendamento-grid-time {
        grid-template-columns: 1fr;
    }

    .agendamento-grid-time .form-field:first-child {
        grid-column: auto;
    }
}


/* =========================================================
   AGENDA - REFINAMENTO VISUAL + MULTI-DIA V26
========================================================= */

/* Calendário mais equilibrado */
.agenda-month-day {
    min-height: 118px;
    padding: 9px;
}

.agenda-month-header span {
    padding: 12px;
    color: #8ca0b6;
    font-size: 12px;
}

.agenda-month-day:nth-child(7n),
.agenda-month-day:nth-child(7n - 1) {
    background-color: rgba(255, 255, 255, .004);
}

.agenda-day-number {
    font-size: 13px;
}

.agenda-month-event {
    min-height: 34px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    padding: 0 9px;
}

.agenda-month-event span {
    font-size: 10px;
    white-space: nowrap;
}

.agenda-month-event strong {
    font-size: 12px;
}

.agenda-month-event.is-multiday {
    box-shadow:
        inset 3px 0 0 currentColor;
}

/* Serviço com vários dias no modo semana/dia */
.agenda-multiday-row {
    --agenda-days: 7;
    display: grid;
    grid-template-columns:
        72px
        repeat(var(--agenda-days), minmax(120px, 1fr));
    min-width: calc(72px + var(--agenda-days) * 120px);
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    background: rgba(255, 255, 255, .008);
}

.agenda-multiday-label {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 10px 9px;
    border-right: 1px solid rgba(255, 255, 255, .05);
    color: #6f7e8e;
    font-size: 10px;
    font-weight: 750;
    text-align: right;
}

.agenda-multiday-cell {
    min-height: 58px;
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
    padding: 6px;
    border-right: 1px solid rgba(255, 255, 255, .045);
}

.agenda-multiday-cell:last-child {
    border-right: 0;
}

.agenda-multiday-event {
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    text-align: left;
    cursor: pointer;
}

.agenda-multiday-event strong,
.agenda-multiday-event small {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agenda-multiday-event strong {
    color: #f0f3f6;
    font-size: 11px;
}

.agenda-multiday-event small {
    color: currentColor;
    font-size: 10px;
    opacity: .82;
}

.agenda-multiday-event.status-agendado {
    border-color: rgba(225, 165, 58, .14);
    background: rgba(225, 165, 58, .07);
    color: #e2b15d;
}

.agenda-multiday-event.status-confirmado {
    border-color: rgba(55, 189, 114, .14);
    background: rgba(55, 189, 114, .07);
    color: #69d393;
}

.agenda-multiday-event.status-em_atendimento {
    border-color: rgba(227, 38, 54, .16);
    background: rgba(227, 38, 54, .085);
    color: #ef6b78;
}

.agenda-multiday-event.status-concluido {
    border-color: rgba(79, 143, 232, .14);
    background: rgba(79, 143, 232, .07);
    color: #7cacf0;
}

.agenda-multiday-event.status-faltou {
    border-color: rgba(154, 118, 218, .14);
    background: rgba(154, 118, 218, .07);
    color: #ad91e5;
}

.agenda-multiday-event.status-cancelado {
    border-color: rgba(130, 143, 157, .12);
    background: rgba(130, 143, 157, .05);
    color: #929da8;
    opacity: .68;
}

/* Modal: visual mais limpo, melhor hierarquia */
.prime-modal-agendamento {
    width: min(95vw, 960px);
    max-height: calc(100vh - 28px);
}

.agenda-modal-header {
    padding: 20px 24px 18px;
}

.agendamento-body {
    padding: 20px 24px 24px;
}

.agenda-form-section {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.018),
            rgba(255,255,255,.008)
        );
}

.agenda-form-section + .agenda-form-section {
    margin-top: 13px;
}

.agenda-form-section-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

.agenda-form-section-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border: 1px solid rgba(227, 38, 54, .16);
    border-radius: 10px;
    background: rgba(227, 38, 54, .06);
    color: #ef6673;
    font-size: 11px;
    font-weight: 900;
}

.agenda-form-section-head > div {
    min-width: 0;
}

.agenda-form-section-head strong,
.agenda-form-section-head small {
    display: block;
}

.agenda-form-section-head strong {
    color: #e5eaee;
    font-size: 15px;
}

.agenda-form-section-head small {
    margin-top: 3px;
    color: #82909e;
    font-size: 12px;
    line-height: 1.45;
}

.agenda-form-section .form-field > label,
.agenda-form-section .form-field > span {
    margin-bottom: 8px;
    color: #c3ccd5;
    font-size: 13px;
    font-weight: 700;
}

.agenda-form-section input,
.agenda-form-section select,
.agenda-form-section textarea {
    min-height: 47px;
}

.agenda-form-section textarea {
    min-height: 105px;
}

.agenda-smart-dropdown {
    z-index: 60;
    border-color: rgba(227, 38, 54, .12);
}

/* Período */
.agenda-period-section {
    position: relative;
}

.agenda-period-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        42px
        minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
}

.agenda-period-card {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 12px;
    background: rgba(255, 255, 255, .015);
}

.agenda-period-card.is-start {
    border-color: rgba(79, 143, 232, .12);
}

.agenda-period-card.is-end {
    border-color: rgba(55, 189, 114, .12);
}

.agenda-period-card-head {
    margin-bottom: 12px;
}

.agenda-period-card-head span,
.agenda-period-card-head strong {
    display: block;
}

.agenda-period-card-head span {
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
}

.agenda-period-card.is-start
.agenda-period-card-head span {
    color: #78aaf0;
}

.agenda-period-card.is-end
.agenda-period-card-head span {
    color: #64cf90;
}

.agenda-period-card-head strong {
    color: #dce3e9;
    font-size: 13px;
}

.agenda-period-fields {
    display: grid;
    grid-template-columns: 1fr .72fr;
    gap: 10px;
}

.agenda-period-arrow {
    display: grid;
    place-items: center;
    color: #667484;
}

.agenda-period-arrow span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 999px;
    background: rgba(255, 255, 255, .018);
    font-size: 17px;
}

.agenda-duration-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.agenda-duration-label {
    color: #7f8c99;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.agenda-duration-shortcuts {
    margin-top: 0;
}

.agenda-duration-shortcuts button {
    min-height: 34px;
    padding: 0 11px;
}

.agenda-duration-shortcuts
button[data-agenda-duration-days] {
    border-color: rgba(79, 143, 232, .11);
    color: #8eafe0;
}

.agenda-duration-shortcuts
button[data-agenda-duration-days]:hover {
    border-color: rgba(79, 143, 232, .24);
    background: rgba(79, 143, 232, .07);
    color: #b8d1f4;
}

.agenda-period-summary {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(55, 189, 114, .1);
    border-radius: 9px;
    background: rgba(55, 189, 114, .035);
    color: #a6c9b5;
    font-size: 12px;
    line-height: 1.45;
}

.agenda-period-summary.is-invalid {
    border-color: rgba(227, 38, 54, .14);
    background: rgba(227, 38, 54, .04);
    color: #db8d95;
}

.agenda-service-row {
    margin-top: 12px;
}

.agenda-modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 8;
    padding: 14px 24px;
    background: rgba(13, 19, 26, .97);
    backdrop-filter: blur(14px);
}

/* Esconde scrollbar visual pesada do modal, mantendo rolagem */
.prime-modal-agendamento .modal-body {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(255,255,255,.12)
        transparent;
}

.prime-modal-agendamento .modal-body::-webkit-scrollbar {
    width: 7px;
}

.prime-modal-agendamento .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.prime-modal-agendamento .modal-body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255,255,255,.12);
}

/* Responsivo */
@media (max-width: 840px) {
    .agenda-period-grid {
        grid-template-columns: 1fr;
    }

    .agenda-period-arrow {
        height: 26px;
    }

    .agenda-period-arrow span {
        transform: rotate(90deg);
    }

    .agenda-duration-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .agendamento-body {
        padding: 14px;
    }

    .agenda-form-section {
        padding: 14px;
    }

    .agenda-period-fields {
        grid-template-columns: 1fr;
    }

    .agenda-duration-shortcuts {
        width: 100%;
    }

    .agenda-duration-shortcuts button {
        flex: 1 1 auto;
    }
}


/* =========================================================
   AGENDA - REFINAMENTO V27
   Cards, observações, vínculo com OS e exclusão
========================================================= */

/* Ícones dos cards: mesmo tamanho, alinhamento e peso */
.agenda-metric-card {
    min-height: 92px;
    padding: 17px 18px;
    gap: 13px;
}

.agenda-metric-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025);
}

.agenda-metric-icon svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.7;
}

.metric-today .agenda-metric-icon {
    border-color: rgba(79, 143, 232, .20);
    background: rgba(79, 143, 232, .075);
    color: #7faef0;
}

.metric-confirmed .agenda-metric-icon {
    border-color: rgba(55, 189, 114, .20);
    background: rgba(55, 189, 114, .075);
    color: #62cf8d;
}

.metric-attending .agenda-metric-icon {
    border-color: rgba(227, 38, 54, .20);
    background: rgba(227, 38, 54, .075);
    color: #ed6673;
}

.metric-pending .agenda-metric-icon {
    border-color: rgba(225, 165, 58, .20);
    background: rgba(225, 165, 58, .075);
    color: #dcaa53;
}

/* Observações: largura total */
.agenda-observation-section {
    width: 100%;
}

.agenda-observation-field {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}

.agenda-observation-field textarea,
.agenda-observation-section textarea {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-height: 118px;
    margin: 0;
    resize: vertical;
}

/* Vinculação de OS */
.agenda-os-linker {
    width: 100%;
}

.agenda-os-search-wrap {
    display: grid;
    grid-template-columns:
        minmax(250px, .78fr)
        minmax(300px, 1.22fr);
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(79, 143, 232, .10);
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            rgba(79,143,232,.045),
            rgba(255,255,255,.008)
        );
}

.agenda-os-search-wrap[hidden],
.agenda-os-selected[hidden] {
    display: none !important;
}

.agenda-os-search-copy {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.agenda-os-search-icon,
.agenda-os-selected-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border: 1px solid rgba(79, 143, 232, .15);
    border-radius: 11px;
    background: rgba(79, 143, 232, .065);
    color: #80aceb;
}

.agenda-os-search-icon svg,
.agenda-os-selected-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.agenda-os-search-copy strong,
.agenda-os-search-copy small {
    display: block;
}

.agenda-os-search-copy strong {
    color: #dfe6ec;
    font-size: 13px;
}

.agenda-os-search-copy small {
    margin-top: 4px;
    color: #7f8d9c;
    font-size: 12px;
    line-height: 1.45;
}

.agenda-os-smart-select {
    min-width: 0;
}

.agenda-os-search-input {
    min-height: 46px !important;
    border-color: rgba(79, 143, 232, .12) !important;
}

.agenda-os-search-input:focus {
    border-color: rgba(79, 143, 232, .35) !important;
    box-shadow: 0 0 0 4px rgba(79, 143, 232, .07) !important;
}

.agenda-os-dropdown {
    max-height: 330px;
}

.agenda-os-option {
    min-height: 62px;
}

.agenda-os-selected {
    min-height: 82px;
    display: grid;
    grid-template-columns:
        44px
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border: 1px solid rgba(55, 189, 114, .13);
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            rgba(55,189,114,.045),
            rgba(255,255,255,.008)
        );
}

.agenda-os-selected-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-color: rgba(55, 189, 114, .16);
    background: rgba(55, 189, 114, .065);
    color: #66d18f;
}

.agenda-os-selected-main {
    min-width: 0;
}

.agenda-os-selected-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.agenda-os-selected-top > strong {
    color: #edf2f5;
    font-size: 14px;
}

.agenda-os-selected-main > span,
.agenda-os-selected-main > small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agenda-os-selected-main > span {
    color: #c5ced6;
    font-size: 13px;
}

.agenda-os-selected-main > small {
    margin-top: 3px;
    color: #83909d;
    font-size: 12px;
}

.agenda-os-status {
    min-height: 23px;
    display: inline-flex;
    align-items: center;
    padding: 0 7px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 7px;
    background: rgba(255,255,255,.025);
    color: #9ca8b4;
    font-size: 10px;
    font-weight: 850;
}

.agenda-os-status.status-aberta,
.agenda-os-status.status-agendada {
    border-color: rgba(79, 143, 232, .15);
    background: rgba(79, 143, 232, .065);
    color: #83b0ed;
}

.agenda-os-status.status-em_execucao,
.agenda-os-status.status-finalizacao {
    border-color: rgba(225, 165, 58, .15);
    background: rgba(225, 165, 58, .06);
    color: #ddb05f;
}

.agenda-os-status.status-pronta {
    border-color: rgba(55, 189, 114, .15);
    background: rgba(55, 189, 114, .06);
    color: #67d092;
}

.agenda-os-status.status-entregue {
    color: #94a0ac;
}

.agenda-os-selected-side {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.agenda-os-selected-side > strong {
    color: #e6ebef;
    font-size: 13px;
    white-space: nowrap;
}

.agenda-os-unlink {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 7px;
    background: transparent;
    color: #8e9aa7;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.agenda-os-unlink:hover {
    border-color: rgba(227,38,54,.20);
    background: rgba(227,38,54,.05);
    color: #e77a84;
}

.agenda-client-vehicle-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 14px 0;
}

.agenda-client-vehicle-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    height: 1px;
    background: rgba(255,255,255,.045);
}

.agenda-client-vehicle-divider span {
    position: relative;
    z-index: 1;
    padding: 0 10px;
    background: #121a23;
    color: #697786;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Exclusão */
.agenda-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.agenda-modal-footer-main {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-left: auto;
}

.agenda-delete-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(227, 38, 54, .18);
    background: rgba(227, 38, 54, .045);
    color: #dc7881;
}

.agenda-delete-button:hover {
    border-color: rgba(227, 38, 54, .34);
    background: rgba(227, 38, 54, .09);
    color: #ff8b96;
}

.agenda-delete-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.agenda-delete-button[hidden] {
    display: none !important;
}

@media (max-width: 780px) {
    .agenda-os-search-wrap {
        grid-template-columns: 1fr;
    }

    .agenda-os-selected {
        grid-template-columns:
            44px
            minmax(0, 1fr);
    }

    .agenda-os-selected-side {
        grid-column: 1 / -1;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,.045);
    }
}

@media (max-width: 620px) {
    .agenda-modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .agenda-modal-footer-main {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-left: 0;
    }

    .agenda-delete-button {
        width: 100%;
        justify-content: center;
    }
}


/* =========================================================
   AGENDA - CORREÇÃO DEFINITIVA DOS ÍCONES DOS CARDS V28
========================================================= */

/*
 * A regra genérica:
 * .agenda-metric-card span { display:block; }
 * acabava sobrescrevendo o display:grid do ícone.
 * Por isso o SVG ficava preso no canto superior esquerdo.
 */
.agenda-metric-card > .agenda-metric-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    line-height: 0;
}

.agenda-metric-card > .agenda-metric-icon > svg {
    width: 19px;
    height: 19px;
    display: block;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
}


/* =========================================================
   CHECKLIST - JUSTIFICATIVA POR OCORRÊNCIA V29
========================================================= */

.checklist-condition-grid {
    align-items: start;
}

.checklist-condition-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    background: rgba(255, 255, 255, .012);
    transition:
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}

.checklist-condition-item.is-selected {
    border-color: rgba(227, 38, 54, .20);
    background:
        linear-gradient(
            145deg,
            rgba(227,38,54,.045),
            rgba(255,255,255,.012)
        );
}

.checklist-condition-item .checklist-condition {
    min-height: 74px;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
}

.checklist-condition-detail {
    padding: 0 12px 12px;
}

.checklist-condition-detail[hidden] {
    display: none;
}

.checklist-condition-detail label,
.checklist-condition-detail span {
    display: block;
}

.checklist-condition-detail span {
    margin-bottom: 7px;
    color: #aab5bf;
    font-size: 12px;
    font-weight: 750;
}

.checklist-condition-detail input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 9px;
    outline: none;
    padding: 0 11px;
    background: rgba(7, 12, 18, .35);
    color: #e7ecf0;
    font-size: 13px;
    line-height: 1.3;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.checklist-condition-detail input::placeholder {
    color: #667483;
    opacity: 1;
}

.checklist-condition-detail input:focus {
    border-color: rgba(227, 38, 54, .38);
    background: rgba(255, 255, 255, .018);
    box-shadow:
        0 0 0 4px rgba(227, 38, 54, .065);
}

.checklist-condition-detail input.is-invalid {
    border-color: rgba(227, 38, 54, .60);
    box-shadow:
        0 0 0 4px rgba(227, 38, 54, .09);
}

.checklist-condition-item.is-selected
.checklist-condition-check {
    border-color: #e32636;
    background: #e32636;
}

@media (max-width: 900px) {
    .checklist-condition-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .checklist-condition-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   INTEGRAÇÃO OS + AGENDA V30
========================================================= */

/* OS: quatro informações no resumo */
.os-view-meta {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}

.os-status-responsavel {
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, .055);
}

.os-status-responsavel label,
.os-status-responsavel small {
    display: block;
}

.os-status-responsavel label {
    margin-bottom: 8px;
    color: #d8dfe5;
    font-size: 13px;
    font-weight: 800;
}

.os-status-responsavel input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    outline: none;
    padding: 0 13px;
    background: rgba(255, 255, 255, .025);
    color: #edf1f4;
    font-size: 14px;
}

.os-status-responsavel input:focus {
    border-color: rgba(227, 38, 54, .38);
    box-shadow:
        0 0 0 4px rgba(227, 38, 54, .065);
}

.os-status-responsavel small {
    margin-top: 7px;
    color: #7f8c99;
    font-size: 12px;
    line-height: 1.45;
}

/* Agenda: campos derivados da OS */
.agenda-form-section input.is-os-derived {
    border-color: rgba(79, 143, 232, .13) !important;
    background:
        linear-gradient(
            135deg,
            rgba(79, 143, 232, .045),
            rgba(255, 255, 255, .018)
        ) !important;
    color: #b9cce6 !important;
    cursor: default;
}

.agenda-os-source-note {
    margin-top: 7px !important;
    color: #7694bc !important;
    font-size: 11px !important;
    line-height: 1.4;
}

.agenda-os-source-note[hidden] {
    display: none !important;
}

/* Responsável na OS fica claro no modal */
.os-view-meta > div {
    min-width: 0;
}

.os-view-meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .os-view-meta {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .os-view-meta > div:nth-child(2) {
        border-right: 0;
    }

    .os-view-meta > div:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255,255,255,.05);
    }
}

@media (max-width: 820px) {
    .os-view-meta {
        grid-template-columns: 1fr;
    }

    .os-view-meta > div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
    }

    .os-view-meta > div:last-child {
        border-bottom: 0;
    }
}


/* =========================================================
   AGENDA - STATUS 100% ESPELHADO COM A OS V31
========================================================= */

.metric-scheduled .agenda-metric-icon {
    border-color: rgba(79, 143, 232, .20);
    background: rgba(79, 143, 232, .075);
    color: #7faef0;
}

.metric-running .agenda-metric-icon {
    border-color: rgba(227, 38, 54, .20);
    background: rgba(227, 38, 54, .075);
    color: #ed6673;
}

.metric-ready .agenda-metric-icon {
    border-color: rgba(55, 189, 114, .20);
    background: rgba(55, 189, 114, .075);
    color: #67d092;
}

.agenda-legend-item.status-aberta,
.agenda-legend-item.status-agendada {
    color: #7aacf2;
}

.agenda-legend-item.status-em_execucao {
    color: #ee6b77;
}

.agenda-legend-item.status-finalizacao {
    color: #e0b15e;
}

.agenda-legend-item.status-pronta,
.agenda-legend-item.status-entregue {
    color: #68d293;
}

.agenda-legend-item.status-cancelada {
    color: #9da8b5;
}

.agenda-month-event.status-aberta,
.agenda-month-event.status-agendada,
.agenda-timeline-event.status-aberta,
.agenda-timeline-event.status-agendada {
    border-color: rgba(79, 143, 232, .14);
    background: rgba(79, 143, 232, .07);
    color: #7aacf2;
}

.agenda-month-event.status-em_execucao,
.agenda-timeline-event.status-em_execucao {
    border-color: rgba(227, 38, 54, .16);
    background: rgba(227, 38, 54, .085);
    color: #ee6b77;
}

.agenda-month-event.status-finalizacao,
.agenda-timeline-event.status-finalizacao {
    border-color: rgba(225, 165, 58, .15);
    background: rgba(225, 165, 58, .07);
    color: #e0b15e;
}

.agenda-month-event.status-pronta,
.agenda-month-event.status-entregue,
.agenda-timeline-event.status-pronta,
.agenda-timeline-event.status-entregue {
    border-color: rgba(55, 189, 114, .15);
    background: rgba(55, 189, 114, .07);
    color: #68d293;
}

.agenda-month-event.status-cancelada,
.agenda-timeline-event.status-cancelada {
    border-color: rgba(139, 151, 165, .13);
    background: rgba(139, 151, 165, .055);
    color: #9da8b5;
    opacity: .68;
}

.agenda-multiday-event.status-aberta,
.agenda-multiday-event.status-agendada {
    border-color: rgba(79, 143, 232, .14);
    background: rgba(79, 143, 232, .07);
    color: #7aacf2;
}

.agenda-multiday-event.status-em_execucao {
    border-color: rgba(227, 38, 54, .16);
    background: rgba(227, 38, 54, .085);
    color: #ee6b77;
}

.agenda-multiday-event.status-finalizacao {
    border-color: rgba(225, 165, 58, .15);
    background: rgba(225, 165, 58, .07);
    color: #e0b15e;
}

.agenda-multiday-event.status-pronta,
.agenda-multiday-event.status-entregue {
    border-color: rgba(55, 189, 114, .15);
    background: rgba(55, 189, 114, .07);
    color: #68d293;
}

.agenda-multiday-event.status-cancelada {
    border-color: rgba(139, 151, 165, .13);
    background: rgba(139, 151, 165, .055);
    color: #9da8b5;
    opacity: .68;
}

.agenda-form-section select.is-os-derived:disabled {
    opacity: 1;
    border-color: rgba(79, 143, 232, .13) !important;
    background:
        linear-gradient(
            135deg,
            rgba(79, 143, 232, .045),
            rgba(255, 255, 255, .018)
        ) !important;
    color: #b9cce6 !important;
    cursor: not-allowed;
}

.agenda-status-source {
    margin-top: 7px !important;
    color: #7694bc !important;
    font-size: 11px !important;
    line-height: 1.4;
}

.agenda-status-source[hidden] {
    display: none !important;
}


/* =========================================================
   FINANCEIRO COMPLETO + INTEGRAÇÃO COM OS V32
========================================================= */

.financeiro-page {
    padding-bottom: 34px;
}

.financeiro-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.financeiro-heading h1 {
    margin: 6px 0 5px;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1;
    letter-spacing: -.045em;
}

.financeiro-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Cards */
.financeiro-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 18px;
}

.financeiro-metric-card {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 17px 16px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    background:
        linear-gradient(
            180deg,
            rgba(14, 20, 28, .985),
            rgba(11, 16, 23, .985)
        );
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .10),
        inset 0 1px 0 rgba(255, 255, 255, .02);
}

.financeiro-metric-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 44px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    line-height: 0;
}

.financeiro-metric-icon svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.metric-received .financeiro-metric-icon {
    border-color: rgba(55, 189, 114, .20);
    background: rgba(55, 189, 114, .075);
    color: #65d391;
}

.metric-open .financeiro-metric-icon {
    border-color: rgba(79, 143, 232, .20);
    background: rgba(79, 143, 232, .075);
    color: #7faef0;
}

.metric-overdue .financeiro-metric-icon {
    border-color: rgba(227, 38, 54, .20);
    background: rgba(227, 38, 54, .075);
    color: #ef6875;
}

.metric-expense .financeiro-metric-icon {
    border-color: rgba(225, 165, 58, .20);
    background: rgba(225, 165, 58, .075);
    color: #dcaa53;
}

.metric-result .financeiro-metric-icon {
    border-color: rgba(173, 133, 232, .20);
    background: rgba(173, 133, 232, .075);
    color: #bc9aef;
}

.financeiro-metric-card > div {
    min-width: 0;
}

.financeiro-metric-card > div > span,
.financeiro-metric-card > div > strong {
    display: block;
}

.financeiro-metric-card > div > span {
    margin-bottom: 5px;
    color: #9fb0c3;
    font-size: 12px;
    line-height: 1.25;
}

.financeiro-metric-card > div > strong {
    overflow: hidden;
    color: #ffffff;
    font-size: clamp(18px, 1.65vw, 22px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.financeiro-metric-card > div > strong.is-negative {
    color: #f17a85;
}

/* Shell */
.financeiro-shell {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(15, 22, 31, .98),
            rgba(10, 16, 23, .98)
        );
    box-shadow:
        0 18px 46px rgba(0, 0, 0, .17);
}

.financeiro-shell-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.financeiro-shell-head h2 {
    margin: 3px 0 4px;
    color: #edf2f5;
    font-size: 18px;
}

.financeiro-shell-head p {
    margin: 0;
    color: #7f8c99;
    font-size: 12px;
    line-height: 1.5;
}

.financeiro-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 11px 18px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    background: rgba(255,255,255,.006);
}

.financeiro-tab {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    outline: none;
    background: transparent;
    color: #8d99a6;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.financeiro-tab:hover {
    background: rgba(255,255,255,.028);
    color: #d4dce3;
}

.financeiro-tab.is-active {
    border-color: rgba(227,38,54,.18);
    background: rgba(227,38,54,.075);
    color: #ffffff;
}

.financeiro-toolbar {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 170px 190px;
    gap: 10px;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.financeiro-toolbar .filter-input {
    min-height: 42px;
    width: 100%;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 10px;
    outline: none;
    padding: 0 12px;
    background: rgba(255,255,255,.022);
    color: #cbd4dd;
    font-size: 13px;
}

.financeiro-toolbar .filter-input:focus {
    border-color: rgba(227,38,54,.35);
    box-shadow: 0 0 0 4px rgba(227,38,54,.06);
}

/* Tabela */
.financeiro-table {
    min-width: 1180px;
}

.financeiro-origin-badge {
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.financeiro-origin-badge.is-os {
    border: 1px solid rgba(79,143,232,.14);
    background: rgba(79,143,232,.06);
    color: #83b0ed;
}

.financeiro-origin-badge.is-manual {
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.025);
    color: #939faa;
}

.financeiro-description strong,
.financeiro-description small,
.financeiro-counterparty strong,
.financeiro-counterparty small {
    display: block;
}

.financeiro-description strong,
.financeiro-counterparty strong {
    max-width: 260px;
    overflow: hidden;
    color: #dce3e8;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.financeiro-description small,
.financeiro-counterparty small {
    max-width: 260px;
    margin-top: 3px;
    overflow: hidden;
    color: #73808d;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.financeiro-paid {
    color: #73cf99 !important;
}

.financeiro-balance {
    color: #dce3e8 !important;
}

.financeiro-due-overdue {
    color: #ef7b86 !important;
    font-weight: 800;
}

.financeiro-status-badge,
.os-finance-badge,
.os-finance-status {
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: #a0acb7;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.financeiro-status-badge.status-em_aberto,
.os-finance-badge.status-em_aberto,
.os-finance-status.status-em_aberto {
    border-color: rgba(79,143,232,.15);
    background: rgba(79,143,232,.065);
    color: #83b0ed;
}

.financeiro-status-badge.status-parcial,
.os-finance-badge.status-parcial,
.os-finance-status.status-parcial {
    border-color: rgba(225,165,58,.15);
    background: rgba(225,165,58,.06);
    color: #ddb05f;
}

.financeiro-status-badge.status-vencido,
.os-finance-badge.status-vencido,
.os-finance-status.status-vencido {
    border-color: rgba(227,38,54,.17);
    background: rgba(227,38,54,.07);
    color: #ef7984;
}

.financeiro-status-badge.status-pago,
.os-finance-badge.status-pago,
.os-finance-status.status-pago {
    border-color: rgba(55,189,114,.15);
    background: rgba(55,189,114,.06);
    color: #67d092;
}

.financeiro-status-badge.status-cancelado,
.os-finance-badge.status-cancelado,
.os-finance-status.status-cancelado,
.os-finance-badge.status-nao_lancado,
.os-finance-status.status-nao_lancado {
    color: #8e9aa6;
}

/* Ações */
.row-action-icon.is-payment:hover,
.row-action-icon.is-finance:hover {
    border-color: rgba(55,189,114,.20);
    background: rgba(55,189,114,.07);
    color: #72d59a;
}

/* Modal lançamento */
.prime-modal-financeiro {
    width: min(94vw, 900px);
    max-height: calc(100vh - 34px);
}

.financeiro-modal-body {
    padding-top: 18px;
}

.financeiro-os-source-card {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 13px 14px;
    border: 1px solid rgba(79,143,232,.13);
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            rgba(79,143,232,.045),
            rgba(255,255,255,.008)
        );
}

.financeiro-os-source-card[hidden] {
    display: none;
}

.financeiro-os-source-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border: 1px solid rgba(79,143,232,.15);
    border-radius: 11px;
    background: rgba(79,143,232,.065);
    color: #80aceb;
}

.financeiro-os-source-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.financeiro-os-source-card > div > span,
.financeiro-os-source-card > div > strong,
.financeiro-os-source-card > div > small {
    display: block;
}

.financeiro-os-source-card > div > span {
    margin-bottom: 2px;
    color: #719cd8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.financeiro-os-source-card > div > strong {
    color: #e2e8ed;
    font-size: 14px;
}

.financeiro-os-source-card > div > small {
    margin-top: 3px;
    color: #81909e;
    font-size: 11px;
}

.financeiro-form-section + .financeiro-form-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.05);
}

.financeiro-form-grid {
    display: grid;
    gap: 11px;
}

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

.financeiro-form-grid-3 {
    grid-template-columns:
        minmax(180px, 1fr)
        minmax(110px, .55fr)
        minmax(190px, 1fr);
}

.financeiro-field-wide {
    grid-column: 1 / -1;
}

.financeiro-form-section textarea {
    width: 100%;
    min-height: 104px;
    resize: vertical;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 10px;
    outline: none;
    padding: 12px 13px;
    background: rgba(255,255,255,.022);
    color: #e5ebef;
    font-size: 13px;
    line-height: 1.55;
}

.financeiro-form-section textarea:focus {
    border-color: rgba(227,38,54,.35);
    box-shadow: 0 0 0 4px rgba(227,38,54,.06);
}

.financeiro-form-section
input.is-source-locked,
.financeiro-form-section
select.is-source-locked {
    border-color: rgba(79,143,232,.12) !important;
    background: rgba(79,143,232,.04) !important;
    color: #9fb7d9 !important;
}

.financeiro-installment-preview {
    margin-top: 10px;
    padding: 9px 11px;
    border: 1px solid rgba(55,189,114,.10);
    border-radius: 9px;
    background: rgba(55,189,114,.035);
    color: #a3c7b2;
    font-size: 11px;
}

/* Detalhe */
.prime-modal-financeiro-detail {
    width: min(95vw, 980px);
    max-height: calc(100vh - 34px);
}

.financeiro-detail-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.financeiro-detail-title-line h2 {
    margin: 0;
}

.financeiro-detail-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    background: rgba(255,255,255,.012);
}

.financeiro-detail-summary article {
    min-width: 0;
    padding: 13px;
    border-right: 1px solid rgba(255,255,255,.05);
}

.financeiro-detail-summary article:last-child {
    border-right: 0;
}

.financeiro-detail-summary span,
.financeiro-detail-summary strong {
    display: block;
}

.financeiro-detail-summary span {
    margin-bottom: 4px;
    color: #788695;
    font-size: 11px;
}

.financeiro-detail-summary strong {
    overflow: hidden;
    color: #e1e7ec;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.financeiro-detail-block {
    margin-top: 18px;
}

.financeiro-detail-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
}

.financeiro-detail-block-head strong,
.financeiro-detail-block-head small {
    display: block;
}

.financeiro-detail-block-head strong {
    color: #dce3e9;
    font-size: 14px;
}

.financeiro-detail-block-head small {
    margin-top: 3px;
    color: #758390;
    font-size: 11px;
}

.financeiro-parcelas-list,
.financeiro-pagamentos-list {
    display: grid;
    gap: 8px;
}

.financeiro-parcela-item {
    display: grid;
    grid-template-columns:
        minmax(180px, 1fr)
        auto
        auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 11px;
    background: rgba(255,255,255,.012);
}

.financeiro-parcela-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.financeiro-parcela-main strong {
    color: #dce3e9;
    font-size: 12px;
}

.financeiro-parcela-main > span {
    display: block;
    margin-top: 4px;
    color: #768493;
    font-size: 10px;
}

.financeiro-parcela-values {
    display: flex;
    align-items: center;
    gap: 14px;
}

.financeiro-parcela-values span,
.financeiro-parcela-values strong {
    display: block;
}

.financeiro-parcela-values span {
    color: #74818e;
    font-size: 9px;
    text-transform: uppercase;
}

.financeiro-parcela-values strong {
    margin-top: 2px;
    color: #d6dee5;
    font-size: 11px;
}

.financeiro-parcela-pay {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(55,189,114,.14);
    border-radius: 8px;
    background: rgba(55,189,114,.055);
    color: #73d39a;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.financeiro-parcela-pay:hover {
    border-color: rgba(55,189,114,.28);
    background: rgba(55,189,114,.10);
    color: #95e4b4;
}

.financeiro-payment-item {
    display: grid;
    grid-template-columns:
        38px
        minmax(0,1fr)
        36px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 10px;
    background: rgba(255,255,255,.01);
}

.financeiro-payment-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
}

.financeiro-payment-icon.is-receipt {
    border: 1px solid rgba(55,189,114,.14);
    background: rgba(55,189,114,.055);
    color: #70d296;
}

.financeiro-payment-icon.is-expense {
    border: 1px solid rgba(225,165,58,.14);
    background: rgba(225,165,58,.055);
    color: #dcb05f;
}

.financeiro-payment-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.financeiro-payment-info {
    min-width: 0;
}

.financeiro-payment-info strong,
.financeiro-payment-info small,
.financeiro-payment-info > span {
    display: block;
}

.financeiro-payment-info strong {
    color: #e0e7ec;
    font-size: 12px;
}

.financeiro-payment-info small {
    margin-top: 2px;
    overflow: hidden;
    color: #788694;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.financeiro-payment-info > span {
    margin-top: 4px;
    color: #9aa6b2;
    font-size: 10px;
}

.financeiro-detail-empty {
    min-height: 56px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255,255,255,.06);
    border-radius: 10px;
    color: #6f7d8a;
    font-size: 11px;
}

.financeiro-detail-notes {
    margin-top: 17px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 10px;
    background: rgba(255,255,255,.012);
}

.financeiro-detail-notes[hidden] {
    display: none;
}

.financeiro-detail-notes span {
    display: block;
    margin-bottom: 5px;
    color: #7d8a97;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.financeiro-detail-notes p {
    margin: 0;
    color: #b8c2cb;
    font-size: 12px;
    line-height: 1.5;
}

.financeiro-detail-footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal pagamento */
.prime-modal-financeiro-payment {
    width: min(94vw, 620px);
}

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

/* Integração visual na OS */
.os-view-meta {
    grid-template-columns:
        repeat(5, minmax(0,1fr));
}

.os-finance-meta small {
    display: block;
    margin-top: 4px;
    color: #7f8b97;
    font-size: 10px;
}

.os-finance-status {
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    font-size: 12px;
}

@media (max-width: 1320px) {
    .financeiro-metrics {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }
}

@media (max-width: 1100px) {
    .os-view-meta {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }
}

@media (max-width: 920px) {
    .financeiro-heading {
        align-items: stretch;
        flex-direction: column;
    }

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

    .financeiro-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .financeiro-toolbar .search-field {
        grid-column: 1 / -1;
    }

    .financeiro-form-grid-2,
    .financeiro-form-grid-3 {
        grid-template-columns: 1fr;
    }

    .financeiro-field-wide {
        grid-column: auto;
    }

    .financeiro-detail-summary {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .financeiro-detail-summary article:nth-child(2) {
        border-right: 0;
    }

    .financeiro-detail-summary article:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255,255,255,.05);
    }

    .financeiro-parcela-item {
        grid-template-columns: 1fr auto;
    }

    .financeiro-parcela-values {
        grid-column: 1 / -1;
        justify-content: space-between;
    }
}

@media (max-width: 650px) {
    .financeiro-metrics {
        grid-template-columns: 1fr;
    }

    .financeiro-toolbar {
        grid-template-columns: 1fr;
    }

    .financeiro-toolbar .search-field {
        grid-column: auto;
    }

    .financeiro-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

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

    .financeiro-detail-summary article {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.05);
    }

    .financeiro-detail-summary article:last-child {
        border-bottom: 0;
    }

    .financeiro-payment-grid {
        grid-template-columns: 1fr;
    }

    .financeiro-detail-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .financeiro-detail-footer-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .financeiro-detail-footer-actions .modal-button {
        width: 100%;
    }

    .financeiro-parcela-item {
        grid-template-columns: 1fr;
    }

    .financeiro-parcela-values {
        grid-column: auto;
    }

    .financeiro-parcela-pay {
        width: 100%;
    }

    .os-view-meta {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   FINANCEIRO - MODO DE VALOR DO PARCELAMENTO V33
========================================================= */

.financeiro-value-mode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    padding: 10px 11px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 10px;
    background: rgba(255,255,255,.012);
}

.financeiro-value-mode-label {
    color: #9aa7b4;
    font-size: 11px;
    font-weight: 800;
}

.financeiro-value-mode-options {
    display: flex;
    align-items: center;
    gap: 6px;
}

.financeiro-value-mode-options label {
    position: relative;
    cursor: pointer;
}

.financeiro-value-mode-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.financeiro-value-mode-options span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    background: rgba(255,255,255,.018);
    color: #8794a1;
    font-size: 10px;
    font-weight: 850;
    transition:
        border-color .16s ease,
        background .16s ease,
        color .16s ease;
}

.financeiro-value-mode-options input:checked + span {
    border-color: rgba(227,38,54,.20);
    background: rgba(227,38,54,.075);
    color: #ffffff;
}

.financeiro-value-mode-options input:disabled + span {
    opacity: .52;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .financeiro-value-mode {
        align-items: stretch;
        flex-direction: column;
    }

    .financeiro-value-mode-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .financeiro-value-mode-options span {
        justify-content: center;
        width: 100%;
    }
}


/* =========================================================
   RELATÓRIOS GERENCIAIS V34
========================================================= */

.reports-page {
    padding-bottom: 34px;
}

.print-only {
    display: none !important;
}

.reports-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.reports-heading h1 {
    margin: 6px 0 5px;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1;
    letter-spacing: -.045em;
}

.reports-heading p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.reports-heading-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.reports-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 10px;
    outline: none;
    padding: 0 12px;
    background: rgba(255,255,255,.022);
    color: #aab5bf;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
    transition:
        border-color .16s ease,
        background .16s ease,
        color .16s ease,
        transform .16s ease;
}

.reports-action:hover {
    border-color: rgba(255,255,255,.13);
    background: rgba(255,255,255,.045);
    color: #eef2f5;
}

.reports-action:active {
    transform: translateY(1px);
}

.reports-action svg,
.reports-heading .dashboard-primary-action svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reports-heading .dashboard-primary-action {
    min-height: 42px;
}

.reports-heading .dashboard-primary-action.is-loading {
    opacity: .65;
    pointer-events: none;
}

/* Filtros */
.reports-filter-shell {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(15,22,31,.985),
            rgba(11,17,24,.985)
        );
}

.reports-filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.reports-filter-head > div:first-child > strong,
.reports-filter-head > div:first-child > small {
    display: block;
}

.reports-filter-head > div:first-child > strong {
    margin-top: 2px;
    color: #dce3e9;
    font-size: 14px;
}

.reports-filter-head > div:first-child > small {
    margin-top: 4px;
    color: #788695;
    font-size: 10px;
    line-height: 1.45;
}

.reports-period-shortcuts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.reports-period-shortcuts button {
    min-height: 31px;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 8px;
    outline: none;
    background: rgba(255,255,255,.018);
    color: #8d9aa6;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.reports-period-shortcuts button:hover {
    border-color: rgba(227,38,54,.16);
    background: rgba(227,38,54,.05);
    color: #dce3e8;
}

.reports-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(140px,.75fr)
        minmax(140px,.75fr)
        minmax(190px,1.2fr)
        minmax(180px,1fr)
        minmax(170px,.95fr);
    gap: 10px;
    padding: 13px 16px 16px;
}

/* Métricas */
.reports-metrics {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0,1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.reports-metric-card {
    min-height: 103px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 15px 14px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 15px;
    background:
        linear-gradient(
            180deg,
            rgba(14,20,28,.99),
            rgba(10,16,22,.99)
        );
    box-shadow:
        0 12px 28px rgba(0,0,0,.10),
        inset 0 1px 0 rgba(255,255,255,.02);
}

.reports-metric-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 42px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
    line-height: 0;
}

.reports-metric-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reports-metric-card > div {
    min-width: 0;
}

.reports-metric-card > div > span,
.reports-metric-card > div > strong,
.reports-metric-card > div > small {
    display: block;
}

.reports-metric-card > div > span {
    color: #8f9dab;
    font-size: 10px;
    font-weight: 750;
}

.reports-metric-card > div > strong {
    margin-top: 4px;
    overflow: hidden;
    color: #f2f5f7;
    font-size: clamp(16px,1.45vw,20px);
    font-weight: 850;
    letter-spacing: -.025em;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reports-metric-card > div > strong.is-negative {
    color: #ef7782;
}

.reports-metric-card > div > small {
    margin-top: 5px;
    overflow: hidden;
    color: #6f7d89;
    font-size: 8.5px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-sales .reports-metric-icon {
    border-color: rgba(79,143,232,.18);
    background: rgba(79,143,232,.065);
    color: #7faef0;
}

.metric-received .reports-metric-icon {
    border-color: rgba(55,189,114,.18);
    background: rgba(55,189,114,.065);
    color: #68d292;
}

.metric-expenses .reports-metric-icon {
    border-color: rgba(225,165,58,.18);
    background: rgba(225,165,58,.065);
    color: #ddb05d;
}

.metric-result .reports-metric-icon {
    border-color: rgba(173,133,232,.18);
    background: rgba(173,133,232,.065);
    color: #bd9def;
}

.metric-open .reports-metric-icon {
    border-color: rgba(96,163,232,.18);
    background: rgba(96,163,232,.065);
    color: #89baf0;
}

.metric-ticket .reports-metric-icon {
    border-color: rgba(227,38,54,.18);
    background: rgba(227,38,54,.065);
    color: #ef6875;
}

/* Faixa operacional */
.reports-operations-strip {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0,1fr));
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 13px;
    background: rgba(255,255,255,.012);
}

.reports-operations-strip article {
    min-width: 0;
    padding: 11px 13px;
    border-right: 1px solid rgba(255,255,255,.05);
}

.reports-operations-strip article:last-child {
    border-right: 0;
}

.reports-operations-strip span,
.reports-operations-strip strong {
    display: block;
}

.reports-operations-strip span {
    color: #768493;
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.reports-operations-strip strong {
    margin-top: 4px;
    color: #dce4ea;
    font-size: 16px;
    font-weight: 850;
}

.reports-operations-strip strong.is-danger {
    color: #ef7782;
}

/* Painéis */
.reports-chart-grid,
.reports-table-grid {
    display: grid;
    grid-template-columns:
        minmax(0,1.55fr)
        minmax(340px,.85fr);
    gap: 13px;
    margin-bottom: 13px;
}

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

.reports-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(15,22,31,.985),
            rgba(10,16,23,.985)
        );
    box-shadow:
        0 14px 34px rgba(0,0,0,.11);
}

.reports-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.reports-panel-head h2 {
    margin: 2px 0 3px;
    color: #dce4ea;
    font-size: 14px;
}

.reports-panel-head p {
    margin: 0;
    color: #758390;
    font-size: 9.5px;
    line-height: 1.45;
}

.reports-chart-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.reports-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #84919d;
    font-size: 8.5px;
    white-space: nowrap;
}

.reports-chart-legend i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.reports-chart-legend .legend-receita i {
    background: #54b77d;
}

.reports-chart-legend .legend-despesa i {
    background: #d39b43;
}

.reports-chart-legend .legend-resultado i {
    background: #8d75c9;
}

.reports-chart {
    min-height: 330px;
    display: grid;
    place-items: center;
    padding: 6px 10px 10px;
}

.reports-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.reports-chart-gridline {
    stroke: rgba(255,255,255,.045);
    stroke-width: 1;
}

.reports-chart-zero {
    stroke: rgba(255,255,255,.13);
    stroke-width: 1;
}

.reports-chart-axis-label,
.reports-chart-month-label {
    fill: #6f7d89;
    font-family: inherit;
    font-size: 9px;
}

.reports-chart-month-label {
    fill: #83909d;
    font-size: 9.5px;
    font-weight: 700;
}

.reports-chart-bar {
    transition: opacity .16s ease;
}

.reports-chart-bar:hover {
    opacity: .78;
}

.reports-chart-bar.series-receita {
    fill: #54b77d;
}

.reports-chart-bar.series-despesa {
    fill: #d39b43;
}

.reports-chart-bar.series-resultado {
    fill: #8d75c9;
}

.reports-chart-bar.series-resultado.is-negative {
    fill: #db5b68;
}

.reports-chart-empty {
    min-height: 110px;
    display: grid;
    place-items: center;
    width: 100%;
    color: #687683;
    font-size: 10px;
    text-align: center;
}

/* Donut status */
.reports-status-chart-wrap {
    min-height: 330px;
    display: grid;
    grid-template-columns:
        minmax(190px,.85fr)
        minmax(160px,1fr);
    align-items: center;
    gap: 8px;
    padding: 12px 12px 16px;
}

.reports-donut {
    min-height: 230px;
    display: grid;
    place-items: center;
}

.reports-donut-svg {
    width: min(100%,230px);
    height: auto;
    display: block;
}

.reports-donut-track {
    fill: none;
    stroke: rgba(255,255,255,.045);
}

.reports-donut-segment {
    fill: none;
    stroke-linecap: butt;
}

.reports-donut-segment.status-aberta {
    stroke: #718bb6;
}

.reports-donut-segment.status-agendada {
    stroke: #6fa8e8;
}

.reports-donut-segment.status-em_execucao {
    stroke: #e85e6b;
}

.reports-donut-segment.status-finalizacao {
    stroke: #d4a34f;
}

.reports-donut-segment.status-pronta {
    stroke: #74c79a;
}

.reports-donut-segment.status-entregue {
    stroke: #4eaa78;
}

.reports-donut-segment.status-cancelada {
    stroke: #707b86;
}

.reports-donut-total {
    fill: #edf2f5;
    font-family: inherit;
    font-size: 28px;
    font-weight: 850;
}

.reports-donut-label {
    fill: #73818e;
    font-family: inherit;
    font-size: 9px;
    font-weight: 800;
}

.reports-status-legend {
    display: grid;
    gap: 7px;
}

.reports-status-legend-item {
    display: grid;
    grid-template-columns:
        8px
        minmax(0,1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.reports-status-legend-item > i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.reports-status-legend-item > i.status-aberta {
    background: #718bb6;
}

.reports-status-legend-item > i.status-agendada {
    background: #6fa8e8;
}

.reports-status-legend-item > i.status-em_execucao {
    background: #e85e6b;
}

.reports-status-legend-item > i.status-finalizacao {
    background: #d4a34f;
}

.reports-status-legend-item > i.status-pronta {
    background: #74c79a;
}

.reports-status-legend-item > i.status-entregue {
    background: #4eaa78;
}

.reports-status-legend-item > i.status-cancelada {
    background: #707b86;
}

.reports-status-legend-item strong,
.reports-status-legend-item small {
    display: block;
}

.reports-status-legend-item strong {
    overflow: hidden;
    color: #b9c3cc;
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reports-status-legend-item small {
    margin-top: 2px;
    color: #687581;
    font-size: 8px;
}

/* Tabelas */
.reports-table-wrap {
    max-height: 390px;
}

.reports-table {
    min-width: 520px;
}

.reports-table th {
    font-size: 8.5px;
}

.reports-table td {
    font-size: 10px;
}

.reports-name-cell {
    min-width: 0;
}

.reports-name-cell strong,
.reports-name-cell small {
    display: block;
}

.reports-name-cell strong {
    max-width: 280px;
    overflow: hidden;
    color: #ced7de;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reports-name-cell small {
    max-width: 280px;
    margin-top: 2px;
    overflow: hidden;
    color: #6e7b87;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Conversão */
.reports-conversion {
    display: grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap: 8px;
    padding: 14px;
}

.reports-conversion-card {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 11px;
    background: rgba(255,255,255,.012);
}

.reports-conversion-card span,
.reports-conversion-card strong {
    display: block;
}

.reports-conversion-card span {
    color: #7c8996;
    font-size: 8.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.reports-conversion-card strong {
    margin-top: 5px;
    color: #dce3e9;
    font-size: 20px;
    font-weight: 850;
}

.reports-conversion-card.is-approved {
    border-color: rgba(55,189,114,.10);
}

.reports-conversion-card.is-approved strong {
    color: #6fd097;
}

.reports-conversion-card.is-pending {
    border-color: rgba(225,165,58,.10);
}

.reports-conversion-card.is-pending strong {
    color: #dab05e;
}

.reports-conversion-card.is-refused {
    border-color: rgba(227,38,54,.10);
}

.reports-conversion-card.is-refused strong {
    color: #eb7680;
}

.reports-conversion-card.is-conversion {
    border-color: rgba(79,143,232,.12);
}

.reports-conversion-card.is-conversion strong {
    color: #81b0ee;
}

.reports-conversion-foot {
    grid-column: 1 / -1;
    padding: 8px 10px;
    border-radius: 9px;
    background: rgba(255,255,255,.012);
    color: #697682;
    font-size: 8.5px;
    line-height: 1.45;
}

.reports-conversion-empty {
    grid-column: 1 / -1;
    min-height: 120px;
    display: grid;
    place-items: center;
    color: #687683;
    font-size: 10px;
}

/* Inadimplência */
.reports-overdue-panel {
    margin-bottom: 13px;
}

.reports-overdue-table {
    min-width: 850px;
}

.reports-origin-badge {
    min-height: 23px;
    display: inline-flex;
    align-items: center;
    padding: 0 7px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 7px;
    background: rgba(255,255,255,.02);
    color: #8b98a5;
    font-size: 8px;
    font-weight: 850;
    white-space: nowrap;
}

.reports-origin-badge.is-os {
    border-color: rgba(79,143,232,.12);
    background: rgba(79,143,232,.045);
    color: #7faee9;
}

.reports-overdue-date,
.reports-overdue-days,
.reports-overdue-value {
    color: #ec7983 !important;
    font-weight: 800;
}

/* Rodapé informativo */
.reports-data-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 11px;
    border: 1px solid rgba(79,143,232,.08);
    border-radius: 10px;
    background: rgba(79,143,232,.025);
    color: #71849b;
    font-size: 8.5px;
    line-height: 1.5;
}

.reports-data-note svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin-top: 1px;
    fill: none;
    stroke: #7098c9;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Responsividade */
@media (max-width: 1450px) {
    .reports-metrics {
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }
}

@media (max-width: 1180px) {
    .reports-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .reports-heading-actions {
        justify-content: flex-start;
    }

    .reports-filter-grid {
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

    .reports-chart-grid,
    .reports-table-grid {
        grid-template-columns: 1fr;
    }

    .reports-status-chart-wrap {
        grid-template-columns:
            minmax(190px,.7fr)
            minmax(220px,1fr);
    }
}

@media (max-width: 820px) {
    .reports-filter-head {
        flex-direction: column;
    }

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

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

    .reports-operations-strip {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .reports-operations-strip article:nth-child(2) {
        border-right: 0;
    }

    .reports-operations-strip article:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255,255,255,.05);
    }

    .reports-status-chart-wrap {
        grid-template-columns: 1fr;
    }

    .reports-status-legend {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 560px) {
    .reports-heading-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .reports-heading-actions .dashboard-primary-action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .reports-action {
        width: 100%;
    }

    .reports-filter-grid,
    .reports-metrics,
    .reports-operations-strip {
        grid-template-columns: 1fr;
    }

    .reports-operations-strip article {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.05);
    }

    .reports-operations-strip article:last-child {
        border-bottom: 0;
    }

    .reports-period-shortcuts {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .reports-period-shortcuts button {
        width: 100%;
    }

    .reports-chart-legend {
        justify-content: flex-start;
    }

    .reports-status-legend {
        grid-template-columns: 1fr;
    }

    .reports-conversion {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   IMPRESSÃO DOS RELATÓRIOS
========================================================= */

@media print {

    @page {
        size: A4 landscape;
        margin: 9mm;
    }

    body {
        background: #ffffff !important;
        color: #111111 !important;
    }

    .sidebar,
    .topbar,
    .sidebar-backdrop,
    .toast-container,
    .no-print,
    .reports-heading-actions {
        display: none !important;
    }

    .app-layout,
    .app-main,
    .page-content,
    .reports-page {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .reports-heading {
        margin-bottom: 7mm;
    }

    .reports-heading .page-kicker,
    .reports-heading h1,
    .reports-heading p {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .reports-print-header {
        margin-bottom: 6mm;
        padding-bottom: 4mm;
        border-bottom: 1px solid #d8dde2;
    }

    .reports-print-header strong,
    .reports-print-header span,
    .reports-print-header small {
        display: block;
    }

    .reports-print-header strong {
        font-size: 16pt;
        color: #111111;
    }

    .reports-print-header span {
        margin-top: 1mm;
        font-size: 10pt;
        color: #42484e;
    }

    .reports-print-header small {
        margin-top: 1.5mm;
        font-size: 8pt;
        color: #697077;
    }

    .reports-metrics {
        grid-template-columns:
            repeat(6,minmax(0,1fr));
        gap: 2mm;
        margin-bottom: 2.5mm;
    }

    .reports-metric-card {
        min-height: 0;
        padding: 3mm;
        border: 1px solid #d9dee3 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .reports-metric-icon {
        display: none !important;
    }

    .reports-metric-card > div > span {
        color: #5d656d !important;
        font-size: 6.5pt;
    }

    .reports-metric-card > div > strong,
    .reports-metric-card > div > strong.is-negative {
        color: #111111 !important;
        font-size: 10pt;
    }

    .reports-metric-card > div > small {
        color: #7b838a !important;
        font-size: 5.8pt;
    }

    .reports-operations-strip {
        margin-bottom: 3mm;
        border-color: #d9dee3 !important;
        background: #ffffff !important;
    }

    .reports-operations-strip article {
        padding: 2.5mm 3mm;
        border-color: #e2e6ea !important;
    }

    .reports-operations-strip span {
        color: #6f767c !important;
        font-size: 5.8pt;
    }

    .reports-operations-strip strong,
    .reports-operations-strip strong.is-danger {
        color: #111111 !important;
        font-size: 9pt;
    }

    .reports-chart-grid,
    .reports-table-grid {
        gap: 3mm;
        margin-bottom: 3mm;
    }

    .reports-chart-grid {
        grid-template-columns:
            1.55fr .85fr;
    }

    .reports-table-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .reports-panel {
        border: 1px solid #d9dee3 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .reports-panel-head {
        padding: 3mm;
        border-color: #e1e5e9 !important;
    }

    .reports-panel-head .shell-kicker {
        color: #666d74 !important;
        font-size: 5.5pt;
    }

    .reports-panel-head h2 {
        color: #111111 !important;
        font-size: 9pt;
    }

    .reports-panel-head p {
        color: #6d747a !important;
        font-size: 5.7pt;
    }

    .reports-chart {
        min-height: 54mm;
        padding: 1mm 2mm 2mm;
    }

    .reports-chart-gridline {
        stroke: #e8ebee !important;
    }

    .reports-chart-zero {
        stroke: #bfc5ca !important;
    }

    .reports-chart-axis-label,
    .reports-chart-month-label {
        fill: #555d64 !important;
    }

    .reports-status-chart-wrap {
        min-height: 54mm;
        padding: 2mm;
    }

    .reports-donut-track {
        stroke: #eceff1 !important;
    }

    .reports-donut-total {
        fill: #111111 !important;
    }

    .reports-donut-label {
        fill: #666d74 !important;
    }

    .reports-status-legend-item strong {
        color: #2e3337 !important;
    }

    .reports-status-legend-item small {
        color: #727980 !important;
    }

    .reports-table-wrap {
        max-height: none !important;
        overflow: visible !important;
    }

    .reports-table {
        min-width: 0 !important;
        width: 100% !important;
    }

    .reports-table thead {
        display: table-header-group;
    }

    .reports-table th {
        color: #555c62 !important;
        background: #f5f6f7 !important;
        font-size: 5.8pt !important;
    }

    .reports-table td {
        color: #22272b !important;
        border-color: #e5e8eb !important;
        font-size: 6.1pt !important;
    }

    .reports-name-cell strong {
        color: #22272b !important;
        font-size: 6.2pt !important;
    }

    .reports-name-cell small {
        color: #71787e !important;
        font-size: 5.4pt !important;
    }

    .reports-conversion-card {
        min-height: 0;
        padding: 2.5mm;
        border-color: #e1e5e8 !important;
        background: #ffffff !important;
    }

    .reports-conversion-card span {
        color: #70777e !important;
        font-size: 5.5pt;
    }

    .reports-conversion-card strong {
        color: #111111 !important;
        font-size: 10pt;
    }

    .reports-conversion-foot {
        color: #6c7379 !important;
        background: #f7f8f9 !important;
        font-size: 5.5pt;
    }

    .reports-origin-badge {
        border-color: #d7dce0 !important;
        background: #ffffff !important;
        color: #444a4f !important;
    }

    .reports-overdue-date,
    .reports-overdue-days,
    .reports-overdue-value {
        color: #111111 !important;
    }
}


/* =========================================================
   CONFIGURAÇÕES / ADMIN V35
========================================================= */

.settings-page {
    padding-bottom: 34px;
}

.settings-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.settings-heading h1 {
    margin: 6px 0 5px;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1;
    letter-spacing: -.045em;
}

.settings-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.settings-heading-badge {
    min-width: 210px;
    padding: 11px 13px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    background: rgba(255,255,255,.018);
}

.settings-heading-badge span,
.settings-heading-badge strong {
    display: block;
}

.settings-heading-badge span {
    color: #74818e;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.settings-heading-badge strong {
    margin-top: 4px;
    color: #dce4ea;
    font-size: 12px;
}

/* Tabs */
.settings-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 13px;
    background: rgba(255,255,255,.012);
}

.settings-tab {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    outline: none;
    background: transparent;
    color: #82909d;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
    transition:
        border-color .16s ease,
        background .16s ease,
        color .16s ease;
}

.settings-tab svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-tab:hover {
    background: rgba(255,255,255,.025);
    color: #c4ced6;
}

.settings-tab.is-active {
    border-color: rgba(227,38,54,.16);
    background: rgba(227,38,54,.06);
    color: #ffffff;
}

.settings-panel[hidden] {
    display: none !important;
}

.settings-panel.is-active {
    display: block;
}

/* Cards */
.settings-grid {
    display: grid;
    gap: 13px;
}

.settings-grid-company {
    grid-template-columns:
        minmax(280px,.68fr)
        minmax(0,1.55fr);
}

.settings-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(15,22,31,.985),
            rgba(10,16,23,.985)
        );
    box-shadow:
        0 14px 34px rgba(0,0,0,.11);
}

.settings-card-head {
    padding: 15px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.settings-card-head-action {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.settings-card-head h2 {
    margin: 2px 0 3px;
    color: #dce4ea;
    font-size: 14px;
}

.settings-card-head p {
    margin: 0;
    color: #758390;
    font-size: 9.5px;
    line-height: 1.45;
}

.settings-card form {
    padding: 16px;
}

/* Logo */
.settings-logo-area {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.settings-logo-preview {
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 13px;
    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,.035),
            rgba(255,255,255,.008) 60%
        );
}

.settings-logo-preview img {
    width: min(100%, 230px);
    max-height: 130px;
    object-fit: contain;
    display: block;
}

.settings-logo-copy strong,
.settings-logo-copy span {
    display: block;
}

.settings-logo-copy strong {
    color: #d8e0e6;
    font-size: 12px;
}

.settings-logo-copy > span {
    margin-top: 4px;
    color: #758391;
    font-size: 9.5px;
    line-height: 1.45;
}

.settings-file-button,
.settings-secondary-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 11px;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 9px;
    outline: none;
    background: rgba(255,255,255,.022);
    color: #aeb8c1;
    font-size: 9.5px;
    font-weight: 850;
    cursor: pointer;
}

.settings-file-button:hover,
.settings-secondary-button:hover:not(:disabled) {
    border-color: rgba(227,38,54,.18);
    background: rgba(227,38,54,.045);
    color: #eef2f5;
}

.settings-file-button input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-file-button svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-secondary-button {
    margin-left: 6px;
}

.settings-secondary-button:disabled {
    opacity: .42;
    cursor: not-allowed;
}

/* Form empresa */
.settings-form-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0,1fr));
    gap: 11px;
}

.settings-field-wide {
    grid-column: 1 / -1;
}

.settings-input-prefix {
    display: grid;
    grid-template-columns: 40px minmax(0,1fr);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 10px;
    background: rgba(255,255,255,.022);
}

.settings-input-prefix:focus-within {
    border-color: rgba(227,38,54,.35);
    box-shadow: 0 0 0 4px rgba(227,38,54,.06);
}

.settings-input-prefix > span {
    display: grid;
    place-items: center;
    border-right: 1px solid rgba(255,255,255,.055);
    color: #7d8b98;
    font-size: 12px;
    font-weight: 800;
}

.settings-input-prefix input {
    min-height: 44px;
    width: 100%;
    border: 0 !important;
    outline: none;
    padding: 0 12px;
    background: transparent !important;
    box-shadow: none !important;
    color: #e5ebef;
}

.settings-rule-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid rgba(79,143,232,.09);
    border-radius: 11px;
    background: rgba(79,143,232,.025);
}

.settings-rule-box > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.settings-rule-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border: 1px solid rgba(79,143,232,.13);
    border-radius: 9px;
    background: rgba(79,143,232,.045);
    color: #7ba8e1;
}

.settings-rule-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-rule-box strong,
.settings-rule-box small {
    display: block;
}

.settings-rule-box strong {
    color: #cdd6de;
    font-size: 10.5px;
}

.settings-rule-box small {
    margin-top: 3px;
    color: #71808e;
    font-size: 8.5px;
    line-height: 1.4;
}

.settings-number-control {
    display: grid;
    grid-template-columns: 72px auto;
    align-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 9px;
    background: rgba(255,255,255,.022);
}

.settings-number-control input {
    min-height: 39px;
    width: 72px;
    border: 0;
    outline: none;
    padding: 0 9px;
    background: transparent;
    color: #e3e9ee;
    text-align: center;
    font-weight: 800;
}

.settings-number-control span {
    padding-right: 10px;
    color: #778491;
    font-size: 9px;
}

.settings-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.05);
}

.settings-save-hint {
    color: #707e8b;
    font-size: 8.5px;
    line-height: 1.45;
}

/* Tabelas */
.settings-card-table {
    overflow: hidden;
}

.settings-table-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    background: rgba(255,255,255,.006);
}

.settings-table-summary > span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 8px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 8px;
    color: #73818e;
    font-size: 8.5px;
}

.settings-table-summary strong {
    color: #cbd4db;
    font-size: 10px;
}

.settings-table {
    min-width: 640px;
}

.settings-users-table {
    min-width: 880px;
}

.settings-table-name {
    color: #d3dce3;
    font-size: 10.5px;
}

.settings-status-badge,
.settings-profile-badge {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 7px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 7px;
    background: rgba(255,255,255,.02);
    color: #8c99a5;
    font-size: 8px;
    font-weight: 850;
    white-space: nowrap;
}

.settings-status-badge.is-active {
    border-color: rgba(55,189,114,.13);
    background: rgba(55,189,114,.05);
    color: #6dcc95;
}

.settings-status-badge.is-inactive {
    color: #7e8993;
}

.settings-profile-badge.is-admin {
    border-color: rgba(227,38,54,.12);
    background: rgba(227,38,54,.045);
    color: #e27a83;
}

.settings-profile-badge.is-user {
    border-color: rgba(79,143,232,.11);
    background: rgba(79,143,232,.04);
    color: #7ea8df;
}

.row-action-icon.is-success:hover {
    border-color: rgba(55,189,114,.18);
    background: rgba(55,189,114,.06);
    color: #6bd093;
}

.settings-user-cell {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    align-items: center;
    gap: 9px;
}

.settings-user-cell > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
    color: #aab5bf;
    font-size: 11px;
    font-weight: 850;
}

.settings-user-cell strong,
.settings-user-cell small {
    display: block;
}

.settings-user-cell strong {
    color: #d3dce3;
    font-size: 10px;
}

.settings-user-cell small {
    margin-top: 2px;
    color: #df6e79;
    font-size: 7.5px;
    font-weight: 850;
    text-transform: uppercase;
}

.settings-last-login {
    color: #7d8a96 !important;
    font-size: 9px !important;
}

.settings-security-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 14px;
    border-top: 1px solid rgba(255,255,255,.05);
    background: rgba(79,143,232,.018);
    color: #718399;
    font-size: 8.5px;
    line-height: 1.45;
}

.settings-security-note svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: #7496bf;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Modais */
.prime-modal-settings-form {
    width: min(92vw, 520px);
}

.prime-modal-settings-user {
    width: min(94vw, 660px);
}

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

.settings-modal-wide {
    grid-column: 1 / -1;
}

.settings-switch-field {
    min-height: 44px;
    display: grid;
    grid-template-columns:
        minmax(0,1fr)
        40px;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
    color: #aeb8c1;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

.settings-switch-field input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-switch-field i {
    width: 38px;
    height: 21px;
    position: relative;
    justify-self: end;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    transition: background .16s ease;
}

.settings-switch-field i::after {
    content: "";
    width: 15px;
    height: 15px;
    position: absolute;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: #8c98a3;
    transition:
        transform .16s ease,
        background .16s ease;
}

.settings-switch-field input:checked + i {
    background: rgba(55,189,114,.18);
}

.settings-switch-field input:checked + i::after {
    transform: translateX(17px);
    background: #71d097;
}

.settings-switch-field input:disabled + i {
    opacity: .45;
}

.settings-password-field {
    display: grid;
    gap: 7px;
}

.settings-password-control {
    position: relative;
}

.settings-password-control input {
    padding-right: 44px !important;
}

.settings-password-control button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    position: absolute;
    top: 4px;
    right: 4px;
    border: 0;
    border-radius: 8px;
    outline: none;
    background: transparent;
    color: #768592;
    cursor: pointer;
}

.settings-password-control button:hover {
    background: rgba(255,255,255,.04);
    color: #cbd4dc;
}

.settings-password-control button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-password-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.settings-password-actions button {
    min-height: 29px;
    padding: 0 8px;
    border: 1px solid rgba(79,143,232,.11);
    border-radius: 7px;
    background: rgba(79,143,232,.035);
    color: #7fa9df;
    font-size: 8px;
    font-weight: 850;
    cursor: pointer;
}

.settings-password-actions button:hover {
    border-color: rgba(79,143,232,.20);
    background: rgba(79,143,232,.065);
}

.settings-password-actions small {
    color: #6f7c88;
    font-size: 8px;
    line-height: 1.4;
    text-align: right;
}

/* Responsive */
@media (max-width: 1100px) {
    .settings-grid-company {
        grid-template-columns: 1fr;
    }

    .settings-card-logo {
        order: 2;
    }
}

@media (max-width: 820px) {
    .settings-heading {
        flex-direction: column;
    }

    .settings-heading-badge {
        width: 100%;
    }

    .settings-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .settings-tab {
        justify-content: flex-start;
    }

    .settings-card-head-action {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-card-head-action .dashboard-primary-action {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .settings-form-grid,
    .settings-modal-grid {
        grid-template-columns: 1fr;
    }

    .settings-field-wide,
    .settings-modal-wide {
        grid-column: auto;
    }

    .settings-rule-box {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-number-control {
        width: 100%;
        grid-template-columns: 1fr auto;
    }

    .settings-number-control input {
        width: 100%;
        text-align: left;
    }

    .settings-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-form-footer .dashboard-primary-action {
        width: 100%;
    }

    .settings-file-button,
    .settings-secondary-button {
        width: 100%;
        margin-left: 0;
    }

    .settings-password-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-password-actions small {
        text-align: left;
    }
}


/* =========================================================
   CONFIGURAÇÕES - ADMIN MASTER V36
========================================================= */

.settings-master-notice {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 13px 16px 0;
    padding: 11px 12px;
    border: 1px solid rgba(173,133,232,.12);
    border-radius: 11px;
    background:
        linear-gradient(
            135deg,
            rgba(173,133,232,.045),
            rgba(255,255,255,.008)
        );
}

.settings-master-notice-icon,
.settings-master-profile-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border: 1px solid rgba(173,133,232,.15);
    border-radius: 10px;
    background: rgba(173,133,232,.06);
    color: #bd9def;
}

.settings-master-notice-icon svg,
.settings-master-profile-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-master-notice strong,
.settings-master-notice small {
    display: block;
}

.settings-master-notice strong {
    color: #d9d1e8;
    font-size: 10.5px;
}

.settings-master-notice small {
    margin-top: 3px;
    color: #7f7890;
    font-size: 8.5px;
    line-height: 1.4;
}

.settings-master-table {
    min-width: 620px;
    margin-top: 13px;
}

.settings-profile-badge.is-master {
    border-color: rgba(173,133,232,.15);
    background: rgba(173,133,232,.055);
    color: #c0a2ee;
}

.settings-master-user-cell > span {
    border-color: rgba(173,133,232,.13);
    background: rgba(173,133,232,.05);
    color: #c0a4ea;
}

.settings-master-user-cell small {
    color: #a68bcf;
}

.settings-master-profile-card {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid rgba(173,133,232,.12);
    border-radius: 11px;
    background:
        linear-gradient(
            135deg,
            rgba(173,133,232,.045),
            rgba(255,255,255,.008)
        );
}

.settings-master-profile-card > div > span,
.settings-master-profile-card > div > strong,
.settings-master-profile-card > div > small {
    display: block;
}

.settings-master-profile-card > div > span {
    color: #9d86c0;
    font-size: 7.5px;
    font-weight: 900;
    letter-spacing: .08em;
}

.settings-master-profile-card > div > strong {
    margin-top: 2px;
    color: #ded6eb;
    font-size: 12px;
}

.settings-master-profile-card > div > small {
    margin-top: 3px;
    color: #7d758b;
    font-size: 8.5px;
}

@media (max-width: 620px) {
    .settings-master-notice {
        align-items: flex-start;
        margin-left: 12px;
        margin-right: 12px;
    }
}


/* =========================================================
   CONFIGURAÇÕES - USUÁRIOS ADMINISTRADORES V37
========================================================= */

.settings-users-table {
    min-width: 760px;
}

.settings-user-cell small {
    color: #7f8c98;
}

.settings-master-user-cell small {
    color: #a68bcf;
}

.settings-profile-badge.is-admin {
    border-color: rgba(79,143,232,.13);
    background: rgba(79,143,232,.045);
    color: #82afe8;
}

#configUsuarioAtivoWrap[hidden] {
    display: none !important;
}

.settings-card-head-action
.dashboard-primary-action {
    flex: 0 0 auto;
}

@media (max-width: 820px) {
    .settings-card-head-action
    .dashboard-primary-action {
        width: 100%;
    }
}


/* =========================================================
   PRIMEIRO ACESSO / TROCA OBRIGATÓRIA DE SENHA V38
========================================================= */

.first-access-card {
    width: min(100%, 470px);
}

.first-access-user {
    margin: -8px 0 22px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 11px;
    background: rgba(255,255,255,.018);
}

.first-access-user span,
.first-access-user strong {
    display: block;
}

.first-access-user span {
    margin-bottom: 3px;
    color: #737f8d;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.first-access-user strong {
    color: #dce3e9;
    font-size: 12px;
}

.first-access-requirements {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0,1fr));
    gap: 6px;
    margin: -8px 0 19px;
}

.first-access-requirements span {
    min-height: 29px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 8px 0 25px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 8px;
    background: rgba(255,255,255,.015);
    color: #75818d;
    font-size: 8.5px;
    line-height: 1.25;
    transition:
        border-color .16s ease,
        background .16s ease,
        color .16s ease;
}

.first-access-requirements span::before {
    content: "";
    width: 7px;
    height: 7px;
    position: absolute;
    left: 10px;
    border-radius: 50%;
    background: #59636d;
    box-shadow:
        0 0 0 3px rgba(255,255,255,.025);
    transition:
        background .16s ease,
        box-shadow .16s ease;
}

.first-access-requirements span.is-valid {
    border-color: rgba(55,189,114,.10);
    background: rgba(55,189,114,.025);
    color: #83b79a;
}

.first-access-requirements span.is-valid::before {
    background: #62cb8c;
    box-shadow:
        0 0 0 3px rgba(55,189,114,.08);
}

.first-access-page .notice {
    margin-bottom: 18px;
}

.first-access-page .primary-button[disabled] {
    opacity: .62;
    cursor: wait;
}

@media (max-width: 480px) {
    .first-access-requirements {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   LOGIN - MODAL DE PRIMEIRO ACESSO V39
========================================================= */

.login-password-modal {
    z-index: 9999;
}

.login-password-modal .prime-modal-backdrop {
    background: rgba(3, 7, 12, .82);
    backdrop-filter: blur(8px);
}

.login-password-dialog {
    width: min(94vw, 560px);
    max-height: calc(100vh - 28px);
}

.login-password-dialog .modal-body {
    padding-top: 18px;
}

.login-first-access-user {
    margin-bottom: 16px;
    padding: 11px 12px;
    border: 1px solid rgba(173,133,232,.12);
    border-radius: 10px;
    background: rgba(173,133,232,.04);
}

.login-first-access-user span,
.login-first-access-user strong {
    display: block;
}

.login-first-access-user span {
    margin-bottom: 3px;
    color: #927fb1;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-first-access-user strong {
    color: #ded7e9;
    font-size: 11px;
}

.login-password-rules {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: -5px 0 17px;
}

.login-password-rules span {
    min-height: 28px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 8px 0 24px;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 8px;
    background: rgba(255,255,255,.013);
    color: #737f8b;
    font-size: 8px;
    line-height: 1.25;
    transition:
        border-color .16s ease,
        background .16s ease,
        color .16s ease;
}

.login-password-rules span::before {
    content: "";
    width: 7px;
    height: 7px;
    position: absolute;
    left: 9px;
    border-radius: 50%;
    background: #58626c;
}

.login-password-rules span.is-valid {
    border-color: rgba(55,189,114,.10);
    background: rgba(55,189,114,.025);
    color: #87b79b;
}

.login-password-rules span.is-valid::before {
    background: #63cc8d;
    box-shadow:
        0 0 0 3px rgba(55,189,114,.07);
}

.login-password-footer {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-password-footer > span {
    max-width: 280px;
    color: #75828e;
    font-size: 8.5px;
    line-height: 1.4;
}

.login-password-footer .modal-button-primary {
    min-width: 160px;
}

body.login-page.modal-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .login-password-rules {
        grid-template-columns: 1fr;
    }

    .login-password-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .login-password-footer > span {
        max-width: none;
    }

    .login-password-footer .modal-button-primary {
        width: 100%;
    }
}


/* =========================================================
   DASHBOARD FINAL INTEGRADO V40
========================================================= */

.dashboard-final-page {
    padding-bottom: 34px;
}

.dashboard-final-titlebar {
    margin-bottom: 10px;
}

.dashboard-title-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-secondary-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 10px;
    outline: none;
    background: rgba(255,255,255,.02);
    color: #a9b4be;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
    transition:
        border-color .16s ease,
        background .16s ease,
        color .16s ease,
        opacity .16s ease;
}

.dashboard-secondary-action:hover:not(:disabled) {
    border-color: rgba(255,255,255,.13);
    background: rgba(255,255,255,.04);
    color: #eef2f5;
}

.dashboard-secondary-action:disabled,
.dashboard-secondary-action.is-loading {
    opacity: .58;
    cursor: wait;
}

.dashboard-secondary-action svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-secondary-action.is-loading svg {
    animation: dashboard-spin .8s linear infinite;
}

@keyframes dashboard-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Live */
.dashboard-live-strip {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    padding: 0 9px;
    border: 1px solid rgba(55,189,114,.08);
    border-radius: 8px;
    background: rgba(55,189,114,.02);
    color: #7d8a96;
    font-size: 8.5px;
}

.dashboard-live-strip > span:nth-child(2) {
    color: #8ea596;
    font-weight: 800;
}

.dashboard-live-strip small {
    color: #62706a;
    font-size: 8px;
}

.dashboard-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5ac983;
    box-shadow: 0 0 0 4px rgba(55,189,114,.075);
}

/* KPIs */
.dashboard-kpi-grid {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0,1fr));
    gap: 10px;
    margin-bottom: 13px;
}

.dashboard-kpi {
    min-width: 0;
    min-height: 103px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 13px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            rgba(16,23,31,.985),
            rgba(10,16,22,.985)
        );
    box-shadow:
        0 12px 30px rgba(0,0,0,.11),
        inset 0 1px 0 rgba(255,255,255,.018);
}

.dashboard-kpi::after {
    content: "";
    width: 54%;
    height: 1px;
    position: absolute;
    right: 0;
    bottom: 0;
    opacity: .72;
    background:
        linear-gradient(
            90deg,
            transparent,
            currentColor
        );
}

.dashboard-kpi-icon {
    width: 39px;
    height: 39px;
    min-width: 39px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: rgba(255,255,255,.022);
}

.dashboard-kpi-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.dashboard-kpi > div > span,
.dashboard-kpi > div > strong,
.dashboard-kpi > div > small {
    display: block;
}

.dashboard-kpi > div > span {
    color: #8794a0;
    font-size: 9px;
    font-weight: 750;
}

.dashboard-kpi > div > strong {
    margin-top: 4px;
    overflow: hidden;
    color: #edf2f5;
    font-size: clamp(16px, 1.55vw, 21px);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-kpi > div > small {
    margin-top: 5px;
    overflow: hidden;
    color: #64717d;
    font-size: 8px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-kpi-sales {
    color: #709bd7;
}

.dashboard-kpi-sales .dashboard-kpi-icon {
    border-color: rgba(79,143,232,.16);
    background: rgba(79,143,232,.055);
    color: #7cadf0;
}

.dashboard-kpi-received {
    color: #4fab78;
}

.dashboard-kpi-received .dashboard-kpi-icon {
    border-color: rgba(55,189,114,.16);
    background: rgba(55,189,114,.055);
    color: #67d292;
}

.dashboard-kpi-open {
    color: #7aa7d7;
}

.dashboard-kpi-open .dashboard-kpi-icon {
    border-color: rgba(96,163,232,.15);
    background: rgba(96,163,232,.05);
    color: #88b8e9;
}

.dashboard-kpi-overdue {
    color: #d75c68;
}

.dashboard-kpi-overdue .dashboard-kpi-icon {
    border-color: rgba(227,38,54,.16);
    background: rgba(227,38,54,.055);
    color: #ef6f7a;
}

.dashboard-kpi-os {
    color: #b28a4f;
}

.dashboard-kpi-os .dashboard-kpi-icon {
    border-color: rgba(225,165,58,.15);
    background: rgba(225,165,58,.05);
    color: #ddb160;
}

.dashboard-kpi-agenda {
    color: #9274c7;
}

.dashboard-kpi-agenda .dashboard-kpi-icon {
    border-color: rgba(173,133,232,.15);
    background: rgba(173,133,232,.05);
    color: #b99ae8;
}

/* Overview */
.dashboard-overview-grid {
    display: grid;
    grid-template-columns:
        minmax(0,1.2fr)
        minmax(390px,.9fr);
    gap: 12px;
    margin-bottom: 12px;
}

.dashboard-agenda-panel,
.dashboard-finance-panel {
    min-height: 360px;
}

.dashboard-loading {
    min-height: 110px;
    display: grid;
    place-items: center;
    color: #65727e;
    font-size: 9px;
    text-align: center;
}

.dashboard-empty-state {
    min-height: 150px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    padding: 18px;
    border: 1px dashed rgba(255,255,255,.06);
    border-radius: 11px;
    color: #63707d;
    text-align: center;
}

.dashboard-empty-state.compact {
    min-height: 110px;
}

.dashboard-empty-state strong,
.dashboard-empty-state span {
    display: block;
}

.dashboard-empty-state strong {
    color: #9aa5af;
    font-size: 10px;
}

.dashboard-empty-state span {
    max-width: 360px;
    color: #65717d;
    font-size: 8.5px;
    line-height: 1.45;
}

/* Agenda */
.dashboard-agenda-list {
    display: grid;
    gap: 6px;
}

.dashboard-agenda-item {
    min-height: 54px;
    display: grid;
    grid-template-columns:
        66px
        minmax(0,1fr)
        auto;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 10px;
    background: rgba(255,255,255,.012);
    color: inherit;
    text-decoration: none;
    transition:
        border-color .16s ease,
        background .16s ease,
        transform .16s ease;
}

.dashboard-agenda-item:hover {
    border-color: rgba(255,255,255,.085);
    background: rgba(255,255,255,.025);
    transform: translateY(-1px);
}

.dashboard-agenda-date {
    min-height: 39px;
    display: grid;
    place-items: center;
    align-content: center;
    border-right: 1px solid rgba(255,255,255,.05);
}

.dashboard-agenda-date strong,
.dashboard-agenda-date span {
    display: block;
}

.dashboard-agenda-date strong {
    color: #bc9be7;
    font-size: 8.5px;
    font-weight: 850;
}

.dashboard-agenda-date span {
    margin-top: 2px;
    color: #d7dde2;
    font-size: 11px;
    font-weight: 850;
}

.dashboard-agenda-content {
    min-width: 0;
}

.dashboard-agenda-content strong,
.dashboard-agenda-content span,
.dashboard-agenda-content small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-agenda-content strong {
    color: #d4dce2;
    font-size: 10px;
}

.dashboard-agenda-content span {
    margin-top: 2px;
    color: #818d99;
    font-size: 8.5px;
}

.dashboard-agenda-content small {
    margin-top: 3px;
    color: #697581;
    font-size: 8px;
}

/* Financeiro */
.dashboard-finance-summary {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 7px;
    margin-bottom: 14px;
}

.dashboard-finance-summary > div {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 9px;
    background: rgba(255,255,255,.012);
}

.dashboard-finance-summary span,
.dashboard-finance-summary strong {
    display: block;
}

.dashboard-finance-summary span {
    color: #74818d;
    font-size: 8px;
}

.dashboard-finance-summary strong {
    margin-top: 4px;
    overflow: hidden;
    color: #dbe2e7;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-finance-summary strong.is-positive,
.dashboard-upcoming-item > strong.is-positive {
    color: #6bcf93;
}

.dashboard-finance-summary strong.is-expense,
.dashboard-upcoming-item > strong.is-expense {
    color: #e4a657;
}

.dashboard-finance-summary strong.is-negative {
    color: #eb6d79;
}

.dashboard-cash-chart {
    min-height: 225px;
    display: grid;
    align-content: stretch;
}

.dashboard-cash-bars {
    height: 185px;
    display: grid;
    grid-template-columns:
        repeat(6,minmax(0,1fr));
    align-items: end;
    gap: 8px;
    padding: 4px 4px 0;
}

.dashboard-cash-group {
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-rows:
        minmax(0,1fr)
        auto
        auto;
    gap: 4px;
    align-items: end;
    text-align: center;
}

.dashboard-cash-group-bars {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding-top: 4px;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.dashboard-cash-bar {
    width: min(12px,34%);
    min-height: 2px;
    border-radius: 4px 4px 1px 1px;
    transition:
        opacity .16s ease,
        filter .16s ease;
}

.dashboard-cash-bar:hover {
    opacity: .78;
    filter: brightness(1.08);
}

.dashboard-cash-bar.is-revenue {
    background:
        linear-gradient(
            180deg,
            #68d496,
            #327a52
        );
}

.dashboard-cash-bar.is-expense {
    background:
        linear-gradient(
            180deg,
            #d9a24f,
            #795826
        );
}

.dashboard-cash-month {
    color: #75818d;
    font-size: 8px;
    font-weight: 750;
}

.dashboard-cash-group small {
    overflow: hidden;
    color: #87939e;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-cash-group small.is-negative {
    color: #c96570;
}

.dashboard-cash-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    color: #717d89;
    font-size: 8px;
}

.dashboard-cash-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dashboard-cash-legend i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.dashboard-cash-legend i.is-revenue {
    background: #58c789;
}

.dashboard-cash-legend i.is-expense {
    background: #d3a051;
}

/* Flow */
.dashboard-flow-panel {
    margin-bottom: 12px;
}

.dashboard-flow {
    display: grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr));
    gap: 8px;
}

.dashboard-flow-column {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 11px;
    background: rgba(255,255,255,.01);
}

.dashboard-flow-column > header {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255,255,255,.045);
}

.dashboard-flow-column > header strong,
.dashboard-flow-column > header span {
    display: block;
}

.dashboard-flow-column > header strong {
    color: #cfd7de;
    font-size: 9.5px;
}

.dashboard-flow-column > header span {
    margin-top: 2px;
    color: #697581;
    font-size: 8px;
}

.dashboard-flow-column.is-scheduled > header {
    background: rgba(79,143,232,.038);
}

.dashboard-flow-column.is-running > header {
    background: rgba(227,38,54,.042);
}

.dashboard-flow-column.is-finishing > header {
    background: rgba(225,165,58,.04);
}

.dashboard-flow-column.is-ready > header {
    background: rgba(55,189,114,.04);
}

.dashboard-flow-cards {
    display: grid;
    gap: 5px;
    padding: 7px;
}

.dashboard-flow-card {
    min-width: 0;
    display: block;
    padding: 8px 9px;
    border: 1px solid rgba(255,255,255,.042);
    border-radius: 8px;
    background: rgba(0,0,0,.08);
    color: inherit;
    text-decoration: none;
    transition:
        border-color .16s ease,
        background .16s ease;
}

.dashboard-flow-card:hover {
    border-color: rgba(255,255,255,.085);
    background: rgba(255,255,255,.018);
}

.dashboard-flow-card span,
.dashboard-flow-card strong,
.dashboard-flow-card small,
.dashboard-flow-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-flow-card > span {
    color: #66727e;
    font-size: 7.5px;
    font-weight: 800;
}

.dashboard-flow-card strong {
    margin-top: 3px;
    color: #cdd5dc;
    font-size: 9px;
}

.dashboard-flow-card small {
    margin-top: 3px;
    color: #74808c;
    font-size: 8px;
}

.dashboard-flow-card em {
    margin-top: 4px;
    color: #596570;
    font-size: 7.5px;
    font-style: normal;
}

.dashboard-flow-empty {
    min-height: 82px;
    display: grid;
    place-items: center;
    color: #56616c;
    font-size: 8px;
}

/* Management grid */
.dashboard-management-grid {
    display: grid;
    grid-template-columns:
        minmax(300px,.92fr)
        minmax(300px,.9fr)
        minmax(300px,.88fr);
    gap: 12px;
    margin-bottom: 12px;
}

/* Status */
.dashboard-status-wrap {
    min-height: 225px;
    display: grid;
    grid-template-columns:
        135px
        minmax(0,1fr);
    align-items: center;
    gap: 15px;
}

.dashboard-status-ring {
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    justify-self: center;
    border-radius: 50%;
    background: rgba(255,255,255,.045);
}

.dashboard-status-ring > div {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    align-content: center;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 50%;
    background: #0d131a;
}

.dashboard-status-ring span,
.dashboard-status-ring strong {
    display: block;
}

.dashboard-status-ring span {
    color: #67737f;
    font-size: 8px;
}

.dashboard-status-ring strong {
    margin-top: 1px;
    color: #edf1f4;
    font-size: 22px;
    font-weight: 850;
}

.dashboard-status-list {
    display: grid;
    gap: 6px;
}

.dashboard-status-list > div {
    display: grid;
    grid-template-columns:
        7px
        minmax(0,1fr)
        auto;
    align-items: center;
    gap: 7px;
}

.dashboard-status-list i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.dashboard-status-list span {
    color: #7f8b97;
    font-size: 8.5px;
}

.dashboard-status-list strong {
    color: #cbd3da;
    font-size: 9px;
}

/* Pendências */
.dashboard-action-list {
    display: grid;
    gap: 6px;
}

.dashboard-action-item {
    min-height: 49px;
    display: grid;
    grid-template-columns:
        31px
        minmax(0,1fr)
        auto;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 9px;
    background: rgba(255,255,255,.012);
    color: inherit;
    text-decoration: none;
    transition:
        border-color .16s ease,
        background .16s ease;
}

.dashboard-action-item:hover {
    border-color: rgba(255,255,255,.085);
    background: rgba(255,255,255,.024);
}

.dashboard-action-icon {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    background: rgba(255,255,255,.018);
    color: #9aa5af;
    font-size: 7px;
    font-weight: 900;
}

.dashboard-action-item.is-financeiro .dashboard-action-icon,
.dashboard-action-item.is-expirados .dashboard-action-icon {
    border-color: rgba(227,38,54,.12);
    background: rgba(227,38,54,.04);
    color: #e6717c;
}

.dashboard-action-item.is-orcamentos .dashboard-action-icon {
    border-color: rgba(79,143,232,.12);
    background: rgba(79,143,232,.04);
    color: #7ea9e2;
}

.dashboard-action-item.is-entrega .dashboard-action-icon {
    border-color: rgba(55,189,114,.12);
    background: rgba(55,189,114,.04);
    color: #72ca94;
}

.dashboard-action-item > div {
    min-width: 0;
}

.dashboard-action-item strong,
.dashboard-action-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-action-item strong {
    color: #cbd4db;
    font-size: 9px;
}

.dashboard-action-item small {
    margin-top: 2px;
    color: #6c7884;
    font-size: 8px;
}

.dashboard-action-arrow {
    color: #596570;
    font-size: 17px;
}

.dashboard-ok-state {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    border: 1px dashed rgba(55,189,114,.10);
    border-radius: 11px;
    background: rgba(55,189,114,.018);
}

.dashboard-ok-state > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 50%;
    background: rgba(55,189,114,.08);
    color: #69cf92;
    font-size: 15px;
}

.dashboard-ok-state strong,
.dashboard-ok-state small {
    display: block;
}

.dashboard-ok-state strong {
    color: #b9cfc1;
    font-size: 10px;
}

.dashboard-ok-state small {
    margin-top: 3px;
    color: #65766a;
    font-size: 8px;
    line-height: 1.4;
}

/* Comercial */
.dashboard-commercial-main {
    display: grid;
    gap: 10px;
}

.dashboard-commercial-main > div:first-child {
    min-height: 92px;
    display: grid;
    align-content: center;
    padding: 12px;
    border: 1px solid rgba(79,143,232,.08);
    border-radius: 10px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(79,143,232,.06),
            transparent 60%
        ),
        rgba(255,255,255,.01);
}

.dashboard-commercial-main > div:first-child > span,
.dashboard-commercial-main > div:first-child > strong,
.dashboard-commercial-main > div:first-child > small {
    display: block;
}

.dashboard-commercial-main > div:first-child > span {
    color: #7791b0;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dashboard-commercial-main > div:first-child > strong {
    margin-top: 3px;
    color: #88b6ed;
    font-size: 27px;
    font-weight: 850;
    letter-spacing: -.04em;
}

.dashboard-commercial-main > div:first-child > small {
    margin-top: 3px;
    color: #687787;
    font-size: 8px;
}

.dashboard-commercial-stats {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 6px;
}

.dashboard-commercial-stats > div {
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 8px;
    background: rgba(255,255,255,.012);
}

.dashboard-commercial-stats span,
.dashboard-commercial-stats strong {
    display: block;
}

.dashboard-commercial-stats span {
    color: #6e7a86;
    font-size: 7.5px;
}

.dashboard-commercial-stats strong {
    margin-top: 4px;
    overflow: hidden;
    color: #c7d0d7;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bottom */
.dashboard-bottom-final {
    align-items: stretch;
}

.dashboard-recent-os,
.dashboard-upcoming-finance {
    display: grid;
    gap: 5px;
}

.dashboard-recent-os-item,
.dashboard-upcoming-item {
    min-height: 54px;
    display: grid;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 9px;
    background: rgba(255,255,255,.01);
    color: inherit;
    text-decoration: none;
    transition:
        border-color .16s ease,
        background .16s ease;
}

.dashboard-recent-os-item {
    grid-template-columns:
        minmax(0,1fr)
        auto;
}

.dashboard-recent-os-item:hover,
.dashboard-upcoming-item:hover {
    border-color: rgba(255,255,255,.085);
    background: rgba(255,255,255,.023);
}

.dashboard-recent-os-item > div:first-child {
    min-width: 0;
}

.dashboard-recent-os-item > div:first-child > span,
.dashboard-recent-os-item > div:first-child > strong,
.dashboard-recent-os-item > div:first-child > small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-recent-os-item > div:first-child > span {
    color: #68747f;
    font-size: 7.5px;
}

.dashboard-recent-os-item > div:first-child > strong {
    margin-top: 2px;
    color: #ccd5dc;
    font-size: 9px;
}

.dashboard-recent-os-item > div:first-child > small {
    margin-top: 2px;
    color: #77838f;
    font-size: 8px;
}

.dashboard-recent-os-item > div:last-child {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.dashboard-recent-os-item > div:last-child > strong {
    color: #d5dde3;
    font-size: 9px;
}

.dashboard-upcoming-item {
    grid-template-columns:
        70px
        minmax(0,1fr)
        auto;
}

.dashboard-upcoming-date {
    min-height: 38px;
    display: grid;
    place-items: center;
    align-content: center;
    border-right: 1px solid rgba(255,255,255,.05);
}

.dashboard-upcoming-date strong,
.dashboard-upcoming-date span {
    display: block;
}

.dashboard-upcoming-date strong {
    color: #d9a857;
    font-size: 8px;
}

.dashboard-upcoming-date span {
    margin-top: 2px;
    color: #76828e;
    font-size: 7.5px;
}

.dashboard-upcoming-item > div:nth-child(2) {
    min-width: 0;
}

.dashboard-finance-type {
    min-height: 19px;
    display: inline-flex !important;
    align-items: center;
    padding: 0 5px;
    border-radius: 6px;
    font-size: 7px !important;
    font-weight: 850;
}

.dashboard-finance-type.is-receita {
    background: rgba(55,189,114,.05);
    color: #6fcb92 !important;
}

.dashboard-finance-type.is-despesa {
    background: rgba(225,165,58,.05);
    color: #d8a757 !important;
}

.dashboard-upcoming-item > div:nth-child(2) > strong,
.dashboard-upcoming-item > div:nth-child(2) > small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-upcoming-item > div:nth-child(2) > strong {
    margin-top: 3px;
    color: #ccd4db;
    font-size: 9px;
}

.dashboard-upcoming-item > div:nth-child(2) > small {
    margin-top: 2px;
    color: #707c87;
    font-size: 7.5px;
}

.dashboard-upcoming-item > strong {
    font-size: 9px;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1460px) {
    .dashboard-kpi-grid {
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }
}

@media (max-width: 1180px) {
    .dashboard-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .dashboard-commercial-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .dashboard-flow {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

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

@media (max-width: 760px) {
    .dashboard-title-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .dashboard-title-actions > * {
        width: 100%;
    }

    .dashboard-management-grid,
    .dashboard-bottom-final {
        grid-template-columns: 1fr;
    }

    .dashboard-commercial-panel {
        grid-column: auto;
    }

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

    .dashboard-status-ring {
        margin-bottom: 5px;
    }

    .dashboard-agenda-item {
        grid-template-columns:
            58px
            minmax(0,1fr);
    }

    .dashboard-agenda-item > .status-badge {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 580px) {
    .dashboard-kpi-grid,
    .dashboard-flow {
        grid-template-columns: 1fr;
    }

    .dashboard-finance-summary,
    .dashboard-commercial-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-cash-bars {
        gap: 4px;
    }

    .dashboard-upcoming-item {
        grid-template-columns:
            58px
            minmax(0,1fr);
    }

    .dashboard-upcoming-item > strong {
        grid-column: 2;
        justify-self: start;
    }

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


/* =========================================================
   TIPOGRAFIA GLOBAL MAIS LEGÍVEL V41
   Aumento moderado das fontes em todas as páginas do sistema
========================================================= */

@media screen {

    html {
        font-size: 16px;
    }

    body {
        font-size: 15px;
    }

    /* Cabeçalhos e textos gerais */
    .page-kicker,
    .shell-kicker,
    .panel-kicker,
    .modal-kicker,
    .eyebrow {
        font-size: 10px !important;
    }

    .page-content p,
    .modal-subtitle,
    .security-note,
    .settings-save-hint,
    .reports-data-note,
    .settings-security-note {
        font-size: 10px !important;
        line-height: 1.5 !important;
    }

    /* Sidebar / Navegação */
    .nav-item,
    .nav-group-title,
    .sidebar-user,
    .sidebar-footer,
    .sidebar small {
        font-size: 11px !important;
    }

    .nav-item {
        min-height: 43px;
    }

    /* Topbar */
    .topbar,
    .topbar-user,
    .topbar-user strong,
    .topbar-user span,
    .topbar-action,
    .topbar-search input {
        font-size: 11px !important;
    }

    /* Botões */
    button,
    .btn,
    .primary-button,
    .dashboard-primary-action,
    .dashboard-secondary-action,
    .reports-action,
    .modal-button,
    .settings-file-button,
    .settings-secondary-button,
    .settings-password-actions button,
    .settings-period-shortcuts button,
    .reports-period-shortcuts button {
        font-size: 11px !important;
    }

    /* Inputs / Selects / Textareas */
    input,
    select,
    textarea,
    .premium-select,
    .form-control {
        font-size: 12px !important;
    }

    .form-field > span,
    .field > label,
    label {
        font-size: 11px;
    }

    input::placeholder,
    textarea::placeholder {
        font-size: 11px;
    }

    /* Tabelas */
    .prime-table th,
    .settings-table th,
    .reports-table th,
    table th {
        font-size: 10px !important;
    }

    .prime-table td,
    .settings-table td,
    .reports-table td,
    table td {
        font-size: 11px !important;
    }

    .table-empty,
    .table-loading {
        font-size: 11px !important;
    }

    /* Badges e status */
    .status-badge,
    .settings-status-badge,
    .settings-profile-badge,
    .reports-origin-badge,
    .shell-badge,
    .badge {
        font-size: 9px !important;
    }

    /* Modais */
    .prime-modal-header h2 {
        font-size: 17px !important;
    }

    .modal-subtitle {
        font-size: 10px !important;
    }

    .prime-modal-dialog input,
    .prime-modal-dialog select,
    .prime-modal-dialog textarea {
        font-size: 12px !important;
    }

    /* Login */
    .login-heading h1 {
        font-size: 30px !important;
    }

    .login-heading p,
    .login-page .notice,
    .login-page .security-note {
        font-size: 11px !important;
    }

    .login-page .field label {
        font-size: 11px !important;
    }

    .login-page input {
        font-size: 13px !important;
    }

    .password-toggle {
        font-size: 10px !important;
    }

    /* Dashboard */
    .dashboard-kpi > div > span {
        font-size: 10px !important;
    }

    .dashboard-kpi > div > strong {
        font-size: clamp(18px, 1.7vw, 23px) !important;
    }

    .dashboard-kpi > div > small {
        font-size: 9px !important;
    }

    .dashboard-live-strip,
    .dashboard-live-strip small {
        font-size: 9px !important;
    }

    .dashboard-agenda-date strong,
    .dashboard-agenda-content strong,
    .dashboard-flow-column > header strong,
    .dashboard-flow-card strong,
    .dashboard-action-item strong,
    .dashboard-recent-os-item > div:first-child > strong,
    .dashboard-upcoming-item > div:nth-child(2) > strong {
        font-size: 10px !important;
    }

    .dashboard-agenda-date span {
        font-size: 12px !important;
    }

    .dashboard-agenda-content span,
    .dashboard-agenda-content small,
    .dashboard-flow-column > header span,
    .dashboard-flow-card small,
    .dashboard-flow-card em,
    .dashboard-action-item small,
    .dashboard-commercial-main small,
    .dashboard-commercial-stats span,
    .dashboard-commercial-stats strong,
    .dashboard-recent-os-item span,
    .dashboard-recent-os-item small,
    .dashboard-upcoming-date strong,
    .dashboard-upcoming-date span,
    .dashboard-upcoming-item small {
        font-size: 9px !important;
    }

    .dashboard-finance-summary span {
        font-size: 9px !important;
    }

    .dashboard-finance-summary strong {
        font-size: 12px !important;
    }

    .dashboard-status-list span,
    .dashboard-status-list strong {
        font-size: 10px !important;
    }

    .dashboard-commercial-main > div:first-child > span {
        font-size: 9px !important;
    }

    .dashboard-commercial-main > div:first-child > strong {
        font-size: 29px !important;
    }

    /* Relatórios */
    .reports-heading p {
        font-size: 15px !important;
    }

    .reports-filter-head strong {
        font-size: 15px !important;
    }

    .reports-filter-head small,
    .reports-panel-head p {
        font-size: 10px !important;
    }

    .reports-metric-card > div > span {
        font-size: 11px !important;
    }

    .reports-metric-card > div > strong {
        font-size: clamp(18px, 1.6vw, 22px) !important;
    }

    .reports-metric-card > div > small {
        font-size: 9px !important;
    }

    .reports-operations-strip span {
        font-size: 10px !important;
    }

    .reports-operations-strip strong {
        font-size: 18px !important;
    }

    .reports-panel-head h2 {
        font-size: 15px !important;
    }

    .reports-chart-axis-label,
    .reports-chart-month-label {
        font-size: 10px !important;
    }

    .reports-status-legend-item strong {
        font-size: 10px !important;
    }

    .reports-status-legend-item small {
        font-size: 9px !important;
    }

    .reports-name-cell strong {
        font-size: 11px !important;
    }

    .reports-name-cell small {
        font-size: 9px !important;
    }

    .reports-conversion-card span {
        font-size: 9px !important;
    }

    .reports-conversion-card strong {
        font-size: 22px !important;
    }

    .reports-conversion-foot {
        font-size: 9px !important;
    }

    /* Configurações */
    .settings-heading p {
        font-size: 15px !important;
    }

    .settings-heading-badge span {
        font-size: 10px !important;
    }

    .settings-heading-badge strong {
        font-size: 13px !important;
    }

    .settings-tab {
        font-size: 11px !important;
    }

    .settings-card-head h2 {
        font-size: 15px !important;
    }

    .settings-card-head p {
        font-size: 10px !important;
    }

    .settings-logo-copy strong {
        font-size: 13px !important;
    }

    .settings-logo-copy > span {
        font-size: 10px !important;
    }

    .settings-rule-box strong {
        font-size: 11px !important;
    }

    .settings-rule-box small {
        font-size: 9px !important;
    }

    .settings-table-name,
    .settings-user-cell strong {
        font-size: 11px !important;
    }

    .settings-user-cell small,
    .settings-master-notice small,
    .settings-master-profile-card small {
        font-size: 9px !important;
    }

    .settings-master-notice strong,
    .settings-master-profile-card strong {
        font-size: 11px !important;
    }

    /* Agenda */
    .agenda-page .page-subtitle,
    .agenda-toolbar,
    .agenda-filter,
    .agenda-calendar,
    .agenda-event,
    .agenda-list,
    .calendar-event,
    .calendar-day,
    .calendar-weekday {
        font-size: 11px !important;
    }

    /* Financeiro */
    .financeiro-page .page-subtitle,
    .finance-tabs button,
    .financeiro-filter,
    .financeiro-table,
    .financeiro-summary,
    .financeiro-modal {
        font-size: 11px !important;
    }

    /* Orçamentos / OS / Checklists / Cadastros */
    .orcamentos-page,
    .ordens-servico-page,
    .checklist-page,
    .cadastros-page,
    .os-page {
        font-size: 12px;
    }

    .orcamentos-page small,
    .ordens-servico-page small,
    .checklist-page small,
    .cadastros-page small,
    .os-page small {
        font-size: 9px !important;
    }

    /* Textos auxiliares que estavam muito pequenos */
    small,
    .text-muted,
    .help-text,
    .field-help,
    .form-help,
    .hint,
    .helper-text {
        font-size: 9px;
    }
}

/* Mantém a impressão com as proporções próprias dos documentos */
@media print {
    body {
        font-size: inherit;
    }
}


/* =========================================================
   DASHBOARD - VALORES SEM CORTE V42
========================================================= */

.dashboard-kpi {
    gap: 10px;
}

.dashboard-kpi > div {
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-kpi > div > strong {
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
    line-height: 1.08 !important;
}

.dashboard-kpi-icon {
    flex: 0 0 39px;
}

/*
 * Em telas menores os cards continuam responsivos.
 * O JavaScript reduz somente o número que precisar.
 */
@media (max-width: 1460px) {
    .dashboard-kpi > div > strong {
        font-size: 21px !important;
    }
}

@media (max-width: 980px) {
    .dashboard-kpi > div > strong {
        font-size: 22px !important;
    }
}

@media (max-width: 580px) {
    .dashboard-kpi > div > strong {
        font-size: 24px !important;
    }
}


/* =========================================================
   RELATÓRIOS - VALORES COMPLETOS NOS CARDS V43
========================================================= */

.reports-metrics {
    align-items: stretch;
}

.reports-metric-card {
    min-height: 124px;
}

.reports-metric-card > div {
    min-width: 0;
    flex: 1 1 auto;
}

.reports-metric-card strong {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    line-height: 1.08 !important;
    font-variant-numeric: tabular-nums;
}

.reports-metric-card small {
    font-size: 13px;
    line-height: 1.35;
}

@media (max-width: 1480px) {
    .reports-metric-card strong {
        font-size: 21px !important;
    }
}

@media (max-width: 1180px) {
    .reports-metric-card strong {
        font-size: 24px !important;
    }
}


/* =========================================================
   SIDEBAR DESKTOP RECOLHÍVEL + RELATÓRIOS V44
========================================================= */

/*
|--------------------------------------------------------------------------
| Hamburguer disponível também no desktop
|--------------------------------------------------------------------------
*/

@media (min-width: 1025px) {

    .mobile-menu-button {
        display: inline-block;
        flex: 0 0 42px;
        margin-right: 12px;
    }

    .sidebar {
        transform: translateX(0);
        transition:
            transform .22s ease,
            box-shadow .22s ease;
        will-change: transform;
    }

    .app-main {
        margin-left: var(--sidebar-width);
        transition:
            margin-left .22s ease;
    }

    body.sidebar-desktop-hidden .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    body.sidebar-desktop-hidden .app-main {
        margin-left: 0;
    }

    body.sidebar-desktop-hidden .topbar {
        padding-left:
            clamp(22px, 3vw, 42px);
    }
}

/*
|--------------------------------------------------------------------------
| Botão do menu
|--------------------------------------------------------------------------
*/

.mobile-menu-button {
    transition:
        border-color .16s ease,
        background .16s ease,
        color .16s ease;
}

.mobile-menu-button:hover {
    border-color:
        rgba(255,255,255,.14);
    background:
        rgba(255,255,255,.035);
    color: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Cards dos relatórios
|--------------------------------------------------------------------------
| Não corta mais os subtítulos com "...".
| Em vez disso, usa até duas linhas.
*/

.reports-metric-card {
    min-height: 132px;
}

.reports-metric-card > div > small {
    display: -webkit-box !important;
    width: 100%;
    margin-top: 6px;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: clip !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 10px !important;
    line-height: 1.35 !important;
}

/*
|--------------------------------------------------------------------------
| Dashboard: aplica a mesma regra nos textos auxiliares
|--------------------------------------------------------------------------
*/

.dashboard-kpi > div > small {
    display: -webkit-box !important;
    width: 100%;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: clip !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.35 !important;
}

@media (max-width: 1024px) {

    /*
     * No mobile continua o comportamento original:
     * sidebar em overlay e hamburguer abre/fecha.
     */

    body.sidebar-desktop-hidden .app-main {
        margin-left: 0;
    }
}


/* =========================================================
   ORÇAMENTOS - WHATSAPP V45
========================================================= */

.row-action-icon.is-whatsapp {
    border-color: rgba(37, 211, 102, .16);
    background: rgba(37, 211, 102, .045);
    color: #63d78f;
}

.row-action-icon.is-whatsapp:hover {
    border-color: rgba(37, 211, 102, .28);
    background: rgba(37, 211, 102, .085);
    color: #7be4a2;
}

.modal-button-whatsapp {
    border-color: rgba(37, 211, 102, .18) !important;
    background: rgba(37, 211, 102, .065) !important;
    color: #79dda0 !important;
}

.modal-button-whatsapp:hover {
    border-color: rgba(37, 211, 102, .30) !important;
    background: rgba(37, 211, 102, .11) !important;
    color: #9aebb8 !important;
}

@media (max-width: 760px) {
    .orcamento-view-actions {
        flex-wrap: wrap;
    }
}
