﻿/* ============================================================================
   Sius ERP - Camada de UI moderna
   Carregado por ultimo (index.html) para refinar a aparencia sem alterar
   a estrutura/markup das telas existentes.
   ============================================================================ */

:root {
    /* Identidade Usinabras: azul-marinho do triangulo + dourado do circulo */
    --sius-primary: #1f2b6e;
    --sius-primary-600: #172159;
    --sius-primary-700: #101743;
    --sius-primary-300: #2b3c99;
    --sius-accent: #f5a623;
    --sius-accent-600: #e0920b;
    --sius-accent-700: #c47d06;
    --sius-accent-soft: #fff7e8;
    --sius-accent-border: #f2d19a;
    --sius-navy: #1b2a6b;
    --sius-gold: #f5a623;
    --sius-success: #10b981;
    --sius-warning: #f59e0b;
    --sius-danger: #ef4444;

    --sius-bg: #f3f5fb;
    --sius-surface: #ffffff;
    --sius-surface-2: #f8fafc;
    --sius-text: #1f2937;
    --sius-muted: #64748b;
    --sius-border: #e5e9f2;

    --sius-radius: 14px;
    --sius-radius-sm: 10px;
    --sius-radius-xs: 8px;

    --sius-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --sius-shadow: 0 12px 28px -18px rgba(15, 23, 42, .35), 0 4px 10px -6px rgba(15, 23, 42, .12);
    --sius-shadow-lg: 0 28px 60px -28px rgba(15, 23, 42, .45);

    --sius-header: #0b1a2b;
    --sius-sidebar: #0b1f33;
}

/* ----------------------------------------------------------------------------
   Base
   ---------------------------------------------------------------------------- */

html,
body {
    background: var(--sius-bg);
}

body {
    color: var(--sius-text);
    font-family: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(245, 166, 35, .28);
    color: var(--sius-primary-700);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #c3ccdb transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c3ccdb;
    border: 2px solid transparent;
    background-clip: content-box;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9aa8bd;
    background-clip: content-box;
}

a {
    color: var(--sius-primary-600);
    transition: color .16s ease;
}

a:hover,
a:focus {
    color: var(--sius-primary-700);
}

/* ----------------------------------------------------------------------------
   Header / topo
   ---------------------------------------------------------------------------- */

#Header {
    background: linear-gradient(90deg, #070f22 0%, #10204a 55%, #070f22 100%);
    border-bottom: 1px solid rgba(245, 166, 35, .35);
    box-shadow: inset 0 -2px 0 0 var(--sius-gold), 0 12px 30px -20px rgba(2, 12, 27, .95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.logo-cetus {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35)) drop-shadow(0 0 14px rgba(245, 166, 35, .18));
}

/* Assinatura Usinabras no topo: circulo dourado com triangulo marinho */
.usinabras-signature {
    float: left;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    margin: 16px 0 0 4px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.usinabras-signature__mark {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc14d 0%, #f5a623 55%, #e0920b 100%);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, .15), 0 2px 6px rgba(0, 0, 0, .4);
}

.usinabras-signature__mark::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    left: 4px;
    border-radius: 2px;
    background: var(--sius-primary-700);
    -webkit-clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.usinabras-signature__name {
    color: #ffd166;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.btn-profile {
    border-radius: 12px;
    transition: background .16s ease, box-shadow .16s ease;
}

.btn-profile:hover {
    background-color: rgba(255, 255, 255, .09);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.profile_info h2 {
    font-weight: 600;
    letter-spacing: -.2px;
}

.profile_info span {
    color: #ffd166;
    font-weight: 500;
}

.menu-action button {
    border-radius: 10px;
    transition: background .16s ease, transform .16s ease;
}

.menu-action button:hover {
    background-color: rgba(255, 255, 255, .12);
    transform: translateY(-1px);
}

.menu-action i {
    color: #e2e8f0;
}

#Header .dropdown-menu {
    border: 1px solid var(--sius-border);
    border-radius: var(--sius-radius);
    box-shadow: var(--sius-shadow-lg);
    padding: 8px;
}

#Header .dropdown-menu > li > a {
    border-radius: var(--sius-radius-xs);
}

/* ----------------------------------------------------------------------------
   Menu lateral
   ---------------------------------------------------------------------------- */

.left_col {
    background: linear-gradient(180deg, #0a1a2b 0%, #0d253c 55%, #08131f 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05);
}

.nav.side-menu > li {
    border-bottom: 0 !important;
    margin: 2px 8px;
    border-radius: var(--sius-radius-sm);
    transition: background .16s ease;
}

.nav.side-menu > li:hover {
    background-color: rgba(255, 255, 255, .05);
}

.nav.side-menu > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--sius-radius-sm);
    color: #cbd5e1;
    font-weight: 500;
    letter-spacing: .1px;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.nav.side-menu > li > a > i {
    margin-right: 0;
    color: #f2c46a;
    transition: color .16s ease;
}

.nav.side-menu > li > a:hover {
    background: rgba(245, 166, 35, .16);
    color: #ffffff !important;
}

.nav.side-menu > li > a:hover > i {
    color: #ffffff;
}

