/* =========================================================
   Sentinela One — Application CSS
   Tokens alinhados ao UI Kit v2026.05
   ========================================================= */

/* ---------- Fontes locais Mulish ---------- */
@font-face { font-family:"Mulish"; src:url("../fonts/Mulish-Light.ttf") format("truetype"); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:"Mulish"; src:url("../fonts/Mulish-Regular.ttf") format("truetype"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Mulish"; src:url("../fonts/Mulish-Italic.ttf") format("truetype"); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:"Mulish"; src:url("../fonts/Mulish-Medium.ttf") format("truetype"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Mulish"; src:url("../fonts/Mulish-SemiBold.ttf") format("truetype"); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:"Mulish"; src:url("../fonts/Mulish-Bold.ttf") format("truetype"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Mulish"; src:url("../fonts/Mulish-ExtraBold.ttf") format("truetype"); font-weight:800; font-style:normal; font-display:swap; }
@font-face { font-family:"Mulish"; src:url("../fonts/Mulish-Black.ttf") format("truetype"); font-weight:900; font-style:normal; font-display:swap; }

/* ---------- Tokens ---------- */
:root {
    --orange:          #FF4D00;
    --orange-dark:     #CC3D00;
    --orange-light:    #FFF0EB;
    --gray:            #424242;
    --gray-light:      #6B6B6B;
    --gray-soft:       #9A9A9A;
    --cream:           #FAF7F2;
    --white:           #FFFFFF;
    --green:           #01BE06;
    --green-dark:      #019404;
    --green-hover:     #01d907;
    --green-light:     #E6F9E6;
    --btn-whatsapp:        #1F8D7D;
    --btn-whatsapp-hover:  #27aa99;
    --blue:            #22AED1;
    --blue-dark:       #1a8faa;
    --blue-hover:      #3dc8e8;
    --blue-light:      #E8F7FB;
    --red:             #E10600;
    --yellow:          #FFD500;
    --border:          rgba(66,66,66,0.12);
    --border-strong:   rgba(66,66,66,0.35);
    --shadow-sm:       0 2px 6px rgba(0,0,0,0.05);
    --shadow-md:       0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg:       0 12px 40px rgba(0,0,0,0.10);
    --radius-sm:       6px;
    --radius-md:       8px;
    --radius-lg:       12px;
    --subbar-padding:  14px;
    --subbar-inner-gap: 18px;
    --font:            "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

}

/* ---------- Reset / base ---------- */
.highcharts-credits,
.hidden { display: none !important; }

html, body {
    height: 100%;
    min-height: 100%;
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

html, body, div, p, table, td, ul, li, select, label, input, a {
    font-family: var(--font);
    font-size: 14px;
    color: var(--gray);
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 800;
    color: var(--gray);
}
h3, h4, h5, h6 { color: var(--gray-light); font-weight: 700; }

h1 { font-size: 32px; letter-spacing: -0.01em; }
h2 { font-size: 28px; }
h2.title { margin: 0; }

h1.head-title {
    font-size: 22px;
    margin-top: 0;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
}

.subtitulo {
    font-size: 15px;
    color: var(--gray-light);
    padding-left: 0;
    padding-top: 5px;
    margin: 0;
    font-weight: 600;
}

.subtitulo2 {
    font-size: 13px;
    color: var(--gray-soft);
    border-bottom: 2px solid var(--orange);
}

.page-subtitle {
    font-size: 14px;
    color: var(--gray);
    margin: 4px 0 0 0;
}

#barra_superior .page-subtitle {
    margin-top: 42px;
}

/* ---------- Layout ---------- */
.row {
    margin-right: auto !important;
    margin-left:  auto !important;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    margin-top: 20px !important;
    padding: 47px 0 20px 0;
}

.conteudo { padding: 0 10px 10px 10px; }

#buttons { margin-top: 10px; float: right; }

#barra_superior {
    margin-bottom: 30px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 15px;
    min-height: 120px;
}

.breadcrumb { background: none; }
#breadcrumbs > ul { margin: 0; padding: 0; }
.breadcrumb > .active { color: var(--gray-soft); }

#breadcrumbs {
    position: relative;
    top: 75px;
    margin-left: 15px;
}

.help-block { margin: 0; }

.colored-line-left, .colored-line-right, .colored-line {
    background: var(--orange);
    float: left;
    display: block;
    width: 80px;
    height: 3px;
    margin-bottom: 20px;
    border-radius: 2px;
}

/* ---------- Tabela / relatório ---------- */
#pdf-content { padding-right: 20px; }
#chart-container { margin-left: 10px; width: 99%; }

#info_empresa {
    background-color: var(--cream);
    border: 2px dashed var(--border-strong);
    padding: 10px;
    display: inline-block;
    margin-top: 20px;
}

#tb_relatorio_rodape,
#tb_relatorio_cabecalho,
#tb_info_adicional,
#tb_info_rodape {
    margin-left: 10px;
    border: none;
    width: 98%;
    text-align: center;
}

#tb_info_botoes {
    margin-top: 100px;
    margin-bottom: 150px;
    border: none;
    width: 100%;
    text-align: center;
}

#tb_relatorio_cabecalho > tbody > tr > td,
#tb_relatorio_cabecalho > tbody > tr,
#tb_relatorio_cabecalho > tbody > tr > th,
#tb_info_rodape > tbody > tr > th,
#tb_info_adicional > tbody > tr > th,
#tb_relatorio_rodape > tr > td,
#tb_info_adicional > tr > th,
#tb_info_rodape > tr > th,
#tb_relatorio_cabecalho > tr > th,
#tb_relatorio_cabecalho > tr > td,
#tb_info_botoes > tr > td { border: none; padding: 5px !important; }

.table-bordered > tbody > tr > td { padding: 5px; }
#tb_info_adicional > tr > td { font-size: 15px; font-weight: bold; }
#tb_info_rodape > tr > td { font-size: 15px; }
#tb_info_rodape > tr > th,
#tb_info_adicional > tr > th { padding-left: 0; }

/* ---------- Filtro de pesquisa ---------- */
.quad-search {
    background-color: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-top: 70px;
    margin-bottom: 0;
    min-height: 20px;
    padding: 20px;
}

.control-label { padding-right: 10px; }

.form-gray {
    overflow-x: auto;
    background-color: var(--cream);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius-lg);
    padding: 15px;
    min-height: 300px;
}

/* ---------- Barras de aviso ---------- */
.barra-teste {
    margin-bottom: 0 !important;
    background-color: var(--red) !important;
    color: #fff !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-top: 30px;
}

.barra-cliente {
    margin-bottom: 0 !important;
    background-color: var(--orange) !important;
    color: #fff !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-top: 30px;
}

/* ---------- Footer ---------- */
.footer {
    height: 60px;
    border-top: none;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: var(--gray);
    color: rgba(255,255,255,0.7);
}

