:root {
    --navy: #10233f;
    --navy-2: #17385f;
    --blue: #1769aa;
    --blue-soft: #e9f3fb;
    --green: #18a66a;
    --red: #dc4c4c;
    --yellow: #e8a52a;

    --bg: #f4f7fb;
    --white: #ffffff;

    --text: #111c2f;
    --muted: #708096;

    --border: #e5eaf1;

    --sidebar: 255px;

    --shadow:
        0 8px 25px rgba(22, 39, 67, .06);

    --radius: 13px;
}


/* RESET */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   APP
========================================================= */

.app-shell {
    min-height: 100vh;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    width: var(--sidebar);

    padding: 24px 18px 18px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    color: #fff;

    background-image:
        linear-gradient(
            to bottom,
            rgba(10, 30, 55, 0.96) 0%,
            rgba(12, 37, 67, 0.90) 45%,
            rgba(8, 27, 50, 0.62) 72%,
            rgba(6, 22, 42, 0.35) 100%
        ),
         url("../img/fortmetal-industrial-bg.png");

    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;

    z-index: 100;
}

/* logo */

.sidebar-brand {
    height: 95px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 28px;
}

.sidebar-brand img {
    width: 190px;
    max-width: 100%;
    max-height: 86px;
    object-fit: contain;
}


/* menu */

.sidebar-menu {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.sidebar-menu a {
    height: 47px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 0 15px;

    border-radius: 8px;

    color: rgba(255,255,255,.78);

    font-size: 13px;
    font-weight: 500;

    transition: .2s ease;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}

.sidebar-menu a.active {
    background:
        linear-gradient(
            90deg,
            rgba(19,104,177,.72),
            rgba(27,83,139,.55)
        );

    color: #fff;

    box-shadow:
        inset 3px 0 #2f9ee9;
}

.menu-icon {
    width: 20px;

    display: flex;
    justify-content: center;

    font-size: 16px;
}


/* bottom */

.sidebar-slogan {
    margin: 0 15px 26px;

    color: rgba(255,255,255,.77);

    font-size: 12px;

    letter-spacing: 1px;
    line-height: 1.5;
}

.sidebar-slogan span,
.sidebar-slogan strong {
    display: block;
}

.sidebar-slogan strong {
    color: #fff;
}


.sidebar-user {
    padding: 16px 12px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-top:
        1px solid rgba(255,255,255,.10);
}

.sidebar-avatar,
.profile-avatar {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #607791;

    color: #fff;

    font-size: 12px;
    font-weight: 700;
}

.sidebar-user-info strong {
    display: block;

    font-size: 12px;
}

.sidebar-user-info span {
    display: block;

    margin-top: 2px;

    color: rgba(255,255,255,.55);

    font-size: 10px;
}


.sidebar-logout {
    height: 42px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 0 13px;

    border-top:
        1px solid rgba(255,255,255,.08);

    color: rgba(255,255,255,.72);

    font-size: 12px;
}

.sidebar-logout:hover {
    color: #fff;
}


/* =========================================================
   MAIN
========================================================= */

.main {
    min-height: 100vh;

    margin-left: var(--sidebar);
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    height: 72px;

    padding: 0 28px;

    display: flex;
    align-items: center;

    background: rgba(255,255,255,.96);

    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;

    z-index: 50;
}


.sidebar-toggle {
    width: 38px;
    height: 38px;

    margin-right: 22px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #68788d;

    cursor: pointer;
}

.sidebar-toggle:hover {
    background: #f1f4f8;
}


.top-search {
    width: 350px;

    display: flex;
    align-items: center;

    gap: 10px;

    color: #a2adbb;
}

.top-search input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 12px;
}

.top-search input::placeholder {
    color: #a6b0bd;
}


.topbar-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 18px;
}


.notification-button {
    position: relative;

    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #344258;

    font-size: 17px;

    cursor: pointer;
}

.notification-button:hover {
    background: #f3f5f8;
}

.notification-dot {
    position: absolute;

    right: 8px;
    top: 7px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #ef4b4b;

    border: 2px solid #fff;
}


.topbar-profile {
    display: flex;
    align-items: center;

    gap: 10px;
}

.profile-avatar {
    background: #10233f;
}

.profile-info strong {
    display: block;

    font-size: 11px;
}

.profile-info span {
    display: block;

    margin-top: 1px;

    color: var(--muted);

    font-size: 9px;
}

.profile-arrow {
    margin-left: 5px;

    color: #8b97a7;

    font-size: 9px;
}


/* =========================================================
   CONTENT
========================================================= */

.content {
    width: 100%;

    padding: 30px;

    max-width: 1600px;

    margin: 0 auto;
}


/* =========================================================
   DASHBOARD HEADER
========================================================= */

.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 23px;
}

.dashboard-heading h1 {
    margin: 0 0 6px;

    font-size: 25px;

    letter-spacing: -.5px;
}

.dashboard-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
}

.hello-wave {
    font-size: 20px;
}


/* =========================================================
   BUTTON
========================================================= */

.btn {
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 17px;

    border: 0;
    border-radius: 8px;

    cursor: pointer;

    font-size: 12px;
    font-weight: 650;

    transition: .2s;
}

.btn-primary {
    background:
        linear-gradient(
            135deg,
            #10233f,
            #163a64
        );

    color: #fff;

    box-shadow:
        0 7px 17px rgba(15,35,64,.16);
}

.btn-primary:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 22px rgba(15,35,64,.22);
}


/* =========================================================
   KPI
========================================================= */

.dashboard-kpis {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0,1fr));

    gap: 15px;

    margin-bottom: 17px;
}


.metric-card {
    min-height: 122px;

    padding: 17px 18px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}


.metric-top {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 15px;

    color: #5f6f83;

    font-size: 10px;
    font-weight: 600;
}


.metric-icon {
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    background: #edf4fa;

    color: #13548a;

    font-size: 11px;
}

.metric-icon.success {
    background: #eaf8f1;
    color: var(--green);
}


.metric-card > strong {
    display: block;

    margin-bottom: 8px;

    font-size: 26px;

    letter-spacing: -.7px;
}

.metric-card .metric-money {
    font-size: 21px;
}

.metric-card small {
    color: #8b97a7;

    font-size: 9px;
}

.metric-card .metric-positive {
    color: var(--green);
}


/* =========================================================
   PANELS
========================================================= */

.dashboard-panel {
    background: #fff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}


.panel-title {
    min-height: 65px;

    padding: 16px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #edf0f4;
}

.panel-title h3 {
    margin: 0 0 3px;

    font-size: 13px;
}

.panel-title p {
    margin: 0;

    color: var(--muted);

    font-size: 9px;
}

.year-badge {
    padding: 5px 9px;

    border-radius: 5px;

    background: #f2f5f8;

    color: #677589;

    font-size: 9px;
}


/* =========================================================
   CHARTS
========================================================= */

.dashboard-charts {
    display: grid;

    grid-template-columns:
        minmax(0,2fr)
        minmax(270px,.9fr);

    gap: 15px;

    margin-bottom: 17px;
}


.chart-container {
    height: 225px;

    padding: 15px 18px 18px;
}


.donut-area {
    min-height: 225px;

    display: flex;
    align-items: center;

    padding: 20px;
}


.donut-container {
    position: relative;

    width: 145px;
    height: 145px;

    flex: 0 0 145px;
}

.donut-center {
    position: absolute;

    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    pointer-events: none;
}

.donut-center strong {
    font-size: 22px;
}

.donut-center span {
    color: var(--muted);

    font-size: 9px;
}


.status-legend {
    flex: 1;

    margin-left: 18px;
}

.status-legend > div {
    display: grid;

    grid-template-columns:
        8px 1fr auto;

    align-items: center;

    gap: 7px;

    padding: 6px 0;

    font-size: 9px;
}

.legend-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
}

.legend-dot.approved {
    background: var(--green);
}

.legend-dot.sent {
    background: #4f8dcc;
}

.legend-dot.rejected {
    background: var(--red);
}


/* =========================================================
   TABLE
========================================================= */

.proposals-panel {
    margin-bottom: 20px;
}

.view-all {
    color: #14558b;

    font-size: 10px;
    font-weight: 600;
}

.view-all i {
    margin-left: 5px;

    font-size: 8px;
}


.dashboard-table {
    overflow-x: auto;
}

.dashboard-table table {
    width: 100%;

    border-collapse: collapse;
}

.dashboard-table th {
    padding: 10px 18px;

    background: #fafbfd;

    color: #8390a1;

    text-align: left;

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.dashboard-table td {
    padding: 12px 18px;

    border-top: 1px solid #edf0f4;

    color: #334158;

    font-size: 10px;
}

.dashboard-table tbody tr:hover {
    background: #fbfcfe;
}

.revision {
    margin-left: 4px;

    color: #9ba6b4;

    font-size: 8px;
}


.status {
    display: inline-flex;

    padding: 4px 8px;

    border-radius: 5px;

    font-size: 8px;
    font-weight: 650;
}

.status-aprovada {
    background: #def5e9;
    color: #168654;
}

.status-enviada {
    background: #e2effa;
    color: #286898;
}

.status-recusada {
    background: #fbe6e6;
    color: #c34444;
}

.status-rascunho {
    background: #eef1f5;
    color: #677589;
}

.table-actions {
    width: 40px;

    text-align: center;
}


/* =========================================================
   EMPTY
========================================================= */

.dashboard-empty {
    min-height: 210px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 25px;

    text-align: center;
}

.empty-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 10px;

    background: #edf4fa;

    color: #1b5b91;

    font-size: 17px;
}

.dashboard-empty h3 {
    margin: 0 0 5px;

    font-size: 13px;
}

.dashboard-empty p {
    margin: 0 0 14px;

    color: var(--muted);

    font-size: 10px;
}


/* =========================================================
   QUICK ACCESS
========================================================= */

.quick-section > h3 {
    margin: 0 0 11px;

    font-size: 13px;
}


.quick-grid {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 13px;
}


.quick-card {
    min-height: 83px;

    padding: 14px;

    display: flex;
    align-items: center;

    gap: 12px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 10px;

    transition: .2s;

    box-shadow:
        0 3px 12px rgba(20,39,68,.035);
}

.quick-card:hover {
    transform: translateY(-2px);

    box-shadow: var(--shadow);
}


.quick-card.featured {
    color: #fff;

    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            #102f55,
            #174c7e
        );
}


.quick-icon {
    width: 37px;
    height: 37px;

    flex: 0 0 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #edf4fa;

    color: #14588f;

    font-size: 14px;
}

.quick-card.featured .quick-icon {
    background: rgba(255,255,255,.12);

    color: #fff;
}


.quick-card strong {
    display: block;

    margin-bottom: 3px;

    font-size: 11px;
}

.quick-card span {
    display: block;

    color: var(--muted);

    font-size: 8px;
}

.quick-card.featured span {
    color: rgba(255,255,255,.65);
}

.quick-arrow {
    margin-left: auto;

    font-size: 10px;
}


/* =========================================================
   COMPATIBILIDADE COM OUTRAS TELAS DO SISTEMA
========================================================= */

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 22px;
}

.page-head h1 {
    margin: 0 0 5px;

    font-size: 24px;
}

.page-head p {
    margin: 0;

    color: var(--muted);

    font-size: 11px;
}


.card,
.form-card,
.table-wrap {
    background: #fff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}


.form-card {
    padding: 22px;
}


.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 17px;
}


.field {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.field.full {
    grid-column: 1/-1;
}

.field label {
    color: #47566a;

    font-size: 10px;
    font-weight: 650;
}


input,
select,
textarea {
    width: 100%;

    min-height: 41px;

    padding: 9px 11px;

    border: 1px solid #dce2ea;
    border-radius: 7px;

    outline: 0;

    background: #fff;

    color: var(--text);
}

textarea {
    min-height: 110px;

    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #4282b7;

    box-shadow:
        0 0 0 3px rgba(36,103,158,.08);
}


.table-wrap {
    overflow-x: auto;
}

.table-wrap table {
    width: 100%;

    border-collapse: collapse;
}

.table-wrap th {
    padding: 11px 15px;

    background: #fafbfd;

    color: #8190a3;

    text-align: left;

    font-size: 9px;

    text-transform: uppercase;
}

.table-wrap td {
    padding: 13px 15px;

    border-top: 1px solid #edf0f4;

    font-size: 11px;
}


/* =========================================================
   LOGIN
========================================================= */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            rgba(9,28,52,.97),
            rgba(19,60,96,.92)
        );

    padding: 25px;
}

.login-card {
    width: 100%;
    max-width: 390px;

    padding: 35px;

    background: #fff;

    border-radius: 16px;

    box-shadow:
        0 25px 60px rgba(0,0,0,.22);
}

.login-card img {
    display: block;

    width: 200px;

    margin: 0 auto 25px;
}

.login-card h2 {
    margin-bottom: 23px;

    text-align: center;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1100px) {

    .dashboard-kpis {
        grid-template-columns:
            repeat(2,1fr);
    }

    .dashboard-charts {
        grid-template-columns: 1fr;
    }

}


@media(max-width:850px) {

    :root {
        --sidebar: 76px;
    }

    .sidebar {
        padding-left: 10px;
        padding-right: 10px;
    }

    .sidebar-brand img {
        width: 55px;
    }

    .sidebar-menu a {
        justify-content: center;

        padding: 0;

        font-size: 0;
    }

    .sidebar-slogan,
    .sidebar-user-info,
    .sidebar-logout span {
        display: none;
    }

    .sidebar-user {
        justify-content: center;
    }

    .sidebar-logout {
        justify-content: center;
    }

    .top-search {
        width: 230px;
    }

}


@media(max-width:650px) {

    :root {
        --sidebar: 0px;
    }

    .sidebar {
        display: none;
    }

    .content {
        padding: 20px;
    }

    .top-search {
        display: none;
    }

    .profile-info,
    .profile-arrow {
        display: none;
    }

    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 15px;
    }

    .dashboard-kpis,
    .quick-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   PERFIL - DROPDOWN
========================================================= */

.profile-dropdown {
    position: relative;
}


/* mantém exatamente o visual original do perfil */