.nav.side-menu > li > a.active,
.nav.side-menu > li.current-page > a,
.nav.side-menu > li.active > a {
    background: linear-gradient(100deg, #ffc14d 0%, #f5a623 55%, #e0920b 100%) !important;
    color: #16205a !important;
    text-shadow: none;
    box-shadow: 0 10px 22px -14px rgba(245, 166, 35, .95);
}

.nav.side-menu > li > a.active > i,
.nav.side-menu > li.current-page > a > i,
.nav.side-menu > li.active > a > i {
    color: #16205a;
}

.nav.side-menu > li.current-page,
.nav.side-menu > li.active {
    border-right: 0;
}

.nav.child_menu > li > a {
    display: block;
    padding: 7px 12px;
    border-radius: var(--sius-radius-xs);
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 500;
    transition: background .16s ease, color .16s ease;
}

.nav.child_menu > li > a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .06);
}

.nav.child_menu > li > a.active,
.nav.child_menu li.active > a {
    color: #ffd166;
    background: rgba(245, 166, 35, .16);
}

/* Resultados da busca no menu */
.nav.side-menu > li > a.menu-match {
    background: rgba(245, 166, 35, .14);
    color: #ffffff !important;
}

.nav.side-menu > li > a.menu-match > i {
    color: #ffd166;
}

.nav.child_menu > li > a.menu-match {
    background: rgba(245, 166, 35, .16);
    color: #ffd166;
}

.menu-empty {
    margin: 6px 8px;
    padding: 10px 14px;
    border: 1px dashed rgba(255, 255, 255, .18);
    border-radius: var(--sius-radius-xs);
    color: #94a3b8;
    font-size: 12px;
}

.nav.child_menu li:hover,
.nav.child_menu li.active {
    background-color: transparent;
}

.nav-md ul.nav.child_menu li:before {
    background: rgba(125, 211, 252, .85);
    left: 24px;
    width: 6px;
    height: 6px;
    margin-top: 13px;
}

.nav-md ul.nav.child_menu li:after {
    border-left-color: rgba(125, 211, 252, .28);
    left: 26px;
}

.menu_section .right-addon input {
    height: 38px;
    padding: 0 32px 0 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--sius-radius-xs);
    background: rgba(255, 255, 255, .06);
    color: #e2e8f0;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.menu_section .right-addon input::-webkit-input-placeholder {
    color: #94a3b8;
}

.menu_section .right-addon input::placeholder {
    color: #94a3b8;
}

.menu_section .right-addon input:focus {
    outline: none;
    border-color: rgba(245, 166, 35, .65);
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, .18);
}

.menu_section .right-addon .glyphicon {
    color: #94a3b8;
    cursor: pointer;
}

.nav-sm .nav.side-menu > li {
    margin: 2px 6px;
}

.nav-sm .nav.side-menu > li > a {
    padding: 10px 5px;
    gap: 0;
    justify-content: center;
}

/* ----------------------------------------------------------------------------
   Conteudo
   ---------------------------------------------------------------------------- */

body .container.body .right_col {
    background: transparent !important;
}

.right_col {
    padding: 16px 22px 0;
}

.wrapper {
    background: transparent !important;
}

.page {
    animation: sius-fade-in .24s ease;
}

@keyframes sius-fade-in {
    from {
        opacity: .65;
    }

    to {
        opacity: 1;
    }
}

.header h1,
.header.header-fixed h1,
.page > h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
    color: var(--sius-text);
}

/* Barra dourada de identidade ao lado do titulo da pagina */
.page > header > h1,
.page > h1 {
    position: relative;
    padding-left: 16px;
}

.page > header > h1::before,
.page > h1::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 1.1em;
    border-radius: 3px;
    background: linear-gradient(180deg, #ffc14d 0%, var(--sius-gold) 55%, var(--sius-accent-600) 100%);
    transform: translateY(-50%);
}

.filters .btn {
    border-radius: var(--sius-radius-xs);
}

/* ----------------------------------------------------------------------------
   Cards / box / paineis
   ---------------------------------------------------------------------------- */

.box,
.box-border,
.panel,
.x_panel,
.tab-content > .tab-pane,
.tile-stats,
.tile-box {
    border: 1px solid var(--sius-border);
    border-radius: var(--sius-radius);
    background: var(--sius-surface);
    box-shadow: var(--sius-shadow-sm);
}

.box,
.box-border,
.panel,
.x_panel {
    transition: box-shadow .2s ease, transform .2s ease;
}

.box:hover,
.box-border:hover,
.panel:hover,
.x_panel:hover {
    box-shadow: var(--sius-shadow);
}

.box.box-border h4,
.x_title h2,
.panel-title {
    color: var(--sius-text);
    font-weight: 600;
    letter-spacing: -.2px;
}

.box.box-border > h4::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc14d 0%, var(--sius-gold) 55%, var(--sius-accent-600) 100%);
    vertical-align: middle;
}

.x_title {
    border-bottom: 1px solid var(--sius-border);
    padding-bottom: 10px;
}

.panel,
.x_panel {
    overflow: visible;
}

.panel-heading,
.panel-default > .panel-heading {
    border-radius: var(--sius-radius) var(--sius-radius) 0 0;
    border-bottom: 1px solid var(--sius-border);
    background: var(--sius-surface-2);
    color: var(--sius-text);
    font-weight: 600;
}

.panel-body {
    padding: 14px 18px !important;
}

.panel-footer {
    border-top: 1px solid var(--sius-border);
    background: var(--sius-surface-2);
}

.tile-stats,
.tile-box {
    overflow: hidden;
}

/* ----------------------------------------------------------------------------
   Monitor de manutencao / maquinas
   ---------------------------------------------------------------------------- */

