@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap');
:root {
    /* Marca CORECO */
    --yellow: #FCC200;
    --yellow-dark: #E6AA0F;

    --black: #1F0606;
    --dark: #484848;
    --dark-light: #2f2f2f;

    --gray: #706E6D;
    --gray-light: #C2C3C4;
    --background: #f5f6f8;
    --border: #E5E5E4;
    --white: #ffffff;

    --text: #262626;
    --muted: #787878;

    --radius: 12px;

    --font-title: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
}

a {
    color: inherit;
}

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

.app {
    display: flex;
    min-height: 100vh;
}

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

.sidebar {
    position: fixed;

    width: 260px;
    height: 100vh;

    background: var(--black);

    color: white;

    padding: 24px 16px;

    display: flex;
    flex-direction: column;

    overflow-y: auto;
}

.sidebar-logo {
    height: 70px;

    display: flex;
    align-items: center;

    padding: 0 12px 24px;

    border-bottom: 1px solid #2d2d2d;

    margin-bottom: 16px;
}

.sidebar-logo img {
    width: 145px;
    max-height: 50px;
    object-fit: contain;
}

.sidebar-logo span {
    font-size: 11px;
    color: #777;
    margin-left: auto;

    letter-spacing: 1px;
}

/* MENU */

.sidebar-menu {
    display: flex;
    flex-direction: column;

    flex: 1;
}

.menu-section {
    color: #666;

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

    letter-spacing: 1.4px;

    margin:

        25px
        12px
        8px;
}

.menu-item {
    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 44px;

    padding: 10px 12px;

    margin-bottom: 3px;

    border-radius: 8px;

    color: #bdbdbd;

    text-decoration: none;

    font-size: 14px;

    transition: .15s;
}

.menu-item:hover {
    background: var(--dark-light);
    color: white;
}

.menu-item.active {
    background: var(--dark-light);
    color: white;

    position: relative;
}

.menu-item.active::before {
    content: "";

    position: absolute;

    width: 3px;

    left: 0;
    top: 9px;
    bottom: 9px;

    background: var(--yellow);

    border-radius: 5px;
}

.menu-icon {
    width: 22px;

    color: var(--yellow);

    font-weight: bold;

    text-align: center;

    font-size: 17px;
}

.sidebar-footer {
    border-top: 1px solid #2d2d2d;

    padding: 18px 12px 0;

    font-size: 12px;

    color: #777;
}

.sidebar-footer span {
    display: block;

    margin-top: 4px;

    font-size: 11px;
}

/* =====================================================
   MAIN
===================================================== */

.main-content {
    margin-left: 260px;

    width: calc(100% - 260px);

    padding: 32px;
}

/* TOPBAR */

.topbar {
    display: flex;

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

    margin-bottom: 28px;
}

.topbar h1 {
    margin: 0;

    font-size: 28px;

    font-weight: 700;
}

.topbar p {
    margin: 6px 0 0;

    color: var(--muted);

    font-size: 14px;
}

/* USER */

.user-area {
    display: flex;

    align-items: center;

    gap: 12px;
}

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

    border-radius: 50%;

    display: flex;

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

    background: var(--yellow);

    font-size: 13px;

    font-weight: 800;

    color: #111;
}

.user-info strong {
    display: block;

    font-size: 14px;
}

.user-info span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 12px;
}

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

.dashboard-cards {
    display: grid;

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

    gap: 18px;

    margin-bottom: 24px;
}

.dashboard-card {
    min-height: 142px;

    background: var(--white);

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

    border-radius: var(--radius);

    padding: 22px;

    display: flex;

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

    box-shadow:
        0 1px 2px
        rgba(0, 0, 0, .02);
}

.card-label {
    display: block;

    font-size: 13px;

    color: var(--muted);

    margin-bottom: 8px;
}

.dashboard-card strong {
    display: block;

    font-size: 31px;

    line-height: 1;

    margin-bottom: 10px;
}

.dashboard-card small {
    font-size: 12px;

    color: #999;
}

.card-icon {
    width: 48px;
    height: 48px;

    border-radius: 10px;

    display: flex;

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

    background: #fff8dc;

    color: #b98800;

    font-size: 22px;

    font-weight: bold;
}

.dashboard-card.warning .card-icon {
    background: #fff0f0;

    color: #cf3838;
}

/* =====================================================
   CONTEÚDO
===================================================== */

.content-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(280px, .7fr);

    gap: 22px;
}

.content-card {
    background: var(--white);

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

    border-radius: var(--radius);

    padding: 22px;

    box-shadow:
        0 1px 2px
        rgba(0, 0, 0, .02);
        margin-bottom: 20px;
}

.content-card-header {
    display: flex;

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

    gap: 15px;

    margin-bottom: 20px;
}

.content-card-header h2 {
    margin: 0;

    font-size: 18px;
}

.content-card-header p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 12px;
}

/* BUTTON */

.btn-primary {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 40px;

    padding: 0 16px;

    border-radius: 7px;

    background: var(--yellow);

    color: #111;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;

    transition: .15s;
}

.btn-primary:hover {
    background: var(--yellow-dark);
}

/* =====================================================
   TABLE
===================================================== */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;
}

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

th {
    color: #777;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .5px;

    text-align: left;

    padding: 12px 10px;
}

td {
    padding: 16px 10px;

    border-bottom: 1px solid #f0f0f0;

    font-size: 13px;
}

tbody tr {
    transition: .1s;
}

tbody tr:hover {
    background: #fafafa;
}

tbody tr:last-child td {
    border-bottom: none;
}

.table-action {
    color: #888;

    font-size: 18px;

    cursor: pointer;

    text-align: right;
}

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

.status {
    display: inline-flex;

    align-items: center;

    min-height: 26px;

    padding: 0 10px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 600;

    white-space: nowrap;
}

.status-blue {
    background: #eaf2ff;
    color: #2864bf;
}

.status-green {
    background: #e8f7ed;
    color: #217642;
}

.status-yellow {
    background: #fff5d7;
    color: #866800;
}

.status-purple {
    background: #f1eaff;
    color: #7047a8;
}

/* =====================================================
   PENDÊNCIAS
===================================================== */

.pending-list {
    display: flex;

    flex-direction: column;
}

.pending-item {
    display: flex;

    align-items: center;

    gap: 13px;

    padding: 15px 0;

    border-bottom: 1px solid #f1f1f1;
}

.pending-item:last-child {
    border-bottom: none;
}

.pending-icon {
    width: 36px;
    height: 36px;

    min-width: 36px;

    border-radius: 8px;

    display: flex;

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

    font-weight: 700;
}

.pending-icon.yellow {
    background: #fff5d7;
    color: #967300;
}

.pending-icon.red {
    background: #ffe9e9;
    color: #b63232;
}

.pending-icon.blue {
    background: #eaf2ff;
    color: #2864bf;
}

.pending-icon.green {
    background: #e8f7ed;
    color: #217642;
}

.pending-item strong {
    display: block;

    font-size: 13px;
}

.pending-item span {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 11px;
}

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

@media (max-width: 1200px) {

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

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

}

@media (max-width: 768px) {

    .sidebar {
        width: 210px;
    }

    .main-content {
        margin-left: 210px;
        width: calc(100% - 210px);

        padding: 20px;
    }

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

}
/* =====================================================
   PÁGINAS INTERNAS
===================================================== */

.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.page-search {
    flex: 1;
    max-width: 500px;
}

.page-search input {
    width: 100%;
    height: 42px;

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

    padding: 0 14px;

    background: white;

    font-size: 13px;

    outline: none;
}

.page-search input:focus {
    border-color: var(--yellow);
}


/* FILTROS */

.filter-card {
    background: white;

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

    padding: 18px;

    margin-bottom: 18px;

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

    gap: 14px;
}

.filter-group {
    min-width: 180px;
}

.filter-group label {
    display: block;

    margin-bottom: 7px;

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

    color: #777;

    text-transform: uppercase;

    letter-spacing: .4px;
}

.filter-group select {
    width: 100%;
    height: 40px;

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

    padding: 0 10px;

    background: white;

    color: var(--text);

    font-size: 13px;
}


/* BOTÃO SECUNDÁRIO */

.btn-secondary {
    height: 40px;

    padding: 0 18px;

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

    border-radius: 7px;

    background: white;

    cursor: pointer;

    font-size: 13px;

    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.btn-secondary:hover {
    background: #f5f5f5;
}


/* MINI CARDS */

.mini-cards {
    display: grid;

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

    gap: 14px;

    margin-bottom: 18px;
}

.mini-card {
    background: white;

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

    border-radius: 9px;

    padding: 16px 18px;
}

.mini-card span {
    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-bottom: 5px;
}

.mini-card strong {
    font-size: 22px;
}


/* BOTÃO TABELA */

.btn-table {
    display: inline-flex;

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

    min-height: 30px;

    padding: 0 10px;

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

    border-radius: 6px;

    color: #555;

    text-decoration: none;

    font-size: 11px;

    font-weight: 600;

    background: white;
}

.btn-table:hover {
    border-color: var(--yellow);

    color: #111;
}


/* STATUS */

.status-gray {
    background: #eeeeee;
    color: #666;
}

.status-red {
    background: #ffe8e8;
    color: #b82f2f;
}
/* =====================================================
   DETALHE DA SOLICITAÇÃO
===================================================== */

.breadcrumb {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 8px;

    font-size: 11px;

    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}


/* WORKFLOW */

.workflow-card {
    background: white;

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

    border-radius: var(--radius);

    padding: 22px;

    margin-bottom: 20px;

    display: flex;

    align-items: center;
}

.workflow-step {
    min-width: 95px;

    text-align: center;

    opacity: .45;
}

.workflow-step.completed,
.workflow-step.active {
    opacity: 1;
}

.workflow-circle {
    width: 32px;
    height: 32px;

    margin: 0 auto 8px;

    display: flex;

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

    border-radius: 50%;

    border: 2px solid #ccc;

    color: #999;

    font-size: 11px;

    font-weight: bold;
}

.workflow-step.completed .workflow-circle {
    background: #e8f7ed;

    border-color: #4ba26c;

    color: #247342;
}

.workflow-step.active .workflow-circle {
    background: var(--yellow);

    border-color: var(--yellow);

    color: #111;
}

.workflow-step strong {
    display: block;

    font-size: 11px;
}

.workflow-step span {
    display: block;

    margin-top: 3px;

    font-size: 9px;

    color: var(--muted);
}

.workflow-line {
    height: 2px;

    flex: 1;

    background: #dedede;

    margin:
        0
        8px
        27px;
}

.workflow-line.completed {
    background: #4ba26c;
}

.workflow-line.active {
    background: var(--yellow);
}


/* DETAIL */

.detail-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(300px, .7fr);

    gap: 20px;

    margin-bottom: 20px;
}

.info-grid {
    display: grid;

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

    gap: 22px;
}

.info-item span {
    display: block;

    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .4px;

    margin-bottom: 5px;
}

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

.info-item.full {
    grid-column:
        1 / -1;
}


/* SUMMARY */

.summary-list > div {
    display: flex;

    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px solid #f0f0f0;

    gap: 12px;
}

.summary-list span {
    color: var(--muted);

    font-size: 11px;
}

.summary-list strong {
    font-size: 12px;

    text-align: right;
}

.full-button {
    width: 100%;

    margin-top: 18px;
}

.table-footer-note {
    padding: 15px 10px 0;

    color: var(--muted);

    font-size: 11px;
}

@media (max-width: 1200px) {

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

    .workflow-card {
        overflow-x: auto;
    }

}/* =====================================================
   FORMULÁRIOS
===================================================== */

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

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 7px;

    color: #666;

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

    text-transform: uppercase;

    letter-spacing: .4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

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

    border-radius: 7px;

    padding: 11px 12px;

    background: white;

    font-family: inherit;

    font-size: 13px;

    outline: none;
}

.form-group input,
.form-group select {
    height: 42px;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--yellow);
}


/* EMERGÊNCIA */

.emergency-box {
    display: flex;

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

    padding: 16px;

    background: #fafafa;

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

    border-radius: 8px;
}

.emergency-box strong {
    display: block;

    font-size: 13px;
}

.emergency-box span {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;
}

.switch {
    position: relative;

    width: 46px;
    height: 24px;

    flex-shrink: 0;
}

.switch input {
    display: none;
}

.switch-slider {
    position: absolute;

    inset: 0;

    border-radius: 30px;

    background: #ccc;

    cursor: pointer;

    transition: .2s;
}

.switch-slider::before {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    top: 3px;
    left: 3px;

    background: white;

    border-radius: 50%;

    transition: .2s;
}

.switch input:checked + .switch-slider {
    background: var(--yellow);
}

.switch input:checked + .switch-slider::before {
    transform: translateX(22px);
}

.emergency-reason {
    display: none;

    margin-top: 18px;
}

.emergency-reason.visible {
    display: flex;
}


/* ITENS */

.items-form-table {
    width: 100%;
}

.item-form-row {
    display: grid;

    grid-template-columns:
        minmax(300px, 2fr)
        120px
        120px
        160px
        40px;

    gap: 10px;

    align-items: center;

    padding: 9px 0;

    border-bottom: 1px solid #f0f0f0;
}

.item-header {
    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .4px;

    font-weight: 700;
}

.item-form-row input,
.item-form-row select {
    width: 100%;

    height: 38px;

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

    border-radius: 6px;

    padding: 0 9px;

    background: white;

    font-size: 12px;

    outline: none;
}

.item-form-row input:focus,
.item-form-row select:focus {
    border-color: var(--yellow);
}