.profile-dropdown .topbar-profile {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0;

    border: 0;
    background: transparent;

    color: inherit;
    cursor: pointer;

    text-align: left;
    font-family: inherit;
}


.profile-dropdown .topbar-profile:hover {
    background: transparent;
}


.profile-dropdown .profile-arrow {
    margin-left: 5px;

    color: #8b97a7;

    font-size: 9px;

    transition: transform .2s ease;
}


.profile-dropdown.open .profile-arrow {
    transform: rotate(180deg);
}


/* caixa que abre */

.profile-dropdown-menu {
    position: absolute;

    top: calc(100% + 16px);
    right: 0;

    width: 245px;

    padding: 8px;

    background: #ffffff;

    border: 1px solid #e5eaf1;
    border-radius: 12px;

    box-shadow:
        0 18px 45px rgba(20, 35, 60, .14);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-6px);

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;

    z-index: 1000;
}


.profile-dropdown.open .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* opções */

.profile-dropdown-menu a {
    min-height: 56px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 9px 10px;

    border-radius: 8px;

    text-decoration: none;

    transition: background .15s ease;
}


.profile-dropdown-menu a:hover {
    background: #f4f7fa;
}


.dropdown-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #edf4fa;

    color: #174e7e;
}


.profile-dropdown-menu strong {
    display: block;

    color: #172438;

    font-size: 11px;
}


.profile-dropdown-menu small {
    display: block;

    margin-top: 2px;

    color: #8491a2;

    font-size: 9px;
}


.dropdown-divider {
    height: 1px;

    margin: 6px 5px;

    background: #edf0f4;
}


.profile-dropdown-menu .dropdown-logout:hover {
    background: #fff3f3;
}


.dropdown-logout .dropdown-icon {
    background: #fcecec;
    color: #c84747;
}


.dropdown-logout strong {
    color: #c84747;
}
.sidebar-toggle {
    display: none;
}

@media (max-width: 650px) {
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
} 

/* =========================================================
   BUSCA GLOBAL
========================================================= */

.top-search {
    position: relative;
}


.global-search-results {
    position: absolute;

    top: calc(100% + 20px);
    left: -10px;

    width: 430px;
    max-height: 470px;

    overflow-y: auto;

    padding: 8px;

    background: #fff;

    border: 1px solid #e5eaf1;
    border-radius: 12px;

    box-shadow:
        0 20px 50px rgba(20, 35, 60, .16);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-5px);

    transition:
        opacity .15s ease,
        visibility .15s ease,
        transform .15s ease;

    z-index: 1500;
}


.global-search-results.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* título de cada grupo */

.search-section-title {
    padding: 10px 11px 6px;

    color: #8995a5;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .7px;
}


/* resultado */

.search-result-item {
    min-height: 58px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 9px 10px;

    border-radius: 8px;

    cursor: pointer;

    transition: background .15s ease;
}


.search-result-item:hover {
    background: #f4f7fa;
}


.search-result-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #edf4fa;

    color: #17598d;

    font-size: 13px;
}


.search-result-icon.client {
    background: #eef7f4;
    color: #248361;
}


.search-result-info {
    min-width: 0;
    flex: 1;
}


.search-result-info strong {
    display: block;

    overflow: hidden;

    color: #18263a;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.search-result-info span {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    color: #7e8b9d;

    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.search-result-value {
    margin-left: auto;

    color: #526174;

    font-size: 9px;
    font-weight: 600;
}


.search-divider {
    height: 1px;

    margin: 6px 8px;

    background: #edf0f4;
}


/* carregando */

.search-loading {
    padding: 25px;

    color: #8390a1;

    text-align: center;

    font-size: 10px;
}


/* nenhum resultado */

.search-empty {
    padding: 28px 20px;

    text-align: center;
}


.search-empty i {
    display: block;

    margin-bottom: 9px;

    color: #aab4c1;

    font-size: 20px;
}


.search-empty strong {
    display: block;

    color: #344257;

    font-size: 11px;
}


.search-empty span {
    display: block;

    margin-top: 4px;

    color: #8b97a7;

    font-size: 9px;
}


/* mobile */

@media (max-width: 650px) {

    .global-search-results {
        position: fixed;

        top: 70px;
        left: 15px;
        right: 15px;

        width: auto;
    }

}

/* =========================================================
   CLIENTES
========================================================= */

.clients-page,
.client-form-page {
    max-width: 1450px;
    margin: 0 auto;
}

.page-eyebrow {
    margin-bottom: 5px;
    color: #2770a8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.clients-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
}

.clients-heading h1,
.client-form-heading h1 {
    margin: 0 0 5px;
    color: #101e32;
    font-size: 26px;
    letter-spacing: -.6px;
}

.clients-heading p,
.client-form-heading p {
    margin: 0;
    color: #7b899b;
    font-size: 11px;
}


/* =========================================================
   CLIENTES - KPI / FILTROS RÁPIDOS
========================================================= */

.clients-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.clients-kpis-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-kpi {
    min-height: 110px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    box-shadow: 0 7px 24px rgba(21, 38, 65, .045);
}

.client-kpi-link {
    position: relative;
    color: inherit;
    cursor: pointer;
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.client-kpi-link:hover {
    transform: translateY(-2px);
    border-color: #ced9e5;
    box-shadow: 0 10px 28px rgba(21, 38, 65, .09);
}

.client-kpi-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf3f9;
    color: #173d65;
    font-size: 15px;
}

.client-kpi-icon.blue {
    background: #eaf4fb;
    color: #1e6da5;
}

.client-kpi-icon.green {
    background: #e9f8f0;
    color: #1b9862;
}

.client-kpi span {
    display: block;
    margin-bottom: 5px;
    color: #718095;
    font-size: 9px;
    font-weight: 600;
}

.client-kpi strong {
    display: block;
    color: #122137;
    font-size: 22px;
    letter-spacing: -.4px;
}

.client-kpi small {
    display: block;
    margin-top: 4px;
    color: #9aa5b3;
    font-size: 8px;
}

.client-kpi-arrow {
    width: 30px;
    height: 30px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #9ba7b5;
    font-size: 9px;
    transition: .18s ease;
}

.client-kpi-link:hover .client-kpi-arrow {
    background: #edf4fa;
    color: #1769aa;
    transform: translateX(2px);
}

.client-kpi-link.active {
    border-color: #b9cee0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f9fc 100%);
    box-shadow: 0 8px 25px rgba(23, 73, 112, .09);
}

.client-kpi-link.active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #1769aa;
}

.client-kpi-link.active .client-kpi-arrow {
    background: #e7f1f8;
    color: #1769aa;
}


/* =========================================================
   CLIENTES - PAINEL
========================================================= */

.clients-panel {
    overflow: visible;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 13px;
    box-shadow: 0 8px 28px rgba(22, 39, 67, .05);
}

.clients-panel-header {
    padding: 18px 20px 14px;
}

.clients-panel-header h2 {
    margin: 0 0 4px;
    color: #152338;
    font-size: 14px;
}

.clients-panel-header p {
    margin: 0;
    color: #8995a5;
    font-size: 9px;
}


/* =========================================================
   CLIENTES - BUSCA E FILTROS
========================================================= */

.clients-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 17px;
}

.clients-search {
    position: relative;
    flex: 1;
}

.clients-search i {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    color: #9aa5b3;
    font-size: 11px;
}

.clients-search input {
    height: 40px;
    min-height: 40px;
    padding-left: 36px;
    background: #fafbfd;
}

.clients-filter {
    position: relative;
    width: 175px;
}

.clients-filter > i {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 1;
    transform: translateY(-50%);
    color: #8d99a8;
    font-size: 10px;
    pointer-events: none;
}

.clients-filter select {
    height: 40px;
    min-height: 40px;
    padding-left: 32px;
    background: #fafbfd;
}

.clients-filter-button {
    height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dfe5ec;
    border-radius: 7px;
    background: #fff;
    color: #405168;
    cursor: pointer;
    font-size: 10px;
    font-weight: 650;
}

.clients-filter-button:hover {
    background: #f5f7fa;
}

.clients-clear-filter {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e5eb;
    border-radius: 7px;
    color: #778598;
}


/* =========================================================
   CLIENTES - TABELA
========================================================= */

.clients-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    border-top: 1px solid #edf0f4;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
}

.clients-table th {
    padding: 11px 18px;
    background: #fafbfd;
    color: #8a96a6;
    text-align: left;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.clients-table td {
    padding: 14px 18px;
    border-top: 1px solid #eef1f5;
    color: #3d4b60;
    vertical-align: middle;
    font-size: 10px;
}

.clients-table tbody tr {
    transition: background .15s;
}

.clients-table tbody tr:hover {
    background: #fbfcfe;
}

.client-company {
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.client-company-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #17385f, #205987);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}

.client-company-name {
    display: block;
    margin-bottom: 3px;
    color: #17263a;
    font-size: 10px;
    font-weight: 700;
}

.client-company-name:hover {
    color: #1769aa;
}

.client-company-info span,
.client-muted {
    color: #929dab;
    font-size: 8px;
}

.client-contact strong {
    display: block;
    margin-bottom: 4px;
    color: #37465b;
    font-size: 9px;
}

.client-contact span {
    display: block;
    margin-top: 3px;
    color: #8793a2;
    font-size: 8px;
}

.client-contact span i {
    width: 12px;
    color: #a3adba;
}

.client-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #657489;
}

.client-location i {
    color: #9ba7b5;
    font-size: 9px;
}

.proposal-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.proposal-counter strong {
    color: #173d65;
    font-size: 12px;
}

.proposal-counter span {
    color: #8a96a5;
    font-size: 8px;
}


/* =========================================================
   CLIENTES - MENU DOS TRÊS PONTINHOS
========================================================= */

.client-actions-cell {
    width: 55px;
    overflow: visible;
}

.client-actions {
    position: relative;
}

.client-actions-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #7f8c9d;
    cursor: pointer;
}

.client-actions-button:hover,
.client-actions.open .client-actions-button {
    background: #edf2f7;
    color: #173d65;
}

.client-actions-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    z-index: 1000;
    width: 175px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 9px;
    box-shadow: 0 14px 35px rgba(19, 35, 58, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition:
        opacity .15s ease,
        visibility .15s ease,
        transform .15s ease;
}

/* Nas duas últimas linhas o menu abre para cima */
.clients-table tbody tr:nth-last-child(-n+2) .client-actions-menu {
    top: auto;
    bottom: calc(100% + 5px);
    transform: translateY(4px);
}

.client-actions.open .client-actions-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.client-actions-menu a {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    border-radius: 6px;
    color: #45556a;
    font-size: 9px;
    font-weight: 550;
}

.client-actions-menu a:hover {
    background: #f3f6f9;
}

.client-actions-menu i {
    width: 14px;
    color: #6e7e91;
}


/* =========================================================
   CLIENTES - ESTADO VAZIO
========================================================= */

.clients-empty {
    min-height: 280px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #edf0f4;
    text-align: center;
}

.clients-empty-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #edf4fa;
    color: #1b5c91;
    font-size: 18px;
}

.clients-empty h3 {
    margin: 0 0 5px;
    font-size: 13px;
}

.clients-empty p {
    max-width: 380px;
    margin: 0 0 16px;
    color: #8995a5;
    font-size: 10px;
}

.clients-secondary-button {
    border: 1px solid #dfe5ec;
    background: #fff;
    color: #405168;
}


/* =========================================================
   FORMULÁRIO DE CLIENTE
========================================================= */

.client-form-page {
    max-width: 950px;
}

.client-form-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.client-back {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e6ed;
    border-radius: 9px;
    background: #fff;
    color: #53647a;
    box-shadow: 0 4px 12px rgba(20, 37, 62, .035);
}

.client-back:hover {
    color: #153c63;
    background: #f8fafc;
}

.premium-client-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.client-form-card {
    padding: 22px;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 13px;
    box-shadow: 0 7px 24px rgba(20, 38, 64, .045);
}

.client-form-card-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf0f4;
}

.form-section-icon {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #edf4fa;
    color: #195b90;
    font-size: 13px;
}

.client-form-card-title h2 {
    margin: 0 0 3px;
    color: #17263a;
    font-size: 13px;
}

.client-form-card-title p {
    margin: 0;
    color: #8c98a7;
    font-size: 9px;
}

.client-premium-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.client-premium-grid .field label span {
    color: #d94a4a;
}

.client-form-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 7px 0 20px;
}

.client-cancel-button {
    height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 17px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
    color: #59697e;
    font-size: 10px;
    font-weight: 650;
}

.client-save-button {
    min-width: 150px;
}

.client-form-error {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #f1cccc;
    border-radius: 8px;
    background: #fff2f2;
    color: #b84141;
    font-size: 10px;
}


/* =========================================================
   FORMULÁRIO - TIPO DE CLIENTE
========================================================= */

.person-type-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.person-type-option {
    cursor: pointer;
}

.person-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.person-type-card {
    position: relative;
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    background: #fff;
    transition: .18s ease;
}

.person-type-option:hover .person-type-card {
    border-color: #b9cad9;
    background: #fafcfe;
}

.person-type-option input:checked + .person-type-card {
    border-color: #286c9f;
    background: linear-gradient(135deg, #f7fbfe, #edf6fc);
    box-shadow: 0 5px 18px rgba(26, 91, 140, .08);
}

.person-type-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eef3f8;
    color: #244d73;
    font-size: 15px;
}

.person-type-option input:checked + .person-type-card .person-type-icon {
    background: #dcecf7;
    color: #17659d;
}

.person-type-card strong {
    display: block;
    margin-bottom: 4px;
    color: #1c2c40;
    font-size: 10px;
}

.person-type-card small {
    display: block;
    color: #8995a5;
    font-size: 8px;
}

.person-type-check {
    width: 21px;
    height: 21px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce3ea;
    border-radius: 50%;
    color: transparent;
    font-size: 8px;
}

.person-type-option input:checked + .person-type-card .person-type-check {
    border-color: #2372a8;
    background: #2372a8;
    color: #fff;
}


/* =========================================================
   FORMULÁRIO - CONSULTA CNPJ
========================================================= */