.card-monitor {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--sius-border);
    border-radius: var(--sius-radius);
    background: var(--sius-surface);
    box-shadow: var(--sius-shadow-sm);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card-monitor:hover {
    transform: translateY(-2px);
    border-color: #d7deea;
    box-shadow: var(--sius-shadow);
}

.card-monitor--chamado > p:first-child {
    margin: -16px -16px 14px;
    padding: 10px 16px;
    border-radius: var(--sius-radius) var(--sius-radius) 0 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.card-monitor--chamado > p:first-child.bg-media,
.card-monitor--chamado > p:first-child.bg-alta {
    color: #2b1a00;
}

.card-monitor .card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-monitor .card-body .bd-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 10px 12px !important;
    border: 1px solid var(--sius-border);
    border-radius: var(--sius-radius-sm);
    background: var(--sius-surface-2);
}

.card-monitor .card-body .bd-highlight h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1;
}

.card-monitor .card-body .bd-highlight h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.card-monitor h3,
.card-monitor h4,
.card-monitor p {
    margin-bottom: 4px;
}

.card-monitor label {
    color: var(--sius-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.card-monitor--chamado > h2 {
    margin: 10px 0 0;
    font-size: 24px;
    line-height: 1;
    text-align: center;
}

.card-monitor--chamado > h3 {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-align: center;
    text-transform: uppercase;
}

.card-monitor--maquina {
    border: 0;
    color: #ffffff;
}

.card-monitor--maquina.bg-card-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 14px 26px -20px rgba(5, 150, 105, .85);
}

.card-monitor--maquina.bg-card-red {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 14px 26px -20px rgba(185, 28, 28, .85);
}

.card-monitor--maquina > h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.card-monitor--maquina .card-body {
    color: #ffffff;
}

.card-monitor--maquina .card-body .bd-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: var(--sius-radius-sm);
    background: rgba(0, 0, 0, .16) !important;
}