.remove-item {
    width: 30px;
    height: 30px;

    border: none;

    background: #ffeaea;

    color: #b92c2c;

    border-radius: 6px;

    cursor: pointer;

    font-size: 18px;
}


/* AÇÕES */

.form-actions {
    display: flex;

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

    gap: 10px;

    padding: 10px 0 30px;
}

.btn-cancel {
    min-height: 40px;

    display: inline-flex;

    align-items: center;

    padding: 0 15px;

    color: var(--muted);

    text-decoration: none;

    font-size: 13px;
}

.btn-submit {
    border: none;

    cursor: pointer;
}

@media (max-width: 1000px) {

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

    .form-group.full {
        grid-column: auto;
    }

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

    .item-header {
        display: none;
    }

}/* =====================================================
   MAPA DE COTAÇÃO
===================================================== */

.prototype-notice {
    margin-bottom: 18px;

    padding: 10px 14px;

    border-radius: 7px;

    background: #fff8dc;

    border: 1px solid #f2dc85;

    color: #705700;

    font-size: 11px;
}


/* FORNECEDORES */

.supplier-summary-grid {
    display: grid;

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

    gap: 18px;

    margin-bottom: 18px;
}

.supplier-card {
    position: relative;

    background: white;

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

    border-radius: var(--radius);

    padding: 20px;

    transition: .2s;
}

.supplier-card:hover {
    border-color: #cfcfcf;
}

.supplier-card.selected {
    border-color: var(--yellow);

    box-shadow:
        0 0 0 3px
        rgba(245, 185, 0, .12);
}

.supplier-card.best-price {
    border-color: #ead47a;
}

.best-price-label {
    position: absolute;

    top: -10px;
    right: 15px;

    background: var(--yellow);

    color: #111;

    border-radius: 20px;

    padding: 5px 10px;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .5px;
}

.supplier-card-top {
    display: flex;

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

    margin-bottom: 20px;
}

.supplier-card-top span {
    display: block;

    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;
}

.supplier-card-top h3 {
    margin: 5px 0 0;

    font-size: 18px;
}

.supplier-radio {
    width: 20px;
    height: 20px;

    border-radius: 50%;

    border: 2px solid #ccc;
}

.supplier-card.selected .supplier-radio {
    border: 6px solid var(--yellow);
}


/* DADOS FORNECEDOR */

.supplier-data {
    display: grid;

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

    gap: 16px;

    margin-bottom: 20px;
}

.supplier-data span {
    display: block;

    color: var(--muted);

    font-size: 10px;

    margin-bottom: 4px;
}

.supplier-data strong {
    font-size: 13px;
}

.btn-select-supplier {
    width: 100%;

    height: 38px;

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

    border-radius: 7px;

    background: white;

    cursor: pointer;

    font-weight: 600;

    font-size: 12px;
}

.btn-select-supplier:hover {
    border-color: var(--yellow);
}

.supplier-card.selected .btn-select-supplier {
    background: var(--yellow);

    border-color: var(--yellow);
}

.supplier-empty {
    display: flex;

    min-height: 100px;

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

    color: #aaa;

    font-size: 12px;
}

.supplier-card.disabled {
    opacity: .55;
}


/* TABELA COTAÇÃO */

.quote-table thead tr:first-child th {
    text-align: center;
}

.quote-table thead tr:first-child th:nth-child(1),
.quote-table thead tr:first-child th:nth-child(2),
.quote-table thead tr:first-child th:nth-child(3) {
    text-align: left;
}

.quote-table th {
    border-right: 1px solid #eee;
}

.quote-table td {
    border-right: 1px solid #f3f3f3;
}

.quote-table .best-cell {
    background: #fff9df;

    font-weight: 700;
}

.quote-table tfoot td {
    background: #fafafa;

    font-size: 14px;
}


/* DECISÃO */

.quote-decision {
    display: flex;

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

    margin-bottom: 30px;
}

.decision-label {
    display: block;

    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;

    margin-bottom: 5px;
}

.quote-decision strong {
    display: block;

    font-size: 16px;
}

.quote-decision small {
    display: block;

    margin-top: 5px;

    color: var(--muted);
}

.quote-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}

.btn-submit:disabled {
    opacity: .45;

    cursor: not-allowed;
}

@media (max-width: 1100px) {

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

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

.modal-overlay {
    position: fixed;
    inset: 0;

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

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

    padding: 24px;

    z-index: 1000;

    opacity: 0;
    visibility: hidden;

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

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 920px;
    max-height: calc(100vh - 48px);

    background: white;

    border-radius: 14px;

    box-shadow:
        0 25px 60px
        rgba(0, 0, 0, .25);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    transform: translateY(15px) scale(.98);

    transition: transform .2s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}


/* tamanhos */

.modal-small {
    max-width: 520px;
}

.modal-large {
    max-width: 1100px;
}


/* HEADER */

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

    padding: 18px 22px;

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

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

    gap: 20px;
}

.modal-header h2 {
    margin: 0;

    font-size: 19px;
}

.modal-header p {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 12px;
}

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

    border: none;

    border-radius: 7px;

    background: #f4f4f4;

    color: #555;

    font-size: 22px;

    cursor: pointer;

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

.modal-close:hover {
    background: #eaeaea;
}


/* CONTEÚDO */

.modal-body {
    padding: 22px;

    overflow-y: auto;

    flex: 1;
}


/* FOOTER */

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

    padding: 14px 22px;

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

    background: #fafafa;

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

    gap: 10px;
}


/* impede rolagem da página quando modal estiver aberto */

body.modal-open {
    overflow: hidden;
}
@media (max-width: 768px) {

    .modal-overlay {
        padding: 0;

        align-items: flex-end;
    }

    .modal,
    .modal-small,
    .modal-large {
        max-width: none;
        width: 100%;

        max-height: 95vh;

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

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

    .modal-body {
        padding: 18px;
    }

    .modal-footer {
        padding: 12px 18px;

        flex-wrap: wrap;
    }

    .modal-footer .btn-primary,
    .modal-footer .btn-secondary {
        flex: 1;
    }

}
/* =====================================================
   AJUSTES DOS MODAIS
===================================================== */

.btn-reset {
    border: none;
    cursor: pointer;
    font-family: inherit;
}


/* blocos internos */

.modal-section {
    padding-bottom: 24px;
    margin-bottom: 24px;

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

.modal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}


.modal-section-title {
    margin-bottom: 16px;
}

.modal-section-title h3 {
    margin: 0;

    font-size: 14px;
}

.modal-section-title p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 11px;
}

.modal-section-actions {
    display: flex;

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

    gap: 16px;
}
/* =====================================================
   DRAWER
===================================================== */

.drawer-overlay {
    position: fixed;
    inset: 0;

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

    z-index: 1100;

    opacity: 0;
    visibility: hidden;

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

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: absolute;

    top: 0;
    right: 0;

    width: min(520px, 92vw);
    height: 100%;

    background: white;

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

    display: flex;
    flex-direction: column;

    transform: translateX(100%);

    transition: transform .25s ease;
}

.drawer-overlay.active .drawer {
    transform: translateX(0);
}


/* HEADER */

.drawer-header {
    padding: 20px 22px;

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

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

    gap: 18px;
}

.drawer-header h2 {
    margin: 0;

    font-size: 20px;
}

.drawer-header p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 12px;
}

.drawer-close {
    width: 36px;
    height: 36px;

    border: none;
    border-radius: 7px;

    background: #f3f3f3;

    font-size: 22px;

    cursor: pointer;
}


/* BODY */

.drawer-body {
    flex: 1;

    overflow-y: auto;

    padding: 22px;
}