.document-lookup {
    display: flex;
    gap: 9px;
}

.document-lookup input {
    flex: 1;
}

.document-lookup-button {
    min-width: 135px;
    padding: 0 15px;
    border: 0;
    border-radius: 7px;
    background: #183b61;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    transition: .18s ease;
}

.document-lookup-button:hover {
    background: #205681;
}

.document-lookup-button:disabled {
    opacity: .65;
    cursor: wait;
}

.cnpj-status,
.cpf-status {
    min-height: 17px;
    margin-top: 6px;
    font-size: 8px;
}

.cnpj-status.success,
.cpf-status.success {
    color: #16845a;
}

.cnpj-status.error,
.cpf-status.error {
    color: #c54949;
}

.cnpj-status.loading {
    color: #708095;
}


/* =========================================================
   FORMULÁRIO - VALIDAÇÃO CPF
========================================================= */

.input-error {
    border-color: #dc6a6a !important;
    box-shadow: 0 0 0 3px rgba(220, 106, 106, .08) !important;
}


/* =========================================================
   CLIENTES - RESPONSIVO
========================================================= */

@media (min-width: 901px) {
    .clients-panel,
    .clients-table-wrap {
        overflow: visible;
    }
}

@media (max-width: 1050px) {
    .clients-kpis,
    .clients-kpis-three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .clients-kpis,
    .clients-kpis-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .clients-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .clients-heading .btn {
        width: 100%;
    }

    .clients-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .clients-filter {
        width: 100%;
    }

    .clients-filter-button {
        justify-content: center;
    }

    .client-premium-grid {
        grid-template-columns: 1fr;
    }

    .client-form-footer {
        flex-direction: column-reverse;
    }

    .client-form-footer > * {
        width: 100%;
        justify-content: center;
    }

    .person-type-selector {
        grid-template-columns: 1fr;
    }

    .document-lookup {
        flex-direction: column;
    }

    .document-lookup-button {
        min-height: 40px;
    }
}

/* =========================================================
   VER CLIENTE
========================================================= */

.client-view-page {
    max-width: 1450px;
    margin: 0 auto;
}


/* TOPO */

.client-view-top {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.client-view-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6e7d90;
    font-size: 10px;
    font-weight: 600;
}

.client-view-back i {
    font-size: 9px;
}

.client-view-back:hover {
    color: #174f7d;
}

.client-view-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.client-view-secondary-button {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
    color: #46576c;
    font-size: 10px;
    font-weight: 650;
}

.client-view-secondary-button:hover {
    background: #f7f9fb;
}


/* HERO */

.client-profile-hero {
    position: relative;
    overflow: hidden;
    min-height: 165px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 28px;
    border-radius: 14px;
    background:
        linear-gradient(
            120deg,
            #10233f 0%,
            #163d67 55%,
            #1c5785 100%
        );
    box-shadow:
        0 12px 30px rgba(15, 35, 64, .13);
}

.client-profile-hero::after {
    content: "";
    position: absolute;
    right: -65px;
    top: -105px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.client-profile-hero::before {
    content: "";
    position: absolute;
    right: 75px;
    bottom: -155px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 50%;
}

.client-profile-main {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
}

.client-profile-avatar {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 17px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -.7px;
    backdrop-filter: blur(5px);
}

.client-profile-tags {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}

.client-type-badge,
.client-active-badge {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 650;
}

.client-type-badge {
    background: rgba(255,255,255,.13);
    color: rgba(255,255,255,.88);
}

.client-active-badge {
    background: rgba(33,190,126,.14);
    color: #a9efd0;
}

.client-active-badge > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #5bdaa2;
}

.client-profile-identity h1 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 25px;
    letter-spacing: -.5px;
}

.client-trade-name {
    margin: 0 0 9px;
    color: rgba(255,255,255,.65);
    font-size: 10px;
}

.client-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.client-profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.68);
    font-size: 9px;
}

.client-profile-meta i {
    color: rgba(255,255,255,.48);
}


/* KPIS */

.client-view-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 13px;
    margin-bottom: 15px;
}

.client-view-kpi {
    min-height: 91px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e4e9f0;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(20,38,64,.04);
}

.client-view-kpi-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #edf4fa;
    color: #195b90;
    font-size: 13px;
}

.client-view-kpi-icon.success {
    background: #e9f8f0;
    color: #18875a;
}

.client-view-kpi-icon.sent {
    background: #eaf3fb;
    color: #3477ac;
}

.client-view-kpi-icon.draft {
    background: #f1f3f6;
    color: #65758a;
}

.client-view-kpi span {
    display: block;
    margin-bottom: 4px;
    color: #8491a2;
    font-size: 8px;
    font-weight: 600;
}

.client-view-kpi strong {
    color: #15243a;
    font-size: 20px;
}


/* DETALHES */

.client-view-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.client-detail-card {
    padding: 20px;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(20,38,64,.04);
}

.client-detail-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf0f4;
}

.client-detail-heading-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #edf4fa;
    color: #195b90;
    font-size: 12px;
}

.client-detail-heading h2 {
    margin: 0 0 3px;
    color: #17263a;
    font-size: 12px;
}

.client-detail-heading p {
    margin: 0;
    color: #8b97a7;
    font-size: 8px;
}

.client-detail-list {
    display: flex;
    flex-direction: column;
}

.client-detail-item {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.client-detail-item + .client-detail-item {
    border-top: 1px solid #f0f2f5;
}

.client-detail-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #f5f7fa;
    color: #7d8b9c;
    font-size: 10px;
}

.client-detail-item span {
    display: block;
    margin-bottom: 3px;
    color: #909baa;
    font-size: 8px;
}

.client-detail-item strong {
    display: block;
    color: #35445a;
    font-size: 9px;
    font-weight: 650;
}

.client-detail-item strong.client-detail-empty {
    color: #a1aab6;
    font-weight: 500;
}


/* PROPOSTAS */

.client-proposals-card {
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e4e9f0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(20,38,64,.045);
}

.client-proposals-heading {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 20px;
}

.client-proposals-heading h2 {
    margin: 0 0 4px;
    color: #17263a;
    font-size: 13px;
}

.client-proposals-heading p {
    margin: 0;
    color: #8a96a5;
    font-size: 8px;
}

.client-add-proposal {
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border: 1px solid #dce4eb;
    border-radius: 7px;
    color: #34516e;
    font-size: 9px;
    font-weight: 650;
}

.client-add-proposal:hover {
    background: #f5f8fa;
}

.client-proposals-table-wrap {
    overflow-x: auto;
    border-top: 1px solid #edf0f4;
}

.client-proposals-table {
    width: 100%;
    border-collapse: collapse;
}

.client-proposals-table th {
    padding: 10px 18px;
    background: #fafbfd;
    color: #8c98a8;
    text-align: left;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.client-proposals-table td {
    padding: 13px 18px;
    border-top: 1px solid #eef1f5;
    color: #657489;
    font-size: 9px;
}

.client-proposal-number {
    color: #193e64;
    font-size: 10px;
    font-weight: 700;
}

.client-proposal-number small {
    margin-left: 4px;
    color: #98a3b0;
    font-size: 7px;
}

.client-proposal-status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 650;
}

.client-proposal-status.approved {
    background: #e3f6ec;
    color: #178555;
}

.client-proposal-status.sent {
    background: #e6f1fa;
    color: #3473a3;
}

.client-proposal-status.rejected {
    background: #fbe8e8;
    color: #c24747;
}

.client-proposal-status.draft {
    background: #eef1f5;
    color: #69778a;
}

.client-proposal-value {
    color: #35455a;
    font-size: 9px;
}

.client-proposal-action {
    width: 45px;
    text-align: right;
}

.client-proposal-action a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #718095;
}

.client-proposal-action a:hover {
    background: #edf3f8;
    color: #174f7d;
}


/* SEM PROPOSTAS */

.client-proposals-empty {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-top: 1px solid #edf0f4;
    text-align: center;
}

.client-proposals-empty > div {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 11px;
    background: #edf4fa;
    color: #1a5a8e;
    font-size: 17px;
}

.client-proposals-empty h3 {
    margin: 0 0 5px;
    color: #25364b;
    font-size: 12px;
}

.client-proposals-empty p {
    max-width: 380px;
    margin: 0 0 15px;
    color: #8b97a7;
    font-size: 9px;
}


/* RESPONSIVO */

@media (max-width: 1000px) {

    .client-view-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 700px) {

    .client-view-top {
        align-items: stretch;
        flex-direction: column;
    }

    .client-view-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .client-profile-hero {
        padding: 22px;
    }

    .client-profile-main {
        align-items: flex-start;
    }

    .client-view-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 520px) {

    .client-view-actions {
        grid-template-columns: 1fr;
    }

    .client-view-actions > * {
        width: 100%;
    }

    .client-profile-main {
        flex-direction: column;
    }

    .client-view-kpis {
        grid-template-columns: 1fr;
    }

    .client-proposals-heading {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* =========================================================
   AJUSTE GLOBAL DE LEGIBILIDADE
   Títulos principais permanecem como estão
========================================================= */


/* ---------------------------------------------------------
   DASHBOARD
--------------------------------------------------------- */

/* títulos internos dos painéis */
.panel-title h3,
.quick-section > h3,
.dashboard-empty h3 {
    font-size: 16px;
}

/* informações secundárias */
.panel-title p {
    font-size: 11px;
}

.metric-top {
    font-size: 12px;
}

.metric-card small {
    font-size: 11px;
}

.year-badge {
    font-size: 11px;
}

.status-legend > div {
    font-size: 11px;
}

.donut-center span {
    font-size: 11px;
}

.dashboard-table th {
    font-size: 10px;
}

.dashboard-table td {
    font-size: 12px;
}

.revision {
    font-size: 10px;
}

.status {
    font-size: 10px;
}

.view-all {
    font-size: 12px;
}

.quick-card strong {
    font-size: 14px;
}

.quick-card span {
    font-size: 10px;
}

.dashboard-empty p {
    font-size: 12px;
}


/* ---------------------------------------------------------
   CLIENTES - LISTAGEM
--------------------------------------------------------- */

/* NÃO altera .clients-heading h1 */

.page-eyebrow {
    font-size: 11px;
}

.clients-heading p {
    font-size: 13px;
}

.client-kpi span {
    font-size: 11px;
}

.client-kpi small {
    font-size: 10px;
}

.clients-panel-header h2 {
    font-size: 17px;
}

.clients-panel-header p {
    font-size: 11px;
}

.clients-filter-button {
    font-size: 12px;
}

.clients-table th {
    font-size: 10px;
}

.clients-table td {
    font-size: 12px;
}

.client-company-name {
    font-size: 12px;
}

.client-company-info span,
.client-muted {
    font-size: 10px;
}

.client-contact strong {
    font-size: 11px;
}

.client-contact span {
    font-size: 10px;
}

.client-location {
    font-size: 12px;
}

.proposal-counter span {
    font-size: 10px;
}

.client-actions-menu a {
    font-size: 11px;
}

.clients-empty h3 {
    font-size: 16px;
}

.clients-empty p {
    font-size: 12px;
}


/* ---------------------------------------------------------
   FORMULÁRIO DE CLIENTE
--------------------------------------------------------- */

/* NÃO altera .client-form-heading h1 */

.client-form-heading p {
    font-size: 13px;
}

.client-form-card-title h2 {
    font-size: 16px;
}

.client-form-card-title p {
    font-size: 11px;
}

.field label {
    font-size: 12px;
}

input,
select,
textarea {
    font-size: 12px;
}

.client-cancel-button {
    font-size: 12px;
}

.client-form-error {
    font-size: 12px;
}

.person-type-card strong {
    font-size: 12px;
}

.person-type-card small {
    font-size: 10px;
}

.document-lookup-button {
    font-size: 11px;
}

.cnpj-status,
.cpf-status {
    font-size: 10px;
}


/* ---------------------------------------------------------
   VER CLIENTE
--------------------------------------------------------- */

/* NÃO altera o nome grande do cliente */

.client-view-back {
    font-size: 12px;
}

.client-view-secondary-button {
    font-size: 12px;
}

.client-type-badge,
.client-active-badge {
    font-size: 10px;
}

.client-trade-name {
    font-size: 12px;
}

.client-profile-meta span {
    font-size: 11px;
}


/* cards de resumo */

.client-view-kpi span {
    font-size: 10px;
}


/* títulos internos +3px */

.client-detail-heading h2 {
    font-size: 15px;
}

.client-detail-heading p {
    font-size: 10px;
}


/* informações do cliente +2px */

.client-detail-item span {
    font-size: 10px;
}

.client-detail-item strong {
    font-size: 11px;
}


/* propostas */

.client-proposals-heading h2 {
    font-size: 16px;
}

.client-proposals-heading p {
    font-size: 10px;
}

.client-add-proposal {
    font-size: 11px;
}

.client-proposals-table th {
    font-size: 10px;
}

.client-proposals-table td {
    font-size: 11px;
}

.client-proposal-number {
    font-size: 12px;
}

.client-proposal-number small {
    font-size: 9px;
}

.client-proposal-status {
    font-size: 10px;
}

.client-proposal-value {
    font-size: 11px;
}

.client-proposals-empty h3 {
    font-size: 15px;
}

.client-proposals-empty p {
    font-size: 11px;
}


/* ---------------------------------------------------------
   BUSCA GLOBAL
--------------------------------------------------------- */

.search-section-title {
    font-size: 11px;
}

.search-result-info strong {
    font-size: 13px;
}

.search-result-info span {
    font-size: 11px;
}

.search-result-value {
    font-size: 11px;
}

.search-loading {
    font-size: 12px;
}

.search-empty strong {
    font-size: 13px;
}

.search-empty span {
    font-size: 11px;
}


/* ---------------------------------------------------------
   DROPDOWN DO PERFIL
--------------------------------------------------------- */

.profile-dropdown-menu strong {
    font-size: 13px;
}

.profile-dropdown-menu small {
    font-size: 11px;
}

/* =========================================================
   PROPOSTAS
========================================================= */

.proposals-page {
    max-width: 1450px;
    margin: 0 auto;
}


/* CABEÇALHO */

.proposals-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
}

.proposals-heading h1 {
    margin: 0 0 5px;
    color: #101e32;
    font-size: 26px;
    letter-spacing: -.6px;
}

.proposals-heading p {
    margin: 0;
    color: #7b899b;
    font-size: 13px;
}

.proposals-new-button {
    min-width: 145px;
}


/* =========================================================
   CARDS
========================================================= */

.proposals-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.proposal-kpi {
    position: relative;
    min-height: 110px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 18px;

    border: 1px solid #e5eaf1;
    border-radius: 12px;

    background: #fff;

    box-shadow:
        0 7px 24px rgba(21, 38, 65, .045);
}

.proposal-kpi-link {
    color: inherit;
    cursor: pointer;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.proposal-kpi-link:hover {
    transform: translateY(-2px);

    border-color: #ced9e5;

    box-shadow:
        0 10px 28px rgba(21, 38, 65, .09);
}


.proposal-kpi-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #edf3f9;

    color: #173d65;

    font-size: 15px;
}

.proposal-kpi-icon.draft {
    background: #f1f3f6;
    color: #66768a;
}

.proposal-kpi-icon.sent {
    background: #eaf4fb;
    color: #1e6da5;
}

.proposal-kpi-icon.approved {
    background: #e9f8f0;
    color: #1b9862;
}


.proposal-kpi-content {
    min-width: 0;
}

.proposal-kpi-content span {
    display: block;

    margin-bottom: 5px;

    color: #718095;

    font-size: 11px;
    font-weight: 600;
}

.proposal-kpi-content strong {
    display: block;

    color: #122137;

    font-size: 22px;

    letter-spacing: -.4px;
}

.proposal-kpi-content small {
    display: block;

    margin-top: 4px;

    color: #9aa5b3;

    font-size: 10px;
}


.proposal-kpi-arrow {
    width: 30px;
    height: 30px;

    margin-left: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    color: #9ba7b5;

    font-size: 9px;

    transition: .18s ease;
}

.proposal-kpi-link:hover .proposal-kpi-arrow {
    background: #edf4fa;
    color: #1769aa;

    transform: translateX(2px);
}


/* CARD ATIVO */

.proposal-kpi-link.active {
    border-color: #b9cee0;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f5f9fc 100%
        );

    box-shadow:
        0 8px 25px rgba(23, 73, 112, .09);
}