.card-monitor--maquina .card-body .bd-highlight h2 {
    margin: 0;
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.card-monitor--maquina .card-body .bd-highlight h3 {
    margin: 0;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .05em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.card-monitor--maquina .card-body .bd-highlight .text-yellow {
    color: #ffe066 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.card-monitor--maquina .card-body > h3 {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

/* ----------------------------------------------------------------------------
   Monitor de Setup
   ---------------------------------------------------------------------------- */

.monitor-cards .monitor-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: var(--sius-radius);
    color: #ffffff;
    font-size: 12.5px;
    line-height: 1.45;
    box-shadow: 0 14px 28px -22px rgba(15, 23, 42, .55);
    transition: transform .18s ease, box-shadow .18s ease;
}

.monitor-cards .monitor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px -22px rgba(15, 23, 42, .55);
}

.monitor-cards .monitor-card h4 {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
}

.monitor-cards .monitor-card h5 {
    align-self: flex-start;
    margin: 10px 0 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.monitor-cards .monitor-card .card-label {
    display: inline-block;
    min-width: 74px;
    color: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .8;
}

.monitor-cards .monitor-card .card-obs {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: var(--sius-radius-xs);
    background: rgba(0, 0, 0, .15);
    font-weight: 600;
}

.monitor-cards .monitor-card .card-obs .card-label {
    display: block;
    margin-bottom: 2px;
}

.monitor-cards .monitor-card.bg-card-yellow {
    border-color: #e0a91f;
    background: linear-gradient(135deg, #ffd75e 0%, #f7c948 55%, #f0b429 100%) !important;
    color: #3a2a00;
}

.monitor-cards .monitor-card.bg-card-yellow h4,
.monitor-cards .monitor-card.bg-card-yellow h5,
.monitor-cards .monitor-card.bg-card-yellow .card-obs {
    color: #3a2a00;
}

.monitor-cards .monitor-card.bg-card-yellow h4 {
    border-bottom-color: rgba(58, 42, 0, .22);
}

.monitor-cards .monitor-card.bg-card-yellow h5 {
    background: rgba(58, 42, 0, .14);
}

.monitor-cards .monitor-card.bg-card-yellow .card-label {
    color: #5c4a12;
    opacity: .9;
}

.monitor-cards .monitor-card.bg-card-yellow .card-obs {
    background: rgba(255, 255, 255, .45);
}

/* Pendente: todo o conteudo em tom escuro para leitura */
.monitor-cards .monitor-card.bg-card-yellow,
.monitor-cards .monitor-card.bg-card-yellow * {
    color: #241a00;
}

.monitor-cards .monitor-card.bg-card-orange {
    background: linear-gradient(135deg, #fb923c 0%, #f57f17 100%) !important;
}

.monitor-cards .monitor-card.bg-card-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1e88e5 100%) !important;
}

.monitor-cards .monitor-card.bg-card-gray {
    background: linear-gradient(135deg, #8298b2 0%, #607892 100%) !important;
}

.monitor-cards .monitor-card.bg-card-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* ----------------------------------------------------------------------------
   Embarques
   ---------------------------------------------------------------------------- */

.embarque-card {
    overflow: hidden;
    border-radius: var(--sius-radius) !important;
    box-shadow: var(--sius-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}

.embarque-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sius-shadow);
}

.embarque-card.panel-warning {
    border-color: #f5a623 !important;
}

.embarque-card.panel-success {
    border-color: #10b981 !important;
}

.embarque-card > .panel-heading {
    padding: 12px 16px;
    border: 0;
    border-radius: 0;
}

.embarque-card > .panel-heading .panel-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.embarque-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.embarque-cliente {
    font-size: 12.5px;
    font-weight: 600;
    opacity: .92;
}

.embarque-card.panel-warning > .panel-heading {
    background: linear-gradient(90deg, #ffd75e 0%, #f5a623 100%) !important;
    color: #3a2a00 !important;
}

.embarque-card.panel-warning .embarque-status {
    background: rgba(58, 42, 0, .14);
    color: #2b1a00;
}

.embarque-card.panel-warning .embarque-cliente {
    color: #3a2a00;
}

.embarque-card.panel-success > .panel-heading {
    background: linear-gradient(90deg, #34d399 0%, #10b981 100%) !important;
    color: #052e22 !important;
}

.embarque-card.panel-success .embarque-status {
    background: rgba(255, 255, 255, .28);
    color: #052e22;
}

.embarque-card.panel-success .embarque-cliente {
    color: #052e22;
}

/* ----------------------------------------------------------------------------
   Envio de material para producao
   ---------------------------------------------------------------------------- */

.envio-material-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--sius-radius) !important;
    border-width: 1px !important;
    box-shadow: var(--sius-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}

.envio-material-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sius-shadow);
}

.envio-material-card.panel-success {
    border-color: #10b981 !important;
}

.envio-material-card.panel-warning {
    border-color: #f5a623 !important;
}

.envio-material-card.panel-danger {
    border-color: #ef4444 !important;
}

.envio-material-card > .panel-heading {
    padding: 12px 16px;
    border: 0;
    border-radius: 0;
}

.envio-material-card > .panel-heading .panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.envio-material-card > .panel-heading .panel-title .fa {
    font-size: 14px;
}

.envio-material-card.panel-success > .panel-heading {
    background: linear-gradient(90deg, #34d399 0%, #10b981 100%) !important;
    color: #052e22 !important;
}

.envio-material-card.panel-success > .panel-heading .panel-title {
    color: #052e22 !important;
}

.envio-material-card.panel-warning > .panel-heading {
    background: linear-gradient(90deg, #ffd75e 0%, #f5a623 100%) !important;
    color: #3a2a00 !important;
}

.envio-material-card.panel-warning > .panel-heading .panel-title {
    color: #3a2a00 !important;
}

.envio-material-card.panel-danger > .panel-heading {
    background: linear-gradient(90deg, #f87171 0%, #ef4444 100%) !important;
    color: #ffffff !important;
}

.envio-material-card.panel-danger > .panel-heading .panel-title {
    color: #ffffff !important;
}

.envio-material-card > .panel-body {
    flex: 1 1 auto;
    padding: 14px 16px !important;
    overflow: auto;
}

.envio-material-card > .panel-body p {
    margin-bottom: 5px;
    font-size: 12.5px;
}

.envio-material-card > .panel-body p strong {
    color: var(--sius-muted);
    font-weight: 600;
}

.envio-material-card .panel-secondary {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 9.5em;
    margin: 0 16px 14px;
    border: 1px solid var(--sius-border);
    border-radius: var(--sius-radius-sm);
    box-shadow: none;
}

.envio-material-card .panel-secondary:hover {
    box-shadow: none;
}

.envio-material-card .panel-secondary > .panel-heading {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-bottom: 1px solid var(--sius-border);
    border-radius: var(--sius-radius-xs) var(--sius-radius-xs) 0 0;
    background: var(--sius-surface-2);
}

.envio-material-card .panel-secondary .panel-title {
    margin: 0;
    color: var(--sius-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.envio-material-card .panel-secondary .panel-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 8px 12px !important;
}

.envio-material-card .panel-secondary ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.envio-material-card .panel-secondary li {
    position: relative;
    padding: 5px 0 5px 14px;
    border-bottom: 1px dashed var(--sius-border);
    font-size: 12px;
}

.envio-material-card .panel-secondary li:last-child {
    border-bottom: 0;
}

.envio-material-card .panel-secondary li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sius-accent);
    transform: translateY(-50%);
}

.envio-material-card > .panel-footer {
    margin-top: auto;
    padding: 10px 16px !important;
    border-top: 1px solid var(--sius-border);
    background: var(--sius-surface-2);
    font-size: 12px;
}

/* ----------------------------------------------------------------------------
   Botoes
   ---------------------------------------------------------------------------- */

.btn {
    border-radius: var(--sius-radius-xs);
    font-weight: 500;
    letter-spacing: .1px;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--sius-primary) 0%, var(--sius-primary-600) 100%);
    box-shadow: 0 8px 16px -10px rgba(31, 43, 110, .9);
}

/* Botoes que tambem usam .form-control (ex.: filtros) nao podem herdar
   a cor escura do campo */
.btn.btn-primary,
.btn.btn-success,
.btn.btn-danger,
.btn.btn-warning,
.btn.btn-info,
.btn.btn-dark {
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--sius-primary-300) 0%, var(--sius-primary) 100%);
    box-shadow: 0 10px 20px -10px rgba(31, 43, 110, .95);
}

.btn-default {
    border-color: var(--sius-border);
    background: var(--sius-surface);
    color: #334155;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
    border-color: #c9d3e3;
    background: var(--sius-surface-2);
    color: var(--sius-primary-700);
    box-shadow: var(--sius-shadow-sm);
}

.btn-success {
    border-color: transparent;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 16px -10px rgba(16, 185, 129, .9);
}

.btn-danger {
    border-color: transparent;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 16px -10px rgba(239, 68, 68, .9);
}

.btn-warning {
    border-color: transparent;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 16px -10px rgba(245, 158, 11, .9);
}

