html,
body {
    height: 100% !important;
}

body {
    font-family: "Montserrat", sans-serif !important;
}

.custom-tooltip {
    border-radius: 10px;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: gray;
}

.dashboard-nav-item {
    border-radius: 0px 30px 30px 0px;
}

.dashboard-nav-item-icon {
    width: 30px;
    height: 30px;
}

.dashboard-background {
    background: rgb(198, 186, 162);
}

.seta-rotate-0 {
    transform: rotate(0deg);
}

.seta-rotate-90 {
    transform: rotate(90deg);
}

.seta-rotate-180 {
    transform: rotate(180deg);
}

.card {
    box-shadow: 10px 10px 50px 0px rgba(0, 0, 0, 0.1);
}

.side-bar-version {
    position: fixed;
    bottom: 0;
    width: 100%;
}

#sidebar-login-wrapper {
    min-height: 100vh;
    margin-left: -2rem;
    -webkit-transition: margin .25s ease-out;
    -moz-transition: margin .25s ease-out;
    -o-transition: margin .25s ease-out;
    transition: margin .25s ease-out;
    position: fixed;
    top: 0;
    width: 2rem;
}

#sidebar-login-wrapper.toggle {
    margin-left: 0;
}

#sidebar-login-wrapper .sidebar-login-heading {
    font-size: 1.2rem;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -12rem;
    -webkit-transition: margin .25s ease-out;
    -moz-transition: margin .25s ease-out;
    -o-transition: margin .25s ease-out;
    transition: margin .25s ease-out;
    position: fixed;
    top: 0;
    width: 12rem;
}

#sidebar-wrapper.toggle {
    margin-left: 0;
}

#sidebar-wrapper .footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

#sidebar-wrapper .sidebar-heading {
    font-size: 1.6rem;
    font-style: italic;
}

#sidebar-wrapper .side-bar-list a:first-child {
    font-size: 0.95rem;
}

#page-content-wrapper {
    min-width: 0;
    margin-left: 2rem;
    width: 100%;
    -webkit-transition: margin .25s ease-out;
    -moz-transition: margin .25s ease-out;
    -o-transition: margin .25s ease-out;
    transition: margin .25s ease-out;
}

#page-content-wrapper.toggle {
    margin-left: 12rem;
}

.aggregator-select-padroes {
    height: 17rem !important;
}

.aggregator-select-bands {
    height: 5.3rem !important;
}

.padrao-select-replay-files {
    height: 20rem !important;
}


/*
 * Corrige um problema no react-bootstrap-table-next que a tabela não ajusta ao tamanho das colunas 
 * https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/612
*/

.react-bootstrap-table table {
    table-layout: auto !important;
}

.aggregator-band-preview {
    /* height: 1.5rem; */
    display: inline-block;
    font-size: 0.8rem;
}

.trend-logo {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 0.8rem;
    transform: rotate(45deg) skew(-23deg, -23deg);
}

.controlroom-trend-logo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.8rem;
    transform: rotate(45deg) skew(-23deg, -23deg);
}

.files-modal {
    height: 60vh;
}

.files-modal-txt {
    width: 100%;
    border: 0;
    height: 98%;
}

.heatmap-viewer {
    min-height: 100%;
    background: #ffffff;
    color: #27313f;
}

.heatmap-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #d8dee7;
}

.heatmap-title {
    font-size: 1rem;
    font-weight: 700;
}

.heatmap-subtitle {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.8rem;
}

.heatmap-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.heatmap-metric {
    min-width: 4.6rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid #d8dee7;
    border-radius: 0.25rem;
    background: #f8fafc;
    text-align: right;
}

.heatmap-metric-label {
    color: #64748b;
    font-size: 0.68rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.heatmap-metric-value {
    margin-top: 0.12rem;
    color: #111827;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.15;
}

.heatmap-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 21rem;
    min-height: 0;
}

.heatmap-canvas-panel {
    min-width: 0;
    border-right: 1px solid #d8dee7;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem 0;
    color: #64748b;
    font-size: 0.78rem;
}

.heatmap-legend-ramp {
    width: 11rem;
    height: 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: linear-gradient(90deg, #f7f8fa 0%, #14b8a6 25%, #eab308 55%, #f97316 78%, #dc2626 100%);
}

.heatmap-scroll {
    overflow: auto;
    padding: 1rem;
    max-height: 58vh;
}

.heatmap-grid-detailed {
    display: grid;
    gap: 1px;
    width: max-content;
    background: #d7dee8;
    border: 1px solid #cbd5e1;
}

.heatmap-cell-detailed {
    position: relative;
    width: var(--heatmap-cell-size);
    min-width: var(--heatmap-cell-size);
    height: var(--heatmap-cell-size);
    cursor: crosshair;
}

.heatmap-cell-empty {
    background: #f7f8fa;
}

.heatmap-cell-selected {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.88);
}

.heatmap-cell-region::after {
    content: "";
    position: absolute;
    inset: 1px;
    border: 1px solid var(--region-color);
    opacity: 0.8;
    pointer-events: none;
}

.heatmap-details {
    overflow: auto;
    max-height: 60vh;
    padding: 0.8rem;
    background: #fbfcfe;
}