.proposal-kpi-link.active::before {
    content: "";

    position: absolute;

    left: -1px;
    top: 18px;
    bottom: 18px;

    width: 3px;

    border-radius: 0 3px 3px 0;

    background: #1769aa;
}

.proposal-kpi-link.active .proposal-kpi-arrow {
    background: #e7f1f8;
    color: #1769aa;
}


/* =========================================================
   PAINEL
========================================================= */

.proposals-panel {
    overflow: visible;

    background: #fff;

    border: 1px solid #e4e9f0;
    border-radius: 13px;

    box-shadow:
        0 8px 28px rgba(22, 39, 67, .05);
}

.proposals-panel-header {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 20px 14px;
}

.proposals-panel-header h2 {
    margin: 0 0 4px;

    color: #152338;

    font-size: 17px;
}

.proposals-panel-header p {
    margin: 0;

    color: #8995a5;

    font-size: 11px;
}

.proposals-rejected-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 9px;

    border-radius: 6px;

    background: #fbe9e9;

    color: #bd4c4c;

    font-size: 10px;
    font-weight: 650;
}


/* =========================================================
   FILTROS
========================================================= */

.proposals-toolbar {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 20px 17px;
}

.proposals-search {
    position: relative;

    flex: 1;
}

.proposals-search i {
    position: absolute;

    top: 50%;
    left: 13px;

    transform: translateY(-50%);

    color: #9aa5b3;

    font-size: 11px;
}

.proposals-search input {
    height: 40px;
    min-height: 40px;

    padding-left: 36px;

    background: #fafbfd;
}


.proposals-filter {
    position: relative;

    width: 190px;
}

.proposals-filter > i {
    position: absolute;

    top: 50%;
    left: 12px;

    z-index: 1;

    transform: translateY(-50%);

    color: #8d99a8;

    font-size: 10px;

    pointer-events: none;
}

.proposals-filter select {
    height: 40px;
    min-height: 40px;

    padding-left: 32px;

    background: #fafbfd;
}


.proposals-filter-button {
    height: 40px;

    padding: 0 15px;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    border: 1px solid #dfe5ec;
    border-radius: 7px;

    background: #fff;

    color: #405168;

    cursor: pointer;

    font-size: 12px;
    font-weight: 650;
}

.proposals-filter-button:hover {
    background: #f5f7fa;
}


.proposals-clear-filter {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e0e5eb;
    border-radius: 7px;

    color: #778598;
}

.proposals-clear-filter:hover {
    background: #f5f7fa;
}


/* =========================================================
   TABELA
========================================================= */

.proposals-table-wrap {
    overflow-x: auto;
    overflow-y: visible;

    border-top: 1px solid #edf0f4;
}

.proposals-table {
    width: 100%;

    border-collapse: collapse;
}

.proposals-table th {
    padding: 11px 18px;

    background: #fafbfd;

    color: #8a96a6;

    text-align: left;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .5px;

    text-transform: uppercase;
}

.proposals-table td {
    padding: 14px 18px;

    border-top: 1px solid #eef1f5;

    color: #3d4b60;

    vertical-align: middle;

    font-size: 12px;
}

.proposals-table tbody tr {
    transition: background .15s;
}

.proposals-table tbody tr:hover {
    background: #fbfcfe;
}


/* PROPOSTA */

.proposal-number-cell {
    min-width: 145px;

    display: flex;
    align-items: center;

    gap: 10px;
}

.proposal-document-icon {
    width: 35px;
    height: 35px;

    flex: 0 0 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #edf4fa;

    color: #1b5d92;

    font-size: 12px;
}

.proposal-number {
    display: block;

    margin-bottom: 3px;

    color: #173d65;

    font-size: 12px;
    font-weight: 750;
}

.proposal-number:hover {
    color: #1769aa;
}

.proposal-revision {
    color: #929eac;

    font-size: 9px;
    font-weight: 650;
}


/* CLIENTE */

.proposal-client {
    min-width: 185px;

    display: flex;
    align-items: center;

    gap: 9px;
}

.proposal-client-avatar {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #17385f,
            #205987
        );

    color: #fff;

    font-size: 9px;
    font-weight: 750;
}

.proposal-client strong {
    display: block;

    margin-bottom: 3px;

    color: #35455a;

    font-size: 11px;
}

.proposal-client span {
    display: block;

    max-width: 180px;

    overflow: hidden;

    color: #929dab;

    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ESCOPO */

.proposal-scope {
    max-width: 300px;

    overflow: hidden;

    color: #657489;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.proposal-empty {
    color: #a0a9b5;

    font-size: 10px;
}


/* DATA */

.proposal-date {
    min-width: 90px;

    display: flex;
    align-items: center;

    gap: 6px;

    color: #69788b;

    font-size: 11px;
}

.proposal-date i {
    color: #9ba6b4;

    font-size: 9px;
}


/* STATUS */

.proposal-status {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 5px 8px;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 650;
}

.proposal-status.rascunho {
    background: #eef1f5;
    color: #65758a;
}

.proposal-status.enviada {
    background: #e6f1fa;
    color: #3473a3;
}

.proposal-status.aprovada {
    background: #e3f6ec;
    color: #178555;
}

.proposal-status.recusada {
    background: #fbe8e8;
    color: #c24747;
}


/* TOTAL */

.proposal-total {
    white-space: nowrap;

    color: #26384e;

    font-size: 12px;
}


/* =========================================================
   MENU DE AÇÕES
========================================================= */

.proposal-actions-cell {
    width: 55px;

    overflow: visible;
}

.proposal-actions {
    position: relative;
}

.proposal-actions-button {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: auto;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: #7f8c9d;

    cursor: pointer;
}

.proposal-actions-button:hover,
.proposal-actions.open .proposal-actions-button {
    background: #edf2f7;
    color: #173d65;
}


.proposal-actions-menu {
    position: absolute;

    top: calc(100% + 5px);
    right: 0;

    z-index: 1000;

    width: 175px;

    padding: 6px;

    background: #fff;

    border: 1px solid #e3e8ef;
    border-radius: 9px;

    box-shadow:
        0 14px 35px rgba(19, 35, 58, .14);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-4px);

    transition:
        opacity .15s ease,
        visibility .15s ease,
        transform .15s ease;
}


/* últimas duas linhas abrem para cima */

.proposals-table tbody tr:nth-last-child(-n+2)
.proposal-actions-menu {
    top: auto;
    bottom: calc(100% + 5px);

    transform: translateY(4px);
}


.proposal-actions.open
.proposal-actions-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


.proposal-actions-menu a {
    min-height: 36px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 7px 9px;

    border-radius: 6px;

    color: #45556a;

    font-size: 11px;
    font-weight: 550;
}

.proposal-actions-menu a:hover {
    background: #f3f6f9;
}

.proposal-actions-menu i {
    width: 14px;

    color: #6e7e91;
}


/* =========================================================
   ESTADO VAZIO
========================================================= */

.proposals-empty {
    min-height: 300px;

    padding: 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-top: 1px solid #edf0f4;

    text-align: center;
}

.proposals-empty-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    border-radius: 12px;

    background: #edf4fa;

    color: #1b5c91;

    font-size: 18px;
}

.proposals-empty h3 {
    margin: 0 0 5px;

    color: #25364b;

    font-size: 16px;
}

.proposals-empty p {
    max-width: 380px;

    margin: 0 0 16px;

    color: #8995a5;

    font-size: 12px;
}


/* =========================================================
   RESPONSIVO
========================================================= */

@media (min-width: 901px) {

    .proposals-panel,
    .proposals-table-wrap {
        overflow: visible;
    }

}