.drawer-section {
    padding-bottom: 22px;
    margin-bottom: 22px;

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

.drawer-section:last-child {
    border-bottom: none;
}

.drawer-section h3 {
    margin: 0 0 15px;

    font-size: 14px;
}


/* FOOTER */

.drawer-footer {
    padding: 15px 22px;

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

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

    gap: 10px;

    background: #fafafa;
}


/* BLOQUEAR ROLAGEM */

body.drawer-open {
    overflow: hidden;
}


/* MOBILE */

@media (max-width: 768px) {

    .drawer {
        width: 100%;
    }

    .drawer-footer {
        flex-wrap: wrap;
    }

    .drawer-footer .btn-primary,
    .drawer-footer .btn-secondary {
        flex: 1;
    }

}
button.btn-table {
    cursor: pointer;
    font-family: inherit;
}
/* =====================================================
   CONTEÚDO DO DRAWER
===================================================== */

.drawer-progress {
    position: relative;
}

.drawer-progress-item {
    position: relative;

    display: flex;
    gap: 12px;

    padding-bottom: 18px;

    opacity: .45;
}

.drawer-progress-item:last-child {
    padding-bottom: 0;
}

.drawer-progress-item::before {
    content: "";

    position: absolute;

    width: 2px;

    left: 5px;
    top: 13px;
    bottom: -3px;

    background: #e3e3e3;
}

.drawer-progress-item:last-child::before {
    display: none;
}

.drawer-progress-item.completed,
.drawer-progress-item.active {
    opacity: 1;
}

.drawer-progress-dot {
    width: 12px;
    height: 12px;

    min-width: 12px;

    border-radius: 50%;

    background: #ccc;

    margin-top: 3px;

    z-index: 2;
}

.drawer-progress-item.completed .drawer-progress-dot {
    background: #3e9560;
}

.drawer-progress-item.active .drawer-progress-dot {
    background: var(--yellow);
}

.drawer-progress-item strong {
    display: block;

    font-size: 12px;
}

.drawer-progress-item small {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;
}


/* PRODUTOS */

.drawer-products {
    display: flex;
    flex-direction: column;
}

.drawer-products > div {
    display: flex;

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

    gap: 15px;

    padding: 10px 0;

    border-bottom: 1px solid #f1f1f1;
}

.drawer-products > div:last-child {
    border-bottom: none;
}

.drawer-products strong {
    font-size: 12px;
}

.drawer-products span {
    color: var(--muted);

    font-size: 11px;
}


/* AÇÕES */

.quick-actions {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.quick-action {
    width: 100%;

    padding: 13px 14px;

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

    border-radius: 8px;

    background: white;

    text-decoration: none;

    text-align: left;

    cursor: pointer;

    font-family: inherit;
}

.quick-action:hover {
    border-color: var(--yellow);

    background: #fffdf5;
}

.quick-action strong {
    display: block;

    font-size: 12px;
}

.quick-action span {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 10px;
}
/* =====================================================
   COTAÇÕES
===================================================== */

.quote-request-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

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

    overflow: hidden;
}

.quote-request-summary > div {
    padding: 14px;

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

    background: #fafafa;
}

.quote-request-summary > div:last-child {
    border-right: none;
}

.quote-request-summary span {
    display: block;

    color: var(--muted);

    font-size: 10px;

    margin-bottom: 5px;
}

.quote-request-summary strong {
    font-size: 12px;
}


/* FORNECEDORES NO FORM */

.quote-suppliers-form {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.quote-supplier-row {
    display: grid;

    grid-template-columns:
        35px
        minmax(240px, 1fr)
        minmax(180px, .7fr)
        38px;

    align-items: end;

    gap: 12px;

    padding: 14px;

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

    border-radius: 8px;

    background: #fafafa;
}

.supplier-number {
    width: 30px;
    height: 30px;

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

    align-self: center;

    border-radius: 50%;

    background: var(--yellow);

    color: #111;

    font-size: 11px;

    font-weight: 700;
}

.remove-supplier {
    width: 32px;
    height: 32px;

    margin-bottom: 5px;

    border: none;
    border-radius: 6px;

    background: #ffe9e9;

    color: #b82f2f;

    cursor: pointer;

    font-size: 18px;
}


/* DRAWER */

.drawer-quote-supplier {
    display: flex;

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

    gap: 15px;

    padding: 13px;

    margin-bottom: 8px;

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

    border-radius: 8px;
}

.drawer-quote-supplier > div > strong {
    display: block;

    font-size: 12px;
}

.drawer-quote-supplier span {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 10px;
}

.drawer-quote-supplier > strong {
    font-size: 13px;
}

.drawer-quote-supplier.best {
    border-color: #e3c647;

    background: #fffbed;
}

.drawer-quote-supplier.waiting {
    opacity: .55;
}


@media (max-width: 768px) {

    .quote-request-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .quote-request-summary > div {
        border-bottom: 1px solid var(--border);
    }

    .quote-supplier-row {
        grid-template-columns: 35px 1fr;
    }

    .quote-supplier-row .form-group {
        grid-column: 2;
    }

    .remove-supplier {
        grid-column: 2;
    }

}
.quick-action-danger {
    color: #a92d2d;
}

.quick-action-danger:hover {
    border-color: #d75c5c;
    background: #fff7f7;
}
/* =====================================================
   RECEBIMENTO / INSPEÇÃO
===================================================== */

.receipt-table input {
    width: 70px;
    height: 34px;

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

    padding: 0 8px;

    font-family: inherit;

    text-align: center;
}


/* INSPEÇÃO */

.inspection-list {
    border: 1px solid var(--border);

    border-radius: 9px;

    overflow: hidden;
}

.inspection-row {
    display: flex;

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

    gap: 25px;

    padding: 15px 16px;

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

.inspection-row:last-child {
    border-bottom: none;
}

.inspection-row strong {
    display: block;

    font-size: 12px;
}

.inspection-row > div:first-child span {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 10px;
}


/* SIM / NÃO */

.option-buttons {
    display: flex;

    align-items: center;

    gap: 7px;

    flex-shrink: 0;
}

.option-buttons label {
    cursor: pointer;
}

.option-buttons input {
    display: none;
}

.option-buttons span {
    min-width: 52px;
    height: 32px;

    display: flex;

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

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

    border-radius: 6px;

    background: white;

    font-size: 11px;

    transition: .15s;
}

.option-buttons input:checked + span {
    background: var(--yellow);

    border-color: var(--yellow);

    color: #111;

    font-weight: 700;
}


/* UPLOAD */

.upload-box {
    position: relative;

    min-height: 90px;

    border: 1px dashed #c8c8c8;

    border-radius: 9px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px;

    background: #fafafa;
}

.upload-icon {
    width: 42px;
    height: 42px;

    border-radius: 8px;

    display: flex;

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

    background: #fff6ce;

    color: #917000;

    font-size: 20px;

    font-weight: 700;
}

.upload-box strong {
    display: block;

    font-size: 12px;
}

.upload-box span {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 10px;
}

.upload-box input[type="file"] {
    margin-left: auto;

    max-width: 220px;

    font-size: 11px;
}


@media (max-width: 768px) {

    .inspection-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .option-buttons {
        width: 100%;
    }

    .option-buttons label {
        flex: 1;
    }

    .option-buttons span {
        width: 100%;
    }

    .upload-box {
        flex-wrap: wrap;
    }

    .upload-box input[type="file"] {
        margin-left: 0;

        width: 100%;
        max-width: none;
    }

}
/* =====================================================
   AVALIAÇÃO DE FORNECEDOR
===================================================== */

.supplier-evaluation-header {
    display: grid;

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

    gap: 10px;

    margin-bottom: 20px;
}

.supplier-evaluation-header > div {
    padding: 13px;

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

    border-radius: 8px;

    background: #fafafa;
}

.supplier-evaluation-header span {
    display: block;

    color: var(--muted);

    font-size: 10px;

    margin-bottom: 5px;
}

.supplier-evaluation-header strong {
    font-size: 12px;
}


.evaluation-message {
    margin-bottom: 20px;

    padding: 14px;

    background: #fff9df;

    border: 1px solid #f0db80;

    border-radius: 8px;
}

.evaluation-message strong {
    font-size: 12px;
}

.evaluation-message p {
    margin: 5px 0 0;

    color: #6d6032;

    font-size: 10px;

    line-height: 1.5;
}


.evaluation-result {
    margin-bottom: 20px;

    padding: 20px;

    text-align: center;

    border: 1px solid #d9ebdf;

    border-radius: 9px;

    background: #f3faf5;
}

.evaluation-result span {
    display: block;

    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;
}

.evaluation-result strong {
    display: block;

    margin: 7px 0;

    color: #267447;

    font-size: 21px;
}

.evaluation-result small {
    color: var(--muted);

    font-size: 10px;
}
/* =====================================================
   ESTOQUE
===================================================== */

.stock-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* SALDO DO PRODUTO */

.stock-balance-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

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

    margin-bottom: 24px;

    overflow: hidden;
}

.stock-balance-card > div {
    padding: 17px;

    text-align: center;

    background: #fafafa;

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

.stock-balance-card > div:last-child {
    border-right: none;
}

.stock-balance-card span {
    display: block;

    color: var(--muted);

    font-size: 10px;

    margin-bottom: 6px;
}

.stock-balance-card strong {
    display: block;

    font-family: var(--font-title);

    font-size: 22px;
}

.stock-balance-card small {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}

.stock-negative {
    color: #b82f2f;
}


/* HISTÓRICO */

.stock-history {
    display: flex;
    flex-direction: column;
}

.stock-history-item {
    display: grid;

    grid-template-columns:
        32px
        1fr
        auto;

    align-items: center;

    gap: 10px;

    padding: 12px 0;

    border-bottom: 1px solid #f0f0f0;
}

.stock-history-item:last-child {
    border-bottom: none;
}

.stock-history-item strong {
    display: block;

    font-size: 11px;
}

.stock-history-item small {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}

.stock-history-item > span:last-child {
    font-size: 11px;

    color: var(--muted);
}


/* MOVIMENTAÇÃO */

.movement {
    width: 28px;
    height: 28px;

    display: flex;

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

    border-radius: 50%;

    font-weight: 700;
}

.movement-in {
    background: #e7f6ec;
    color: #247242;
}

.movement-out {
    background: #ffeaea;
    color: #b82f2f;
}


@media (max-width: 768px) {

    .stock-actions {
        width: 100%;

        flex-wrap: wrap;
    }

    .stock-actions button {
        flex: 1;
    }

    .stock-balance-card {
        grid-template-columns: 1fr;
    }

    .stock-balance-card > div {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

}
/* =====================================================
   FORNECEDORES
===================================================== */

.qualification-inline {
    min-width: 90px;
}

.qualification-inline strong {
    display: block;

    margin-bottom: 5px;

    font-size: 11px;
}

.qualification-bar {
    width: 90px;
    height: 5px;

    border-radius: 10px;

    background: #ededed;

    overflow: hidden;
}

.qualification-value {
    height: 100%;

    border-radius: 10px;
}

.qualification-value.good {
    background: #3f9560;
}

.qualification-value.warning {
    background: var(--yellow);
}

.qualification-value.danger {
    background: #c84a4a;
}


/* SCORE */

.supplier-score-card {
    padding: 18px;

    margin-bottom: 24px;

    border: 1px solid #e6d170;

    border-radius: 10px;

    background: #fffbed;

    display: flex;

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

    gap: 20px;
}

.supplier-score-card span {
    display: block;

    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;
}

.supplier-score-card > div:first-child > strong {
    display: block;

    margin: 6px 0 4px;

    font-family: var(--font-title);

    font-size: 30px;
}

.supplier-score-card small {
    color: var(--muted);

    font-size: 10px;
}

.score-circle {
    width: 64px;
    height: 64px;

    border: 6px solid var(--yellow);

    border-radius: 50%;

    display: flex;

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

    font-family: var(--font-title);

    font-size: 17px;

    font-weight: 700;

    background: white;
}


/* HISTÓRICO */

.supplier-history {
    display: flex;
    flex-direction: column;
}

.supplier-history-item {
    display: flex;

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

    gap: 20px;

    padding: 12px 0;

    border-bottom: 1px solid #f0f0f0;
}

.supplier-history-item:last-child {
    border-bottom: none;
}

.supplier-history-item strong {
    display: block;

    font-size: 11px;
}

.supplier-history-item span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}

.supplier-history-item > div:last-child {
    text-align: right;
}

.supplier-history-item .history-good {
    color: #267447;
}

.supplier-history-item .history-bad {
    color: #b82f2f;
}


/* AVALIAÇÕES */

.evaluation-history {
    display: flex;
    flex-direction: column;

    gap: 14px;
}

.evaluation-history > div {
    display: flex;

    align-items: flex-start;

    gap: 10px;
}

.evaluation-history strong {
    display: block;

    font-size: 11px;
}

.evaluation-history small {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}

.evaluation-dot {
    width: 10px;
    height: 10px;

    min-width: 10px;

    margin-top: 3px;

    border-radius: 50%;
}

.evaluation-dot.good {
    background: #3f9560;
}

.evaluation-dot.bad {
    background: #c84a4a;
}


/* WARNING */

.warning-box {
    margin-bottom: 20px;

    padding: 14px;

    border: 1px solid #f0d371;

    border-radius: 8px;

    background: #fff9df;
}

.warning-box strong {
    font-size: 12px;
}

.warning-box p {
    margin: 5px 0 0;

    color: #706233;

    font-size: 10px;

    line-height: 1.5;
}


/* BOTÃO PERIGOSO */

.btn-danger {
    min-height: 40px;

    padding: 0 16px;

    border: none;

    border-radius: 7px;

    background: #b83232;

    color: white;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}

.btn-danger:hover {
    background: #9e2727;
}
/* =====================================================
   APROVAÇÕES
===================================================== */

.approval-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.approval-card {
    display: flex;

    background: var(--white);

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

    overflow: hidden;
}

.approval-card-main {
    flex: 1;

    padding: 20px;
}

.approval-card-actions {
    width: 135px;

    padding: 18px 15px;

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

    background: #fafafa;

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

    gap: 8px;
}


.approval-card-actions button {
    width: 100%;
}


.approval-card-top {
    display: flex;

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

    gap: 25px;
}


.approval-card-top h2 {
    margin: 10px 0 3px;

    font-size: 17px;
}

.approval-card-top p {
    margin: 0;

    color: var(--muted);

    font-size: 11px;
}


.approval-value {
    text-align: right;

    white-space: nowrap;
}

.approval-value span {
    display: block;

    color: var(--muted);

    font-size: 9px;

    text-transform: uppercase;
}

.approval-value strong {
    display: block;

    margin-top: 4px;

    font-family: var(--font-title);

    font-size: 20px;
}


.approval-data {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 12px;

    margin-top: 20px;
}

.approval-data > div {
    padding: 11px;

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

    border-radius: 7px;

    background: #fafafa;
}

.approval-data span {
    display: block;

    color: var(--muted);

    font-size: 9px;

    margin-bottom: 4px;
}

.approval-data strong {
    font-size: 11px;
}


.approval-rule {
    display: flex;

    gap: 10px;

    margin-top: 14px;

    padding: 11px 13px;

    border: 1px solid #f0d875;

    border-radius: 7px;

    background: #fffbed;
}

.approval-rule-icon {
    width: 26px;
    height: 26px;

    min-width: 26px;

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

    border-radius: 50%;

    background: var(--yellow);

    font-weight: 700;
}

.approval-rule strong {
    display: block;

    font-size: 10px;
}

.approval-rule span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}


.btn-reject {
    min-height: 40px;

    padding: 0 15px;

    border: 1px solid #d56b6b;
    border-radius: 7px;

    background: white;

    color: #a52f2f;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;
}

.btn-reject:hover {
    background: #fff5f5;
}


.approval-emergency {
    border-left: 4px solid #ca4949;
}

.approval-badges {
    display: flex;
    gap: 6px;
}


.emergency-approval-reason {
    margin-top: 14px;

    padding: 12px 14px;

    border: 1px solid #f0cccc;
    border-radius: 7px;

    background: #fff7f7;
}

.emergency-approval-reason strong {
    font-size: 10px;
}

.emergency-approval-reason p {
    margin: 5px 0 0;

    color: #735252;

    font-size: 10px;

    line-height: 1.5;
}


/* DRAWER */

.drawer-wide {
    width: min(620px, 95vw);
}

.approval-total-card {
    margin-bottom: 24px;

    padding: 20px;

    text-align: center;

    border: 1px solid #ead36a;
    border-radius: 10px;

    background: #fffbed;
}

.approval-total-card span {
    display: block;

    color: var(--muted);

    font-size: 9px;

    text-transform: uppercase;
}

.approval-total-card strong {
    display: block;

    margin: 7px 0;

    font-family: var(--font-title);

    font-size: 27px;
}

.approval-total-card small {
    color: var(--muted);

    font-size: 9px;
}


.approval-supplier {
    display: flex;

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

    gap: 15px;

    padding: 14px;

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

.approval-supplier strong {
    display: block;

    font-size: 12px;
}

.approval-supplier div span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}


.approval-comparison {
    display: grid;

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

    gap: 8px;
}

.approval-comparison > div {
    position: relative;

    padding: 13px;

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

    text-align: center;
}

.approval-comparison > div.selected {
    border-color: var(--yellow);

    background: #fffbed;
}

.approval-comparison span {
    display: block;

    color: var(--muted);

    font-size: 9px;
}

.approval-comparison strong {
    display: block;

    margin-top: 5px;

    font-size: 12px;
}

.approval-comparison small {
    display: block;

    margin-top: 4px;

    color: #856d00;

    font-size: 8px;

    font-weight: 700;
}


/* FLUXO */

.approval-flow {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.approval-flow-item {
    display: grid;

    grid-template-columns: 38px 1fr auto;

    align-items: center;

    gap: 10px;

    padding: 11px;

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

.approval-flow-avatar {
    width: 34px;
    height: 34px;

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

    border-radius: 50%;

    background: #eeeeee;

    font-size: 10px;

    font-weight: 700;
}

.approval-flow-item.completed .approval-flow-avatar {
    background: #e4f4e9;

    color: #267447;
}

.approval-flow-item.active {
    border-color: var(--yellow);

    background: #fffdf5;
}

.approval-flow-item.active .approval-flow-avatar {
    background: var(--yellow);
}

.approval-flow-item.pending {
    opacity: .55;
}

.approval-flow-item strong {
    display: block;

    font-size: 10px;
}

.approval-flow-item span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}

.approval-flow-item small {
    color: var(--muted);

    font-size: 8px;
}


/* CONFIRMAÇÃO */

.approval-confirmation {
    margin-bottom: 20px;

    text-align: center;
}

.approval-confirmation span {
    display: block;

    color: var(--muted);

    font-size: 9px;

    text-transform: uppercase;
}

.approval-confirmation strong {
    display: block;

    margin: 7px 0;

    font-family: var(--font-title);

    font-size: 27px;
}

.approval-confirmation p {
    margin: 0;

    color: var(--muted);

    font-size: 11px;
}


@media (max-width: 900px) {

    .approval-card {
        flex-direction: column;
    }

    .approval-card-actions {
        width: auto;

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

        flex-direction: row;
    }

    .approval-data {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .approval-card-top {
        flex-direction: column;
    }

    .approval-value {
        text-align: left;
    }

    .approval-data {
        grid-template-columns: 1fr;
    }

    .approval-card-actions {
        flex-direction: column;
    }

    .approval-comparison {
        grid-template-columns: 1fr;
    }

}
/* =====================================================
   PRODUTOS
===================================================== */

.product-summary-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-bottom: 24px;

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

    overflow: hidden;
}

.product-summary-card > div {
    padding: 17px;

    text-align: center;

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

    background: #fafafa;
}

.product-summary-card > div:last-child {
    border-right: none;
}

.product-summary-card span {
    display: block;

    margin-bottom: 6px;

    color: var(--muted);

    font-size: 9px;

    text-transform: uppercase;
}

.product-summary-card strong {
    display: block;

    font-family: var(--font-title);

    font-size: 18px;
}

.product-summary-card small {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 9px;
}


/* ESTOQUES */

.product-stock-locations {
    display: flex;
    flex-direction: column;
}

.product-stock-locations > div {
    display: flex;

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

    gap: 20px;

    padding: 12px 0;

    border-bottom: 1px solid #f0f0f0;
}

.product-stock-locations > div:last-child {
    border-bottom: none;
}

.product-stock-locations strong {
    display: block;

    font-size: 11px;
}

.product-stock-locations span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}


/* EPI */

.product-epi-fields {
    display: none;
}

.product-epi-fields.visible {
    display: block;
}


@media (max-width: 600px) {

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

    .product-summary-card > div {
        border-right: none;

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

    .product-summary-card > div:last-child {
        border-bottom: none;
    }

}
/* =====================================================
   EMPRESAS
===================================================== */

.company-name {
    display: flex;
    align-items: center;

    gap: 10px;
}

.company-name strong {
    display: block;

    font-size: 11px;
}

.company-name span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}


.company-icon {
    width: 34px;
    height: 34px;

    min-width: 34px;

    border-radius: 8px;

    display: flex;

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

    background: #fff3bd;

    color: #665000;

    font-size: 9px;

    font-weight: 700;
}


/* RESUMO */

.company-summary {
    display: grid;

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

    margin-bottom: 24px;

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

    border-radius: 9px;

    overflow: hidden;
}

.company-summary > div {
    padding: 16px;

    text-align: center;

    background: #fafafa;

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

.company-summary > div:last-child {
    border-right: none;
}

.company-summary span {
    display: block;

    color: var(--muted);

    font-size: 9px;

    margin-bottom: 5px;
}

.company-summary strong {
    display: block;

    font-family: var(--font-title);

    font-size: 20px;
}


/* TÍTULO DA SEÇÃO */

.drawer-section-heading {
    display: flex;

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

    gap: 15px;

    margin-bottom: 13px;
}

.drawer-section-heading h3 {
    margin: 0;
}

.drawer-section-heading a {
    color: #8a6b00;

    font-size: 9px;

    font-weight: 700;

    text-decoration: none;
}

.drawer-section-heading a:hover {
    text-decoration: underline;
}


/* CONTRATOS / UNIDADES */

.company-relations {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.company-relations > div {
    display: grid;

    grid-template-columns:
        34px
        1fr
        auto;

    align-items: center;

    gap: 10px;

    padding: 11px;

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

    border-radius: 8px;
}

.company-relations strong {
    display: block;

    font-size: 10px;
}

.company-relations div > span:not(.status) {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 8px;
}

.relation-icon {
    width: 32px;
    height: 32px;

    display: flex;

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

    border-radius: 7px;

    background: #fff3bd;

    color: #6d5600;

    font-size: 8px;

    font-weight: 700;
}

.relation-icon.unit {
    background: #eeeeee;

    color: #555;
}


@media (max-width: 600px) {

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

    .company-summary > div {
        border-right: none;

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

    .company-summary > div:last-child {
        border-bottom: none;
    }

}
/* =====================================================
   CONTRATOS
===================================================== */

.contract-name {
    display: flex;

    align-items: center;

    gap: 10px;
}


.contract-name strong {
    display: block;

    font-size: 11px;
}


.contract-name span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}


.contract-icon {
    width: 34px;
    height: 34px;

    min-width: 34px;

    display: flex;

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

    border-radius: 8px;

    background: #fff3bd;

    color: #675000;

    font-size: 9px;

    font-weight: 700;
}


/* RESUMO */

.contract-summary {
    display: grid;

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

    margin-bottom: 24px;

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

    border-radius: 9px;

    overflow: hidden;
}


.contract-summary > div {
    padding: 16px;

    text-align: center;

    background: #fafafa;

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


.contract-summary > div:last-child {
    border-right: none;
}


.contract-summary span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 9px;
}


.contract-summary strong {
    display: block;

    font-family: var(--font-title);

    font-size: 20px;
}


/* UNIDADES */

.contract-units {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.contract-units > div {
    display: grid;

    grid-template-columns:
        34px
        1fr
        auto;

    align-items: center;

    gap: 10px;

    padding: 11px;

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

    border-radius: 8px;
}


.contract-units strong {
    display: block;

    font-size: 10px;
}


.contract-units div > span:not(.status) {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 8px;
}


/* ATIVIDADE */

.contract-activity {
    display: flex;

    flex-direction: column;

    gap: 14px;
}


.contract-activity > div {
    display: flex;

    align-items: flex-start;

    gap: 10px;
}


.activity-dot {
    width: 9px;
    height: 9px;

    min-width: 9px;

    margin-top: 4px;

    border-radius: 50%;

    background: var(--yellow);
}


.contract-activity strong {
    display: block;

    font-size: 10px;
}


.contract-activity small {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 8px;
}


@media (max-width: 600px) {

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


    .contract-summary > div {
        border-right: none;

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


    .contract-summary > div:last-child {
        border-bottom: none;
    }

}
/* =====================================================
   UNIDADES
===================================================== */

.unit-name {
    display: flex;

    align-items: center;

    gap: 10px;
}


.unit-name strong {
    display: block;

    font-size: 11px;
}


.unit-name span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}


.unit-icon {
    width: 34px;
    height: 34px;

    min-width: 34px;

    display: flex;

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

    border-radius: 8px;

    background: #eeeeee;

    color: #555;

    font-size: 9px;

    font-weight: 700;
}


/* ESTOQUE NO CADASTRO */

.unit-stock-option {
    display: flex;

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

    gap: 20px;

    padding: 15px;

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

    border-radius: 8px;

    background: #fafafa;
}


.unit-stock-option strong {
    display: block;

    font-size: 11px;
}


.unit-stock-option span:not(.switch-slider) {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 9px;
}


.unit-stock-fields {
    display: none;

    margin-top: 15px;
}


.unit-stock-fields.visible {
    display: block;
}


.stock-information-box {
    margin-top: 12px;

    padding: 12px;

    border: 1px solid #ead77b;

    border-radius: 7px;

    background: #fffbed;
}


.stock-information-box strong {
    font-size: 10px;
}


.stock-information-box p {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 9px;

    line-height: 1.5;
}


/* RESUMO */

.unit-summary {
    display: grid;

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

    margin-bottom: 24px;

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

    border-radius: 9px;

    overflow: hidden;
}


.unit-summary > div {
    padding: 16px;

    text-align: center;

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

    background: #fafafa;
}


.unit-summary > div:last-child {
    border-right: none;
}


.unit-summary span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 9px;
}


.unit-summary strong {
    display: block;

    font-family: var(--font-title);

    font-size: 20px;
}


/* CAMINHO ORGANIZACIONAL */

.organization-path {
    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr
        auto
        1fr;

    align-items: center;

    gap: 8px;
}


.organization-path > div {
    padding: 11px;

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

    border-radius: 7px;

    background: #fafafa;
}


.organization-path span {
    display: block;

    color: var(--muted);

    font-size: 8px;
}


.organization-path strong {
    display: block;

    margin-top: 3px;

    font-size: 9px;
}


.organization-arrow {
    color: #aaa;

    font-size: 13px;
}


/* ESTOQUE DA UNIDADE */

.unit-stock-card {
    border: 1px solid var(--border);

    border-radius: 8px;

    overflow: hidden;
}


.unit-stock-card-header {
    display: flex;

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

    gap: 15px;

    padding: 13px;

    background: #fafafa;

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


.unit-stock-card-header strong {
    display: block;

    font-size: 10px;
}


.unit-stock-card-header div > span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 8px;
}


.unit-stock-numbers {
    display: grid;

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


.unit-stock-numbers > div {
    padding: 12px;

    text-align: center;

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


.unit-stock-numbers > div:last-child {
    border-right: none;
}


.unit-stock-numbers span {
    display: block;

    color: var(--muted);

    font-size: 8px;
}


.unit-stock-numbers strong {
    display: block;

    margin-top: 3px;

    font-size: 14px;
}


/* PESSOAS */

.unit-people {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.unit-people > div {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px;

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

    border-radius: 7px;
}


.person-avatar {
    width: 32px;
    height: 32px;

    min-width: 32px;

    display: flex;

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

    border-radius: 50%;

    background: #eeeeee;

    font-size: 8px;

    font-weight: 700;
}


.unit-people strong {
    display: block;

    font-size: 10px;
}


.unit-people span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 8px;
}


@media (max-width: 650px) {

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


    .unit-summary > div {
        border-right: none;

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


    .organization-path {
        grid-template-columns: 1fr;
    }


    .organization-arrow {
        transform: rotate(90deg);

        text-align: center;
    }


    .unit-stock-numbers {
        grid-template-columns: 1fr;
    }


    .unit-stock-numbers > div {
        border-right: none;

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

}
/* =====================================================
   PESSOAS
===================================================== */

.person-name {
    display: flex;

    align-items: center;

    gap: 10px;
}


.person-name strong {
    display: block;

    font-size: 11px;
}


.person-name span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}


.access-badge {
    font-size: 9px;

    color: var(--muted);

    white-space: nowrap;
}


.access-badge.active {
    color: #267447;

    font-weight: 700;
}


/* CADASTRO - ACESSO */

.person-access-option {
    display: flex;

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

    gap: 20px;

    padding: 15px;

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

    border-radius: 8px;

    background: #fafafa;
}


.person-access-option strong {
    display: block;

    font-size: 11px;
}


.person-access-option span:not(.switch-slider) {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 9px;
}


.person-access-fields {
    display: none;

    margin-top: 15px;
}


.person-access-fields.visible {
    display: block;
}


.access-information-box {
    margin-top: 12px;

    padding: 12px;

    border: 1px solid #ead77b;

    border-radius: 7px;

    background: #fffbed;
}


.access-information-box strong {
    font-size: 10px;
}


.access-information-box p {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 9px;

    line-height: 1.5;
}


/* DRAWER */

.person-drawer-title {
    display: flex;

    align-items: center;

    gap: 13px;
}


.person-drawer-title h2 {
    margin: 7px 0 0;

    font-size: 19px;
}


.person-drawer-title p {
    margin-top: 3px;
}


.person-avatar.large {
    width: 48px;
    height: 48px;

    min-width: 48px;

    font-size: 11px;
}


.person-access-card {
    display: grid;

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

    margin-bottom: 24px;

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

    border-radius: 9px;

    overflow: hidden;
}


.person-access-card > div {
    padding: 17px;

    background: #fafafa;

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


.person-access-card > div:last-child {
    border-right: none;
}


.person-access-card span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 9px;

    text-transform: uppercase;
}


.person-access-card strong {
    display: block;

    font-size: 14px;
}


.person-access-card small {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 8px;
}


.person-path {
    grid-template-columns:
        1fr
        auto
        1fr;
}


/* PERMISSÕES */

.permission-list {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.permission-item {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 12px;

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

    border-radius: 7px;
}


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

    min-width: 25px;

    display: flex;

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

    border-radius: 50%;

    font-size: 9px;

    font-weight: 700;
}


.permission-item.allowed .permission-icon {
    background: #e5f5ea;

    color: #267447;
}


.permission-item.limited .permission-icon {
    background: #fff3bd;

    color: #7d6500;
}


.permission-item.blocked {
    opacity: .6;
}


.permission-item.blocked .permission-icon {
    background: #eeeeee;

    color: #777;
}


.permission-item strong {
    display: block;

    font-size: 10px;
}


.permission-item small {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 8px;
}


/* LINK */

.link-button {
    padding: 0;

    border: none;

    background: none;

    color: #8a6b00;

    font-family: inherit;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;
}


/* FORM DE PERMISSÕES */

.permissions-form {
    display: grid;

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

    gap: 8px;
}


.permission-checkbox {
    display: flex;

    align-items: center;

    gap: 9px;

    padding: 11px;

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

    border-radius: 7px;

    cursor: pointer;
}


.permission-checkbox:hover {
    border-color: var(--yellow);

    background: #fffdf5;
}


.permission-checkbox input {
    accent-color: var(--yellow);
}


.permission-checkbox span {
    font-size: 10px;

    font-weight: 500;
}


@media (max-width: 600px) {

    .person-access-card {
        grid-template-columns: 1fr;
    }


    .person-access-card > div {
        border-right: none;

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


    .person-access-card > div:last-child {
        border-bottom: none;
    }


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


    .person-path {
        grid-template-columns: 1fr;
    }

}
/* =====================================================
   LOGIN
===================================================== */

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

    margin: 0;

    background: #f4f4f4;
}


.login-wrapper {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(440px, 1.05fr)
        minmax(480px, .95fr);
}


/* =====================================================
   IDENTIDADE
===================================================== */

.login-brand {
    position: relative;

    min-height: 100vh;

    padding: 55px;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(20, 20, 20, .90),
            rgba(20, 20, 20, .84)
        ),
        url('../img/fundo-coreco.png');

    background-size: cover;

    background-position: center;
}


.login-brand::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -160px;
    bottom: -150px;

    border-radius: 50%;

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


.login-brand-content {
    position: relative;

    z-index: 2;

    width: 100%;
    height: 100%;

    min-height: calc(100vh - 110px);

    display: flex;

    flex-direction: column;
}


.login-logo {
    width: 180px;

    height: auto;

    object-fit: contain;

    object-position: left center;
}


.login-brand-text {
    max-width: 540px;

    margin: auto 0;
}


.login-system-label {
    display: inline-flex;

    margin-bottom: 18px;

    padding: 6px 10px;

    border: 1px solid rgba(252, 194, 0, .5);

    border-radius: 5px;

    color: var(--yellow);

    font-family: var(--font-title);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.3px;
}


.login-brand-text h1 {
    max-width: 500px;

    margin: 0;

    color: white;

    font-size: clamp(
        36px,
        4vw,
        58px
    );

    line-height: 1.05;

    letter-spacing: -1.5px;
}


.login-brand-text p {
    max-width: 430px;

    margin: 22px 0 0;

    color: rgba(255, 255, 255, .68);

    font-size: 14px;

    line-height: 1.7;
}


.login-brand-footer {
    display: flex;

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

    gap: 20px;

    color: rgba(255, 255, 255, .42);

    font-size: 9px;
}


/* =====================================================
   ÁREA DE LOGIN
===================================================== */

.login-area {
    min-height: 100vh;

    padding: 40px;

    display: flex;

    flex-direction: column;

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

    background: #f6f6f5;
}


.login-card {
    width: 100%;

    max-width: 420px;
}


.login-card-header {
    margin-bottom: 30px;
}


.login-card-header h2 {
    margin: 0;

    color: #252525;

    font-size: 27px;

    letter-spacing: -.5px;
}


.login-card-header p {
    margin: 8px 0 0;

    color: var(--muted);

    font-size: 11px;
}


/* FORM */

.login-form-group {
    margin-bottom: 19px;
}


.login-form-group label {
    display: block;

    margin-bottom: 7px;

    color: #404040;

    font-size: 10px;

    font-weight: 700;
}


.login-form-group input {
    width: 100%;

    height: 47px;

    box-sizing: border-box;

    padding: 0 13px;

    border: 1px solid #dddddd;

    border-radius: 8px;

    outline: none;

    background: white;

    color: var(--text);

    font-family: var(--font-body);

    font-size: 12px;

    transition: .15s;
}


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

    box-shadow:
        0 0 0 3px
        rgba(252, 194, 0, .13);
}


.login-label-row {
    display: flex;

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

    gap: 15px;
}


.login-label-row a {
    margin-bottom: 7px;

    color: #7c6200;

    text-decoration: none;

    font-size: 9px;

    font-weight: 700;
}


.password-field {
    position: relative;
}


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


.password-toggle {
    position: absolute;

    top: 50%;
    right: 8px;

    width: 34px;
    height: 34px;

    transform: translateY(-50%);

    border: none;

    border-radius: 6px;

    background: transparent;

    color: #777;

    cursor: pointer;
}


.password-toggle:hover {
    background: #f4f4f4;
}


/* OPÇÕES */

.login-options {
    display: flex;

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

    gap: 15px;

    margin-bottom: 22px;
}


.login-remember {
    display: flex;

    align-items: center;

    gap: 7px;

    cursor: pointer;
}


.login-remember input {
    accent-color: var(--yellow);
}


.login-remember span {
    color: #666;

    font-size: 10px;
}


/* BOTÃO */

.login-button {
    width: 100%;

    height: 48px;

    border: none;

    border-radius: 8px;

    background: var(--yellow);

    color: #1b1b1b;

    font-family: var(--font-title);

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition: .15s;
}


.login-button:hover {
    background: var(--yellow-dark);

    transform: translateY(-1px);
}


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

    cursor: wait;

    transform: none;
}


/* SEGURANÇA */

.login-security {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 20px;

    color: #999;

    font-size: 8px;
}


.login-security-icon {
    font-size: 9px;
}


/* PROTÓTIPO */

.login-prototype {
    margin-top: 25px;

    padding: 12px 14px;

    border: 1px solid #ead77d;

    border-radius: 7px;

    background: #fffbed;
}


.login-prototype strong {
    display: block;

    color: #5e4d0d;

    font-size: 9px;
}


.login-prototype span {
    display: block;

    margin-top: 3px;

    color: #867a4e;

    font-size: 8px;
}


/* FOOTER */

.login-footer {
    position: absolute;

    bottom: 22px;

    color: #a0a0a0;

    font-size: 8px;
}


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

@media (max-width: 900px) {

    .login-wrapper {
        grid-template-columns: 1fr;
    }


    .login-brand {
        min-height: auto;

        padding: 28px;
    }


    .login-brand-content {
        min-height: auto;
    }


    .login-logo {
        width: 135px;
    }


    .login-brand-text {
        margin: 55px 0 20px;
    }


    .login-brand-text h1 {
        max-width: 400px;

        font-size: 34px;
    }


    .login-brand-text p {
        max-width: 400px;
    }


    .login-brand-footer {
        display: none;
    }


    .login-area {
        min-height: auto;

        padding: 50px 25px 70px;
    }


    .login-footer {
        position: static;

        margin-top: 35px;
    }

}


@media (max-width: 480px) {

    .login-brand {
        padding: 23px;
    }


    .login-brand-text {
        margin-top: 40px;
    }


    .login-brand-text h1 {
        font-size: 29px;
    }


    .login-brand-text p {
        font-size: 11px;
    }


    .login-area {
        padding:
            38px
            20px
            50px;
    }


    .login-card-header h2 {
        font-size: 23px;
    }

}
/* =====================================================
   SOLICITAÇÕES - ANÁLISE DE ESTOQUE
===================================================== */

.request-items-list {
    display: flex;
    flex-direction: column;

    gap: 14px;
}


.request-item-row {
    padding: 15px;

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

    border-radius: 9px;

    background: #fafafa;
}


.request-item-row.requires-purchase {
    border-color: #e7cf68;

    background: #fffdf4;
}


.request-item-header {
    display: flex;

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

    margin-bottom: 14px;
}


.request-item-header strong {
    font-size: 11px;
}


.request-item-remove {
    width: 27px;
    height: 27px;

    border: none;

    border-radius: 6px;

    background: #eeeeee;

    color: #777;

    cursor: pointer;
}


.request-item-remove:hover {
    background: #ffe6e6;

    color: #a72d2d;
}


.request-item-grid {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        .8fr
        .7fr;

    gap: 10px;
}


/* ANÁLISE */

.request-stock-analysis {
    margin-top: 12px;

    padding-top: 12px;

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


.request-stock-grid {
    display: grid;

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

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

    border-radius: 7px;

    overflow: hidden;
}


.request-stock-grid > div {
    padding: 10px;

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

    background: white;
}


.request-stock-grid > div:last-child {
    border-right: none;
}


.request-stock-grid span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);

    font-size: 8px;
}


.request-stock-grid strong {
    display: block;

    font-size: 11px;
}


.request-fulfillment {
    margin-top: 9px;

    padding: 9px 11px;

    border-radius: 6px;

    background: #eeeeee;

    color: #666;

    font-size: 9px;

    line-height: 1.5;
}


.request-fulfillment.fulfilled {
    background: #e8f6ed;

    color: #296b43;
}


.request-fulfillment.partial {
    background: #fff5cf;

    color: #705a00;
}


/* RESUMO DA SOLICITAÇÃO */

.request-attendance-summary {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 14px;
}


.request-attendance-summary > div {
    padding: 12px;

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

    border-radius: 7px;

    background: white;
}


.request-attendance-summary span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);

    font-size: 8px;
}


.request-attendance-summary strong {
    font-size: 11px;
}


/* EMERGENCIAL */

.request-emergency-fields {
    display: none;

    margin-top: 14px;
}


.request-emergency-fields.visible {
    display: block;
}


.emergency-warning {
    margin-bottom: 13px;

    padding: 11px 13px;

    border: 1px solid #efcccc;

    border-radius: 7px;

    background: #fff6f6;
}


.emergency-warning strong {
    display: block;

    color: #9e3030;

    font-size: 10px;
}


.emergency-warning span {
    display: block;

    margin-top: 4px;

    color: #785454;

    font-size: 9px;

    line-height: 1.5;
}


/* ROTA DE COMPRA */

.purchase-route-info {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.purchase-route-step {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 11px;

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

    border-radius: 7px;

    background: #fafafa;
}


.purchase-route-number {
    width: 25px;
    height: 25px;

    min-width: 25px;

    display: flex;

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

    border-radius: 50%;

    background: var(--yellow);

    color: #222;

    font-size: 9px;

    font-weight: 700;
}


.purchase-route-step strong {
    display: block;

    font-size: 10px;
}


.purchase-route-step p {
    margin: 3px 0 0;

    color: var(--muted);

    font-size: 9px;

    line-height: 1.4;
}


.purchase-route-arrow {
    padding-left: 9px;

    color: #aaa;

    font-size: 12px;
}


@media (max-width: 800px) {

    .request-item-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .request-stock-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .request-stock-grid > div:nth-child(2) {
        border-right: none;
    }


    .request-stock-grid > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

}


@media (max-width: 520px) {

    .request-item-grid {
        grid-template-columns: 1fr;
    }


    .request-stock-grid {
        grid-template-columns: 1fr;
    }


    .request-stock-grid > div {
        border-right: none;

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


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

}
/* =====================================================
   DETALHE DA SOLICITAÇÃO - ATENDIMENTO
===================================================== */

.fulfillment-detail {
    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr
        auto
        1fr;

    align-items: center;

    gap: 12px;
}


.fulfillment-detail-item {
    padding: 15px;

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

    border-radius: 8px;

    background: #fafafa;
}


.fulfillment-detail-item.highlighted {
    border-color: var(--yellow);

    background: #fffbed;
}


.fulfillment-detail-item span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 9px;
}


.fulfillment-detail-item strong {
    display: block;

    font-size: 11px;
}


.fulfillment-detail-item small {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 8px;

    line-height: 1.4;
}


.fulfillment-arrow {
    color: #aaa;

    font-size: 16px;
}


.purchase-decision-card {
    display: flex;

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

    gap: 25px;

    margin-top: 18px;

    padding: 16px;

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

    border-radius: 9px;

    background: white;
}


.purchase-decision-label {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 8px;

    text-transform: uppercase;
}


.purchase-decision-card strong {
    display: block;

    font-size: 13px;
}


.purchase-decision-card p {
    margin: 5px 0 0;

    max-width: 520px;

    color: var(--muted);

    font-size: 9px;

    line-height: 1.5;
}


@media (max-width: 800px) {

    .fulfillment-detail {
        grid-template-columns: 1fr;
    }


    .fulfillment-arrow {
        transform: rotate(90deg);

        text-align: center;
    }


    .purchase-decision-card {
        align-items: stretch;

        flex-direction: column;
    }

}
/* ============================================================
   CORECO ERP — POLIMENTO FINAL DE INTERFACE
   Colar no FINAL do app.css
============================================================ */


/* ============================================================
   LINKS / DASHBOARD
   Remove sublinhados causados pelos cards que agora são <a>
============================================================ */

.dashboard-card,
.dashboard-card:hover,
.dashboard-card:focus,
.pending-item,
.pending-item:hover,
.pending-item:focus,
.quick-action,
.quick-action:hover,
.btn-table,
.btn-table:hover {
    text-decoration: none;
}

.dashboard-card .card-label,
.dashboard-card small,
.pending-item strong,
.pending-item span {
    text-decoration: none;
}


/* ============================================================
   SIDEBAR — VISUAL
============================================================ */

.sidebar {
    width: 248px;

    padding: 16px 12px 14px;

    background:
        linear-gradient(
            180deg,
            #181818 0%,
            #1f1f1f 100%
        );

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

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: none;

    z-index: 900;
}

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


/* ============================================================
   LOGO
============================================================ */

.sidebar-logo {
    height: 64px;

    padding: 0 10px 14px;

    margin-bottom: 8px;

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

.sidebar-logo img {
    width: 144px;
    max-height: 43px;
}

.sidebar-logo span {
    color: #8d8d8d;

    font-size: 9px;

    letter-spacing: 1.3px;
}


/* ============================================================
   MENU MAIS COMPACTO
============================================================ */

.sidebar-menu {
    flex: 1;
}

.menu-section {
    margin:
        15px
        10px
        6px;

    color: #888;

    font-size: 9px;

    letter-spacing: 1.5px;
}

.menu-item {
    min-height: 38px;

    padding: 7px 10px;

    margin-bottom: 2px;

    gap: 11px;

    border-radius: 7px;

    color: #d2d2d2;

    font-size: 13px;

    line-height: 1.2;
}

.menu-item:hover {
    color: #fff;

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

.menu-item.active {
    color: #fff;

    background: #303030;

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

.menu-item.active::before {
    width: 3px;

    top: 7px;
    bottom: 7px;

    left: 0;

    background: var(--yellow);
}


/* ============================================================
   FOOTER DA SIDEBAR
============================================================ */

.sidebar-footer {
    padding: 12px 10px 0;

    margin-top: 8px;

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

    color: #777;

    font-size: 10px;
}

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

    font-size: 9px;
}


/* ============================================================
   MAIN — AJUSTA AO NOVO TAMANHO DA SIDEBAR
============================================================ */

.main-content {
    margin-left: 248px;

    width: calc(100% - 248px);
}


/* ============================================================
   SVG ICON SYSTEM
   Os caracteres que já estão no HTML ficam invisíveis.
   O ícone SVG é aplicado inteiramente pelo CSS.
============================================================ */

.menu-icon {
    width: 18px;
    height: 18px;

    min-width: 18px;

    display: block;

    flex: 0 0 18px;

    font-size: 0;

    color: var(--yellow);

    background-color: currentColor;

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 18px 18px;

    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 18px 18px;
}


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

.menu-item[href="index.html"] .menu-icon {

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='7' height='7' rx='1' fill='black'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1' fill='black'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1' fill='black'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1' fill='black'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='7' height='7' rx='1' fill='black'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1' fill='black'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1' fill='black'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1' fill='black'/%3E%3C/svg%3E");
}


/* ============================================================
   SOLICITAÇÕES
============================================================ */

.menu-item[href="solicitacoes.html"] .menu-icon {

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 2v5h5M8 12h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 2v5h5M8 12h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E");
}


/* ============================================================
   COTAÇÕES
============================================================ */

.menu-item[href="cotacoes.html"] .menu-icon {

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 6h11l-3-3 1.4-1.4L20 7l-5.6 5.4L13 11l3-3H5zm14 12H8l3 3-1.4 1.4L4 17l5.6-5.4L11 13l-3 3h11z'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 6h11l-3-3 1.4-1.4L20 7l-5.6 5.4L13 11l3-3H5zm14 12H8l3 3-1.4 1.4L4 17l5.6-5.4L11 13l-3 3h11z'/%3E%3C/svg%3E");
}


/* ============================================================
   APROVAÇÕES
============================================================ */

.menu-item[href="aprovacoes.html"] .menu-icon {

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.5-4-4 1.5-1.5 2.5 2.5 5-6 1.6 1.3z'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.5-4-4 1.5-1.5 2.5 2.5 5-6 1.6 1.3z'/%3E%3C/svg%3E");
}


/* ============================================================
   ORDENS DE COMPRA
============================================================ */

.menu-item[href="ordens-compra.html"] .menu-icon {

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a2 2 0 0 1 2 2v18H5V4a2 2 0 0 1 2-2zm2 4h6V4H9zm-1 5h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a2 2 0 0 1 2 2v18H5V4a2 2 0 0 1 2-2zm2 4h6V4H9zm-1 5h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E");
}


/* ============================================================
   ESTOQUE
============================================================ */

.menu-item[href="estoque.html"] .menu-icon {

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v5H4zm1 7h14v9H5zm5 2v2h4v-2z'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v5H4zm1 7h14v9H5zm5 2v2h4v-2z'/%3E%3C/svg%3E");
}


/* ============================================================
   FORNECEDORES
============================================================ */

.menu-item[href="fornecedores.html"] .menu-icon {

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6h11v9h2l2-4h3v7h-2a3 3 0 0 1-6 0H9a3 3 0 0 1-6 0H2V7a1 1 0 0 1 1-1zm3 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm10 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6h11v9h2l2-4h3v7h-2a3 3 0 0 1-6 0H9a3 3 0 0 1-6 0H2V7a1 1 0 0 1 1-1zm3 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm10 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/%3E%3C/svg%3E");
}


/* ============================================================
   EMPRESAS
============================================================ */

.menu-item[href="empresas.html"] .menu-icon {

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 22V4h10v4h6v14h-6v-3h-4v3zm3-15h2V5H7zm4 0h2V5h-2zm-4 4h2V9H7zm4 0h2V9h-2zm6 1h2v-2h-2zm0 4h2v-2h-2z'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 22V4h10v4h6v14h-6v-3h-4v3zm3-15h2V5H7zm4 0h2V5h-2zm-4 4h2V9H7zm4 0h2V9h-2zm6 1h2v-2h-2zm0 4h2v-2h-2z'/%3E%3C/svg%3E");
}


/* ============================================================
   CONTRATOS
============================================================ */

.menu-item[href="contratos.html"] .menu-icon {

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 1.5V8h4.5M8 12h8v2H8zm0 4h5v2H8z'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 1.5V8h4.5M8 12h8v2H8zm0 4h5v2H8z'/%3E%3C/svg%3E");
}


/* ============================================================
   UNIDADES
============================================================ */

.menu-item[href="unidades.html"] .menu-icon {

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 11 12 3l9 8v10h-6v-6H9v6H3z'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 11 12 3l9 8v10h-6v-6H9v6H3z'/%3E%3C/svg%3E");
}


/* ============================================================
   PESSOAS
============================================================ */

.menu-item[href="pessoas.html"] .menu-icon {

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4' fill='black'/%3E%3Cpath fill='black' d='M4 22v-2a8 8 0 0 1 16 0v2z'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4' fill='black'/%3E%3Cpath fill='black' d='M4 22v-2a8 8 0 0 1 16 0v2z'/%3E%3C/svg%3E");
}


/* ============================================================
   PRODUTOS
============================================================ */

.menu-item[href="produtos.html"] .menu-icon {

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2 9 5v10l-9 5-9-5V7zm0 2.3L6 7.6l6 3.3 6-3.3zM5 9.3v6.5l6 3.3v-6.5zm8 3.3v6.5l6-3.3V9.3z'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2 9 5v10l-9 5-9-5V7zm0 2.3L6 7.6l6 3.3 6-3.3zM5 9.3v6.5l6 3.3v-6.5zm8 3.3v6.5l6-3.3V9.3z'/%3E%3C/svg%3E");
}


/* ============================================================
   SAIR
============================================================ */

.menu-item[href="login.html"] .menu-icon {

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 3h9v3H7v12h6v3H4zm11 4 5 5-5 5v-3H9v-4h6z'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 3h9v3H7v12h6v3H4zm11 4 5 5-5 5v-3H9v-4h6z'/%3E%3C/svg%3E");
}


/* ============================================================
   MENU — COR DOS ÍCONES
============================================================ */

.menu-item .menu-icon {
    color: #FCC200;
}

.menu-item:hover .menu-icon,
.menu-item.active .menu-icon {
    color: #FFD21A;
}


/* ============================================================
   DASHBOARD — ACABAMENTO DOS CARDS
============================================================ */

.dashboard-card {
    color: var(--text);

    text-decoration: none;

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

.dashboard-card:hover {
    transform: translateY(-2px);

    border-color: #dedede;

    box-shadow:
        0 7px 22px
        rgba(0,0,0,.055);
}

.dashboard-card:focus {
    outline: 2px solid rgba(252,194,0,.35);
    outline-offset: 2px;
}


/* ============================================================
   PENDÊNCIAS
============================================================ */

.pending-item {
    color: inherit;

    text-decoration: none;

    border-radius: 7px;

    padding-left: 5px;
    padding-right: 5px;

    transition:
        background .15s ease,
        padding .15s ease;
}

.pending-item:hover {
    background: #fafafa;
}


/* ============================================================
   MELHORIA VISUAL GERAL
============================================================ */

body {
    background: #f4f5f6;
}

.content-card,
.dashboard-card,
.filter-card,
.mini-card {
    border-color: #dedede;
}

.content-card {
    box-shadow:
        0 1px 3px
        rgba(0,0,0,.025);
}


/* ============================================================
   TELAS MENORES / NOTEBOOK
============================================================ */

@media (max-height: 820px) and (min-width: 769px) {

    .sidebar {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .sidebar-logo {
        height: 54px;

        padding-bottom: 10px;

        margin-bottom: 5px;
    }

    .sidebar-logo img {
        max-height: 38px;
    }

    .menu-section {
        margin-top: 10px;
        margin-bottom: 4px;
    }

    .menu-item {
        min-height: 34px;

        padding-top: 5px;
        padding-bottom: 5px;

        font-size: 12px;
    }

    .menu-icon {
        width: 16px;
        height: 16px;

        min-width: 16px;

        -webkit-mask-size: 16px 16px;
        mask-size: 16px 16px;
    }

    .sidebar-footer {
        padding-top: 8px;
        margin-top: 4px;
    }

}


/* ============================================================
   SOBRESCREVE REGRA RESPONSIVA ANTIGA DA SIDEBAR
============================================================ */

@media (max-width: 768px) {

    .sidebar {
        width: 210px;
    }

    .main-content {
        margin-left: 210px;

        width: calc(100% - 210px);
    }

}
/* ============================================================
   CORECO ERP
   RESPONSIVIDADE FINAL
============================================================ */


/* botão mobile fica invisível no desktop */

.mobile-menu-toggle,
.mobile-sidebar-overlay {
    display: none;
}


/* ============================================================
   NOTEBOOK
   Melhor aproveitamento em 1366x768 / telas menores
============================================================ */

@media (max-width: 1400px) and (min-width: 901px) {

    .main-content {
        padding: 24px;
    }

    .dashboard-card {
        min-height: 125px;
        padding: 18px;
    }

    .content-card {
        padding: 20px;
    }

    .topbar {
        margin-bottom: 22px;
    }

    .topbar h1 {
        font-size: 25px;
    }

    .filter-card {
        flex-wrap: wrap;
    }

    .workflow-step {
        min-width: 90px;
    }

}


/* ============================================================
   TABLET / MOBILE
============================================================ */

@media (max-width: 900px) {

    /*
     * CONTEÚDO
     */

    .main-content {
        margin-left: 0 !important;

        width: 100% !important;

        padding: 20px 16px;
    }


    /*
     * SIDEBAR OFF-CANVAS
     */

    .sidebar {
        width: 248px !important;

        height: 100vh;

        left: 0;
        top: 0;

        transform: translateX(-105%);

        transition:
            transform .25s ease;

        z-index: 3000;

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


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


    body.sidebar-mobile-open {
        overflow: hidden;
    }


    /*
     * FUNDO ESCURO AO ABRIR O MENU
     */

    .mobile-sidebar-overlay {
        display: block;

        position: fixed;

        inset: 0;

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

        z-index: 2900;

        opacity: 0;

        visibility: hidden;

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


    .mobile-sidebar-overlay.active {
        opacity: 1;

        visibility: visible;
    }


    /*
     * BOTÃO HAMBURGUER
     */

    .mobile-menu-toggle {
        position: fixed;

        display: flex;

        width: 42px;
        height: 42px;

        left: 14px;
        top: 14px;

        padding: 0;

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

        gap: 4px;

        border: 1px solid #dedede;

        border-radius: 9px;

        background: #fff;

        box-shadow:
            0 3px 12px
            rgba(0,0,0,.08);

        cursor: pointer;

        z-index: 3100;
    }


    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;

        border-radius: 5px;

        background: #262626;

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


    .mobile-menu-toggle.active {
        left: 190px;

        background: #303030;

        border-color: #3c3c3c;
    }


    .mobile-menu-toggle.active span {
        background: #FCC200;
    }


    .mobile-menu-toggle.active span:nth-child(1) {
        transform:
            translateY(6px)
            rotate(45deg);
    }


    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }


    .mobile-menu-toggle.active span:nth-child(3) {
        transform:
            translateY(-6px)
            rotate(-45deg);
    }


    /*
     * TOPBAR
     */

    .topbar {
        padding-left: 52px;

        align-items: flex-start;

        gap: 15px;

        margin-bottom: 22px;
    }


    .topbar h1 {
        font-size: 23px;
    }


    .topbar p {
        font-size: 12px;
    }


    /*
     * DASHBOARD
     */

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

        gap: 12px;
    }


    .dashboard-card {
        min-height: 118px;

        padding: 16px;
    }


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


    /*
     * CARDS DE INDICADORES
     */

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


    /*
     * GRID PRINCIPAL
     */

    .content-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }


    /*
     * AÇÕES
     */

    .page-actions {
        align-items: stretch;

        flex-wrap: wrap;
    }


    .page-search {
        max-width: none;

        min-width: 240px;
    }


    /*
     * FILTROS
     */

    .filter-card {
        display: grid;

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

        align-items: end;
    }


    .filter-group {
        min-width: 0;
    }


    /*
     * TABELAS
     */

    .table-wrapper {
        width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }


    table {
        min-width: 760px;
    }


    /*
     * FLUXO
     */

    .workflow-card {
        overflow-x: auto;

        justify-content: flex-start;

        -webkit-overflow-scrolling: touch;
    }


    .workflow-step {
        flex: 0 0 92px;
    }


    .workflow-line {
        flex: 0 0 35px;
    }


    /*
     * FORNECEDORES
     */

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


    /*
     * FORMULÁRIOS
     */

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


    .form-group.full {
        grid-column: auto;
    }


    /*
     * CARDS
     */

    .content-card {
        padding: 18px;
    }


    .content-card-header {
        align-items: flex-start;

        flex-wrap: wrap;
    }


    /*
     * MODAIS
     */

    .modal-overlay {
        padding: 0;

        align-items: flex-end;
    }


    .modal,
    .modal-small,
    .modal-large {
        width: 100%;

        max-width: none;

        max-height: 94vh;

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


    /*
     * DRAWERS
     */

    .drawer {
        width: min(520px, 100%);
    }

}


/* ============================================================
   CELULAR
============================================================ */

@media (max-width: 600px) {

    .main-content {
        padding:
            16px
            12px
            28px;
    }


    /*
     * TOPO
     */

    .topbar {
        min-height: 48px;

        padding-left: 48px;

        flex-direction: column;
    }


    .topbar h1 {
        font-size: 21px;
    }


    .topbar p {
        margin-top: 4px;

        line-height: 1.4;
    }


    .user-area {
        display: none;
    }


    /*
     * DASHBOARD
     */

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


    .dashboard-card {
        min-height: 105px;
    }


    /*
     * MINI CARDS
     */

    .mini-cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    .mini-card {
        padding: 14px;
    }


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


    /*
     * FILTROS
     */

    .filter-card {
        grid-template-columns: 1fr;

        padding: 14px;
    }


    /*
     * AÇÕES
     */

    .page-actions {
        flex-direction: column;
    }


    .page-search {
        width: 100%;
    }


    .page-actions > .btn-primary,
    .page-actions > .btn-secondary {
        width: 100%;
    }


    .stock-actions {
        width: 100%;

        display: grid;

        grid-template-columns:
            1fr
            1fr;
    }


    .stock-actions .btn-primary {
        grid-column:
            1 / -1;
    }


    /*
     * CONTEÚDO
     */

    .content-card {
        padding: 15px;

        border-radius: 10px;
    }


    .content-card-header {
        margin-bottom: 15px;
    }


    .content-card-header h2 {
        font-size: 16px;
    }


    /*
     * SUMMARY
     */

    .summary-list > div {
        flex-direction: column;

        gap: 4px;
    }


    .summary-list strong {
        text-align: left;
    }


    /*
     * INFO GRID
     */

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


    /*
     * BOTÕES
     */

    .quote-actions,
    .form-actions {
        flex-direction: column;

        align-items: stretch;
    }


    .quote-actions .btn-primary,
    .quote-actions .btn-secondary,
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
    }


    /*
     * MODAIS
     */

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 15px;
        padding-right: 15px;
    }


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


    .modal-footer .btn-primary,
    .modal-footer .btn-secondary,
    .modal-footer .btn-danger {
        width: 100%;
    }


    /*
     * DRAWERS
     */

    .drawer {
        width: 100%;
    }


    .drawer-header,
    .drawer-body,
    .drawer-footer {
        padding-left: 16px;
        padding-right: 16px;
    }


    .drawer-footer {
        flex-direction: column;
    }


    .drawer-footer .btn-primary,
    .drawer-footer .btn-secondary,
    .drawer-footer .btn-danger {
        width: 100%;
    }


    /*
     * AVISOS
     */

    .prototype-notice {
        line-height: 1.45;
    }

}

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}
.logout-form {
    margin: 0;
}

.logout-button {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}   .login-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 14px;
}
/* =========================================================
   SIDEBAR - ÍCONES INDEPENDENTES DE URL
========================================================= */

.menu-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;

    display: inline-block;

    background-color: #FCC200;

    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}


/* Dashboard */
.icon-dashboard {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 3h7v7H3V3zm11 0h7v7h-7V3zM3 14h7v7H3v-7zm11 0h7v7h-7v-7z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 3h7v7H3V3zm11 0h7v7h-7V3zM3 14h7v7H3v-7zm11 0h7v7h-7v-7z'/%3E%3C/svg%3E");
}


/* Solicitações */
.icon-requests {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15H6V2zm8 1.5V8h4.5L14 3.5z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15H6V2zm8 1.5V8h4.5L14 3.5z'/%3E%3C/svg%3E");
}


/* Cotações */
.icon-quotes {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 7h11l-3-3 1.4-1.4L21.8 8l-5.4 5.4L15 12l3-3H7V7zm10 10H6l3 3-1.4 1.4L2.2 16l5.4-5.4L9 12l-3 3h11v2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 7h11l-3-3 1.4-1.4L21.8 8l-5.4 5.4L15 12l3-3H7V7zm10 10H6l3 3-1.4 1.4L2.2 16l5.4-5.4L9 12l-3 3h11v2z'/%3E%3C/svg%3E");
}


/* Aprovações */
.icon-approvals {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.5-4-4L8.2 11l2.6 2.6 5-5L17.2 10l-6.4 6.5z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.5-4-4L8.2 11l2.6 2.6 5-5L17.2 10l-6.4 6.5z'/%3E%3C/svg%3E");
}


/* Ordens */
.icon-orders,
.icon-contracts {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h12v20H6V2zm3 4h6V4H9v2zm0 4h6V8H9v2zm0 4h6v-2H9v2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h12v20H6V2zm3 4h6V4H9v2zm0 4h6V8H9v2zm0 4h6v-2H9v2z'/%3E%3C/svg%3E");
}


/* Estoque */
.icon-stock {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 4h18v4H3V4zm2 6h14v11H5V10zm5 3v3h4v-3h-4z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 4h18v4H3V4zm2 6h14v11H5V10zm5 3v3h4v-3h-4z'/%3E%3C/svg%3E");
}


/* Fornecedores */
.icon-suppliers {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6h11v9h2l2-4h3l2 4v4h-2a3 3 0 0 1-6 0H9a3 3 0 0 1-6 0H1V8h2V6zm3 11a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm12 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6h11v9h2l2-4h3l2 4v4h-2a3 3 0 0 1-6 0H9a3 3 0 0 1-6 0H1V8h2V6zm3 11a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm12 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E");
}


/* Empresas */
.icon-companies {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 2h11v20H4V2zm13 7h3v13h-3V9zM7 5v2h2V5H7zm4 0v2h2V5h-2zM7 9v2h2V9H7zm4 0v2h2V9h-2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 2h11v20H4V2zm13 7h3v13h-3V9zM7 5v2h2V5H7zm4 0v2h2V5h-2zM7 9v2h2V9H7zm4 0v2h2V9h-2z'/%3E%3C/svg%3E");
}


/* Unidades */
.icon-units {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 3 9v13h7v-7h4v7h7V9l-9-7z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 3 9v13h7v-7h4v7h7V9l-9-7z'/%3E%3C/svg%3E");
}


/* Pessoas */
.icon-people {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm-8 10a8 8 0 0 1 16 0H4z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm-8 10a8 8 0 0 1 16 0H4z'/%3E%3C/svg%3E");
}


/* Produtos */
.icon-products {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2 9 5-9 5-9-5 9-5zm-9 8 8 4.4V22l-8-4.5V10zm18 0v7.5L13 22v-7.6L21 10z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2 9 5-9 5-9-5 9-5zm-9 8 8 4.4V22l-8-4.5V10zm18 0v7.5L13 22v-7.6L21 10z'/%3E%3C/svg%3E");
}


/* Sair */
.icon-logout {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 3H4v18h6v-2H6V5h4V3zm4.6 4.6L13.2 9l2 2H9v2h6.2l-2 2 1.4 1.4L19 12l-4.4-4.4z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 3H4v18h6v-2H6V5h4V3zm4.6 4.6L13.2 9l2 2H9v2h6.2l-2 2 1.4 1.4L19 12l-4.4-4.4z'/%3E%3C/svg%3E");
}


.logout-form {
    margin: 0;
    width: 100%;
}

.logout-button {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* === CORECO UI GLOBAL V1 START === */
/* =========================================================
   CORECO ERP · UI GLOBAL V1
   Status semânticos + avisos/alertas mais legíveis
   ========================================================= */

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
    vertical-align: middle;
}

.status::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: .72;
}