.heatmap-section {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.heatmap-section-title {
    margin-bottom: 0.45rem;
    color: #111827;
    font-size: 0.82rem;
    font-weight: 700;
}

.heatmap-definition-list {
    display: grid;
    grid-template-columns: minmax(6.2rem, 1fr) minmax(0, 1.1fr);
    row-gap: 0.22rem;
    column-gap: 0.6rem;
    margin: 0;
    font-size: 0.78rem;
}

.heatmap-definition-list dt {
    color: #64748b;
    font-weight: 500;
}

.heatmap-definition-list dd {
    margin: 0;
    color: #111827;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.heatmap-table-scroll {
    max-height: 12rem;
    overflow: auto;
}

.heatmap-neurologs-scroll {
    max-height: 16rem;
}

.heatmap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
}

.heatmap-table th,
.heatmap-table td {
    padding: 0.28rem 0.32rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}

.heatmap-table th {
    position: sticky;
    top: 0;
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
}

.heatmap-region-dot {
    display: inline-block;
    width: 0.58rem;
    height: 0.58rem;
    margin-right: 0.35rem;
    border-radius: 50%;
    vertical-align: -0.02rem;
}

.heatmap-viewer-compact {
    margin-top: 1rem;
    border: 1px solid #d8dee7;
    border-radius: 0.25rem;
    overflow: hidden;
}

.heatmap-compact-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fbfcfe;
}

.heatmap-viewer-compact .heatmap-metric {
    min-width: 4rem;
    padding: 0.25rem 0.4rem;
}

.heatmap-viewer-compact .heatmap-metric-label {
    font-size: 0.62rem;
}

.heatmap-viewer-compact .heatmap-metric-value {
    font-size: 0.78rem;
}

.heatmap-compact-legend {
    padding: 0.45rem 0.75rem 0;
}

.heatmap-viewer-compact .heatmap-scroll {
    max-height: 18rem;
    padding: 0.75rem;
}

.malha3d-viewer {
    background: #070b12;
    color: #e5edf7;
    width: 100%;
}

.malha3d-toolbar {
    align-items: center;
    background: #0f172a;
    border-bottom: 1px solid #253145;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 56px;
    padding: 10px 14px;
}

.malha3d-title {
    min-width: 220px;
}

.malha3d-title .text-muted {
    color: #9aa8bc !important;
}

.malha3d-metrics {
    align-items: center;
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.malha3d-metrics span {
    background: #111c31;
    border: 1px solid #31415b;
    border-radius: 4px;
    color: #dbe7f5;
    font-size: 12px;
    padding: 4px 8px;
}

.malha3d-metrics .malha3d-layer-metric {
    border-color: rgba(34, 197, 94, 0.48);
    color: #bbf7d0;
}

.malha3d-canvas-wrap {
    background: #070b12;
    min-height: 520px;
    overflow: hidden;
    width: 100%;
}

.malha3d-canvas {
    cursor: grab;
    display: block;
    height: 100%;
    touch-action: none;
    width: 100%;
}

.malha3d-toolbar .btn-outline-secondary {
    border-color: #64748b;
    color: #dbe7f5;
}

.malha3d-toolbar .btn-outline-secondary:hover {
    background: #1e293b;
    border-color: #94a3b8;
    color: #ffffff;
}

.malha3d-canvas:active {
    cursor: grabbing;
}

.malha3d-modal .modal-dialog {
    max-width: min(1500px, calc(100vw - 24px));
}

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

@media (max-width: 992px) {
    .heatmap-header {
        display: block;
    }

    .heatmap-summary {
        justify-content: flex-start;
        margin-top: 0.75rem;
    }

    .heatmap-layout {
        grid-template-columns: 1fr;
    }

    .heatmap-canvas-panel {
        border-right: 0;
        border-bottom: 1px solid #d8dee7;
    }

    .heatmap-details {
        max-height: none;
    }

    .malha3d-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .malha3d-metrics {
        justify-content: flex-start;
    }
}

#swal-input2.padrao-swal-textarea {
    width: 100%;
    margin: 1rem 0;
    height: 6rem;
    font-size: 1rem;
}

a.nav-item.nav-link.active {
    background-color: rgba(0, 0, 0, .05);
}

.aplicacao-select-sensores {
    height: 10.6rem !important;
}

.aplicacao-select-analises {
    height: 13rem !important;
}

.controlroom-aggregator-zoom-title {
    font-size: 0.8rem;
    font-weight: normal;
}

.icon-share-stacked-export {
    left: 5px !important;
    top: 5px !important;
}

.arinConfigHighlighter {
    max-height: 700px;
    overflow-y: scroll !important;
}

.spinner-loading-table {
    position: absolute;
    margin-top: 15px;
}

.matrix-modal>.modal-dialog {
    max-width: 100% !important;
}

.matrix-modal>.modal-dialog>.modal-content {
    height: 100% !important;
}

.matrix-table {
    font-size: 0.7rem;
    empty-cells: show;
}

.matrix-modal td {
    padding: 0.05rem !important;
    line-height: 1 !important;
}

.matrix-modal td:empty {
    padding: 0.5rem !important;
}

.matrix-disabled {
    text-decoration: line-through;
    background-color: #fdd;
}

.config-sensor-simplificado {
    height: 12rem !important;
}