@media (max-width: 1150px) {

    .proposals-kpis {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 750px) {

    .proposals-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .proposals-new-button {
        width: 100%;
    }

    .proposals-kpis {
        grid-template-columns: 1fr;
    }

    .proposals-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .proposals-filter {
        width: 100%;
    }

    .proposals-filter-button {
        justify-content: center;
    }

}

/* =========================================================
   FORTMETAL — MOBILE PREMIUM GLOBAL
   Colocar NO FINAL do app.css
========================================================= */

@media (max-width: 650px) {

    /* =====================================================
       BASE
    ===================================================== */

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 14px;
    }

    .main {
        width: 100%;
        margin-left: 0;
    }

    .content {
        width: 100%;
        max-width: none;
        padding: 18px 16px 28px;
    }


    /* =====================================================
       TOPBAR
    ===================================================== */

    .topbar {
        height: 64px;
        padding: 0 16px;

        position: sticky;
        top: 0;

        background: rgba(255,255,255,.98);
        backdrop-filter: blur(12px);

        border-bottom: 1px solid #e8edf3;

        box-shadow:
            0 3px 14px rgba(20,38,64,.035);
    }

    .sidebar-toggle {
        width: 36px;
        height: 36px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin-right: 0;

        border-radius: 8px;

        font-size: 13px;
    }

    .top-search {
        display: none;
    }

    .topbar-actions {
        margin-left: auto;
        gap: 8px;
    }

    .profile-dropdown .topbar-profile {
        gap: 0;
    }

    .profile-avatar {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;

        font-size: 11px;
    }

    .profile-info,
    .profile-arrow {
        display: none;
    }


    /* dropdown perfil */

    .profile-dropdown-menu {
        position: fixed;

        top: 57px;
        right: 12px;

        width: min(260px, calc(100vw - 24px));

        border-radius: 12px;
    }


    /* =====================================================
       SIDEBAR MOBILE
    ===================================================== */

    .sidebar {
        display: flex;

        position: fixed;

        top: 0;
        left: 0;
        bottom: 0;

        width: 270px;

        padding: 20px 16px;

        transform: translateX(-105%);

        transition:
            transform .25s ease,
            box-shadow .25s ease;

        z-index: 2000;

        box-shadow:
            20px 0 45px rgba(8,24,45,.18);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-brand {
        height: 80px;
        margin-bottom: 20px;
    }

    .sidebar-brand img {
        width: 180px;
    }

    .sidebar-menu a {
        height: 46px;

        justify-content: flex-start;

        padding: 0 14px;

        font-size: 13px;
    }

    .sidebar-slogan,
    .sidebar-user-info,
    .sidebar-logout span {
        display: block;
    }

    .sidebar-user {
        justify-content: flex-start;
    }

    .sidebar-logout {
        justify-content: flex-start;
    }

    body.sidebar-open::after {
        content: "";

        position: fixed;
        inset: 0;

        z-index: 1900;

        background: rgba(8,20,37,.46);

        backdrop-filter: blur(2px);
    }


    /* =====================================================
       PADRÃO DE TÍTULOS
    ===================================================== */

    .dashboard-heading,
    .clients-heading,
    .proposals-heading {
        margin-bottom: 18px;
    }

    .dashboard-heading h1,
    .clients-heading h1,
    .client-form-heading h1,
    .proposals-heading h1 {
        font-size: 22px;
        line-height: 1.15;
        letter-spacing: -.45px;
    }

    .dashboard-heading p,
    .clients-heading p,
    .client-form-heading p,
    .proposals-heading p {
        font-size: 12px;
        line-height: 1.5;
    }

    .page-eyebrow {
        margin-bottom: 7px;

        font-size: 9px;
        letter-spacing: 1.2px;
    }


    /* =====================================================
       BOTÕES
    ===================================================== */

    .btn {
        min-height: 42px;

        font-size: 12px;

        border-radius: 8px;
    }

    .clients-heading > .btn,
    .proposals-new-button {
        width: 100%;
    }


    /* =====================================================
       DASHBOARD
    ===================================================== */

    .dashboard-heading {
        gap: 12px;
    }

    .dashboard-kpis {
        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap: 9px;

        margin-bottom: 14px;
    }

    .metric-card {
        min-height: 105px;

        padding: 13px;

        border-radius: 11px;
    }

    .metric-top {
        gap: 6px;

        margin-bottom: 10px;

        font-size: 10px;
    }

    .metric-icon {
        width: 27px;
        height: 27px;

        flex: 0 0 27px;
    }

    .metric-card > strong {
        margin-bottom: 5px;

        font-size: 22px;
    }

    .metric-card .metric-money {
        font-size: 17px;
    }

    .metric-card small {
        font-size: 9px;
        line-height: 1.3;
    }


    /* gráficos */

    .dashboard-charts {
        grid-template-columns: 1fr;

        gap: 12px;
        margin-bottom: 14px;
    }

    .dashboard-panel {
        border-radius: 11px;
    }

    .panel-title {
        min-height: 60px;

        padding: 14px;
    }

    .panel-title h3 {
        font-size: 15px;
    }

    .panel-title p {
        font-size: 10px;
    }

    .chart-container {
        height: 220px;

        padding: 12px;
    }

    .donut-area {
        min-height: auto;

        flex-direction: column;

        padding: 18px 14px;
    }

    .donut-container {
        width: 145px;
        height: 145px;

        flex: 0 0 145px;
    }

    .status-legend {
        width: 100%;

        margin: 15px 0 0;
    }

    .status-legend > div {
        padding: 7px 3px;

        font-size: 11px;
    }


    /* tabela dashboard */

    .dashboard-table {
        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    .dashboard-table table {
        min-width: 650px;
    }

    .dashboard-table th {
        font-size: 9px;
    }

    .dashboard-table td {
        font-size: 11px;
    }


    /* acessos rápidos */

    .quick-grid {
        grid-template-columns: 1fr;

        gap: 9px;
    }

    .quick-card {
        min-height: 70px;

        padding: 12px 13px;
    }

    .quick-card strong {
        font-size: 13px;
    }

    .quick-card span {
        font-size: 10px;
    }


    /* =====================================================
       CLIENTES — CABEÇALHO
    ===================================================== */

    .clients-heading {
        align-items: stretch;
        flex-direction: column;

        gap: 14px;
    }


    /* =====================================================
       CLIENTES — CARDS
    ===================================================== */

    .clients-kpis,
    .clients-kpis-three {
        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap: 9px;

        margin-bottom: 14px;
    }

    /*
       Como Clientes possui 3 cards,
       o primeiro fica largo e os outros dois abaixo.
    */

    .clients-kpis-three .client-kpi:first-child {
        grid-column: 1 / -1;
    }

    .client-kpi {
        min-height: 88px;

        gap: 9px;

        padding: 12px;

        border-radius: 10px;
    }

    .client-kpi-icon {
        width: 32px;
        height: 32px;

        flex: 0 0 32px;

        border-radius: 8px;

        font-size: 12px;
    }

    .client-kpi span {
        margin-bottom: 2px;

        font-size: 9px;
    }

    .client-kpi strong {
        font-size: 18px;
    }

    .client-kpi small {
        margin-top: 2px;

        font-size: 8px;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .client-kpi-arrow {
        display: none;
    }

    .client-kpi-link.active::before {
        top: 11px;
        bottom: 11px;
    }


    /* =====================================================
       CLIENTES — PAINEL E FILTROS
    ===================================================== */

    .clients-panel {
        border-radius: 11px;
    }

    .clients-panel-header {
        padding: 16px 14px 12px;
    }

    .clients-panel-header h2 {
        font-size: 16px;
    }

    .clients-panel-header p {
        font-size: 10px;
    }

    .clients-toolbar {
        align-items: stretch;
        flex-direction: column;

        gap: 8px;

        padding: 0 14px 14px;
    }

    .clients-search,
    .clients-filter {
        width: 100%;
    }

    .clients-search input,
    .clients-filter select {
        height: 42px;
        min-height: 42px;
    }

    .clients-filter-button {
        width: 100%;
        height: 42px;

        justify-content: center;

        font-size: 11px;
    }

    .clients-clear-filter {
        width: 100%;
        height: 38px;
    }


    /* =====================================================
       CLIENTES — TABELA VIRA CARDS
    ===================================================== */

    .clients-table-wrap {
        overflow: visible;

        border-top: 1px solid #edf0f4;
    }

    .clients-table,
    .clients-table tbody,
    .clients-table tr,
    .clients-table td {
        display: block;
        width: 100%;
    }

    .clients-table thead {
        display: none;
    }

    .clients-table tbody {
        padding: 10px;
    }

    .clients-table tbody tr {
        position: relative;

        margin-bottom: 10px;
        padding: 14px;

        background: #fff;

        border: 1px solid #e7ebf0;
        border-radius: 11px;

        box-shadow:
            0 4px 15px rgba(20,38,64,.035);
    }

    .clients-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .clients-table td {
        padding: 0;

        border: 0;
    }

    .clients-table td + td {
        margin-top: 11px;
    }

    .client-company {
        min-width: 0;

        padding-right: 38px;
    }

    .client-company-avatar {
        width: 40px;
        height: 40px;

        flex: 0 0 40px;
    }

    .client-company-name {
        font-size: 13px;
    }

    .client-company-info span,
    .client-muted {
        font-size: 10px;
    }

    .client-contact strong {
        font-size: 11px;
    }

    .client-contact span {
        font-size: 10px;
    }

    .client-location {
        font-size: 11px;
    }

    .proposal-counter strong {
        font-size: 13px;
    }

    .proposal-counter span {
        font-size: 10px;
    }


    /* três pontinhos no canto */

    .client-actions-cell {
        position: absolute;

        top: 10px;
        right: 9px;

        width: auto !important;

        margin: 0 !important;
    }

    .client-actions-button {
        background: #f2f5f8;
    }

    .client-actions-menu {
        position: absolute;

        top: calc(100% + 5px) !important;
        right: 0;
        bottom: auto !important;

        width: 180px;
    }


    /* =====================================================
       NOVO / EDITAR CLIENTE
    ===================================================== */

    .client-form-page {
        width: 100%;
        max-width: none;
    }

    .client-form-heading {
        align-items: flex-start;

        gap: 11px;

        margin-bottom: 17px;
    }

    .client-back {
        width: 37px;
        height: 37px;

        flex: 0 0 37px;
    }

    .premium-client-form {
        gap: 11px;
    }

    .client-form-card {
        padding: 16px 14px;

        border-radius: 11px;
    }

    .client-form-card-title {
        align-items: flex-start;

        margin-bottom: 16px;
        padding-bottom: 13px;
    }

    .form-section-icon {
        width: 34px;
        height: 34px;

        flex: 0 0 34px;
    }

    .client-form-card-title h2 {
        font-size: 15px;
    }

    .client-form-card-title p {
        font-size: 10px;
        line-height: 1.4;
    }

    .client-premium-grid {
        grid-template-columns: 1fr;

        gap: 13px;
    }

    .person-type-selector {
        grid-template-columns: 1fr 1fr;

        gap: 8px;
    }

    .person-type-card {
        min-height: 72px;

        gap: 9px;

        padding: 11px;
    }

    .person-type-icon {
        width: 34px;
        height: 34px;

        flex: 0 0 34px;
    }

    .person-type-card strong {
        font-size: 11px;
    }

    .person-type-card small {
        font-size: 9px;
    }

    .document-lookup {
        display: flex;
        flex-direction: column;

        gap: 7px;
    }

    .document-lookup-button {
        width: 100%;
        min-height: 40px;

        justify-content: center;
    }

    .field label {
        font-size: 11px;
    }

    input,
    select,
    textarea {
        min-height: 43px;

        font-size: 13px;
    }

    textarea {
        min-height: 115px;
    }

    .client-form-footer {
        flex-direction: column-reverse;

        gap: 8px;

        padding-bottom: 8px;
    }

    .client-form-footer .btn,
    .client-cancel-button,
    .client-save-button {
        width: 100%;
    }


    /* =====================================================
       VER CLIENTE
    ===================================================== */

    .client-view-page {
        width: 100%;
    }

    .client-view-top {
        align-items: center;

        margin-bottom: 14px;
    }

    .client-view-actions {
        gap: 7px;
    }

    .client-view-secondary-button {
        min-height: 38px;

        padding: 0 11px;

        font-size: 11px;
    }


    /* hero */

    .client-profile-hero {
        padding: 20px 16px;

        border-radius: 12px;
    }

    .client-profile-main {
        align-items: flex-start;

        gap: 13px;
    }

    .client-profile-avatar {
        width: 54px;
        height: 54px;

        flex: 0 0 54px;

        font-size: 17px;
    }

    .client-profile-identity {
        min-width: 0;
    }

    .client-profile-identity h1 {
        font-size: 20px;
        line-height: 1.2;

        overflow-wrap: anywhere;
    }

    .client-trade-name {
        font-size: 11px;
    }

    .client-profile-tags {
        flex-wrap: wrap;
    }

    .client-type-badge,
    .client-active-badge {
        font-size: 9px;
    }

    .client-profile-meta {
        flex-direction: column;
        align-items: flex-start;

        gap: 6px;

        margin-top: 11px;
    }

    .client-profile-meta span {
        font-size: 10px;
    }


    /* KPIs do cliente */

    .client-view-kpis {
        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap: 9px;
    }

    .client-view-kpi {
        min-height: 90px;

        padding: 12px;

        border-radius: 10px;
    }

    .client-view-kpi-icon {
        width: 31px;
        height: 31px;
    }

    .client-view-kpi span {
        font-size: 9px;
    }

    .client-view-kpi strong {
        font-size: 18px;
    }


    /* detalhes */

    .client-view-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .client-detail-card {
        border-radius: 11px;
    }

    .client-detail-heading {
        padding: 14px;
    }

    .client-detail-heading h2 {
        font-size: 15px;
    }

    .client-detail-heading p {
        font-size: 10px;
    }

    .client-detail-list {
        padding: 0 14px 8px;
    }

    .client-detail-item {
        padding: 12px 0;
    }

    .client-detail-item span {
        font-size: 10px;
    }

    .client-detail-item strong {
        font-size: 12px;

        overflow-wrap: anywhere;
    }


    /* propostas dentro do cliente */

    .client-proposals-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;

        padding: 15px 14px;
    }

    .client-proposals-heading h2 {
        font-size: 16px;
    }

    .client-proposals-heading p {
        font-size: 10px;
    }

    .client-add-proposal {
        width: 100%;

        justify-content: center;
    }

    .client-proposals-table-wrap {
        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    .client-proposals-table {
        min-width: 620px;
    }


    /* =====================================================
       PROPOSTAS — CABEÇALHO
    ===================================================== */

    .proposals-heading {
        align-items: stretch;
        flex-direction: column;

        gap: 14px;
    }

    .proposals-new-button {
        min-width: 0;
    }


    /* =====================================================
       PROPOSTAS — CARDS 2x2
    ===================================================== */

    .proposals-kpis {
        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap: 9px;

        margin-bottom: 14px;
    }

    .proposal-kpi {
        min-height: 88px;

        display: grid;

        grid-template-columns: 32px 1fr;

        gap: 9px;

        padding: 12px;

        border-radius: 10px;
    }

    .proposal-kpi-icon {
        width: 32px;
        height: 32px;

        flex: none;

        align-self: center;

        border-radius: 8px;

        font-size: 12px;
    }

    .proposal-kpi-content {
        align-self: center;
        min-width: 0;
    }

    .proposal-kpi-content span {
        margin-bottom: 2px;

        font-size: 9px;

        white-space: nowrap;
    }

    .proposal-kpi-content strong {
        font-size: 18px;
        line-height: 1.1;
    }

    .proposal-kpi-content small {
        margin-top: 3px;

        overflow: hidden;

        font-size: 8px;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .proposal-kpi-arrow {
        display: none;
    }

    .proposal-kpi-link.active::before {
        top: 11px;
        bottom: 11px;
    }


    /* =====================================================
       PROPOSTAS — PAINEL
    ===================================================== */

    .proposals-panel {
        border-radius: 11px;
    }

    .proposals-panel-header {
        min-height: 0;

        padding: 16px 14px 12px;
    }

    .proposals-panel-header h2 {
        font-size: 16px;
    }

    .proposals-panel-header p {
        font-size: 10px;
    }


    /* filtros */

    .proposals-toolbar {
        align-items: stretch;
        flex-direction: column;

        gap: 8px;

        padding: 0 14px 14px;
    }

    .proposals-search,
    .proposals-filter {
        width: 100%;
    }

    .proposals-search input,
    .proposals-filter select {
        height: 42px;
        min-height: 42px;
    }

    .proposals-filter-button {
        width: 100%;
        height: 42px;

        justify-content: center;
    }

    .proposals-clear-filter {
        width: 100%;
        height: 38px;

        flex: none;
    }


    /* =====================================================
       PROPOSTAS — TABELA VIRA CARDS
    ===================================================== */

    .proposals-table-wrap {
        overflow: visible;
    }

    .proposals-table,
    .proposals-table tbody,
    .proposals-table tr,
    .proposals-table td {
        display: block;
        width: 100%;
    }

    .proposals-table thead {
        display: none;
    }

    .proposals-table tbody {
        padding: 10px;
    }

    .proposals-table tbody tr {
        position: relative;

        margin-bottom: 10px;
        padding: 14px;

        background: #fff;

        border: 1px solid #e6ebf1;
        border-radius: 11px;

        box-shadow:
            0 4px 15px rgba(20,38,64,.035);
    }

    .proposals-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .proposals-table td {
        padding: 0;

        border: 0;
    }

    .proposals-table td + td {
        margin-top: 11px;
    }


    /* proposta */

    .proposal-number-cell {
        min-width: 0;

        padding-right: 38px;
    }

    .proposal-document-icon {
        width: 37px;
        height: 37px;

        flex: 0 0 37px;
    }

    .proposal-number {
        font-size: 13px;
    }

    .proposal-revision {
        font-size: 9px;
    }


    /* cliente */

    .proposal-client {
        min-width: 0;
    }

    .proposal-client-avatar {
        width: 31px;
        height: 31px;

        flex: 0 0 31px;
    }

    .proposal-client strong {
        font-size: 11px;
    }

    .proposal-client span {
        max-width: 210px;

        font-size: 9px;
    }


    /* escopo */

    .proposal-scope {
        max-width: none;

        font-size: 10px;

        white-space: normal;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }


    /* data/status/total */

    .proposal-date {
        font-size: 10px;
    }

    .proposal-status {
        font-size: 9px;
    }

    .proposal-total {
        font-size: 12px;
    }


    /* menu */

    .proposal-actions-cell {
        position: absolute;

        top: 10px;
        right: 9px;

        width: auto !important;

        margin: 0 !important;
    }

    .proposal-actions-button {
        background: #f2f5f8;
    }

    .proposal-actions-menu {
        top: calc(100% + 5px) !important;
        right: 0;
        bottom: auto !important;

        width: 180px;
    }


    /* =====================================================
       FORMULÁRIOS GENÉRICOS
       Cadastros, Configurações e telas antigas
    ===================================================== */

    .page-head {
        align-items: stretch;
        flex-direction: column;

        gap: 12px;

        margin-bottom: 17px;
    }

    .page-head h1 {
        font-size: 22px;
    }

    .page-head p {
        font-size: 11px;
        line-height: 1.5;
    }

    .page-head > .btn {
        width: 100%;
    }

    .card,
    .form-card,
    .table-wrap {
        border-radius: 11px;
    }

    .form-card,
    .card {
        padding: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;

        gap: 13px;
    }

    .field.full {
        grid-column: auto;
    }


    /* =====================================================
       TABELAS GENÉRICAS
    ===================================================== */

    .table-wrap {
        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    .table-wrap table {
        min-width: 620px;
    }

    .table-wrap th {
        padding: 10px 12px;

        font-size: 9px;
    }

    .table-wrap td {
        padding: 12px;

        font-size: 11px;
    }


    /* =====================================================
       ESTADOS VAZIOS
    ===================================================== */

    .dashboard-empty,
    .clients-empty,
    .proposals-empty,
    .client-proposals-empty {
        min-height: 220px;

        padding: 28px 18px;
    }

    .clients-empty-icon,
    .proposals-empty-icon {
        width: 48px;
        height: 48px;

        font-size: 16px;
    }

    .dashboard-empty h3,
    .clients-empty h3,
    .proposals-empty h3,
    .client-proposals-empty h3 {
        font-size: 15px;
    }

    .dashboard-empty p,
    .clients-empty p,
    .proposals-empty p,
    .client-proposals-empty p {
        font-size: 11px;
        line-height: 1.5;
    }


    /* =====================================================
       BUSCA GLOBAL — caso seja aberta futuramente no mobile
    ===================================================== */

    .global-search-results {
        position: fixed;

        top: 70px;
        left: 12px;
        right: 12px;

        width: auto;
        max-height: calc(100vh - 90px);

        border-radius: 12px;
    }


    /* =====================================================
       AJUSTES FINAIS
    ===================================================== */

    img {
        max-width: 100%;
    }

    .clients-page,
    .client-form-page,
    .client-view-page,
    .proposals-page {
        width: 100%;
        max-width: 100%;
    }

}


/* =========================================================
   CELULARES MUITO PEQUENOS
========================================================= */

@media (max-width: 390px) {

    .content {
        padding-left: 13px;
        padding-right: 13px;
    }

    .dashboard-kpis,
    .proposals-kpis {
        gap: 7px;
    }

    .metric-card,
    .proposal-kpi {
        padding: 10px;
    }

    .proposal-kpi {
        grid-template-columns: 29px 1fr;
        gap: 7px;
    }

    .proposal-kpi-icon {
        width: 29px;
        height: 29px;

        font-size: 10px;
    }

    .proposal-kpi-content span {
        font-size: 8px;
    }

    .proposal-kpi-content strong {
        font-size: 17px;
    }

    .proposal-kpi-content small {
        font-size: 7.5px;
    }

    .person-type-selector {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   SIDEBAR MOBILE — CORREÇÃO FINAL
   DEVE SER O ÚLTIMO BLOCO DO app.css
========================================================= */

@media (max-width: 650px) {

    body {
        overflow-x: hidden;
    }


    /* BOTÃO HAMBÚRGUER */

    .sidebar-toggle {
        width: 38px;
        height: 38px;

        display: flex !important;
        align-items: center;
        justify-content: center;

        flex: 0 0 38px;

        margin-right: 0;

        border: 0;
        border-radius: 8px;

        background: transparent;

        color: #66778b;

        cursor: pointer;

        position: relative;
        z-index: 2102;
    }

    .sidebar-toggle:hover {
        background: #f1f4f7;
        color: #173d65;
    }


    /* SIDEBAR */

    .sidebar {
        display: flex !important;

        position: fixed !important;

        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;

        width: 275px !important;
        height: 100dvh !important;

        padding: 20px 16px 17px !important;

        flex-direction: column;
        justify-content: space-between;

        transform: translate3d(-105%, 0, 0) !important;

        visibility: hidden;

        transition:
            transform .28s cubic-bezier(.22,.61,.36,1),
            visibility .28s ease !important;

        z-index: 2101 !important;

        overflow-y: auto;

        box-shadow:
            20px 0 45px rgba(6, 20, 38, .24);

        will-change: transform;
    }


    /* SIDEBAR ABERTA */

    body.sidebar-open .sidebar {
        display: flex !important;

        transform: translate3d(0, 0, 0) !important;

        visibility: visible !important;
    }


    /* FUNDO ESCURO */

    body.sidebar-open::after {
        content: "";

        position: fixed;

        top: 0;
        right: 0;
        bottom: 0;
        left: 0;

        display: block;

        background:
            rgba(7, 20, 38, .50);

        backdrop-filter: blur(2px);

        -webkit-backdrop-filter: blur(2px);

        z-index: 2100;

        animation:
            fortmetalOverlayIn .2s ease;
    }


    /* CONTEÚDO */

    .main {
        width: 100% !important;

        margin-left: 0 !important;
    }


    /* SIDEBAR INTERNA */

    .sidebar-top {
        width: 100%;
    }

    .sidebar-brand {
        width: 100%;
        height: 80px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin-bottom: 20px;
    }

    .sidebar-brand img {
        width: 180px;
        max-width: 100%;
    }

    .sidebar-menu {
        width: 100%;
    }

    .sidebar-menu a {
        width: 100%;
        height: 46px;

        display: flex;
        align-items: center;
        justify-content: flex-start;

        gap: 11px;

        padding: 0 14px;

        font-size: 13px;
    }

    .sidebar-menu .menu-icon {
        width: 22px;
        flex: 0 0 22px;
    }


    /* PARTE DE BAIXO */

    .sidebar-bottom {
        width: 100%;
    }

    .sidebar-slogan {
        display: block !important;
    }

    .sidebar-user {
        display: flex !important;
        justify-content: flex-start !important;
    }

    .sidebar-user-info {
        display: block !important;
    }

    .sidebar-logout {
        display: flex !important;
        justify-content: flex-start !important;
    }

    .sidebar-logout span {
        display: inline !important;
    }

}


/* ANIMAÇÃO DO FUNDO */

@keyframes fortmetalOverlayIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

/* =========================================================
   NOVA PROPOSTA
========================================================= */

.proposal-create-page {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
}


/* =========================================================
   CABEÇALHO
========================================================= */

.proposal-create-heading {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    margin-bottom: 22px;
}

.proposal-create-back {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 3px;

    border: 1px solid #e0e6ed;
    border-radius: 9px;

    background: #fff;

    color: #65758a;

    box-shadow:
        0 4px 12px rgba(20,38,64,.035);
}

.proposal-create-back:hover {
    background: #f4f7fa;
    color: #173d65;
}

.proposal-create-heading h1 {
    margin: 0 0 5px;

    color: #101e32;

    font-size: 26px;

    letter-spacing: -.6px;
}

.proposal-create-heading p {
    max-width: 650px;

    margin: 0;

    color: #7b899b;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   ALERTA
========================================================= */

.proposal-create-alert {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 16px;
    padding: 14px;

    background: #fff7e8;

    border: 1px solid #f1ddb2;
    border-radius: 11px;
}

.proposal-create-alert-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #fff;

    color: #b97818;
}

.proposal-create-alert > div:nth-child(2) {
    flex: 1;
}

.proposal-create-alert strong,
.proposal-create-alert span {
    display: block;
}

.proposal-create-alert strong {
    margin-bottom: 3px;

    color: #664817;

    font-size: 12px;
}

.proposal-create-alert span {
    color: #8a6b36;

    font-size: 10px;
}


/* =========================================================
   FORMULÁRIO
========================================================= */

.proposal-create-form {
    display: flex;
    flex-direction: column;

    gap: 13px;
}

.proposal-form-section {
    padding: 21px;

    background: #fff;

    border: 1px solid #e4e9f0;
    border-radius: 13px;

    box-shadow:
        0 7px 25px rgba(21,38,65,.045);
}


/* =========================================================
   TÍTULO DA SEÇÃO
========================================================= */

.proposal-form-section-heading {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 20px;
    padding-bottom: 16px;

    border-bottom: 1px solid #edf0f4;
}

.proposal-section-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #edf4fa;

    color: #1c5d91;

    font-size: 13px;
}

.proposal-section-step {
    display: block;

    margin-bottom: 3px;

    color: #2b70a6;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .9px;
}

.proposal-form-section-heading h2 {
    margin: 0 0 3px;

    color: #26364b;

    font-size: 16px;
}

.proposal-form-section-heading p {
    margin: 0;

    color: #8c98a7;

    font-size: 10px;
}


/* =========================================================
   GRID
========================================================= */

.proposal-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.proposal-form-grid .field.full {
    grid-column: 1 / -1;
}

.proposal-create-form .field > label {
    display: block;

    margin-bottom: 7px;

    color: #46566a;

    font-size: 11px;
    font-weight: 700;
}

.proposal-create-form .field > label span {
    color: #d14d4d;
}

.proposal-create-form input,
.proposal-create-form select,
.proposal-create-form textarea {
    width: 100%;
}

.proposal-create-form textarea {
    min-height: 95px;

    line-height: 1.55;

    resize: vertical;
}

.proposal-create-form
.proposal-large-textarea {
    min-height: 125px;
}

.proposal-create-form
.proposal-responsibilities {
    min-height: 180px;
}

.proposal-field-help {
    display: block;

    margin-top: 6px;

    color: #98a3b1;

    font-size: 9px;
}


/* =========================================================
   PRESETS
========================================================= */

.proposal-preset-control {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.proposal-preset-select {
    margin-bottom: 8px;

    background-color: #f9fbfc;

    color: #637287;
}


/* =========================================================
   ITENS
========================================================= */

.proposal-items-heading {
    justify-content: space-between;
}

.proposal-section-heading-main {
    display: flex;
    align-items: center;

    gap: 12px;
}

.proposal-add-item {
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 12px;

    border: 1px solid #dbe3eb;
    border-radius: 7px;

    background: #fff;

    color: #36516e;

    cursor: pointer;

    font-size: 10px;
    font-weight: 700;
}

.proposal-add-item:hover {
    background: #f4f7fa;

    color: #174f7d;
}


/* =========================================================
   TABELA DE ITENS
========================================================= */

.proposal-items {
    overflow: hidden;

    border: 1px solid #e1e7ed;
    border-radius: 10px;
}

.proposal-items-header,
.proposal-item-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        190px
        42px;

    gap: 10px;
}

.proposal-items-header {
    padding: 10px 13px;

    background: #f7f9fb;

    color: #788699;

    font-size: 9px;
    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.proposal-item-row {
    align-items: flex-start;

    padding: 12px;

    border-top: 1px solid #edf0f4;
}

.proposal-item-row:first-child {
    border-top: 0;
}

.proposal-item-row textarea {
    min-height: 70px;
}

.proposal-money-input {
    position: relative;
}

.proposal-money-input > span {
    position: absolute;

    top: 50%;
    left: 12px;

    transform: translateY(-50%);

    color: #8996a5;

    font-size: 10px;
    font-weight: 700;
}

.proposal-money-input input {
    padding-left: 35px;

    text-align: right;

    font-weight: 700;
}

.proposal-remove-item {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 3px;

    border: 0;
    border-radius: 7px;

    background: #f8f9fb;

    color: #a0a9b5;

    cursor: pointer;
}

.proposal-remove-item:hover:not(:disabled) {
    background: #fbeaea;

    color: #c44f4f;
}

.proposal-remove-item:disabled {
    opacity: .35;

    cursor: not-allowed;
}


/* =========================================================
   TOTAL
========================================================= */

.proposal-total-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 20px;

    padding: 15px 55px 15px 15px;

    background: #f8fafc;

    border-top: 1px solid #e3e8ee;
}

.proposal-total-area span {
    color: #68788b;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .5px;
}

.proposal-total-area strong {
    min-width: 150px;

    color: #173d65;

    text-align: right;

    font-size: 18px;
}


/* =========================================================
   RODAPÉ
========================================================= */

.proposal-create-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 17px 20px;

    background: #fff;

    border: 1px solid #e3e8ee;
    border-radius: 12px;

    box-shadow:
        0 7px 25px rgba(21,38,65,.045);
}

.proposal-create-cancel {
    color: #748296;

    font-size: 11px;
    font-weight: 650;
}

.proposal-create-cancel:hover {
    color: #173d65;
}

.proposal-create-footer-actions {
    display: flex;
    align-items: center;

    gap: 15px;
}

.proposal-save-message {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #8794a4;

    font-size: 9px;
}

.proposal-save-message i {
    color: #36a370;
}

.proposal-review-button {
    min-width: 190px;

    gap: 9px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .proposal-create-page {
        width: 100%;
        max-width: 100%;
    }


    /* CABEÇALHO */

    .proposal-create-heading {
        gap: 10px;

        margin-bottom: 17px;
    }

    .proposal-create-back {
        width: 37px;
        height: 37px;

        flex: 0 0 37px;
    }

    .proposal-create-heading h1 {
        font-size: 22px;
    }

    .proposal-create-heading p {
        font-size: 11px;
        line-height: 1.45;
    }


    /* SEÇÕES */

    .proposal-create-form {
        gap: 10px;
    }

    .proposal-form-section {
        padding: 15px 13px;

        border-radius: 11px;
    }

    .proposal-form-section-heading {
        align-items: flex-start;

        gap: 10px;

        margin-bottom: 16px;
        padding-bottom: 13px;
    }

    .proposal-section-icon {
        width: 34px;
        height: 34px;

        flex: 0 0 34px;
    }

    .proposal-form-section-heading h2 {
        font-size: 15px;
    }

    .proposal-form-section-heading p {
        font-size: 9px;
        line-height: 1.4;
    }


    /* GRID */

    .proposal-form-grid {
        grid-template-columns: 1fr;

        gap: 13px;
    }

    .proposal-form-grid .field.full {
        grid-column: auto;
    }

    .proposal-create-form
    .proposal-large-textarea {
        min-height: 120px;
    }

    .proposal-create-form
    .proposal-responsibilities {
        min-height: 165px;
    }


    /* ITENS */

    .proposal-items-heading {
        align-items: stretch;
        flex-direction: column;

        gap: 12px;
    }

    .proposal-add-item {
        width: 100%;
        height: 40px;
    }

    .proposal-items-header {
        display: none;
    }

    .proposal-items {
        overflow: visible;

        border: 0;
    }

    .proposal-items-list {
        display: flex;
        flex-direction: column;

        gap: 9px;
    }

    .proposal-item-row {
        position: relative;

        display: grid;

        grid-template-columns: 1fr;

        gap: 8px;

        padding: 12px;

        border: 1px solid #e3e8ee !important;
        border-radius: 9px;

        background: #fafbfd;
    }

    .proposal-item-row textarea {
        min-height: 85px;
    }

    .proposal-remove-item {
        position: absolute;

        top: 7px;
        right: 7px;

        width: 31px;
        height: 31px;

        background: #fff;

        border: 1px solid #e6eaef;
    }

    .proposal-item-row .field:first-child {
        padding-right: 30px;
    }


    /* TOTAL */

    .proposal-total-area {
        margin-top: 9px;

        justify-content: space-between;

        padding: 13px;

        border: 1px solid #dfe6ed;
        border-radius: 9px;

        background: #f4f8fb;
    }

    .proposal-total-area strong {
        min-width: 0;

        font-size: 17px;
    }


    /* FOOTER */

    .proposal-create-footer {
        align-items: stretch;
        flex-direction: column-reverse;

        gap: 10px;

        padding: 13px;
    }

    .proposal-create-footer-actions {
        align-items: stretch;
        flex-direction: column;

        gap: 8px;
    }

    .proposal-save-message {
        justify-content: center;

        text-align: center;
    }

    .proposal-review-button {
        width: 100%;
        min-width: 0;
    }

    .proposal-create-cancel {
        width: 100%;

        padding: 9px;

        text-align: center;
    }


    /* ALERTA */

    .proposal-create-alert {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .proposal-create-alert .btn {
        width: 100%;
    }

}


/* =========================================================
   NOVA PROPOSTA — PREMIUM
========================================================= */

.proposal-create-page {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
}

.proposal-create-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
}

.proposal-create-back {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    border: 1px solid #e1e7ee;
    border-radius: 10px;
    background: #fff;
    color: #66778a;
    text-decoration: none;
}

.proposal-create-back:hover {
    background: #f5f8fb;
    color: #12395f;
}

.proposal-create-heading h1 {
    margin: 0 0 5px;
    color: #10213a;
    font-size: 26px;
    letter-spacing: -.5px;
}

.proposal-create-heading p {
    max-width: 680px;
    margin: 0;
    color: #7c899a;
    font-size: 13px;
    line-height: 1.5;
}

.proposal-create-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* =========================================================
   CARDS / ETAPAS
========================================================= */

.proposal-form-section {
    padding: 21px;
    background: #fff;
    border: 1px solid #e2e8ef;
    border-radius: 13px;
    box-shadow: 0 7px 24px rgba(20, 38, 65, .045);
}

.proposal-form-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 19px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1f5;
}

.proposal-section-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf5fb;
    color: #176399;
    font-size: 14px;
}

.proposal-section-step {
    display: block;
    margin-bottom: 3px;
    color: #2370a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.proposal-form-section-heading h2 {
    margin: 0 0 3px;
    color: #20334b;
    font-size: 17px;
}

.proposal-form-section-heading p {
    margin: 0;
    color: #8996a6;
    font-size: 11px;
}


/* =========================================================
   CAMPOS
========================================================= */

.proposal-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.proposal-form-grid .field.full {
    grid-column: 1 / -1;
}

.proposal-create-form .field label,
.quick-client-form .field label {
    display: block;
    margin-bottom: 7px;
    color: #46586e;
    font-size: 12px;
    font-weight: 700;
}

.proposal-create-form .field label span,
.quick-client-form .field label span {
    color: #d54d4d;
}

.proposal-create-form input,
.proposal-create-form select,
.proposal-create-form textarea,
.quick-client-form input,
.quick-client-form select {
    width: 100%;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    background: #fff;
    color: #27384c;
    outline: none;
    font-family: inherit;
    font-size: 12px;
    transition: .18s ease;
}

.proposal-create-form input,
.proposal-create-form select,
.quick-client-form input,
.quick-client-form select {
    min-height: 42px;
    padding: 0 12px;
}

.proposal-create-form textarea {
    min-height: 95px;
    padding: 11px 12px;
    line-height: 1.55;
    resize: vertical;
}

.proposal-create-form input:focus,
.proposal-create-form select:focus,
.proposal-create-form textarea:focus,
.quick-client-form input:focus,
.quick-client-form select:focus {
    border-color: #4b8dbd;
    box-shadow: 0 0 0 3px rgba(45, 119, 169, .08);
}

.proposal-large-textarea {
    min-height: 125px !important;
}

.proposal-responsibilities {
    min-height: 180px !important;
}

.proposal-field-help {
    display: block;
    margin-top: 6px;
    color: #929dac;
    font-size: 10px;
}

.proposal-preset-select {
    margin-bottom: 8px;
    background: #f8fafc !important;
}


/* =========================================================
   CLIENTE + BOTÃO
========================================================= */

.proposal-client-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.proposal-client-label label {
    margin: 0 !important;
}

.proposal-new-client-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1c6598;
    font-family: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.proposal-new-client-button:hover {
    color: #0d3f68;
}

.proposal-new-client-button i {
    font-size: 9px;
}


/* =========================================================
   ITENS
========================================================= */

.proposal-items-heading {
    justify-content: space-between;
}

.proposal-section-heading-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proposal-add-item {
    height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    background: #fff;
    color: #355570;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.proposal-add-item:hover {
    background: #f4f8fb;
    color: #145b8d;
}

.proposal-items {
    overflow: hidden;
    border: 1px solid #e0e7ee;
    border-radius: 10px;
}

.proposal-items-header,
.proposal-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 42px;
    gap: 10px;
}

.proposal-items-header {
    padding: 11px 13px;
    background: #f7f9fb;
    color: #748396;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.proposal-item-row {
    align-items: flex-start;
    padding: 12px;
    border-top: 1px solid #edf1f4;
}

.proposal-item-row:first-child {
    border-top: 0;
}

.proposal-item-row textarea {
    min-height: 72px;
}

.proposal-money-input {
    position: relative;
}

.proposal-money-input span {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 2;
    transform: translateY(-50%);
    color: #8492a3;
    font-size: 11px;
    font-weight: 700;
}

.proposal-money-input input {
    padding-left: 37px;
    text-align: right;
    font-weight: 750;
}

.proposal-remove-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    border: 0;
    border-radius: 8px;
    background: #f6f8fa;
    color: #9aa5b2;
    cursor: pointer;
}

.proposal-remove-item:hover:not(:disabled) {
    background: #fcecec;
    color: #c54c4c;
}

.proposal-remove-item:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.proposal-total-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    padding: 15px 55px 15px 15px;
    border-top: 1px solid #e2e8ee;
    background: #f8fafc;
}