.footer a, .footer p { color: rgba(255,255,255,0.7); }
.footer a:hover { color: #fff !important; }

/* ---------- Misc Bootstrap overrides ---------- */
.jumbotron { text-align: center; background-color: transparent; }
.jumbotron .btn { font-size: 21px; padding: 14px 24px; }

.not-set { color: #c55; font-style: italic; }
.form-control { display: inline-block; }
.inline { display: inline-block !important; }
.botao_grid { margin-right: 5px; }

/* sorting icons */
a.asc:after, a.desc:after {
    position: relative; top: 1px; display: inline-block;
    font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: normal; line-height: 1; padding-left: 5px;
}
a.asc:after  { content: "\e151"; }
a.desc:after { content: "\e152"; }
.sort-numerical a.asc:after  { content: "\e153"; }
.sort-numerical a.desc:after { content: "\e154"; }
.sort-ordinal a.asc:after    { content: "\e155"; }
.sort-ordinal a.desc:after   { content: "\e156"; }

.grid-view th { white-space: nowrap; }
.upper { text-transform: uppercase; }
.hint-block { display: block; margin-top: 5px; color: var(--gray-soft); }

.error-summary {
    color: var(--red);
    background: #fdf7f7;
    border-left: 3px solid var(--red);
    padding: 10px 20px;
    margin: 0 0 15px 0;
    border-radius: var(--radius-sm);
}

/* ---------- Botões ---------- */
.cla-btn {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    color: white;
    margin-right: 5px;
    text-decoration: none !important;
    transition: background-color 150ms, color 150ms, border-color 150ms;
    cursor: pointer;
}

.cla-btn svg { pointer-events: none; }

.btn-primary {
    background-color: var(--orange);
    background-image: none !important;
    border: 1.5px solid var(--orange);
    color: #fff !important;
}

.btn-green {
    background-color: var(--green);
    border: 1.5px solid var(--green);
    color: #fff;
}

.btn-dark {
    background-color: var(--gray);
    border: 1.5px solid var(--gray);
    color: #fff;
}

.btn-blue, .kv-editable-submit {
    background-color: #1a73e8;
    border: 1.5px solid #1a73e8;
    color: #fff;
}

.btn-red {
    background-color: #d53c3e;
    background-image: none !important;
    border: 1.5px solid #d53c3e;
    color: #fff !important;
}

.btn-gray {
    background-color: var(--gray-soft);
    background-image: none !important;
    border: 1.5px solid var(--gray-soft);
    color: #fff !important;
}

.btn-orange {
    background-color: var(--orange);
    background-image: none !important;
    border: 1.5px solid var(--orange);
    color: #fff !important;
}

.btn-grad-green {
    background: var(--green);
    border: 1.5px solid var(--green);
    color: var(--white) !important;
}
.btn-grad-green:hover, .btn-grad-green:active, .btn-grad-green:focus {
    background: var(--green-hover) !important;
    border-color: var(--green-hover) !important;
    color: var(--white) !important;
    outline: none;
}

.btn-grad-blue {
    background: var(--blue);
    border: 1.5px solid var(--blue);
    color: var(--white) !important;
}
.btn-grad-blue:hover, .btn-grad-blue:active, .btn-grad-blue:focus {
    background: var(--blue-hover) !important;
    border-color: var(--blue-hover) !important;
    color: var(--white) !important;
    outline: none;
}

/* hover unificado — verde em todos os botões */
button[type=submit]:hover, button[type=submit]:active,
.btn-primary:hover, .btn-primary:active, .btn-primary:focus,
.btn-gray:hover,    .btn-gray:active,    .btn-gray:focus,
.btn-orange:hover,  .btn-orange:active,  .btn-orange:focus,
.btn-red:hover,     .btn-red:active,     .btn-red:focus,
.btn-dark:hover,    .btn-dark:active,    .btn-dark:focus {
    color: #fff !important;
    background-image: none !important;
    background-color: var(--green-dark) !important;
    border-color: var(--green-dark) !important;
    outline: none;
}

.btn-green:hover, .btn-green:active, .btn-green:focus {
    color: var(--white) !important;
    background-color: var(--green-hover) !important;
    border-color: var(--green-hover) !important;
    outline: none;
}

.btn-login {
    width: 300px;
    border-radius: var(--radius-sm);
    height: 40px;
    margin-left: 5px;
}

/* ---------- Utilitários de tamanho ---------- */
.large   { font-size: 120%; }
.xlarge  { font-size: 150%; }
.xxlarge { font-size: 200%; }

/* ---------- Utilitários de cor ---------- */
.f-red    { color: var(--red); }
.f-green  { color: var(--green); }
.f-blue   { color: #1a73e8; }
.f-orange { color: var(--orange); }
.f-gray   { color: var(--gray-soft); }

.text-red    { color: var(--red); }
.text-yellow { color: var(--yellow); }
.text-blue   { color: #1a73e8; }
.text-white  { color: #fff; }
.text-green  { color: var(--green); }
.text-orange { color: var(--orange); }
.text-black  { color: #000; }

.bg-red    { background-color: var(--red); }
.bg-green  { background-color: var(--green); }
.bg-blue   { background-color: #1a73e8; }
.bg-orange { background-color: var(--orange); }
.bg-gray   { background-color: var(--gray-soft); }

.card-white {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

/* card-label injetado via JS: oculto no desktop, visível só no mobile */
.card-label { display: none; }

/* ---------- Rodapé de formulário ---------- */
.bottomFormButtons {
    border-top: 1px solid var(--border);
    margin-top: 30px;
    height: 60px;
    text-align: right;
    padding-right: 30px;
    padding-top: 10px;
}

/* ---------- Menu / navbar ---------- */
.navbar-inverse {
    background-image: none;
    background-color: rgba(36,34,30,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dropdown-menu { }

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus { background-image: none; }

#logo:hover { background: none; }

.navbar-nav > li > a { font-size: 14px; font-weight: 600; }
.dropdown-menu > li > a {
    font-size: 14px;
    padding-top: 10px;
    height: 40px;
    padding-left: 10px;
}

/* Ancora estilos do dropdown no NavBar (#menu-inicial) para vencer regras de widget auto-gerado (#wXX) */
#menu-inicial .dropdown-menu > li > a {
    color: var(--gray) !important;
}

#menu-inicial .dropdown-menu > li > a:hover,
#menu-inicial .dropdown-menu > li > a:focus {
    background-image: none;
    background-color: var(--orange-light);
    color: var(--orange) !important;
}

#menu-inicial .dropdown-menu > .active > a,
#menu-inicial .dropdown-menu > .active > a:hover,
#menu-inicial .dropdown-menu > .active > a:focus {
    background-image: none;
    background-color: #24221E !important;
    color: #fff !important;
}

#img_menu_item { margin-left: -15px; max-height: 30px; margin-right: 10px; }

.dropdown-menu > li > a span.fa { font-size: 130%; padding-right: 8px; }

/* ---------- Mensagens flash ---------- */
#msgs {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 9999;
    font-weight: bold;
    color: #fff;
    padding: 10px 16px;
    display: none;
    border-radius: 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
#msgs, #msgs * { color: #fff; }

.btnMsgsClose,
.btnMsgsClose:hover { color: #fff; padding-top: 2px; padding-right: 10px; float: right; }

/* ---------- Inputs ---------- */
.form-control { border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); }
.form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,77,0,0.12); outline: none; }
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background-color: #e9e9e9; }

.fields_line { margin-top: 15px; }

/* ---------- Cards de formulário ---------- */
.titleQuadForm {
    margin: 20px 20px 10px 10px;
    width: 96%;
    border-bottom: 2px solid var(--orange);
    font-size: 15px;
    color: var(--gray);
    font-weight: 700;
}

.quadForm {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
    padding: 10px;
}

/* ---------- Tabela display helpers ---------- */
.rTable      { display: table; }
.tbRow       { display: table-row; }

/* ---------- Color picker ---------- */
.color-ball {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.15);
    cursor: pointer;
    margin: 0 8px 8px 0;
    vertical-align: middle;
    transition: transform .1s, box-shadow .1s;
}
.color-ball:hover  { transform: scale(1.15); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.color-ball.selected { border: 3px solid #333; transform: scale(1.15); }

/* ---------- User form ---------- */
.user-form .tbCell label.subtitulo { margin-top: 15px; display: block; }
.user-form input[type="text"],
.user-form input[type="email"],
.user-form input[type="tel"],
.user-form input[type="password"] {
    width: 350px;
    max-width: 100%;
    box-sizing: border-box;
}
.rTableHeading { display: table-header-group; }
.rTableBody  { display: table-row-group; }
.rTableFoot  { display: table-footer-group; }
.tbCell, .rTableHead { display: table-cell; }
.tbRow .tbCell + .tbCell { padding-left: 12px; }

#tbSendType td { padding: 0; }

.trSingleMobile:hover td,
.trUserType:hover td,
.trUserGroup:hover td,
.trCustomer:hover td { background-color: var(--orange-light); }

/* ---------- Switcher ---------- */
#switcher { list-style: none; margin: 0 auto; padding: 0; overflow: hidden; }
#switcher li {
    float: left; height: 20px; font-size: 13px;
    padding: 2px 5px 0; text-transform: lowercase;
    margin: 0 5px 5px 0; border-radius: 5px;
}

/* ---------- Ícones ---------- */
.glyphicon { font-size: 120%; display: inline; }

.btn-edit-note i { font-size: 24px; width: 24px; height: 24px; display: inline-block; text-align: center; vertical-align: middle; }

.action-column a { display: inline-block; padding: 2px 4px; color: var(--orange); }
.action-column svg,
.action-column a svg,
.action-column a svg path {
    width: 24px !important; height: 24px !important;
    font-size: 24px !important; min-width: 24px !important; min-height: 24px !important;
    vertical-align: middle !important;
}

/* ---------- Alertas ---------- */
.alert { margin-top: -10px; margin-bottom: 20px; border-radius: var(--radius-sm); }

.alert-info {
    border: none;
    background-color: #1a73e8 !important;
    background-image: none;
    color: #fff;
}

.alert-success {
    background-color: var(--green);
    color: #fff;
    font-weight: bold;
    border: none;
}

.alert-danger {
    background-color: var(--red);
    color: #fff;
    font-weight: bold;
    border: none;
}

/* ---------- Imagem de marca ---------- */
#brandImage {
    display: table-cell;
    vertical-align: middle;
    height: 310px;
    border: 1px dashed var(--border-strong);
    background: var(--cream);
    text-align: center;
    border-radius: var(--radius-lg);
}

/* ---------- Flex container ---------- */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
}

.flex-div {
    flex: 1;
    box-sizing: border-box;
    padding: 10px;
}

/* ---------- Tabela grid hover ---------- */
[class$="-index"] table tr:hover {
    background-color: var(--orange-light) !important;
    cursor: pointer;
}

/* ---------- Links ---------- */
#w22 > li > a,
#w1 > table > tbody > tr > td > a,
a:hover, a:focus {
    color: var(--orange) !important;
    text-decoration: none;
}

#w1 > li:nth-child(1) > a:focus,
#w1 > li:nth-child(2) > a:focus,
#w1 > li:nth-child(3) > a:focus,
#w1 > li:nth-child(4) > a:focus,
#w1 > li:nth-child(5) > a:focus,
#w1 > li:nth-child > a,
#w3 > li > a { color: var(--gray-soft) !important; text-decoration: none; }

.menu-label-truncate {
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

#menu-direito > li > a:hover,
#menu-direito > li > a:focus,
#menu-esquerdo > li > a:hover,
#menu-esquerdo > li > a:focus,
#menu-esquerdo > li.active > a,
#menu-esquerdo > li.active > a:focus,
#menu-esquerdo > li.active > a:hover { color: #fff !important; text-decoration: none; }

#barra_titulo { float: left; }
#logo { display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
#logo > img { height: 20px; width: auto; }

/* ---------- Logout button ---------- */
.nav li > form > button.logout { padding: 15px; border: none; }
.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover { text-decoration: none; }
.nav > li > form > button.logout:focus { outline: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 767px) {
    .snt-hide-mobile { display: none !important; }

    body, .wrap { overflow-x: hidden; }

    .nav li > form > button.logout { display: block; text-align: left; width: 100%; padding: 10px 15px; }

    .noise-regulation-limit-index { padding: 0 10px; }
    .noise-regulation-limit-index .grid-view { padding: 0; }

    .wrap > .container { padding-top: 50px; margin-top: 0 !important; }

    #breadcrumbs, body > footer { display: none; }

    #logo > img { height: 34px; width: auto; margin-top: 0; }

    .home-brand { order: -1; justify-content: center; padding: 20px 20px 4px 20px; }
    .home-brand img { max-height: 160px; }

    .menu-label-truncate { max-width: 260px; }

    h1.head-title { font-size: 20px; }
    h1 { font-size: 22px; }
    h2 { font-size: 20px; }

    .flex-div { flex: 1 1 100% !important; max-width: 100% !important; }

    #barra_superior { margin-bottom: 10px; }
    #barra_superior #buttons { display: none; }
    #barra_superior .page-subtitle { margin-top: 6px; }
    .quad-search { margin-top: 40px !important; }

    .enterprise-form .tab-content { padding: 16px 16px 16px 16px; }
    .enterprise-form input[type="text"],
    .enterprise-form input[type="number"],
    .enterprise-form input[type="email"],
    .enterprise-form input[type="tel"] {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .user-form input[type="text"],
    .user-form input[type="email"],
    .user-form input[type="tel"],
    .user-form input[type="password"] { width: 100% !important; box-sizing: border-box !important; }

    table { width: 100%; }
    table tr { display: flex; flex-direction: column; margin-bottom: 10px; }
    table td { width: 100%; display: block; text-align: left; }
    table td label { margin-bottom: 5px; display: block; }

    /* GridView: card list no mobile */
    .grid-view { padding: 0 10px; overflow-x: visible; }
    .grid-view table { display: block; width: 100%; border: none !important; }
    .grid-view table thead { display: none; }
    .grid-view table tbody { display: block; border: none !important; }
    .grid-view table tr {
        display: block;
        background: #fff !important;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
        margin-bottom: 20px;
        padding: 8px 0 4px;
        border: none !important;
    }
    .grid-view table td {
        display: flex;
        align-items: center;
        padding: 5px 16px;
        border: none !important;
        width: 100% !important;
        font-size: 14px;
        box-sizing: border-box !important;
        gap: 8px;
        background: transparent !important;
        text-align: left !important;
    }
    .card-label {
        display: block;
        font-weight: 700;
        color: var(--fg-2);
        flex-shrink: 0;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        width: 72px;
        min-width: 72px;
    }
    .card-value {
        flex: 1;
        min-width: 0;
        text-align: right !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    /* ActionColumn: centralizado na base do card */
    .grid-view table td.card-actions {
        display: flex !important;
        justify-content: center !important;
        align-items: center;
        gap: 20px;
        padding: 10px 16px;
        border-top: 1px solid var(--divider) !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    .grid-view table td.card-actions a,
    .grid-view table td.card-actions button {
        float: none;
        display: inline-flex;
        align-items: center;
    }

    .navbar-fixed-top .navbar-collapse,
    .navbar-fixed-bottom .navbar-collapse { max-height: calc(100vh - 56px); overflow-y: auto; }

    .navbar-inverse .navbar-collapse {
        background-color: #35322F !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    #menu-inicial .navbar-collapse .dropdown-menu {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #menu-inicial .navbar-collapse .navbar-nav > li > a {
        color: rgba(255,255,255,0.85) !important;
    }

    #menu-inicial .navbar-collapse .dropdown-menu > li > a {
        color: rgba(255,255,255,0.85) !important;
        display: flex !important;
        align-items: center !important;
        height: auto !important;
        min-height: 44px;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    #menu-inicial .navbar-collapse .dropdown-menu > li > a:hover,
    #menu-inicial .navbar-collapse .dropdown-menu > li > a:focus {
        color: #fff !important;
        background-color: rgba(255,255,255,0.08) !important;
    }

    #menu-inicial .navbar-collapse .dropdown-menu .divider {
        background-color: rgba(255,255,255,0.12) !important;
    }

    .site-login {
        width: 82%;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 24px;
    }

    .site-login > div:first-child {
        margin-top: 20px !important;
        margin-bottom: 30px !important;
    }

    .site-login > div:first-child img { width: 140px; }

    .site-login .form-control { width: 100% !important; }

    .btn-login { width: 100%; margin-left: 0; }

    .rel-table                         { table-layout: auto !important; font-size: 9px; }
    .rel-table th, .rel-table td       { padding: 2px 2px; }
    .rel-table th                      { white-space: normal !important; }
    .rel-table td:nth-child(5),
    .rel-table th:nth-child(5)         { white-space: normal !important; }

    .esp-grid22                        { grid-template-columns: 1fr !important; }
    /* Subbar r1: flex-wrap → título+badge sobe para 1ª linha (direita), combo abaixo */
    .esp-subbar-r1                     { flex-wrap: wrap; gap: 6px; }
    .esp-subbar-r1,
    .esp-subbar-r2                     { padding-left: 8px !important; padding-right: 8px !important; }
    .esp-subbar                        { position: relative !important; top: 0 !important; margin-bottom: 0 !important; }
    .esp-card                          { padding-left: 8px !important; padding-right: 8px !important; }
    .esp-card-flush                    { padding: 0 !important; }
    .rel-zone-label                    { flex: 1 1 auto !important; }
    .dash-tiles                        { grid-template-columns: repeat(2, 1fr) !important; }
    .dash-cal-chips                    { flex-direction: column !important; }
    .dash-cal-chip                     { max-width: none !important; }
    .rel-zone-count                    { flex: 0 0 auto !important; }
    .rel-zone-bar-track                { display: none; }
    .esp-kpi-row                       { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }
    .esp-kpi-card                      { padding: 8px 6px !important; }
    .esp-subbar-r1 label                         { display: none; }
    .esp-tab[data-mode="sem"]                    { display: none; }
    .esp-tab                                     { padding: 5px 9px !important; font-size: 11px; }
    .esp-period-btn                              { padding: 4px 8px !important; font-size: 11px; }
    .esp-sensors-row                             { flex-basis: 100%; margin-left: 0 !important; }
    .esp-sensors-label                           { display: none; }
    .esp-subbar-r1                               { gap: 8px; }
    .esp-subbar-r1 .dash-select-enterprise       { flex: 1; min-width: 0; }
    .esp-subbar-r1 > div:not(.esp-title-wrap)    { margin-left: 0 !important; }
    .esp-title-wrap                    { order: -1 !important; width: 100% !important;
                                         position: static !important; transform: none !important;
                                         justify-content: flex-end !important;
                                         margin-left: 0 !important; flex-direction: row !important;
                                         align-items: center !important; gap: 4px !important; }
    .esp-title-wrap .esp-title         { font-size: 10px; white-space: nowrap; }
    .esp-title-wrap .esp-badge         { font-size: 9px; padding: 2px 6px; white-space: nowrap; }

    .smp-grid2                         { grid-template-columns: 1fr !important; }

    /* Remove espaço vazio no rodapé (footer Yii2 oculto no mobile) */
    .wrap                              { padding-bottom: 0; margin-bottom: 0; }
    .wrap > .container                 { padding-bottom: 0; padding-left: 4px !important; padding-right: 4px !important; }
    .conteudo                          { padding-left: 4px; padding-right: 4px; }
    .dash-footer-cal                   { margin-bottom: 0; }

    /* Calendário: nav de meses vira linha horizontal abaixo da grade */
    .dash-cal-body                     { flex-direction: column !important; }
    .smp-subbar-spacer                 { display: block !important; height: 14px; }
    .dash-cal-month-nav                { order: -1; flex-direction: row !important; flex-wrap: wrap !important; width: 100% !important; height: auto !important; overflow: visible !important; gap: 4px; }
    .dash-cal-month-item               { flex: 0 0 auto !important; min-height: 28px; padding: 0 10px; }
}

/* ═══════════════════════════════════════════════
   DASHBOARD ACÚSTICO — sentinela.css
═══════════════════════════════════════════════ */

:root {
    --dash-safe:    #01BE06;
    --dash-warn:    #FFD500;
    --dash-danger:  #E10600;
    --dash-orange:  #FF4D00;
    --dash-gray:    #424242;
    --dash-cream:   #F0EDE8;
    --dash-border:  rgba(66,66,66,0.10);
    --dash-shadow:  0 4px 24px rgba(0,0,0,0.06);
    --dash-radius:  10px;
    --dash-font:    'Mulish', system-ui, sans-serif;
}

/* Subbar */
.dash-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: #fff;
    border: 0.5px solid var(--dash-border);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    margin-bottom: 16px;
}
.dash-subbar-left  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-subbar-right { display: flex; align-items: center; gap: 8px; }
.dash-main-title   { font-family: var(--dash-font); font-weight: 700; font-size: 16px; color: var(--dash-gray); }
.dash-date-pill {
    background: var(--dash-orange);
    border: 0.5px solid var(--dash-orange);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 13px;
    color: #fff;
    font-family: var(--dash-font);
    font-weight: 600;
}
.dash-period-btn {
    border-radius: 20px;
    border: 0.5px solid var(--dash-border);
    padding: 3px 12px;
    font-size: 13px;
    color: var(--dash-gray);
    background: #fff;
    text-decoration: none;
    font-family: var(--dash-font);
    transition: background .15s;
}
.dash-period-btn:hover,
.dash-period-btn.active {
    background: var(--dash-orange);
    color: #fff;
    border-color: var(--dash-orange);
    text-decoration: none;
}
.dash-filter-form   { display: flex; align-items: center; gap: 8px; }
.dash-select,
.dash-date-input {
    border: 0.5px solid var(--dash-border);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 13px;
    font-family: var(--dash-font);
    color: var(--dash-gray);
    background: #fff;
    outline: none;
}
.dash-select:focus,
.dash-date-input:focus { border-color: var(--dash-orange); }
.dash-select-enterprise {
    border: 1.5px dashed rgba(255,77,0,.55);
    background-color: rgba(255,77,0,.06);
    color: #FF4D00;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
}

/* Sensor tiles */
.dash-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}
@media (max-width: 900px) { .dash-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .dash-tiles { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
    .dash-subbar { flex-direction: column; align-items: stretch; }
    .dash-subbar-left { justify-content: space-between; }
    .dash-subbar-right { width: 100%; }
    .dash-filter-form { flex-wrap: wrap; width: 100%; }
    .dash-filter-form .dash-select,
    .dash-filter-form .dash-date-input { flex: 1 1 auto; min-width: 0; max-width: 100%; box-sizing: border-box; }
}

.dash-tile {
    border: none;
    border-radius: var(--dash-radius);
    padding: 18px 16px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    transition: transform .15s;
}
.dash-tile--safe   { background: var(--dash-safe); }
.dash-tile--safe   * { color: #fff; }
.dash-tile--warn   { background: var(--dash-warn); }
.dash-tile--warn   * { color: #424242; }
.dash-tile--danger { background: var(--dash-danger); }
.dash-tile--danger * { color: #fff; }

.dash-tile-label  { font-size: 10px; font-weight: 700; letter-spacing: .08em; font-family: var(--dash-font); opacity: .9; }
.dash-tile-value  { font-family: var(--dash-font); line-height: 1; margin: 4px 0 2px; }
.dash-tile-int    { font-size: 38px; font-weight: 900; }
.dash-tile-dec    { font-size: 20px; font-weight: 700; }
.dash-tile-unit   { font-size: 11px; font-weight: 400; opacity: .85; font-family: var(--dash-font); }
.dash-tile-status { font-size: 12px; font-weight: 600; margin-top: auto; padding: 6px 0 10px; font-family: var(--dash-font); }
.dash-tile-bar    { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(0,0,0,0.15); }
.dash-tile-bar-fill { height: 100%; background: rgba(255,255,255,0.6); border-radius: 0 2px 2px 0; }

/* KPI Row */
.dash-kpi-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
@media (max-width: 1100px) { .dash-kpi-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .dash-kpi-row { grid-template-columns: repeat(2, 1fr); } }

.dash-kpi-card {
    background: #fff;
    border-radius: var(--dash-radius);
    border: 0.5px solid var(--dash-border);
    box-shadow: var(--dash-shadow);
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dash-kpi-label { font-family: var(--dash-font); font-size: 10px; font-weight: 700; letter-spacing: .07em; color: #888; text-transform: uppercase; }
.dash-kpi-value { font-family: var(--dash-font); font-size: 22px; font-weight: 800; color: var(--dash-gray); line-height: 1.15; margin: 2px 0; }
.dash-kpi-sub   { font-family: var(--dash-font); font-size: 11px; color: #999; margin-bottom: 4px; }

/* Badges */
.dash-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--dash-font);
    letter-spacing: .03em;
    align-self: flex-start;
}
.dash-badge--safe   { background: #E6F9E6; color: #017a04; }
.dash-badge--warn   { background: #FFFAE0; color: #a08000; }
.dash-badge--danger { background: #FFE8E8; color: #b00000; }

/* Chart card (full width) */
.dash-chart-card {
    background: #fff;
    border-radius: var(--dash-radius);
    border: 0.5px solid var(--dash-border);
    box-shadow: var(--dash-shadow);
    padding: 18px 18px 14px;
    margin-bottom: 14px;
}

/* Bottom area: calendar + sidebar */
.dash-bottom-area {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-start;
}
.dash-chart-header { margin-bottom: 10px; }
.dash-chart-title  { font-family: var(--dash-font); font-size: 15px; font-weight: 700; color: var(--dash-gray); margin: 0 0 2px; }
.dash-chart-sub    { font-family: var(--dash-font); font-size: 12px; color: #999; margin: 0; }
.dash-chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.dash-legend-item  { display: flex; align-items: center; gap: 5px; font-family: var(--dash-font); font-size: 12px; color: var(--dash-gray); }
.dash-legend-line  { display: inline-block; width: 22px; height: 2px; border-radius: 1px; }
.dash-legend-dashed { height: 0; border-top: 2px dashed; background: transparent; }
.dash-chart-canvas-wrap { position: relative; height: 260px; }

/* Sidebar */
.dash-sidebar { width: 264px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 900px) {
    .dash-bottom-area { flex-direction: column; }
    .dash-sidebar { width: 100%; }
}
.dash-sidebar-card {
    background: #fff;
    border-radius: var(--dash-radius);
    border: 0.5px solid var(--dash-border);
    box-shadow: var(--dash-shadow);
    padding: 14px 14px 12px;
}
.dash-sidebar-title { font-family: var(--dash-font); font-size: 14px; font-weight: 700; color: var(--dash-gray); margin: 0 0 10px; }
.dash-sidebar-sub   { font-family: var(--dash-font); font-size: 11px; color: #999; margin: -6px 0 8px; }

/* NBR conformity */
.dash-nbr-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 0;
    border-bottom: 0.5px solid var(--dash-border);
}
.dash-nbr-row:last-of-type { border-bottom: none; }
.dash-nbr-period { display: flex; flex-direction: column; gap: 2px; }
.dash-nbr-name   { font-family: var(--dash-font); font-size: 13px; font-weight: 600; color: var(--dash-gray); }
.dash-nbr-limit  { font-family: var(--dash-font); font-size: 11px; color: #999; }
.dash-nbr-right  { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dash-nbr-val    { font-family: var(--dash-font); font-size: 15px; font-weight: 800; }
.dash-nbr-ok     { color: var(--dash-safe); }
.dash-nbr-bad    { color: var(--dash-danger); }
.dash-nbr-empty  { color: #FFD500; }

.dash-ldn-chips { display: flex; gap: 8px; margin-top: 10px; }
.dash-ldn-chip  {
    flex: 1;
    background: var(--dash-cream);
    border-radius: 8px;
    padding: 6px 8px;
    text-align: center;
    border: 0.5px solid var(--dash-border);
}
.dash-ldn-key { display: block; font-family: var(--dash-font); font-size: 10px; font-weight: 700; color: #888; letter-spacing: .05em; }
.dash-ldn-val { display: block; font-family: var(--dash-font); font-size: 14px; font-weight: 800; color: var(--dash-gray); }

/* Peak events */
.dash-peaks-list { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.dash-peak-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--dash-font);
    font-size: 13px;
    padding: 3px 0;
    border-bottom: 0.5px solid var(--dash-border);
}
.dash-peak-icon { color: var(--dash-danger); font-size: 10px; }
.dash-peak-time { flex: 1; color: var(--dash-gray); font-weight: 600; }
.dash-peak-val  { font-weight: 800; color: var(--dash-danger); }
.dash-peaks-more { font-family: var(--dash-font); font-size: 11px; color: #999; margin: 8px 0 0; }

.dash-action-card { display: flex; flex-direction: column; gap: 8px; }
.dash-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    font-family: var(--dash-font);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    transition: opacity .15s;
    box-sizing: border-box;
}
.dash-action-btn                          { color: #efefef !important; outline: none; }
.dash-action-btn:hover                    { opacity: .9; text-decoration: none; color: #ffffff !important; }
.dash-action-btn:active,
.dash-action-btn:focus,
.dash-action-btn:visited                  { color: #efefef !important; text-decoration: none; outline: none; box-shadow: none; }
.dash-action-btn--pdf                     { background: var(--dash-orange); }
.dash-action-btn--pdf:active,
.dash-action-btn--pdf:focus,
.dash-action-btn--pdf:visited             { background: var(--dash-orange); color: #efefef !important; }
.dash-action-btn--wa                      { background: #25D366; }
.dash-action-btn--wa:active,
.dash-action-btn--wa:focus,
.dash-action-btn--wa:visited              { background: #25D366; color: #efefef !important; }


/* Calendar */
.dash-calendar-card {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: var(--dash-radius);
    border: 0.5px solid var(--dash-border);
    box-shadow: var(--dash-shadow);
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.dash-cal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}
.dash-cal-title  { font-family: var(--dash-font); font-size: 15px; font-weight: 700; color: var(--dash-gray); margin: 0 0 2px; }
.dash-cal-sub    { font-family: var(--dash-font); font-size: 12px; color: #999; margin: 0; }

.dash-cal-year-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--dash-cream);
    border: 0.5px solid var(--dash-border);
    border-radius: 8px;
    padding: 4px 10px;
    flex-shrink: 0;
}
.dash-cal-arrow {
    font-size: 20px;
    font-weight: 700;
    color: var(--dash-gray);
    text-decoration: none;
    line-height: 1;
    padding: 0 2px;
    transition: color .15s;
}
.dash-cal-arrow:hover { color: var(--dash-orange); text-decoration: none; }
.dash-cal-year { font-family: var(--dash-font); font-size: 14px; font-weight: 800; color: var(--dash-gray); min-width: 36px; text-align: center; }

.dash-cal-body {
    display: flex;
    gap: 10px;
    flex: 1;
    min-height: 0;
}
.dash-cal-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dash-cal-month-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 46px;
    flex-shrink: 0;
    overflow: hidden;
}
.dash-cal-month-item {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--dash-font);
    font-size: 12px;
    font-weight: 600;
    color: var(--dash-gray);
    background: var(--dash-cream);
    border: 0.5px solid var(--dash-border);
    border-radius: 6px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.dash-cal-month-item:hover              { background: #e8e4df; text-decoration: none; }
.dash-cal-month-item.no-data            { background: #f5f5f5; color: #ccc; border-color: #ebebeb; }
.dash-cal-month-item.no-data:hover      { background: #ebebeb; color: #bbb; }
.dash-cal-month-item.active             { background: var(--dash-orange); color: #fff; border-color: var(--dash-orange); }

.dash-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    flex: 1;
    align-content: stretch;
    padding: 3px;
}
.dash-cal-dow    { font-family: var(--dash-font); font-size: 11px; font-weight: 700; color: #888; text-align: center; padding: 4px 0; min-height: 20px; }
.dash-cal-cell {
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--dash-font);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s;
    min-height: 56px;
    padding: 4px 2px;
    gap: 3px;
}
.dash-cal-cell:hover { opacity: .85; }
.dash-cal-cell:hover .dash-cal-day-num,
.dash-cal-status--ok:hover   .dash-cal-day-num,
.dash-cal-status--warn:hover .dash-cal-day-num,
.dash-cal-status--bad:hover  .dash-cal-day-num { color: var(--orange); }
.dash-cal-today:hover { opacity: 1; outline: 2px solid var(--dash-orange); outline-offset: 1px; }
.dash-cal-day-num { line-height: 1; font-size: 25px; font-weight: 800; }
.dash-cal-status--ok   .dash-cal-day-num,
.dash-cal-status--warn .dash-cal-day-num,
.dash-cal-status--bad  .dash-cal-day-num { color: #559955; }
.dash-cal-chips   { display: flex; gap: 2px; width: 100%; justify-content: center; }
.dash-cal-chip    { font-size: 12px; font-weight: 700; border-radius: 2px; padding: 1px 2px; line-height: 1.4; flex: 1; text-align: center; max-width: 38px; }
.dash-cal-chip--ok    { background: #E6F9E6; color: #017a04; }
.dash-cal-chip--empty { background: #FFD500; color: #333; }
.dash-cal-chip--bad   { background: #FFE8E8; color: #b00000; }
.dash-cal-chip--lden  { background: #FFF8F5; color: var(--orange); width: 50%; max-width: none; flex: none; }
.dash-cal-empty       { background: transparent; }
.dash-cal-status--ok   { background: #d6f5d6; color: #217a21; }
.dash-cal-status--warn { background: #fff6cc; color: #856600; }
.dash-cal-status--bad  { background: #ffe0e0; color: #b00000; }
.dash-cal-status--empty { background: #f5f5f5; color: #ccc; }
.dash-cal-today { outline: 2px solid var(--dash-orange); outline-offset: 1px; }

.dash-cal-legend { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.dash-cal-leg-item { display: flex; align-items: center; gap: 6px; font-family: var(--dash-font); font-size: 12px; color: var(--dash-gray); }
.dash-cal-leg-dot { width: 14px; height: 14px; border-radius: 3px; border: 0.5px solid rgba(0,0,0,.1); }
.dash-cal-leg-chip { display: inline-block; font-size: 9px; font-weight: 700; border-radius: 2px; padding: 1px 5px; }

/* Footer calibração */
.dash-footer-cal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dash-gray);
    color: rgba(255,255,255,0.7);
    font-family: var(--dash-font);
    font-size: 11px;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 4px;
}

/* Empty state */
.dash-empty-state {
    text-align: center;
    color: #bbb;
    font-family: var(--dash-font);
    font-size: 14px;
    padding: 40px 20px;
}

/* Modal UI Kit */
.snt-modal.in {
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.snt-modal .modal-dialog {
    margin: 0 auto;
    width: 360px;
}
.snt-modal .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: var(--cream);
}
.snt-modal .modal-header {
    background: #35322F;
    border-bottom: none;
    padding: 18px 24px;
}
.snt-modal .modal-header .modal-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
}
.snt-modal .modal-header .close {
    color: rgba(255,255,255,0.6);
    opacity: 1;
    text-shadow: none;
}
.snt-modal .modal-header .close:hover { color: #fff; }
.snt-modal .modal-body {
    padding: 28px 24px 20px;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
}
.snt-modal .modal-footer {
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    background: #fff;
}

/* Botoes de acesso do form de usuario */
.user-access-btn {
    min-width: 160px;
    text-align: center;
}

/* Ajuda / Suporte */
.ajuda-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
}
.ajuda-form .form-group + .form-group {
    margin-top: 12px;
}
.ajuda-form label span.required {
    color: red;
}

/* ═══════════════════════════════════════════════════════════════
   GRÁFICO POR PERÍODO — Análise Avançada / Modo Especialista
   Prefixo: esp-
   ═══════════════════════════════════════════════════════════════ */
.smp-subbar-spacer { display: none; }
.esp-subbar {
    background: #fff;
    border: 0.5px solid rgba(66,66,66,.10);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    position: sticky;
    top: 67px;
    z-index: 90;
}
.esp-subbar::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: var(--cream);
}
.esp-subbar-r1,
.esp-subbar-r2 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--subbar-padding) 16px;
    flex-wrap: wrap;
}
.esp-subbar-r2 {
    border-top: 1px solid rgba(66,66,66,.07);
    padding-top: var(--subbar-padding);
    padding-bottom: var(--subbar-padding);
}
.esp-title {
    font-family: 'Mulish', system-ui, sans-serif;
    font-weight: 800;
    font-size: 11px;
    color: #757575;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.esp-badge {
    display: inline-block;
    background: #6A1B9A;
    color: #fff;
    font-family: 'Mulish', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
}
/* ── PDF Header ─────────────────────────────────────────────── */
.pdf-hdr            { display:flex; justify-content:space-between; align-items:stretch; padding:5px 4px; border-bottom:2px solid #FF4D00; margin-bottom:10px; }
.pdf-hdr-left       { display:flex; flex-direction:column; justify-content:space-between; gap:4px; }
.pdf-hdr-logo       { height:20px; width:154px; }
.pdf-hdr-badges     { display:flex; align-items:center; gap:6px; }
.pdf-hdr-right      { text-align:right; }
.pdf-hdr-name       { font-family:'Mulish',sans-serif; font-size:15px; font-weight:800; color:#24221E; }
.pdf-hdr-meta       { font-family:'Mulish',sans-serif; font-size:11px; font-weight:700; color:#757575; margin-top:2px; display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.pdf-hdr-chip       { display:inline-block; color:#fff; font-weight:700; padding:1px 7px; border-radius:10px; font-size:10px; }

.esp-sbtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 6px;
    font-family: 'Mulish', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    border: 1.5px solid rgba(66,66,66,.25);
    background: #fff;
    color: #424242;
    transition: background .12s;
}
.esp-sbtn:hover                   { background: #f5f5f5; color: #424242; text-decoration: none; }
.esp-sbtn--pdf                                        { background: var(--blue); color: var(--white); border: none; }
.esp-sbtn.esp-sbtn--pdf:hover,
.esp-sbtn.esp-sbtn--pdf:focus,
.esp-sbtn.esp-sbtn--pdf:active                        { background: var(--blue-hover) !important; color: var(--white) !important; text-decoration: none; outline: none; }
.esp-sbtn--wa                                         { background: var(--btn-whatsapp); color: var(--white); border: none; }
.esp-sbtn.esp-sbtn--wa:hover,
.esp-sbtn.esp-sbtn--wa:focus,
.esp-sbtn.esp-sbtn--wa:active                         { background: var(--btn-whatsapp-hover) !important; color: var(--white) !important; text-decoration: none; outline: none; }
.esp-tabs {
    display: flex;
    border: 1px solid rgba(66,66,66,.15);
    border-radius: 6px;
    overflow: hidden;
}
.esp-tab {
    padding: 6px 13px;
    font-family: 'Mulish', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #424242;
    background: #fff;
    cursor: pointer;
    border: none;
    border-right: 1px solid rgba(66,66,66,.12);
    transition: background .12s;
}
.esp-tab:last-child              { border-right: none; }
.esp-tab.active                  { background: #FF4D00; color: #fff; }
.esp-tab:hover:not(.active)      { background: #fafafa; }
.esp-period-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border: 1.5px dashed rgba(255,77,0,.55);
    background: rgba(255,77,0,.04);
    color: #FF4D00;
    border-radius: 6px;
    font-family: 'Mulish', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.esp-period-btn:hover            { background: rgba(255,77,0,.09); }
.esp-sensors-label {
    font-family: 'Mulish', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #9A9A9A;
}
.esp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-family: 'Mulish', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid;
    transition: all .12s;
    outline: none;
}
.esp-chip:focus { outline: none; }
.esp-chip-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.esp-custom-panel {
    display: none;
    padding: 12px 20px;
    background: #FFF8F5;
    border-top: 1px solid rgba(255,77,0,.2);
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.esp-custom-panel.open           { display: flex; }
.esp-custom-panel label          { font-family: 'Mulish'; font-size: 13px; font-weight: 600; color: #424242; }
.esp-custom-panel input[type="date"] {
    border: 1px solid rgba(66,66,66,.2);
    border-radius: 5px;
    padding: 5px 9px;
    font-family: 'Mulish', system-ui, sans-serif;
    font-size: 12px;
    color: #424242;
    zoom: 1.4;
}
.esp-apply-btn {
    background: #FF4D00;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 6px 15px;
    font-family: 'Mulish', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.esp-apply-btn:hover             { background: #d93d00; }
.esp-days-info                   { font-family: 'Mulish'; font-size: 12px; color: #9A9A9A; }

/* KPI row — 7 colunas */
.esp-kpi-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    padding: 0 0 16px;
}
.esp-kpi-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(66,66,66,.10);
    padding: 12px 13px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.esp-kpi-lbl {
    font-family: 'Mulish', system-ui, sans-serif;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 2px;
}
.esp-kpi-val {
    font-family: 'Mulish', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    color: #424242;
}
.esp-kpi-val small               { font-size: 13px; font-weight: 600; }
.esp-kpi-desc                    { font-family: 'Mulish'; font-size: 11px; color: #9A9A9A; margin-bottom: 3px; }

/* Cards de gráfico */
.esp-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(66,66,66,.10);
    padding: 16px 18px;
}
.esp-card-hdr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 4px;
}
.esp-card-title                  { font-family: 'Mulish'; font-size: 14px; font-weight: 700; color: #424242; margin: 0; }
.esp-card-sub                    { font-family: 'Mulish'; font-size: 11px; color: #9A9A9A; margin: 0 0 8px; }
.esp-note {
    display: inline-block;
    background: #f3f3f3;
    border-radius: 20px;
    padding: 3px 11px;
    font-family: 'Mulish';
    font-size: 11px;
    color: #7A7A7A;
    margin-bottom: 8px;
}
.esp-legend                      { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; }
.esp-leg-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Mulish';
    font-size: 11px;
    color: #424242;
}
.esp-leg-line                    { display: inline-block; width: 18px; height: 2px; }
.esp-leg-dash                    { border-top: 2px dashed; height: 0; background: transparent; }
.esp-canvas-wrap                 { position: relative; height: 220px; }
.esp-canvas-wrap-sm              { position: relative; height: 200px; }

/* Grade 2x2 */
.esp-grid22 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 0 20px;
}

/* Tabela de conformidade */
.esp-table                       { width: 100%; border-collapse: collapse; font-family: 'Mulish'; font-size: 13px; }
.esp-table th {
    font-family: 'Mulish';
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9A9A9A;
    padding: 5px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(66,66,66,.10);
}
.esp-table td {
    padding: 7px 8px;
    color: #424242;
    font-weight: 600;
    border-bottom: 1px solid rgba(66,66,66,.07);
}
.esp-table tr:last-child td      { border-bottom: none; }
.esp-table-foot                  { font-family: 'Mulish'; font-size: 11px; color: #FF4D00; margin-top: 8px; }
.esp-nbr-sel {
    border: 1px solid rgba(66,66,66,.15);
    border-radius: 5px;
    padding: 3px 6px;
    font-family: 'Mulish';
    font-size: 11px;
    color: #424242;
    background: #fff;
    cursor: pointer;
}

/* Wrappers de layout */
.esp-main-wrap                   { padding: 0 0 14px; }
.esp-sensors-row                 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* ═══════════════════════════════════════════════════════════════
   GRÁFICO SIMPLES — Modo Leigo
   Prefixo: smp-
   ═══════════════════════════════════════════════════════════════ */
.smp-main-wrap { padding: 0 0 14px; }

/* Legenda de zonas */
.smp-zone-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 10px;
}
.smp-zone-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'Mulish', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
}
.smp-zone-pill--safe   { background: #E6F9E6; color: #019404; }
.smp-zone-pill--warn   { background: #FFFAE0; color: #9A7A00; }
.smp-zone-pill--danger { background: #FFE8E8; color: #9A0000; }
.smp-zone-pill--sensor { background: #f5f5f5; color: #424242; font-weight: 600; }

/* Canvas do gráfico */
.smp-chart-wrap { position: relative; height: 260px; }
.smp-empty {
    text-align: center;
    padding: 40px 0;
    color: #9A9A9A;
    font-family: 'Mulish';
    font-size: 14px;
}

/* Grade 2 colunas */
.smp-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 0 14px;
}

/* Blocos de zona (Tempo por Zona) */
.smp-zone-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
}
.smp-zone-block--safe   { background: #E6F9E6; }
.smp-zone-block--warn   { background: #FFFAE0; }
.smp-zone-block--danger { background: #FFE8E8; }
.smp-zone-block-title {
    font-family: 'Mulish';
    font-size: 13px;
    font-weight: 700;
    color: #424242;
}
.smp-zone-block--safe   .smp-zone-block-title { color: #019404; }
.smp-zone-block--warn   .smp-zone-block-title { color: #9A7A00; }
.smp-zone-block--danger .smp-zone-block-title { color: #9A0000; }
.smp-zone-block-sub {
    font-family: 'Mulish';
    font-size: 11px;
    color: #7A7A7A;
    margin-top: 2px;
}
.smp-zone-block--safe   .smp-zone-block-sub { color: #019404; opacity: .75; }
.smp-zone-block--warn   .smp-zone-block-sub { color: #9A7A00; opacity: .75; }
.smp-zone-block--danger .smp-zone-block-sub { color: #9A0000; opacity: .75; }
.smp-zone-block-time {
    font-family: 'Mulish';
    font-size: 15px;
    font-weight: 800;
    color: #424242;
    white-space: nowrap;
    margin-left: 12px;
}

/* Caixa de resumo */
.smp-summary-box {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 4px;
    font-family: 'Mulish';
    font-size: 12px;
    font-weight: 700;
    color: #424242;
}
.smp-summary-text {
    font-weight: 400;
    color: #FF4D00;
    margin: 4px 0 0;
    line-height: 1.5;
}

/* Card de calibração */
.smp-calib-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #01BE06;
    padding: 12px 16px;
    font-family: 'Mulish';
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.smp-calib-valid {
    font-size: 14px;
    font-weight: 800;
}
.smp-calib-body { padding: 0 16px; }
.smp-calib-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(66,66,66,.08);
    font-family: 'Mulish';
    font-size: 13px;
}
.smp-calib-key { color: #9A9A9A; font-weight: 600; }
.smp-calib-val { color: #424242; font-weight: 700; text-align: right; }

/* Botões de exportação */
.smp-export-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 6px 20px 20px;
    flex-wrap: wrap;
}
.smp-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 8px;
    font-family: 'Mulish';
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    min-width: 180px;
    justify-content: center;
    transition: opacity .12s;
}
.smp-export-btn:hover { opacity: .88; text-decoration: none; }
.smp-export-btn--pdf  { background: #FF4D00; color: #fff; }
.smp-export-btn--wa   { background: #25D366; color: #fff; }

/* ── Login Page ── */
.snt-login-page {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    display: flex;
    z-index: 1000;
    font-family: var(--font);
}

.snt-login-left {
    flex: 0 0 62%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 48px 48px 48px;
}

.snt-login-left > * { position: relative; z-index: 1; }
.snt-login-logo img { height: 28px; display: block; }
.snt-login-copy { color: #24221E; }

.snt-login-copy h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.25;
    color: var(--gray);
}

.snt-login-copy h2 span { color: var(--orange); }

.snt-login-copy .snt-tagline {
    font-size: 16px;
    color: var(--gray-light);
    margin: 0 0 28px 0;
    line-height: 1.5;
}

.snt-features-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--orange);
    margin-bottom: 14px;
}

.snt-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.snt-feature-item {
    border: 1px solid rgba(66,66,66,0.18);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,255,255,0.55);
}

.snt-feature-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    margin-top: 3px;
}

.snt-feature-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray);
    margin: 0 0 4px 0;
}

.snt-feature-item p {
    font-size: 13px;
    color: var(--gray-light);
    margin: 0;
    line-height: 1.45;
}

.snt-login-right {
    flex: 0 0 38%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 52px;
    position: relative;
}

.snt-login-right h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray);
    margin: 0 0 6px 0;
}

.snt-form-subtitle {
    font-size: 13px;
    color: var(--gray-soft);
    margin: 0 0 30px 0;
}

.snt-field { margin-bottom: 16px; }

.snt-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.snt-field .form-control {
    width: 100%;
    height: 44px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    box-shadow: none;
}

.snt-field .form-control:focus {
    border-color: var(--orange);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255,77,0,0.10);
}

.snt-field .help-block {
    font-size: 12px;
    color: var(--red);
    margin: 4px 0 0 0;
}

.snt-field.has-error .form-control { border-color: var(--red); }

.snt-forgot {
    text-align: right;
    margin: -4px 0 22px 0;
}

.snt-forgot a {
    font-size: 13px;
    color: #aaa;
    text-decoration: none;
    transition: color 0.15s;
}

.snt-forgot a:hover { color: var(--orange); }

.snt-btn-login {
    width: 100%;
    height: 48px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s;
    margin-bottom: 20px;
}

.snt-btn-login:hover { background: var(--orange-dark); }

.snt-login-footer {
    position: absolute;
    bottom: 26px;
    left: 0; right: 0;
    text-align: center;
    font-size: 12px;
    color: #ccc;
}

.snt-login-mobile-logo { display: none; }

@media (max-width: 767px) {
    .snt-login-page { flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; background: #D0D4D5; padding: 32px 20px; box-sizing: border-box; position: relative; }
    .snt-login-left { display: none; }
    .snt-login-right { flex: none; width: 100%; max-width: 380px; padding: 40px 28px 36px; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.12); }
    .snt-login-mobile-logo { display: block; text-align: center; margin-bottom: 28px; }
    .snt-login-mobile-logo img { width: 200px; height: auto; }
    .snt-login-footer { position: static; margin-top: 24px; }
    .snt-login-right h3, .snt-form-subtitle { display: none; }
}

/* ─── RELATÓRIO ACÚSTICO ──────────────────────────────────────────────────── */
.rel-summary {
    background: #fff;
    border: 1px solid #e8e4de;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
}
.rel-summary-title {
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #24221E;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.rel-summary-intro {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    line-height: 1.65;
    color: #424242;
    margin: 0 0 14px;
}
.rel-zone-stats { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.rel-zone-stat  { display: flex; align-items: center; gap: 10px; font-family: 'Mulish', sans-serif; font-size: 12px; }
.rel-zone-dot   { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.rel-zone-label { flex: 0 0 280px; color: #424242; }
.rel-zone-count { flex: 0 0 110px; font-weight: 700; color: #24221E; }
.rel-zone-bar-track { flex: 1; height: 6px; background: #f0ede8; border-radius: 3px; overflow: hidden; min-width: 60px; }
.rel-zone-bar-fill  { height: 100%; border-radius: 3px; }
.rel-kpis {
    display: flex; gap: 24px; flex-wrap: wrap;
    font-family: 'Mulish', sans-serif; font-size: 12px; color: #757575;
    border-top: 1px solid #f0ede8; padding-top: 10px;
}
.rel-kpis strong { color: #24221E; }

.rel-day         { margin-bottom: 20px; }
.rel-day-header  {
    font-family: 'Mulish', sans-serif; font-size: 13px; font-weight: 800; color: #24221E;
    background: #f5f3ef; border-left: 4px solid #FF4D00;
    padding: 7px 12px; margin: 0 0 8px; border-radius: 0 4px 4px 0;
}
.rel-hour        { margin-bottom: 10px; }
.rel-hour-header {
    font-family: 'Mulish', sans-serif; font-size: 11px; font-weight: 700; color: #757575;
    padding: 5px 10px; background: #fafaf8; border: 1px solid #ebe7e0; border-radius: 4px;
    margin-bottom: 3px; display: flex; align-items: center; gap: 8px;
}
.rel-hour-badge       { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 10px; letter-spacing: .04em; }
.rel-hour-badge--day  { background: #FFF3E0; color: #E65100; }
.rel-hour-badge--night{ background: #E8EAF6; color: #3949AB; }
.rel-hour-limit       { font-size: 10px; color: #9E9E9E; margin-left: auto; }

.rel-table      { width: 100%; border-collapse: collapse; font-family: 'Mulish', sans-serif; font-size: 12px; }
.rel-table th   {
    background: #f0ede8; color: #757575; font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .07em; padding: 5px 8px;
    text-align: left; border-bottom: 1px solid #e0dbd2;
}
.rel-table td   { padding: 4px 8px; border-bottom: 1px solid #f5f3ef; vertical-align: middle; }
.rel-table tr:last-child td { border-bottom: none; }
.rel-row-safe   { background: #F1F8F1; }
.rel-row-warn   { background: #FFFDE7; }
.rel-row-danger { background: #FFF5F5; }
.rel-dot        { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.rel-dot--safe  { background: #4CAF50; }
.rel-dot--warn  { background: #FFC107; }
.rel-dot--danger{ background: #F44336; }
.rel-zone-safe  { color: #2E7D32; font-weight: 700; }
.rel-zone-warn  { color: #E65100; font-weight: 700; }
.rel-zone-danger{ color: #C62828; font-weight: 700; }
.rel-over       { font-size: 11px; color: #F44336; font-weight: 700; }
.rel-empty      { font-family: 'Mulish', sans-serif; font-size: 14px; color: #9E9E9E; text-align: center; padding: 48px 20px; }

/* Isola .rel-table do reset mobile (table tr { display:flex } / table td { display:block }) */
.rel-table,
.rel-table > thead,
.rel-table > tbody               { display: table !important; width: 100% !important; }
.rel-table > thead               { display: table-header-group !important; }
.rel-table > tbody               { display: table-row-group !important; }
.rel-table tr                    { display: table-row !important; flex-direction: unset !important; margin-bottom: 0 !important; }
.rel-table th,
.rel-table td                    { display: table-cell !important; width: auto !important; white-space: nowrap; }

/* ── Flatpickr range picker ────────────────────────────────── */
.esp-range-hidden { display: none !important; }
.esp-custom-panel .esp-date-input {
    border: 1px solid #E0E0E0; border-radius: 6px; padding: 5px 10px;
    font-family: 'Mulish', sans-serif; font-size: 13px; color: #424242;
    outline: none; cursor: pointer; background: #fff;
    width: 110px; box-sizing: border-box;
}
.esp-custom-panel .esp-date-input:hover,
.esp-custom-panel .esp-date-input:focus { border-color: #FF4D00; }

.flatpickr-day.selected, .flatpickr-day.selected:hover {
    background: #FF4D00 !important; border-color: #FF4D00 !important; color: #fff !important;
}
.flatpickr-day.snt-range-start, .flatpickr-day.snt-range-end {
    background: #FF4D00 !important; border-color: #FF4D00 !important; color: #fff !important;
}
.flatpickr-day.snt-in-range {
    background: rgba(255,77,0,0.13) !important; border-color: transparent !important;
    color: #424242 !important;
    box-shadow: -5px 0 0 rgba(255,77,0,0.13), 5px 0 0 rgba(255,77,0,0.13) !important;
}
.flatpickr-day.today { border-color: transparent !important; }

.flatpickr-current-month {
    font-size: 14px !important;
    position: static !important;
    display: flex !important;
    width: 100% !important;
    padding: 0 !important;
    align-items: center;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
    flex: 1; text-align: center; text-align-last: center;
    font-family: 'Mulish', sans-serif !important; font-size: 14px !important;
    font-weight: 700 !important; color: #24221E !important;
    border: none; background: transparent;
}
.flatpickr-current-month .numInputWrapper {
    flex: 1; display: flex !important; justify-content: center; align-items: center;
}
.flatpickr-current-month .numInput.cur-year {
    font-family: 'Mulish', sans-serif !important; font-size: 14px !important;
    font-weight: 700 !important; color: #24221E !important;
    width: 52px; cursor: pointer; text-align: center;
    -webkit-appearance: none; -moz-appearance: textfield;
    border: none; background: transparent; pointer-events: auto;
}
.flatpickr-current-month .numInput.cur-year::-webkit-inner-spin-button,
.flatpickr-current-month .numInput.cur-year::-webkit-outer-spin-button { display: none; }
.flatpickr-current-month .numInputWrapper span { display: none !important; }
.flatpickr-current-month .numInput.cur-year {
    width: 52px; cursor: pointer;
    -webkit-appearance: none; -moz-appearance: textfield;
    border: none; background: transparent; pointer-events: auto;
}
.flatpickr-current-month .numInput.cur-year::-webkit-inner-spin-button,
.flatpickr-current-month .numInput.cur-year::-webkit-outer-spin-button { display: none; }

/* Grid de seleção de ano */
.snt-year-grid {
    position: absolute; inset: 34px 0 0 0;
    background: #fff; z-index: 10;
    border-top: 1px solid #E0E0E0;
    display: flex; flex-direction: column;
}
.snt-year-grid-hdr {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 12px;
    font-family: 'Mulish', sans-serif; font-size: 12px; font-weight: 700; color: #424242;
}
.snt-year-nav {
    border: none; background: none; cursor: pointer; padding: 2px 6px;
    font-size: 15px; font-weight: 700; color: #757575;
}
.snt-year-nav:hover { color: #FF4D00; }
.snt-year-opts {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    padding: 4px 8px 8px; flex: 1;
}
.snt-year-opt {
    border: none; background: none; padding: 7px 4px;
    font-family: 'Mulish', sans-serif; font-size: 13px; font-weight: 700;
    cursor: pointer; border-radius: 4px; color: #424242; text-align: center;
}
.snt-year-opt:hover { background: #FFF0EB; color: #FF4D00; }
.snt-year-opt.snt-year-active { color: #FF4D00; background: #F5F5F5; }