/* Compatibilidade com classes antigas */
.status-green,
.status-approved,
.status-qualified,
.status-active {
    color: #166534;
    background: #f0fdf4;
    border-color: #86efac;
}

.status-yellow,
.status-awaiting-approval,
.status-attention,
.status-expiring {
    color: #92400e;
    background: #fffbeb;
    border-color: #fcd34d;
}

.status-blue,
.status-stock-analysis {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #93c5fd;
}

.status-purple,
.status-in-quote {
    color: #6b21a8;
    background: #faf5ff;
    border-color: #d8b4fe;
}

.status-red,
.status-rejected,
.status-suspended,
.status-out-of-stock {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fca5a5;
}

.status-gray,
.status-draft,
.status-cancelled,
.status-inactive,
.status-ended,
.status-not-evaluated,
.status-declined {
    color: #475569;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.status-awaiting-release {
    color: #9a3412;
    background: #fff7ed;
    border-color: #fdba74;
}

.status-awaiting-stock,
.status-awaiting-delivery,
.status-above-ideal {
    color: #075985;
    background: #f0f9ff;
    border-color: #7dd3fc;
}

.status-stock-fulfillment,
.status-stock-fulfilled,
.status-proposal-received {
    color: #115e59;
    background: #f0fdfa;
    border-color: #5eead4;
}