.proposal-total-area span {
    color: #66768a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
}

.proposal-total-area strong {
    min-width: 155px;
    color: #123f68;
    text-align: right;
    font-size: 19px;
}


/* =========================================================
   FOOTER DA PROPOSTA
========================================================= */

.proposal-create-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 20px;
    background: #fff;
    border: 1px solid #e2e8ee;
    border-radius: 12px;
    box-shadow: 0 7px 24px rgba(20, 38, 65, .045);
}

.proposal-create-cancel {
    color: #718094;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.proposal-create-footer-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.proposal-save-message {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8390a0;
    font-size: 10px;
}

.proposal-save-message i {
    color: #2ca06b;
}

.proposal-review-button {
    min-width: 205px;
    gap: 8px;
}


/* =========================================================
   MODAL — BASE
========================================================= */

.quick-client-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.quick-client-modal.open {
    display: flex;
}

.quick-client-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 20, 36, .63);
    backdrop-filter: blur(3px);
}

body.quick-client-open {
    overflow: hidden;
}


/* =========================================================
   MODAL — CAIXA
========================================================= */

.quick-client-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 15px;
    box-shadow: 0 25px 70px rgba(0, 18, 40, .25);
}

.quick-client-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px 17px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid #e9edf2;
}

.quick-client-eyebrow {
    margin-bottom: 4px;
    color: #2774aa;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1px;
}