.btn-info {
    border-color: transparent;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 8px 16px -10px rgba(6, 182, 212, .9);
}

.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn:focus,
.btn:active:focus,
.btn.active:focus {
    outline: none;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, .4);
}

/* botoes customizados que ja possuem cor propria continuam com a cor deles */
.btnDefault,
.btn-dropdown,
.btn-options,
.btn-menu,
.btn-next,
.btn-operador {
    border-radius: var(--sius-radius-xs);
}

/* Botoes legados com azul fixo: alinha com o azul-marinho da marca */
.btn-dropdown,
.btnDefault.blue-background,
.btn-next,
.btn-acessar {
    background-color: var(--sius-primary);
    color: #ffffff;
}

.btn-dropdown:hover,
.btnDefault:hover.blue-background,
.btn-next:hover,
.btn-acessar:hover {
    background-color: var(--sius-primary-600);
    color: #ffffff;
}

.text-primary {
    color: var(--sius-primary) !important;
}

/* ----------------------------------------------------------------------------
   Formularios
   ---------------------------------------------------------------------------- */

.form-group label,
label {
    font-weight: 500;
    color: #475569;
}

.form-control {
    height: 40px;
    border: 1px solid #dbe1ea;
    border-radius: var(--sius-radius-xs);
    background-color: var(--sius-surface);
    color: var(--sius-text);
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--sius-accent);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, .2);
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
    background-color: #f1f5f9;
    color: #94a3b8;
}

.form-control::-webkit-input-placeholder {
    color: #94a3b8;
}

.form-control::placeholder {
    color: #94a3b8;
}

.input-group-addon {
    border-color: #dbe1ea;
    border-radius: var(--sius-radius-xs);
    background: var(--sius-surface-2);
    color: var(--sius-muted);
}

.input-group.date .input-group-addon {
    border-radius: 0 var(--sius-radius-xs) var(--sius-radius-xs) 0 !important;
    background-color: var(--sius-surface-2) !important;
}

.input-group .form-control:first-child {
    border-radius: var(--sius-radius-xs) 0 0 var(--sius-radius-xs);
}

.md-switch .md-bar {
    background-color: #cbd5e1;
}

.md-switch.md-checked .md-bar {
    background-color: rgba(245, 166, 35, .55);
}

.md-switch.md-checked .md-thumb {
    background-color: var(--sius-accent);
}

/* ----------------------------------------------------------------------------
   Tabelas
   ---------------------------------------------------------------------------- */