.status-needs-purchase,
.status-below-minimum {
    color: #9f1239;
    background: #fff1f2;
    border-color: #fda4af;
}

.status-po-issued {
    color: #155e75;
    background: #ecfeff;
    border-color: #67e8f9;
}

.status-completed {
    color: #14532d;
    background: #dcfce7;
    border-color: #4ade80;
}

.status-awaiting-supplier,
.status-implementation {
    color: #4338ca;
    background: #eef2ff;
    border-color: #a5b4fc;
}

.status-below-ideal {
    color: #92400e;
    background: #fffbeb;
    border-color: #fcd34d;
}

.status-ideal {
    color: #166534;
    background: #f0fdf4;
    border-color: #86efac;
}

/* ---------- AVISOS / ALERTAS ---------- */

.prototype-notice,
.system-alert {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 3px;
    align-items: start;
    width: 100%;
    min-height: 64px;
    margin: 14px 0 18px;
    padding: 14px 16px;
    color: #713f12;
    background: #fffbeb;
    border: 1px solid #f4cf58;
    border-left: 4px solid #e6aa0f;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

.prototype-notice::before,
.system-alert::before {
    content: "i";
    grid-column: 1;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    color: #713f12;
    background: #fef3c7;
    border: 1px solid #f4cf58;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.prototype-notice > strong,
.system-alert > strong {
    grid-column: 2;
    display: block;
    margin: 0;
    color: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.prototype-notice > span,
.system-alert > span {
    grid-column: 2;
    display: block;
    margin: 0;
    color: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
}

.prototype-notice.notice-info,
.system-alert.notice-info {
    color: #075985;
    background: #f0f9ff;
    border-color: #bae6fd;
    border-left-color: #0284c7;
}

.prototype-notice.notice-info::before,
.system-alert.notice-info::before {
    color: #075985;
    background: #e0f2fe;
    border-color: #bae6fd;
}

.prototype-notice.notice-success,
.system-alert.notice-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
    border-left-color: #22c55e;
}

.prototype-notice.notice-success::before,
.system-alert.notice-success::before {
    content: "✓";
    color: #166534;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.prototype-notice.notice-danger,
.system-alert.notice-danger {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: #ef4444;
}

.prototype-notice.notice-danger::before,
.system-alert.notice-danger::before {
    content: "!";
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

.prototype-notice.notice-warning,
.system-alert.notice-warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
    border-left-color: #f59e0b;
}

.prototype-notice.notice-warning::before,
.system-alert.notice-warning::before {
    content: "!";
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

/* Regras / caixas explicativas */
.approval-rule {
    padding: 14px 16px;
    border-radius: 9px;
    line-height: 1.5;
}

.approval-rule strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.approval-rule span,
.approval-rule p {
    font-size: 13px;
    line-height: 1.55;
}

.approval-rule-icon {
    min-width: 28px;
    width: 28px;
    height: 28px;
    font-size: 13px;
    font-weight: 800;
}

.content-card-header p,
.modal-section-title p,
.drawer-header p,
.topbar p {
    line-height: 1.45;
}

@media (max-width: 720px) {
    .status {
        white-space: normal;
        text-align: left;
    }

    .prototype-notice,
    .system-alert {
        min-height: 0;
        padding: 13px 14px;
    }
}
/* === CORECO UI GLOBAL V1 END === */

/* =====================================================
   APROVAÇÕES - AJUSTES VISUAIS
===================================================== */

.approval-card-actions .btn-secondary {
    justify-content: center;
    text-align: center;
}

.approval-supplier-select {
    width: 100%;
    min-height: 42px;
    padding: 10px 38px 10px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.approval-supplier-select:hover {
    border-color: #c9c9c9;
}

.approval-supplier-select:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(252, 194, 0, .16);
}

.approval-supplier-select:disabled {
    background: #f5f5f5;
    color: var(--muted);
    cursor: not-allowed;
}



/* Ajustes CORECO – formulários e modais em telas compactas. */
.coreco-total-banner {display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin-top:14px;padding:14px 18px;border:1px solid var(--border,#ddd);border-radius:9px;background:#fafafa}
.coreco-total-banner strong {font-size:18px}
.coreco-product-search {width:100%;display:block;min-height:42px;box-sizing:border-box;margin:0 0 8px;padding:10px 12px;border:1px solid var(--border,#ddd);border-radius:7px;background:#fff;color:var(--text,#333);font:inherit;font-size:13px}
.coreco-product-search:focus {outline:2px solid #f4c400;outline-offset:1px}
.modal .form-grid, .drawer .form-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));min-width:0}
.modal .form-group, .drawer .form-group {min-width:0}
.modal .form-group select,.modal .form-group input,.modal .form-group textarea,.drawer .form-group select,.drawer .form-group input,.drawer .form-group textarea {max-width:100%;box-sizing:border-box}
.modal .modal-body {overflow-wrap:anywhere}
@media(max-width:700px) {.modal,.modal-large,.modal-small {max-width:calc(100vw - 24px);width:calc(100vw - 24px)} .modal-footer {flex-wrap:wrap} .modal-footer button {min-width:0;flex:1 1 140px} .request-item-grid {grid-template-columns:1fr}}

/* === CORECO ACABAMENTO FINAL - INPUTS, MODAIS E VALIDAÇÃO === */
:root { --coreco-field-border: #d4d5d8; --coreco-danger: #b42318; }
.modal-overlay .form-grid,
.drawer-overlay .form-grid { min-width: 0; }
.modal-overlay .form-group,
.drawer-overlay .form-group { min-width: 0; }
.modal-overlay :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select, textarea),
.drawer-overlay :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select, textarea),
.quote-decision :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    box-sizing: border-box;
    width: 100%; max-width: 100%; min-width: 0;
    padding: 10px 12px; min-height: 42px;
    font-family: inherit; font-size: 13px; line-height: 1.45;
    color: var(--text, #282828); background: #fff;
    border: 1px solid var(--coreco-field-border); border-radius: 8px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.modal-overlay :is(input, select, textarea):focus-visible,
.drawer-overlay :is(input, select, textarea):focus-visible,
.quote-decision :is(input, select, textarea):focus-visible {
    outline: none; border-color: #d3a100; box-shadow: 0 0 0 3px rgba(252,194,0,.2);
}
.modal-overlay :is(input, select, textarea):disabled,
.drawer-overlay :is(input, select, textarea):disabled {background: #f4f5f6; color: #70757c; cursor: not-allowed;}
.modal-overlay :is(input, select, textarea)[readonly],
.drawer-overlay :is(input, select, textarea)[readonly] {background: #f8f9fa;}
.modal-overlay :is(input, select, textarea)[aria-invalid="true"],
.drawer-overlay :is(input, select, textarea)[aria-invalid="true"] {
    border-color: var(--coreco-danger); box-shadow: 0 0 0 2px rgba(180,35,24,.1);
}
.modal-overlay input:is([type="checkbox"],[type="radio"]),
.drawer-overlay input:is([type="checkbox"],[type="radio"]) {
    appearance: auto; width: 18px; height: 18px; min-width: 18px;
    accent-color: #d9a600; vertical-align: middle; cursor: pointer;
}
.modal-overlay :is(input, select, textarea)::placeholder,
.drawer-overlay :is(input, select, textarea)::placeholder { color: #858a91; opacity: 1; }
.modal-overlay .form-group label,
.drawer-overlay .form-group label { line-height: 1.35; }
.modal-overlay .modal-body { overflow-wrap: normal; }
.modal-overlay :is(.table-wrapper, table) { max-width: 100%; }
.modal-overlay .table-wrapper { overflow-x: auto; }
.modal-overlay .table-wrapper input { min-width: 140px; }
.modal-overlay .modal-footer {flex-shrink: 0; position: relative; z-index: 1;}
.modal-overlay [data-variant-row] {
    grid-template-columns: minmax(150px, 1.6fr) minmax(135px, 1.1fr) minmax(100px, .8fr) auto;
    align-items: end; gap: 12px;
}
.modal-overlay [data-variant-row] > .form-group:last-child { align-items: flex-start; }
.modal-overlay [data-remove-variant] {
    width: auto; min-width: 104px; min-height: 42px; padding: 9px 12px;
    justify-content: center; white-space: nowrap; flex: 0 0 auto;
    background: #fff4f3; color: #992c26; border: 1px solid #f3bfbb;
}
.modal-overlay [data-remove-variant]:hover { background: #ffe5e2; }
.modal-overlay .quote-supplier-row {
    grid-template-columns: 32px minmax(190px, 1.1fr) minmax(210px, 1.2fr) minmax(145px, .8fr) 38px;
    align-items: end; gap: 12px; min-width: 0;
}
.modal-overlay .quote-supplier-row > .form-group { min-width: 0; }
.modal-overlay .quote-supplier-row [data-supplier-attention-warning] textarea { min-height: 72px; }
.modal-overlay .remove-supplier {
    display: inline-flex; align-items:center; justify-content:center;
    width: 38px; height: 42px; margin: 0; font-size: 22px;
    border: 1px solid #f3bfbb; border-radius: 8px;
}
.modal-overlay .remove-supplier:disabled {opacity: .42; cursor:not-allowed;}
.modal-overlay button:focus-visible, .modal-overlay [role="button"]:focus-visible {outline: 3px solid #e3b20b; outline-offset: 2px;}
.coreco-form-error-summary {
    display:flex; flex-direction:column; gap: 5px;
    margin-bottom: 16px; padding: 13px 15px;
    border: 1px solid #f3bbb6; border-left: 4px solid var(--coreco-danger);
    border-radius: 8px; background:#fff4f3; color:#8e211b;
    font-size: 13px; line-height: 1.5;
}
.coreco-form-error-summary strong {font-size: 14px;}
.coreco-field-error {display:block; margin-top:5px; color:var(--coreco-danger); font-size:12px; line-height:1.35;}
.coreco-modal-saving .modal-footer button[type="submit"],
.coreco-modal-saving .modal-footer input[type="submit"] { cursor: wait; opacity: .7; }
.quote-pending-items {
    margin: 12px 0; padding: 12px 14px; border: 1px solid #f5d2b0;
    border-left:4px solid #d88524; border-radius:8px; background:#fffbf5;
    color:#794400; font-size:13px; line-height:1.5;
}
.quote-pending-items ul { margin: 7px 0 0; padding-left: 20px; }
.quote-decision .quote-actions { min-width:0; }
.quote-decision .quote-actions .form-group {min-width:0;}
@media (max-width: 1100px) {
    .modal-overlay .quote-supplier-row {grid-template-columns: 30px minmax(175px,1fr) minmax(175px,1fr) 38px;}
    .modal-overlay .quote-supplier-row > [data-supplier-attention-warning] {grid-column: 2 / 4;}
    .modal-overlay .quote-supplier-row > .form-group:has(input:disabled) { grid-column: 2 / 4; }
}
@media (max-width: 760px) {
    .modal-overlay {padding:12px;}
    .modal-overlay .modal {max-height:calc(100dvh - 24px); max-width:100%;}
    .modal-overlay .modal-header,.modal-overlay .modal-body,.modal-overlay .modal-footer {padding-left:16px; padding-right:16px;}
    .modal-overlay .quote-supplier-row {grid-template-columns: 30px minmax(0,1fr) 38px;}
    .modal-overlay .quote-supplier-row > .form-group,
    .modal-overlay .quote-supplier-row > [data-supplier-attention-warning],
    .modal-overlay .quote-supplier-row > .form-group:has(input:disabled) { grid-column:2 / 3; }
    .modal-overlay .quote-supplier-row .remove-supplier {grid-column:3; grid-row:1;}
    .modal-overlay [data-variant-row] {grid-template-columns:repeat(2, minmax(0,1fr));}
    .modal-overlay [data-variant-row] > .form-group:last-child {align-items:stretch;}
}
@media (max-width: 440px) {
    .modal-overlay [data-variant-row], .modal-overlay .form-grid {grid-template-columns:minmax(0,1fr);}
    .modal-overlay .quote-supplier-row {grid-template-columns:30px minmax(0,1fr) 38px;}
}
/* === FIM CORECO ACABAMENTO FINAL === */


/* === CORECO | Apresentação de fornecedores por item — homologação 15/10/2026 === */
.quote-decision.coreco-quote-decision {
    display: block;
    padding: 24px 26px;
    margin-bottom: 26px;
    min-width: 0;
}
.coreco-quote-decision__intro {
    width: 100%;
    padding-bottom: 17px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e9eaed;
}
.coreco-quote-decision__intro .decision-label {
    color: #777e88;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .045em;
}
.coreco-quote-decision__intro strong {
    font-size: 17px;
    line-height: 1.4;
}
.coreco-quote-decision__intro small {
    max-width: 900px;
    font-size: 13px;
    line-height: 1.5;
}
.coreco-quote-decision__form.quote-actions {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px 20px;
}
.coreco-quote-decision__table {
    grid-column: 1 / -1;
    min-width: 0;
}
.coreco-quote-decision__table .table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e7e8eb;
    border-radius: 8px;
}
.coreco-quote-decision__items {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.coreco-quote-decision__items th,
.coreco-quote-decision__items td {
    padding: 13px 14px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #ebecef;
}
.coreco-quote-decision__items tbody tr:last-child td {border-bottom: 0;}
.coreco-quote-decision__items th {
    background: #f7f8f9;
    color: #5c646e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.coreco-quote-decision__items th:nth-child(1) { width: 48%; }
.coreco-quote-decision__items th:nth-child(2) { width: 12%; }
.coreco-quote-decision__items th:nth-child(3) { width: 40%; }
.coreco-quote-decision__items td:first-child strong {
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.coreco-quote-decision__items td:nth-child(2) {white-space: nowrap;}
.coreco-quote-decision__items select {width:100%;}
.coreco-quote-decision__justification {
    width: 100%;
    max-width: 630px;
    min-width: 0;
    margin: 0;
}
.coreco-quote-decision__justification label {
    display: block;
    margin-bottom: 8px;
    line-height: 1.4;
}
.coreco-quote-decision__justification textarea {
    width: 100%;
    min-height: 86px;
    resize: vertical;
}
.coreco-quote-decision__submit {
    align-self: end;
    justify-self: end;
    min-height: 44px;
    white-space: nowrap;
}
@media (max-width: 800px) {
    .quote-decision.coreco-quote-decision { padding: 18px; }
    .coreco-quote-decision__form.quote-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .coreco-quote-decision__table {width:100%;}
    .coreco-quote-decision__items {min-width: 650px;}
    .coreco-quote-decision__justification {max-width:none;}
    .coreco-quote-decision__submit {width:100%; white-space:normal;}
}
/* === FIM CORECO | Apresentação de fornecedores por item === */


/* CORECO ERP | Homologação final — ações e liberação departamental */
.page-actions .coreco-request-actions {display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;}
.page-actions .coreco-department-access {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:10px 16px;white-space:normal;text-decoration:none;}
.coreco-department-page .topbar {gap:18px;align-items:center;}
.coreco-department-back {white-space:nowrap;text-decoration:none;}
.coreco-department-editor,.coreco-department-current {padding:24px;margin-bottom:22px;}
.coreco-department-card-header {display:flex;gap:12px;align-items:flex-start;justify-content:space-between;margin-bottom:22px;}
.coreco-department-card-header h2 {font-size:19px;margin:0 0 6px;font-weight:700;}
.coreco-department-card-header p {margin:0;color:#68717e;font-size:13px;line-height:1.5;}
.coreco-department-role-label {font-size:11px;font-weight:700;color:#6f5600;background:#fff7d8;border:1px solid #f4df92;padding:8px 12px;border-radius:999px;white-space:nowrap;}
.coreco-department-steps {display:grid;grid-template-columns:minmax(260px,0.85fr) minmax(0,1.15fr);gap:26px;min-width:0;}
.coreco-department-step {display:flex;align-items:flex-start;gap:12px;min-width:0;}
.coreco-department-step>.form-group,.coreco-department-people {flex:1;min-width:0;}
.coreco-department-step .form-group select {width:100%;}
.coreco-department-step small {display:block;color:#707782;font-size:12px;line-height:1.5;margin-top:8px;}
.coreco-department-number {display:inline-grid;place-items:center;flex:0 0 30px;width:30px;height:30px;background:#fff4bf;border:1px solid #f1d25a;color:#453400;border-radius:50%;font-size:13px;font-weight:800;}
.coreco-department-people-heading {display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px;}
.coreco-department-people-heading label {color:#616975;text-transform:uppercase;font-size:11px;font-weight:700;letter-spacing:.35px;}
#department-selected-count {font-size:12px;color:#576271;white-space:nowrap;}
#department-person-filter {width:100%;height:42px;box-sizing:border-box;border:1px solid #d3d7dd;border-radius:8px;background:#fff;padding:0 12px;font:inherit;font-size:13px;}
#department-person-filter:focus {outline:2px solid #ffdc74;outline-offset:0;border-color:#e2ad00;}
.coreco-department-people-list {display:grid;align-content:start;gap:6px;max-height:285px;overflow:auto;overscroll-behavior:contain;border:1px solid #dfe2e5;border-radius:9px;background:#fbfcfd;margin-top:10px;padding:9px;}
.coreco-department-person {display:flex;align-items:center;gap:11px;cursor:pointer;border:1px solid transparent;border-radius:7px;padding:10px 11px;margin:0;background:white;}
.coreco-department-person:hover,.coreco-department-person:has(input:checked) {background:#fff9e4;border-color:#f1dc83;}
.coreco-department-person[hidden] {display:none;}
.coreco-department-person input {flex:0 0 auto;width:17px;height:17px;accent-color:#eab300;cursor:pointer;}
.coreco-department-person-detail {display:flex;flex-direction:column;gap:2px;min-width:0;}
.coreco-department-person-detail strong {font-size:13px;font-weight:700;overflow-wrap:anywhere;}
.coreco-department-person-detail small {margin:0;font-size:11px;color:#68727e;overflow-wrap:anywhere;}
.coreco-department-selection-tools {display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;}
.coreco-department-selection-tools button {font-size:12px;min-height:35px;padding:7px 11px;}
.coreco-department-selection-error {color:#ad2e18;font-size:12px;font-weight:700;margin-top:8px;}
.coreco-department-actions {display:flex;gap:16px;align-items:center;justify-content:flex-end;border-top:1px solid #e8eaed;margin-top:23px;padding-top:17px;}
.coreco-department-actions span {color:#69727d;font-size:12px;}
.coreco-department-actions .btn-primary {min-height:43px;}
.coreco-department-empty-state {display:flex;flex-direction:column;gap:8px;padding:28px 16px;border:1px dashed #d6dbe0;background:#fafbfc;border-radius:8px;color:#5f6975;font-size:13px;}
.coreco-department-empty-state strong {color:#2d3541;}
.coreco-department-table {width:100%;}
.coreco-department-table td {vertical-align:top;line-height:1.5;overflow-wrap:anywhere;}
@media(max-width:900px) {.coreco-department-steps {grid-template-columns:1fr;}}
@media(max-width:700px) {
    .page-actions .coreco-request-actions {width:100%;display:flex;flex-direction:column;align-items:stretch;}
    .page-actions .coreco-request-actions>* {width:100%;}
    .coreco-department-page .topbar {flex-wrap:wrap;}
    .coreco-department-editor,.coreco-department-current {padding:16px;}
    .coreco-department-card-header {flex-direction:column;}
    .coreco-department-steps {gap:20px;}
    .coreco-department-step {gap:9px;}
    .coreco-department-actions {align-items:stretch;flex-direction:column;}
    .coreco-department-actions .btn-primary {width:100%;}
}
/* Fim CORECO ERP | Homologação final */