.quick-client-header h2 {
    margin: 0 0 4px;
    color: #172b43;
    font-size: 19px;
}

.quick-client-header p {
    max-width: 470px;
    margin: 0;
    color: #8491a1;
    font-size: 11px;
    line-height: 1.45;
}

.quick-client-close {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e6ec;
    border-radius: 8px;
    background: #fff;
    color: #768596;
    cursor: pointer;
}

.quick-client-close:hover {
    background: #f3f6f8;
    color: #173d62;
}


/* =========================================================
   FORMULÁRIO DO MODAL
========================================================= */

.quick-client-form {
    padding: 18px 22px 22px;
}

.quick-client-block {
    padding: 17px 0;
    border-bottom: 1px solid #edf0f3;
}

.quick-client-block:first-of-type {
    padding-top: 0;
}

.quick-client-block-label {
    display: block;
    margin-bottom: 9px;
    color: #45566a;
    font-size: 12px;
    font-weight: 750;
}

.quick-client-block-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    color: #334b65;
    font-size: 13px;
    font-weight: 750;
}

.quick-client-block-title i {
    color: #2c75a7;
}

.quick-client-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.quick-client-grid .field.full {
    grid-column: 1 / -1;
}


/* =========================================================
   PF / PJ
========================================================= */

.quick-person-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.quick-person-option {
    cursor: pointer;
}

.quick-person-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quick-person-option > span {
    min-height: 65px;
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 9px;
    padding: 11px 12px;
    border: 1px solid #dfe5eb;
    border-radius: 9px;
    background: #fff;
    transition: .18s ease;
}

.quick-person-option > span > i {
    grid-row: 1 / 3;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f0f5f9;
    color: #54718d;
}

.quick-person-option strong {
    color: #34485e;
    font-size: 11px;
}

.quick-person-option small {
    color: #8a97a7;
    font-size: 9px;
}

.quick-person-option input:checked + span {
    border-color: #3880b3;
    background: #f4f9fc;
    box-shadow: 0 0 0 2px rgba(50, 125, 178, .08);
}

.quick-person-option input:checked + span > i {
    background: #dceef9;
    color: #146596;
}


/* =========================================================
   DOCUMENTO
========================================================= */