.table {
    margin-bottom: 0;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th {
    padding: 11px 12px;
    border-bottom: 1px solid var(--sius-border);
    background: var(--sius-surface-2);
    color: var(--sius-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    vertical-align: middle;
}

.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding: 11px 12px;
    border-top: 1px solid var(--sius-border);
    vertical-align: middle;
}

.table > tbody > tr {
    transition: background .14s ease;
}

.table > tbody > tr:hover {
    background: #f8fafc;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: #fbfcfe;
}

.table-bordered {
    border-color: var(--sius-border);
    border-radius: var(--sius-radius-sm);
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > th,
.table-bordered > tfoot > tr > td {
    border-color: var(--sius-border);
}

.table-responsive {
    border: 1px solid var(--sius-border);
    border-radius: var(--sius-radius-sm);
    box-shadow: var(--sius-shadow-sm);
}

/* ----------------------------------------------------------------------------
   Listagens (list-item)
   ---------------------------------------------------------------------------- */

.list-item {
    margin-bottom: 10px;
    border: 1px solid var(--sius-border);
    border-radius: var(--sius-radius);
    background: var(--sius-surface);
    box-shadow: var(--sius-shadow-sm);
    transition: box-shadow .18s ease, border-color .18s ease;
}

.list-item:hover {
    background: var(--sius-surface);
    border-color: #d7deea;
    box-shadow: var(--sius-shadow);
}

.list-item h4 a {
    color: var(--sius-text);
    font-weight: 600;
}

.list-item .status + h4 {
    margin-top: 8px;
}

.list-item h4 a:hover {
    color: var(--sius-primary-600);
}

.list-item p {
    line-height: 1.45;
    color: var(--sius-muted);
}

.list-item p strong {
    color: #475569;
}

.list.list-bordered .list-item > *[class^="col-"] {
    border-right-color: var(--sius-border);
}

/* Listagens em cartao unico (ex.: cotacao, requisicoes, contratos).
   O <li class="row"> vira o cartao e os .list-item internos ficam sem
   borda para evitar a moldura dupla. */
.list.list-bordered > li.row {
    margin: 0 0 16px !important;
    padding: 0;
    border: 1px solid var(--sius-border) !important;
    border-radius: var(--sius-radius);
    background: var(--sius-surface);
    box-shadow: var(--sius-shadow-sm);
    transition: box-shadow .18s ease;
}

.list.list-bordered > li.row:hover {
    box-shadow: var(--sius-shadow);
}

.list.list-bordered > li.row > .list-item {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.list.list-bordered > li.row > .list-item + .list-item {
    border-top: 1px solid var(--sius-border) !important;
}

.list.list-bordered > li.row > .list-item:hover {
    background: transparent !important;
    box-shadow: none !important;
}

/* Garante que o menu de opcoes fique acima dos cards seguintes,
   preservando o posicionamento absoluto do container .options */
.list-item .dropdown.open {
    z-index: 1051;
}

.list.list-bordered > li.row .table.grid-itens-compra {
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
}

.list.list-bordered > li.row .table.grid-itens-compra > thead > tr > th,
.list.list-bordered > li.row .table.grid-itens-compra > tbody > tr > td {
    border-left: 0;
    border-right: 0;
}

.list.list-bordered > li.row .table.grid-itens-compra > thead > tr > th {
    border-top: 0;
}

.list.list-bordered > li.row .table.grid-itens-compra > tbody > tr:last-child > td {
    border-bottom: 0;
}

/* Larguras fixas para as tabelas de cotacao: todas as linhas/registros
   passam a ter as mesmas colunas alinhadas. */
.table.grid-cotacao {
    width: 100%;
    table-layout: fixed;
}

.table.grid-cotacao > thead > tr > th:nth-child(1) {
    width: 44%;
}

.table.grid-cotacao > thead > tr > th:nth-child(2) {
    width: 14%;
}

.table.grid-cotacao > thead > tr > th:nth-child(3) {
    width: 18%;
}

.table.grid-cotacao > thead > tr > th:nth-child(4) {
    width: 24%;
}

.table.grid-cotacao > thead > tr > th:nth-child(2),
.table.grid-cotacao > thead > tr > th:nth-child(3),
.table.grid-cotacao > tbody > tr > td:nth-child(2),
.table.grid-cotacao > tbody > tr > td:nth-child(3) {
    text-align: center;
}

.table.grid-cotacao > tbody > tr > td {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Mesmo alinhamento para as tabelas de requisicao de compra */
.table.grid-requisicao-compra {
    width: 100%;
    table-layout: fixed;
}

.table.grid-requisicao-compra > thead > tr > th:nth-child(1) {
    width: 8%;
}

.table.grid-requisicao-compra > thead > tr > th:nth-child(2) {
    width: 34%;
}

.table.grid-requisicao-compra > thead > tr > th:nth-child(3) {
    width: 12%;
}

.table.grid-requisicao-compra > thead > tr > th:nth-child(4) {
    width: 14%;
}

.table.grid-requisicao-compra > thead > tr > th:nth-child(5) {
    width: 24%;
}

.table.grid-requisicao-compra > thead > tr > th:nth-child(6) {
    width: 8%;
}

.table.grid-requisicao-compra > thead > tr > th:nth-child(3),
.table.grid-requisicao-compra > thead > tr > th:nth-child(4),
.table.grid-requisicao-compra > thead > tr > th:nth-child(6),
.table.grid-requisicao-compra > tbody > tr > td:nth-child(3),
.table.grid-requisicao-compra > tbody > tr > td:nth-child(4),
.table.grid-requisicao-compra > tbody > tr > td:nth-child(6) {
    text-align: center;
}

.table.grid-requisicao-compra > tbody > tr > td {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Ordem de compra */
.table.grid-ordem-compra {
    width: 100%;
    table-layout: fixed;
}

.table.grid-ordem-compra > thead > tr > th:nth-child(1) { width: 8%; }
.table.grid-ordem-compra > thead > tr > th:nth-child(2) { width: 42%; }
.table.grid-ordem-compra > thead > tr > th:nth-child(3) { width: 12%; }
.table.grid-ordem-compra > thead > tr > th:nth-child(4) { width: 16%; }
.table.grid-ordem-compra > thead > tr > th:nth-child(5) { width: 22%; }

.table.grid-ordem-compra > thead > tr > th:nth-child(3),
.table.grid-ordem-compra > thead > tr > th:nth-child(4),
.table.grid-ordem-compra > tbody > tr > td:nth-child(3),
.table.grid-ordem-compra > tbody > tr > td:nth-child(4) {
    text-align: center;
}

/* Compra */
.table.grid-compra {
    width: 100%;
    table-layout: fixed;
}

.table.grid-compra > thead > tr > th:nth-child(1) { width: 10%; }
.table.grid-compra > thead > tr > th:nth-child(2) { width: 65%; }
.table.grid-compra > thead > tr > th:nth-child(3) { width: 25%; }

.table.grid-compra > thead > tr > th:nth-child(3),
.table.grid-compra > tbody > tr > td:nth-child(3) {
    text-align: center;
}

/* Requisicao de material */
.table.grid-requisicao-material {
    width: 100%;
    table-layout: fixed;
}

.table.grid-requisicao-material > thead > tr > th:nth-child(1) { width: 10%; }
.table.grid-requisicao-material > thead > tr > th:nth-child(2) { width: 50%; }
.table.grid-requisicao-material > thead > tr > th:nth-child(3) { width: 20%; }
.table.grid-requisicao-material > thead > tr > th:nth-child(4) { width: 20%; }

/* Embarque */
.table.grid-embarque {
    width: 100%;
    table-layout: fixed;
}

.table.grid-embarque > thead > tr > th:nth-child(1) { width: 6%; }
.table.grid-embarque > thead > tr > th:nth-child(2) { width: 8%; }
.table.grid-embarque > thead > tr > th:nth-child(3) { width: 34%; }
.table.grid-embarque > thead > tr > th:nth-child(4) { width: 8%; }
.table.grid-embarque > thead > tr > th:nth-child(5) { width: 6%; }
.table.grid-embarque > thead > tr > th:nth-child(6) { width: 6%; }
.table.grid-embarque > thead > tr > th:nth-child(7) { width: 6%; }
.table.grid-embarque > thead > tr > th:nth-child(8) { width: 12%; }
.table.grid-embarque > thead > tr > th:nth-child(9) { width: 14%; }

.table.grid-ordem-compra > tbody > tr > td,
.table.grid-compra > tbody > tr > td,
.table.grid-requisicao-material > tbody > tr > td,
.table.grid-embarque > tbody > tr > td {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Cabecalho do registro: status em pill e metadados alinhados */
.list-properties {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
}

.list-properties li {
    display: inline-flex;
    align-items: center;
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 1.2;
}

.list-properties li + li {
    padding-left: 10px;
    border-left: 1px solid var(--sius-border);
}

.list-properties .status,
.list-item .status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px 4px 8px;
    border: 1px solid var(--sius-border);
    border-radius: 999px;
    background: var(--sius-surface-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
}

.list-properties .status:before,
.list-item .status:before {
    float: none;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 0 6px 0 0;
    border-radius: 50%;
    font-size: 8px;
    line-height: 15px;
}

.list-feature {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    margin-bottom: 0;
}

.list-feature dt,
.list-feature dd {
    float: none;
    margin: 0;
    line-height: 1.5;
}

.list-feature dt {
    color: var(--sius-muted);
    font-weight: 500;
}

.list-feature dd {
    color: var(--sius-text);
    font-weight: 600;
}

/* Dentro dos cards de listagem, alinha rotulo e valor em colunas */
.list-item .list-feature {
    display: grid;
    grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
    align-items: baseline;
    gap: 4px 12px;
    width: 100%;
}

.list-item .list-feature dt,
.list-item .list-feature dd {
    min-width: 0;
}

.list-item .list-feature dt {
    text-align: left;
}

.list-item .list-feature dd {
    text-align: left;
}

/* Barra de total/acoes das listagens */
.search-page .no-results {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px 14px;
    border: 1px solid var(--sius-border);
    border-radius: var(--sius-radius-sm);
    background: var(--sius-surface);
    box-shadow: var(--sius-shadow-sm);
    font-size: 13px;
}

.search-page .no-results > strong {
    margin-right: auto;
}

.search-page .no-results > .btn:first-of-type {
    margin-left: auto;
}

/* Botao de opcoes no cabecalho do registro */
.list-item .dropdown.options > a.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--sius-border);
    border-radius: var(--sius-radius-xs);
    background: var(--sius-surface);
    color: var(--sius-muted);
    font-size: 12px;
    font-weight: 600;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.list-item .dropdown.options > a.dropdown-toggle:hover,
.list-item .dropdown.options.open > a.dropdown-toggle {
    border-color: var(--sius-accent-border);
    background: var(--sius-accent-soft);
    color: var(--sius-primary-600);
}

/* ----------------------------------------------------------------------------
   Abas
   ---------------------------------------------------------------------------- */

.nav-tabs {
    border-bottom: 1px solid var(--sius-border);
}

.nav-tabs > li > a {
    margin-right: 4px;
    border: 0;
    border-radius: var(--sius-radius-xs) var(--sius-radius-xs) 0 0;
    color: var(--sius-muted);
    font-weight: 600;
    transition: color .16s ease, background .16s ease;
}

.nav-tabs > li > a:hover {
    border-color: transparent;
    background: var(--sius-surface-2);
    color: var(--sius-primary-600);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border: 0;
    border-bottom: 2px solid var(--sius-primary);
    background: transparent;
    color: var(--sius-primary-600);
    font-weight: 600;
}

.tab-content > .tab-pane,
.tab-content > .active {
    padding: 14px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Abas de pagina (ex.: Cadastro de Produto): chips alinhados com quebra
   uniforme, evitando o visual "solto" de textos flutuando em varias linhas. */
.page > .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    float: none;
    margin: 4px 0 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--sius-border);
}

.page > .nav-tabs::before,
.page > .nav-tabs::after {
    display: none;
    content: none;
}

.page > .nav-tabs > li {
    display: inline-flex;
    float: none;
    margin: 0;
}

.page > .nav-tabs > li > a {
    display: inline-flex;
    align-items: center;
    height: 34px;
    margin: 0 !important;
    padding: 0 14px;
    border: 1px solid var(--sius-border) !important;
    border-radius: 999px;
    background: var(--sius-surface);
    color: var(--sius-muted);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.page > .nav-tabs > li > a:hover,
.page > .nav-tabs > li > a:focus {
    border-color: var(--sius-accent-border) !important;
    background: var(--sius-accent-soft);
    color: var(--sius-primary-600);
}

.page > .nav-tabs > li.active > a,
.page > .nav-tabs > li.active > a:hover,
.page > .nav-tabs > li.active > a:focus {
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--sius-primary-300) 0%, var(--sius-primary) 100%);
    color: #ffffff;
    box-shadow: 0 8px 16px -10px rgba(31, 43, 110, .9), inset 0 -2px 0 0 var(--sius-gold);
}

/* ----------------------------------------------------------------------------
   Dropdowns
   ---------------------------------------------------------------------------- */

.dropdown-menu {
    padding: 6px;
    border: 1px solid var(--sius-border);
    border-radius: var(--sius-radius);
    background: var(--sius-surface);
    box-shadow: var(--sius-shadow-lg);
}

.dropdown-menu > li > a {
    padding: 8px 12px;
    border-radius: var(--sius-radius-xs);
    color: #334155;
    font-weight: 500;
    transition: background .14s ease, color .14s ease;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: var(--sius-accent-soft);
    color: var(--sius-primary-700);
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    background: var(--sius-primary);
    color: #ffffff;
}

.dropdown-menu .divider {
    margin: 6px 4px;
    background-color: var(--sius-border);
}

/* ----------------------------------------------------------------------------
   Modais
   ---------------------------------------------------------------------------- */

.modal-content {
    overflow: hidden;
    border: 0;
    border-radius: var(--sius-radius);
    box-shadow: var(--sius-shadow-lg);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--sius-border);
    background: var(--sius-surface);
}

.modal-header.bg-primary {
    background: linear-gradient(100deg, var(--sius-primary) 0%, var(--sius-primary-700) 100%) !important;
    color: #ffffff;
}

.modal-title,
.modal-header strong {
    font-weight: 600;
    letter-spacing: -.2px;
}

.modal-body {
    padding: 18px 20px;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--sius-border);
    background: var(--sius-surface-2);
}

.modal-backdrop.in {
    opacity: .45;
}

/* ----------------------------------------------------------------------------
   Alertas / feedback
   ---------------------------------------------------------------------------- */

.alert {
    padding: 12px 16px;
    border: 0;
    border-left: 4px solid rgba(0, 0, 0, .12);
    border-radius: var(--sius-radius-sm);
    background-image: none !important;
    box-shadow: var(--sius-shadow);
}

.alert-success {
    border-left-color: #059669;
    background-color: #ecfdf5;
    color: #065f46;
}

.alert-info {
    border-left-color: #0891b2;
    background-color: #ecfeff;
    color: #155e75;
}

.alert-warning {
    border-left-color: #d97706;
    background-color: #fffbeb;
    color: #92400e;
}

.alert-danger,
.alert-error {
    border-left-color: #dc2626;
    background-color: #fef2f2;
    color: #991b1b;
}

.easy-alert-container {
    position: fixed;
    top: 76px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: 380px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}

.easy-alert-container .easy-alert {
    border-radius: var(--sius-radius-sm);
}

.easy-alert-container .alert {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding-right: 40px;
    pointer-events: auto;
    box-shadow: var(--sius-shadow-lg);
    animation: sius-alert-in .2s ease;
}

@keyframes sius-alert-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.easy-alert-container .alert .close {
    top: 50% !important;
    right: 12px !important;
    margin-top: -8px;
}

/* ----------------------------------------------------------------------------
   Paginacao
   ---------------------------------------------------------------------------- */

.pagination > li > a,
.pagination > li > span,
.pager li > a,
.pager li > span {
    margin: 0 2px;
    border: 1px solid var(--sius-border);
    border-radius: var(--sius-radius-xs) !important;
    background: var(--sius-surface);
    color: #475569;
    font-weight: 500;
    transition: background .14s ease, color .14s ease, border-color .14s ease;
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pager li > a:hover,
.pager li > a:focus {
    border-color: var(--sius-primary);
    background: var(--sius-accent-soft);
    color: var(--sius-primary-700);
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span {
    border-color: var(--sius-primary);
    background: var(--sius-primary);
    color: #ffffff;
}

.pagination > .disabled > a,
.pagination > .disabled > span {
    border-color: var(--sius-border);
    background: var(--sius-surface-2);
    color: #cbd5e1;
}

/* ----------------------------------------------------------------------------
   Rodape
   ---------------------------------------------------------------------------- */

footer {
    padding: 16px 22px;
    border-top: 1px solid var(--sius-border);
    background: transparent;
    color: var(--sius-muted);
    font-size: 12px;
}

footer a {
    color: var(--sius-primary-600);
    font-weight: 600;
}

/* ----------------------------------------------------------------------------
   Ajustes gerais de componentes legados
   ---------------------------------------------------------------------------- */

.badge {
    border-radius: 999px;
    font-weight: 600;
}

.label {
    border-radius: 999px;
    padding: .3em .7em;
    font-weight: 600;
}

/* Status de contas a pagar / receber */
.label.spaced-bottom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 4px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.3;
}

.label.spaced-bottom:before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .9;
}

.label.spaced-bottom.label-warning {
    border-color: #fcd34d;
    background: #fff7e0;
    color: #b45309;
}

.label.spaced-bottom.label-success {
    border-color: #86efac;
    background: #e8f8ef;
    color: #047857;
}

.label.spaced-bottom.label-danger {
    border-color: #fca5a5;
    background: #fdecec;
    color: #b91c1c;
}

.label.spaced-bottom.label-primary {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #1f2b6e;
}

.label.spaced-bottom.label-canceled {
    border-color: #cbd5e1;
    background: #eef1f5;
    color: #475569;
}

.progress {
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf5;
}

.progress-bar {
    border-radius: 999px;
}

.well {
    border: 1px solid var(--sius-border);
    border-radius: var(--sius-radius);
    background: var(--sius-surface-2);
    box-shadow: none;
}

.navbar-default {
    border-radius: var(--sius-radius);
}

.breadcrumb {
    border-radius: var(--sius-radius-sm);
    background: var(--sius-surface-2);
}

/* ----------------------------------------------------------------------------
   Responsivo
   ---------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .right_col {
        padding: 14px 14px 0;
    }

    .header.header-fixed {
        width: 100%;
    }

    .usinabras-signature {
        display: none;
    }
}

@media (max-width: 576px) {
    .right_col {
        padding: 12px 10px 0;
    }

    .easy-alert-container {
        top: 68px;
        right: 10px;
        left: 10px;
        width: auto;
        align-items: stretch;
    }

    .header h1,
    .header.header-fixed h1 {
        font-size: 18px;
    }

    .modal-body {
        padding: 14px;
    }
}