.quick-document-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.quick-cnpj-button {
    min-width: 110px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid #d8e1e9;
    border-radius: 8px;
    background: #f6f9fb;
    color: #365a76;
    font-family: inherit;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

.quick-cnpj-button:hover {
    background: #edf4f8;
}

.quick-document-status {
    min-height: 15px;
    margin-top: 5px;
    font-size: 10px;
}

.quick-document-status.success {
    color: #238458;
}

.quick-document-status.error {
    color: #c54b4b;
}

.quick-document-status.loading {
    color: #52718d;
}

.quick-client-form .input-error {
    border-color: #d35c5c !important;
}


/* =========================================================
   MENSAGENS
========================================================= */

.quick-client-message {
    display: none;
    margin-top: 15px;
}

.quick-client-message.error,
.quick-client-message.warning {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 11px;
}

.quick-client-message.error {
    border: 1px solid #f0cece;
    background: #fff4f4;
    color: #a84242;
}

.quick-client-message.warning {
    border: 1px solid #eddcb6;
    background: #fff9ec;
    color: #84621f;
}

.quick-client-message.warning > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-client-message.warning button {
    margin-left: auto;
    padding: 6px 9px;
    border: 0;
    border-radius: 6px;
    background: #173f65;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================================
   FOOTER MODAL
========================================================= */

.quick-client-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 18px;
}

.quick-client-cancel {
    min-height: 39px;
    padding: 0 14px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
    color: #657488;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.quick-client-save {
    min-width: 150px;
    gap: 7px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .proposal-create-heading {
        gap: 10px;
        margin-bottom: 17px;
    }

    .proposal-create-back {
        width: 37px;
        height: 37px;
        flex: 0 0 37px;
    }

    .proposal-create-heading h1 {
        font-size: 22px;
    }

    .proposal-create-heading p {
        font-size: 11px;
    }

    .proposal-create-form {
        gap: 10px;
    }

    .proposal-form-section {
        padding: 15px 13px;
        border-radius: 11px;
    }

    .proposal-form-section-heading {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 13px;
    }

    .proposal-section-icon {
        width: 35px;
        height: 35px;
        flex: 0 0 35px;
    }

    .proposal-form-section-heading h2 {
        font-size: 15px;
    }

    .proposal-form-section-heading p {
        font-size: 10px;
        line-height: 1.4;
    }

    .proposal-form-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .proposal-form-grid .field.full {
        grid-column: auto;
    }

    .proposal-client-label {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .proposal-new-client-button {
        font-size: 11px;
    }

    .proposal-items-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .proposal-add-item {
        width: 100%;
        height: 40px;
    }

    .proposal-items-header {
        display: none;
    }

    .proposal-items {
        overflow: visible;
        border: 0;
    }

    .proposal-items-list {
        display: flex;
        flex-direction: column;
        gap: 9px;
    }

    .proposal-item-row {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
        border: 1px solid #e1e7ed !important;
        border-radius: 9px;
        background: #fafbfd;
    }

    .proposal-item-row .field:first-child {
        padding-right: 31px;
    }

    .proposal-remove-item {
        position: absolute;
        top: 7px;
        right: 7px;
        width: 31px;
        height: 31px;
        margin: 0;
        background: #fff;
        border: 1px solid #e4e9ee;
    }

    .proposal-total-area {
        justify-content: space-between;
        margin-top: 9px;
        padding: 13px;
        border: 1px solid #dfe6ed;
        border-radius: 9px;
    }

    .proposal-total-area strong {
        min-width: 0;
        font-size: 17px;
    }

    .proposal-create-footer {
        align-items: stretch;
        flex-direction: column-reverse;
        gap: 10px;
        padding: 13px;
    }

    .proposal-create-footer-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .proposal-save-message {
        justify-content: center;
    }

    .proposal-review-button {
        width: 100%;
        min-width: 0;
    }

    .proposal-create-cancel {
        width: 100%;
        padding: 8px;
        text-align: center;
    }


    /* MODAL MOBILE */

    .quick-client-modal {
        align-items: flex-end;
        padding: 0;
    }

    .quick-client-dialog {
        max-width: none;
        max-height: 92vh;
        border-radius: 17px 17px 0 0;
    }

    .quick-client-header {
        padding: 17px 15px 14px;
    }

    .quick-client-header h2 {
        font-size: 17px;
    }

    .quick-client-header p {
        font-size: 10px;
    }

    .quick-client-form {
        padding: 15px;
    }

    .quick-person-types {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .quick-person-option > span {
        min-height: 69px;
        grid-template-columns: 27px 1fr;
        column-gap: 7px;
        padding: 9px;
    }

    .quick-person-option > span > i {
        width: 27px;
        height: 27px;
    }

    .quick-person-option strong {
        font-size: 10px;
    }

    .quick-person-option small {
        font-size: 8px;
    }

    .quick-client-grid {
        grid-template-columns: 1fr;
    }

    .quick-client-grid .field.full {
        grid-column: auto;
    }

    .quick-document-row {
        grid-template-columns: 1fr;
    }

    .quick-cnpj-button {
        width: 100%;
        min-height: 39px;
    }

    .quick-client-footer {
        position: sticky;
        bottom: 0;
        z-index: 3;
        margin: 0 -15px -15px;
        padding: 12px 15px;
        background: #fff;
        border-top: 1px solid #e8edf1;
    }

    .quick-client-cancel,
    .quick-client-save {
        flex: 1;
    }

}

.proposal-supply-area {
    margin-bottom: 18px;
}

/* =========================================================
   EDITAR ESTRUTURA — PROPOSTA
========================================================= */

.proposal-structure-page {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
}

.proposal-structure-warning {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 14px;
    padding: 13px 15px;
    border: 1px solid #eadcb9;
    border-radius: 10px;
    background: #fffaf0;
}

.proposal-structure-warning-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff0ca;
    color: #a97716;
    font-size: 11px;
}

.proposal-structure-warning strong {
    display: block;
    margin-bottom: 3px;
    color: #6e541d;
    font-size: 12px;
}

.proposal-structure-warning p {
    max-width: 760px;
    margin: 0;
    color: #8b7548;
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 650px) {

    .proposal-structure-warning {
        padding: 12px;
    }

    .proposal-structure-warning p {
        font-size: 9.5px;
    }
}

/* =========================================================
   CADASTRO RÁPIDO DE PADRÕES
========================================================= */

.proposal-preset-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.proposal-preset-label-row label {
    margin-bottom: 0 !important;
}

.proposal-new-preset-button {
    border: 0;
    background: transparent;
    color: #173d65;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 3px 0;
}

.proposal-new-preset-button i {
    margin-right: 4px;
    font-size: 9px;
}

.proposal-new-preset-button:hover {
    text-decoration: underline;
}

.quick-preset-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 5000;
}

.quick-preset-modal.open {
    display: flex;
}

.quick-preset-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 20, 38, .58);
    backdrop-filter: blur(3px);
}

.quick-preset-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(8, 26, 48, .28);
}

.quick-preset-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #edf0f3;
}

.quick-preset-header h2 {
    margin: 3px 0 4px;
    color: #132f4e;
    font-size: 18px;
}

.quick-preset-header p {
    margin: 0;
    color: #7b8794;
    font-size: 11px;
}

.quick-preset-body {
    display: grid;
    gap: 17px;
    padding: 22px 24px;
}

body.quick-preset-open {
    overflow: hidden;
}

@media (max-width: 650px) {
    .quick-preset-modal {
        padding: 12px;
    }

    .quick-preset-header,
    .quick-preset-body {
        padding-left: 17px;
        padding-right: 17px;
    }
}

/* =========================================================
   PROPOSTAS - ALTERAÇÃO RÁPIDA DE STATUS
========================================================= */

.quick-status {
    position: relative;
    display: inline-block;
}


/* =========================================================
   BOTÃO
========================================================= */

.quick-status-button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

button.quick-status-button {
    appearance: none;
    -webkit-appearance: none;
}

button.quick-status-button:hover {
    filter: brightness(.97);
}

button.quick-status-button:focus {
    outline: none;
}


/* seta */

.quick-status-arrow {
    margin-left: 5px;
    font-size: 7px;
    opacity: .55;
    transition: transform .15s ease;
}

.quick-status.open .quick-status-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   MENU
========================================================= */

.quick-status-menu {
    display: none;

    position: absolute;

    top: calc(100% + 7px);
    left: 0;

    width: 195px;

    padding: 6px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 10px;

    box-shadow:
        0 12px 32px rgba(20, 42, 65, .15);

    z-index: 1500;
}


.quick-status.open .quick-status-menu {
    display: block;
}


/* =========================================================
   OPÇÕES DO MENU
========================================================= */

.quick-status-menu button {
    width: 100%;

    min-height: 36px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 8px 10px;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: #35495d;

    font-family: inherit;
    font-size: 11px;

    text-align: left;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease;
}


.quick-status-menu button:hover {
    background: #f3f6f8;
}


.quick-status-menu button.active {
    background: var(--blue-soft);
    color: var(--navy-2);
    font-weight: 700;
}


.quick-status-menu button i {
    width: 17px;

    flex: 0 0 17px;

    text-align: center;

    font-size: 11px;
}


.quick-status-menu button span {
    flex: 1;
}


/* =========================================================
   CARREGANDO
========================================================= */

.quick-status.loading {
    opacity: .55;
    pointer-events: none;
}


/* =========================================================
   CORES DOS STATUS
========================================================= */

/* Rascunho */

.proposal-status.rascunho {
    background: #eef1f5;
    color: #677589;
}


/* Enviada */

.proposal-status.enviada {
    background: #e2effa;
    color: #286898;
}


/* Em negociação */

.proposal-status.negociacao {
    background: #fff3d9;
    color: #9a6500;
}


/* Aprovada */

.proposal-status.aprovada {
    background: #def5e9;
    color: #168654;
}


/* Recusada */

.proposal-status.recusada {
    background: #fbe6e6;
    color: #c34444;
}


/* Cancelada */

.proposal-status.cancelada {
    background: #eceff3;
    color: #5f6b78;
}


/* Substituída */

.proposal-status.substituida {
    background: #edf0f4;
    color: #66717d;
}


/* =========================================================
   STATUS SUBSTITUÍDA - BLOQUEADO
========================================================= */

.quick-status-locked {
    cursor: default;
}

.quick-status-lock {
    margin-left: 5px;

    font-size: 7px;

    opacity: .45;
}


/* =========================================================
   EVITA MENU SER CORTADO NA TABELA
========================================================= */

.proposals-table-wrap {
    overflow: visible;
}

.proposals-table {
    overflow: visible;
}

.proposals-table td {
    position: relative;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

    .quick-status-menu {
        left: auto;
        right: 0;
    }

}
/* =========================================================
   FORTMETAL APP - NAVEGACAO MOBILE / PWA
========================================================= */

.mobile-app-nav,
.mobile-more-backdrop,
.mobile-more-sheet {
    display: none;
}

@media (max-width: 650px) {
    body {
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .sidebar {
        display: none !important;
    }

    .main {
        margin-left: 0 !important;
        min-height: 100vh;
    }

    .sidebar-toggle {
        display: none !important;
    }

    .topbar {
        height: 66px;
        padding: 0 20px;
        justify-content: flex-end;
        background: rgba(255,255,255,.97);
        box-shadow: 0 1px 0 rgba(15,35,64,.06);
    }

    .topbar-actions {
        margin-left: 0;
    }

    .topbar-profile {
        gap: 0 !important;
    }

    .profile-avatar {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        font-size: 14px;
    }

    .profile-info,
    .profile-arrow {
        display: none !important;
    }

    .content {
        padding: 22px 18px 26px;
    }

    .mobile-app-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 3000;
        min-height: 72px;
        padding: 8px 7px calc(7px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        background: rgba(255,255,255,.98);
        border-top: 1px solid #e5eaf1;
        box-shadow: 0 -10px 30px rgba(15,35,64,.08);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }

    .mobile-nav-item,
    .mobile-nav-create {
        position: relative;
        min-width: 0;
        min-height: 55px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
        padding: 5px 2px;
        border: 0;
        background: transparent;
        color: #7b899b;
        cursor: pointer;
        font-family: inherit;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-icon {
        width: 30px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        font-size: 18px;
        transition: .18s ease;
    }

    .mobile-nav-label {
        max-width: 100%;
        overflow: hidden;
        font-size: 10px;
        font-weight: 650;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-nav-item.active {
        color: #14558b;
    }

    .mobile-nav-item.active .mobile-nav-icon {
        background: #eaf3fa;
        color: #145b91;
    }

    .mobile-nav-item.active::after {
        content: "";
        position: absolute;
        top: -8px;
        left: 50%;
        width: 24px;
        height: 3px;
        transform: translateX(-50%);
        border-radius: 0 0 4px 4px;
        background: #1769aa;
    }

    .mobile-nav-create {
        justify-content: flex-end;
        color: #17385f;
    }

    .mobile-create-button {
        width: 54px;
        height: 54px;
        margin-top: -29px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 5px solid #fff;
        border-radius: 50%;
        background: linear-gradient(145deg, #102f55, #1769aa);
        color: #fff;
        box-shadow: 0 9px 22px rgba(17,73,119,.28);
        font-size: 20px;
        transition: transform .18s ease;
    }

    .mobile-nav-create:active .mobile-create-button {
        transform: scale(.94);
    }

    .mobile-nav-create.active .mobile-create-button {
        box-shadow: 0 9px 24px rgba(17,73,119,.38), 0 0 0 3px #dcecf8;
    }

    .mobile-more-backdrop {
        position: fixed;
        inset: 0;
        z-index: 3990;
        display: block;
        background: rgba(7,20,38,.46);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility .22s ease;
    }

    .mobile-more-backdrop.open {
        opacity: 1;
        visibility: visible;
    }

    .mobile-more-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 4000;
        max-height: min(620px, 86vh);
        padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
        display: block;
        overflow-y: auto;
        background: #fff;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -18px 55px rgba(9,27,50,.22);
        transform: translateY(105%);
        transition: transform .28s cubic-bezier(.22,.75,.25,1);
    }

    .mobile-more-sheet.open {
        transform: translateY(0);
    }

    .mobile-sheet-handle {
        width: 42px;
        height: 4px;
        margin: 0 auto 16px;
        border-radius: 999px;
        background: #d7dde5;
    }

    .mobile-sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        margin-bottom: 17px;
    }

    .mobile-sheet-eyebrow {
        display: block;
        margin-bottom: 4px;
        color: #1769aa;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 1.2px;
    }

    .mobile-sheet-header h3 {
        margin: 0;
        color: #111c2f;
        font-size: 21px;
        letter-spacing: -.35px;
    }

    .mobile-sheet-close {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        background: #f1f4f8;
        color: #526174;
        cursor: pointer;
        font-size: 15px;
    }

    .mobile-sheet-user {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 15px;
        padding: 14px;
        border: 1px solid #e7ebf1;
        border-radius: 14px;
        background: linear-gradient(135deg, #f8fbfd, #f1f6fa);
    }

    .mobile-sheet-avatar {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #10233f;
        color: #fff;
        font-size: 14px;
        font-weight: 750;
    }

    .mobile-sheet-user strong,
    .mobile-sheet-user span {
        display: block;
    }

    .mobile-sheet-user strong {
        margin-bottom: 3px;
        color: #172438;
        font-size: 12px;
    }

    .mobile-sheet-user span {
        color: #8190a3;
        font-size: 9px;
    }

    .mobile-sheet-menu {
        overflow: hidden;
        border: 1px solid #e7ebf1;
        border-radius: 14px;
        background: #fff;
    }

    .mobile-sheet-menu > a {
        min-height: 68px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 13px;
        border-bottom: 1px solid #edf0f4;
    }

    .mobile-sheet-menu > a:last-child {
        border-bottom: 0;
    }

    .mobile-sheet-menu-icon {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: #edf4fa;
        color: #175b91;
        font-size: 14px;
    }

    .mobile-sheet-menu > a > span:nth-child(2) {
        min-width: 0;
        flex: 1;
    }

    .mobile-sheet-menu strong,
    .mobile-sheet-menu small {
        display: block;
    }

    .mobile-sheet-menu strong {
        margin-bottom: 3px;
        color: #1a283b;
        font-size: 11px;
    }

    .mobile-sheet-menu small {
        color: #8b97a7;
        font-size: 9px;
    }

    .mobile-sheet-arrow {
        color: #a0abb9;
        font-size: 9px;
    }

    .mobile-sheet-logout {
        min-height: 48px;
        margin-top: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        border-radius: 11px;
        background: #fff2f2;
        color: #c84747;
        font-size: 11px;
        font-weight: 700;
    }
}

@media print {
    .mobile-app-nav,
    .mobile-more-backdrop,
    .mobile-more-sheet {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}
