﻿/* ================= LOGIN ================= */

.login-body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(196, 158, 73, 0.16), transparent 28%),
        linear-gradient(145deg, #141922 0%, #0b0f16 48%, #05070b 100%);
    background-attachment: fixed;
    background-size: cover;
}

.login-overlay {
    background: rgba(0,0,0,0.55);
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 500px;
    padding: 30px;
    border-radius: 15px;
    background: rgba(0,0,0,0.60);
    backdrop-filter: blur(6px);
    text-align: center;
    color: #d4af37;
}

.login-box-global {
    width: 460px;
    min-height: 620px;
    padding-top: 44px;
    background: linear-gradient(180deg, rgba(10, 12, 18, 0.78), rgba(18, 22, 34, 0.74));
}

.login-box-hotel {
    width: 500px;
}

.entrada-title {
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.entrada-title-premium {
    margin-bottom: 24px;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #f3df9a;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
    position: relative;
}

.entrada-title-premium::after {
    content: "";
    display: block;
    width: 120px;
    height: 2px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0), rgba(242, 210, 122, 0.95), rgba(212, 175, 55, 0));
}

.portal-login-subtitle {
    margin: -8px 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #e7d9a7;
}

.login-brand-main {
    display: block;
    width: min(74%, 292px);
    height: 132px;
    margin: 0 auto 18px;
    object-fit: contain;
    object-position: center;
}

.login-brand-main-premium {
    width: min(74%, 292px);
    height: 132px;
    margin: 0 auto 18px;
    filter: drop-shadow(0 0 16px rgba(242, 210, 122, 0.18));
}

.login-brand-srprime {
    width: min(100%, 450px);
    height: 192px;
    margin-bottom: 10px;
}

.input-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    position: relative;
}

.input-box input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 100%;
    padding-left: 0;
}

.input-box-select select {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    outline: none;
    font-size: 15px;
    appearance: none;
}

.input-box-select select option {
    color: #111111;
}

.login-alerta {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(231, 76, 60, 0.18);
    border: 1px solid rgba(231, 76, 60, 0.55);
    color: #ffb3b3;
    font-size: 14px;
}

.campo-label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    color: #d4af37;
    font-size: 14px;
    text-align: left;
}

.icon {
    color: #d4af37;
}

.forgot {
    position: absolute;
    right: 10px;
    font-size: 12px;
    color: #d4af37;
}

.login-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(to right, #c9a44c, #f2d27a);
    color: black;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.version {
    margin-top: 20px;
    font-size: 12px;
    color: #ccc;
}

.portal-shell {
    width: min(920px, calc(100vw - 48px));
    padding: 36px;
    border-radius: 20px;
    background: rgba(0,0,0,0.62);
    backdrop-filter: blur(8px);
    color: #f3e6b0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.portal-home-shell {
    width: min(980px, calc(100vw - 48px));
    padding: 40px;
    border-radius: 24px;
    background: rgba(0,0,0,0.66);
    backdrop-filter: blur(10px);
    color: #f3e6b0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.portal-home-hero {
    padding: 8px 0 18px;
}

.portal-home-brand {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.portal-home-actions {
    margin-top: 22px;
}

.portal-home-sfr-logo {
    display: block;
    height: 120px;
    margin: 10px auto 18px;
}

/* ================= LAYOUT MODE ================= */

.layout-mode-shell {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.layout-mode-toggle {
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(12, 16, 24, 0.88);
    color: #f3df9a;
    border-radius: 999px;
    padding: 10px 16px;
    min-width: 148px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.layout-mode-toggle-caret {
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    opacity: 0.8;
}

.layout-mode-panel {
    display: none;
    width: 280px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    background: rgba(10, 14, 21, 0.94);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
    color: #f6e7b2;
}

.layout-mode-panel.is-open {
    display: block;
}

.layout-mode-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.layout-mode-subtitle {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(246, 231, 178, 0.82);
    margin-bottom: 14px;
}

.layout-mode-actions,
.layout-mode-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.layout-mode-action {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #caa74d, #f2d27a);
    color: #101319;
    font-weight: 700;
    cursor: pointer;
}

.layout-mode-action.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f6e7b2;
    border: 1px solid rgba(212, 175, 55, 0.24);
}

.layout-mode-action.ghost {
    background: transparent;
    color: #d7c68d;
    border: 1px dashed rgba(212, 175, 55, 0.26);
}

.layout-mode-prompt {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 92px;
    z-index: 1190;
    max-width: 520px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.26);
    background: rgba(9, 13, 20, 0.96);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
    color: #f6e7b2;
}

.layout-mode-prompt-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.layout-mode-prompt-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(246, 231, 178, 0.84);
    margin-bottom: 14px;
}

.layout-touch .dashboard-software {
    gap: 16px;
}

.layout-touch.orientation-portrait .dashboard-software {
    flex-direction: column;
}

.layout-touch.orientation-portrait .sidebar {
    width: auto;
    min-width: 0;
    position: static;
    top: auto;
}

.layout-touch.orientation-portrait .main-content {
    padding: 20px 18px 110px;
}

.layout-touch.orientation-portrait .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.layout-touch.orientation-portrait .management-grid,
.layout-touch.orientation-portrait .cards,
.layout-touch.orientation-portrait .field-row,
.layout-touch.orientation-portrait .editor-actions,
.layout-touch.orientation-portrait .credenciais-grid,
.layout-touch.orientation-portrait .assistant-grid {
    grid-template-columns: 1fr !important;
    flex-direction: column;
}

.layout-touch.orientation-portrait .editor-actions {
    display: flex;
}

.layout-touch.orientation-portrait .btn-escala,
.layout-touch.orientation-portrait .login-btn,
.layout-touch.orientation-portrait .btn-acao,
.layout-touch.orientation-portrait .layout-mode-action {
    min-height: 46px;
}

.layout-touch.orientation-portrait .login-overlay {
    align-items: flex-start;
    padding: 20px 14px 110px;
    min-height: 100vh;
    box-sizing: border-box;
}

.layout-touch.orientation-portrait .login-box,
.layout-touch.orientation-portrait .portal-shell,
.layout-touch.orientation-portrait .portal-home-shell {
    width: min(100%, 560px);
    padding: 24px 18px;
    border-radius: 18px;
}

.layout-touch.orientation-portrait .login-shell {
    width: min(100%, 390px);
}

.layout-touch.orientation-portrait .logo-zone {
    width: 180px;
    height: 180px;
    margin-bottom: 14px;
}

.layout-touch.orientation-portrait .logo-ring {
    width: 180px;
    height: 180px;
}

.layout-touch.orientation-portrait .login-hero-logo {
    width: 100px;
}

.layout-touch.orientation-portrait .login-title {
    font-size: 24px;
}

.layout-touch.orientation-portrait .login-subtitle {
    font-size: 14px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.layout-touch.orientation-portrait .records-table-wrap,
.layout-touch.orientation-portrait .editor-grid-wrapper {
    overflow-x: auto;
}

.layout-touch.orientation-portrait .records-table,
.layout-touch.orientation-portrait .meses-table,
.layout-touch.orientation-portrait .tabela-escala {
    min-width: 720px;
}

.layout-touch.orientation-landscape .dashboard-software {
    display: grid;
    grid-template-columns: minmax(240px, 300px) 1fr;
}

.layout-touch.orientation-landscape .sidebar {
    width: auto;
    min-width: 240px;
}

.layout-touch.orientation-landscape .main-content {
    padding-bottom: 110px;
}

.layout-touch.orientation-landscape .page-header {
    gap: 18px;
}

.layout-touch .menu-item,
.layout-touch .btn-escala,
.layout-touch .btn-acao,
.layout-touch .input-box input,
.layout-touch .panel-input,
.layout-touch textarea,
.layout-touch select {
    font-size: 16px;
}

.layout-touch .menu-item {
    padding: 12px 14px;
}

.layout-touch .panel-card {
    border-radius: 20px;
}

.layout-touch .records-table-wrap,
.layout-touch .editor-grid-wrapper {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
    .layout-mode-shell {
        right: 12px;
        bottom: 12px;
        left: 12px;
        align-items: stretch;
    }

    .layout-mode-toggle,
    .layout-mode-panel {
        width: 100%;
    }

    .layout-mode-prompt {
        left: 12px;
        right: 12px;
        bottom: 86px;
    }
}

.portal-home-kicker {
    margin-bottom: 18px;
    font-size: 26px;
    letter-spacing: 5px;
}

.portal-home-sfr-logo-premium {
    height: 220px;
    margin: 2px auto 22px;
    filter: drop-shadow(0 0 18px rgba(242, 210, 122, 0.18));
}

.portal-home-logo-link {
    display: inline-block;
    border-radius: 18px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.portal-home-logo-link:hover {
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.06);
}

.portal-home-hotels {
    margin-top: 30px;
    padding: 28px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(212, 175, 55, 0.14);
}

.portal-hotel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.portal-hotel-link {
    text-decoration: none;
}

.portal-hotel-card {
    height: 100%;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(212,175,55,0.12));
    color: #f7eecf;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.portal-hotel-card-login {
    max-width: 420px;
    margin: 0 auto;
    padding: 14px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.68), rgba(26, 23, 14, 0.56));
}

.portal-hotel-card:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 210, 122, 0.62);
    background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(212,175,55,0.2));
}

.portal-hotel-kicker {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d9c37a;
}

.portal-hotel-logo {
    display: block;
    height: 116px;
    margin: 0 auto 14px;
}

.portal-hotel-logo-large {
    height: 150px;
    margin: 0 auto 8px;
}

.portal-hotel-title {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.portal-hotel-text {
    font-size: 15px;
    line-height: 1.55;
    color: #f1e7c4;
}

.portal-hotel-login-shell {
    padding: 12px 10px 6px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(212, 175, 55, 0.18);
}

.portal-hotel-login-title {
    margin-bottom: 12px;
    font-size: 22px;
}

.portal-copy {
    text-align: center;
    margin-bottom: 28px;
}

.portal-title {
    margin: 0 0 12px;
    font-size: 34px;
    letter-spacing: 1px;
    color: #fff3c9;
}

.portal-subtitle {
    margin: 0 auto;
    max-width: 620px;
    font-size: 16px;
    line-height: 1.6;
    color: #eadfb8;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.portal-card {
    display: block;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(212,175,55,0.10));
    color: #fff4cf;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.portal-card:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 210, 122, 0.62);
    background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(212,175,55,0.18));
}

.portal-card-kicker {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d9c37a;
}

.portal-card-title {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.portal-card-text {
    min-height: 68px;
    font-size: 15px;
    line-height: 1.55;
    color: #f1e7c4;
}

.portal-card-action {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 700;
    color: #f2d27a;
}

.superadmin-hotels {
    display: grid;
    gap: 18px;
}

.superadmin-hero-card {
    margin-bottom: 18px;
}

.superadmin-hero-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.3fr) minmax(220px, 0.7fr);
    gap: 18px;
    align-items: center;
}

.superadmin-hero-brand {
    display: grid;
    gap: 12px;
    color: #eadfb8;
}

.superadmin-hero-info {
    display: flex;
    justify-content: flex-end;
}

.superadmin-hotel-card {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.superadmin-hotel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.superadmin-hotel-head h3 {
    margin: 0;
    color: #ffffff;
    font-size: 26px;
}

.superadmin-hotel-kicker {
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #d9c37a;
}

.superadmin-hotel-text {
    margin: 0 0 18px;
    color: #e4dcc0;
    line-height: 1.6;
}

.superadmin-hotel-logo {
    height: 74px;
    width: auto;
}

.superadmin-departamentos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.superadmin-capacity-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.superadmin-departamento {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
}

.superadmin-departamento strong {
    font-size: 18px;
    color: #ffffff;
}

.superadmin-departamento span {
    font-size: 14px;
    line-height: 1.5;
}

.superadmin-departamento-active {
    background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(212,175,55,0.12));
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: #f1e7c4;
}

.superadmin-departamento-active:hover {
    border-color: rgba(242, 210, 122, 0.62);
    background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(212,175,55,0.2));
}

.superadmin-departamento-disabled {
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.16);
    color: #c8c3b2;
    opacity: 0.78;
}

.superadmin-departamento-logo {
    align-items: flex-start;
}

.context-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: #ffe7a4;
    font-size: 13px;
}

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

.dashboard-body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(196, 158, 73, 0.14), transparent 28%),
        linear-gradient(145deg, #141922 0%, #0b0f16 48%, #05070b 100%);
    background-attachment: fixed;
    background-size: cover;
    color: gold;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.75);
    padding: 15px 40px;
}

.logo-left {
    height: 55px;
}

.logo-right {
    height: 55px;
}

.dashboard-wrapper {
    max-width: 1100px;
    margin: auto;
    margin-top: 40px;
    background: rgba(0,0,0,0.65);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(6px);
}

.dashboard-section {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #d4af37;
}

.dashboard-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}

.menu-btn {
    display: block;
    background: rgba(255,255,255,0.05);
    color: gold;
    padding: 18px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    border: 1px solid #d4af37;
    transition: 0.3s;
}

.menu-btn:hover {
    background: #d4af37;
    color: black;
    transform: scale(1.03);
}

/* ===== TABELA ESCALA ===== */

.tabela-escala {
    border-collapse: collapse;
    margin: auto;
    margin-top: 20px;
    background-color: rgba(0,0,0,0.35);
    color: white;
    font-size: 14px;
}

.tabela-escala th {
    padding: 8px;
    border: 1px solid rgba(212,175,55,0.4);
    background-color: rgba(0,0,0,0.6);
    color: #D4AF37;
}

.tabela-escala td {
    border: 1px solid rgba(212,175,55,0.2);
    padding: 3px;
    text-align: center;
}

.nome {
    color: #D4AF37;
    font-weight: bold;
    padding-right: 10px;
}

/* Inputs */
.turno {
    width: 38px;
    height: 28px;
    text-align: center;
    border: none;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

/* ===== CORES DOS TURNOS ===== */

.M7 { background-color: #3498db; color: white; }
.M8 { background-color: #2980b9; color: white; }
.M9 { background-color: #1f618d; color: white; }

.D1 { background-color: #27ae60; color: white; }
.D2 { background-color: #1e8449; color: white; }

.F  { background-color: #e74c3c; color: white; }
.L  { background-color: #f39c12; color: black; }

.FE { background-color: #9b59b6; color: white; }
.B  { background-color: #7f8c8d; color: white; }

.G  { background-color: #D4AF37; color: black; }

/* ===== ASSISTENTE ===== */

.alerta-box {
    width: 60%;
    margin: auto;
    background-color: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.6);
    padding: 15px;
    color: #ffb3b3;
    border-radius: 10px;
    margin-top: 20px;
}

.assistant-panel {
    margin-bottom: 24px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(8, 12, 20, 0.82);
    border: 1px solid rgba(212,175,55,0.28);
    box-shadow: 0 18px 40px rgba(0,0,0,0.3);
    text-align: left;
}

.assistant-critico {
    border-color: rgba(231, 76, 60, 0.55);
}

.assistant-atencao {
    border-color: rgba(243, 156, 18, 0.55);
}

.assistant-ok {
    border-color: rgba(39, 174, 96, 0.5);
}

.assistant-hero {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.assistant-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #d4af37, #f3d478);
    color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.assistant-kicker {
    color: #d8bc67;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.assistant-copy h3 {
    margin: 0 0 8px 0;
    color: #fff0b7;
    font-size: 26px;
}

.assistant-copy p {
    margin: 0;
    color: #ddd6c0;
    line-height: 1.5;
}

.assistant-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.assistant-stat {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212,175,55,0.12);
}

.assistant-stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #f5df97;
    margin-bottom: 6px;
}

.assistant-stat-label {
    color: #c8c0a4;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.assistant-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.assistant-card {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212,175,55,0.12);
}

.assistant-card h4 {
    margin: 0 0 14px 0;
    color: #f0d57a;
    font-size: 17px;
}

.assistant-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assistant-list li {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0,0,0,0.26);
    border: 1px solid rgba(255,255,255,0.06);
}

.assistant-list strong {
    display: block;
    color: #fff0b7;
    margin-bottom: 4px;
}

.assistant-list span,
.assistant-empty {
    color: #d8d2be;
    line-height: 1.45;
}

.assistant-empty {
    margin: 0;
}

.assistant-recomendacoes {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .assistant-stats,
    .assistant-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .assistant-hero {
        flex-direction: column;
    }

    .assistant-stats,
    .assistant-grid {
        grid-template-columns: 1fr;
    }
}

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

.menu-btn {
display: block;
background: rgba(255,255,255,0.05);
color: gold;
padding: 18px;
text-align: center;
border-radius: 10px;
text-decoration: none;
font-size: 15px;
border: 1px solid #d4af37;
transition: 0.3s;
}

.menu-btn:hover {
background: #d4af37;
color: black;
transform: scale(1.03);
}

/* ===== BOTOES EDITOR ===== */

.btn-escala {
border: 1px solid #D4AF37;
padding: 10px 18px;
margin: 5px;
color: #D4AF37;
text-decoration: none;
background-color: rgba(0,0,0,0.5);
border-radius: 8px;
font-weight: bold;
display: inline-block;
}

.btn-escala:hover {
background-color: #D4AF37;
color: black;
}

.btn-danger-soft {
background-color: rgba(142, 42, 42, 0.5);
border-color: #c85b5b;
color: #ffd5d5;
}

.btn-danger-soft:hover {
background-color: #c85b5b;
color: white;
}

/* ================= ESTADO ESCALA ================= */

.estado-box {
margin: 15px auto;
padding: 10px;
width: 300px;
border: 1px solid #D4AF37;
border-radius: 8px;
color: #D4AF37;
background-color: rgba(0,0,0,0.5);
font-size: 14px;
}

/* ================= TABELA ESTILO EXCEL ================= */

.tabela-escala {
border-collapse: collapse;
margin: auto;
margin-top: 20px;
background-color: rgba(0,0,0,0.35);
color: white;
font-size: 14px;
}

.tabela-escala th {
padding: 8px;
border: 1px solid rgba(212,175,55,0.4);
background-color: rgba(0,0,0,0.75);
color: #D4AF37;
position: sticky;
top: 0;
}

.tabela-escala td {
border: 1px solid rgba(212,175,55,0.2);
padding: 3px;
text-align: center;
}

/* Nome funcionario */
.nome {
color: #D4AF37;
font-weight: bold;
padding-right: 10px;
background-color: rgba(0,0,0,0.7);
}

/* Inputs */
.turno {
width: 38px;
height: 28px;
text-align: center;
border: none;
font-weight: bold;
border-radius: 4px;
cursor: pointer;
}

/* Quando bloqueado */
.turno-bloqueado {
width: 38px;
height: 28px;
text-align: center;
font-weight: bold;
border-radius: 4px;
line-height: 28px;
}

/* Dias com erro */
.erro-dia {
background-color: rgba(231, 76, 60, 0.35);
}

/* ================= SCROLL TABELA ================= */

.container {
width: 95%;
margin: auto;
text-align: center;
overflow-x: auto;
}

/* ================= FIXAR NOME FUNCIONARIO ================= */

.tabela-escala td:first-child,
.tabela-escala th:first-child {
    position: sticky;
    left: 0;
    background-color: rgba(0,0,0,0.85);
    z-index: 2;
}

/* ================= FIXAR DIAS SEMANA ================= */

.tabela-escala th {
    position: sticky;
    top: 0;
    z-index: 3;
}

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

.dashboard-software {
display: flex;
}

.editor-body {
margin: 0;
font-family: Arial, sans-serif;
background:
    radial-gradient(circle at top, rgba(196, 158, 73, 0.14), transparent 28%),
    linear-gradient(145deg, #141922 0%, #0b0f16 48%, #05070b 100%);
background-attachment: fixed;
background-size: cover;
color: white;
}

.editor-container {
padding-top: 24px;
padding-bottom: 30px;
}

.editor-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
margin-bottom: 20px;
}

.editor-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
justify-content: flex-end;
}

.editor-grid-wrapper {
overflow-x: auto;
padding-bottom: 10px;
}

/* MENU LATERAL */
.sidebar {
width: 230px;
height: 100vh;
background-color: #111;
color: #D4AF37;
padding: 20px;
position: fixed;
box-sizing: border-box;
overflow-y: auto;
scrollbar-color: rgba(212, 175, 55, 0.55) rgba(255, 255, 255, 0.04);
scrollbar-width: thin;
}

.logo {
text-align: center;
margin-bottom: 30px;
}

.staff-greeting-box {
padding: 12px 10px;
margin-bottom: 16px;
border-radius: 12px;
background: linear-gradient(180deg, rgba(212, 175, 55, 0.16), rgba(255, 255, 255, 0.04));
border: 1px solid rgba(212, 175, 55, 0.22);
text-align: center;
}

.staff-greeting-text {
font-size: 13px;
letter-spacing: 1px;
color: #f1d98d;
margin-bottom: 4px;
}

.staff-greeting-name {
font-size: 19px;
font-weight: 700;
line-height: 1.18;
color: #ffffff;
margin-bottom: 9px;
}

.staff-clock {
font-size: 23px;
font-weight: 700;
letter-spacing: 1px;
color: #ffe7a4;
margin-bottom: 4px;
}

.staff-date {
font-size: 12px;
line-height: 1.3;
text-transform: capitalize;
color: #d8d0b1;
}

.menu-section {
margin-top: 20px;
margin-bottom: 10px;
font-size: 12px;
color: #888;
}

.menu-item {
display: block;
color: #D4AF37;
text-decoration: none;
padding: 10px;
border-radius: 6px;
margin-bottom: 5px;
}

.menu-item:hover {
background-color: #D4AF37;
color: black;
}

.logout {
margin-top: 20px;
background-color: #8e2a2a;
color: white;
text-align: center;
}

/* CONTEUDO */
.main-content {
margin-left: 250px;
padding: 40px;
color: white;
}

.dashboard-main {
display: flex;
flex-direction: column;
gap: 24px;
}

.dashboard-theme-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 22px;
}

.dashboard-theme-card {
min-height: 100%;
}

.quick-links-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}

.quick-link-card {
display: block;
padding: 16px;
border-radius: 14px;
text-decoration: none;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(212,175,55,0.18);
color: #f6e8bc;
transition: 0.2s ease;
}

.quick-link-card strong {
display: block;
margin-bottom: 6px;
color: #f0d57a;
font-size: 16px;
}

.quick-link-card span {
display: block;
color: #d2cab1;
font-size: 14px;
line-height: 1.45;
}

.quick-link-card:hover {
transform: translateY(-2px);
border-color: rgba(212,175,55,0.45);
background: rgba(255,255,255,0.08);
}

.generation-settings {
display: flex;
flex-direction: column;
gap: 16px;
}

.generation-row {
display: grid;
gap: 8px;
}

.generation-row label {
color: #f0d57a;
font-size: 14px;
font-weight: bold;
}

.generation-hint {
padding: 14px 16px;
border-radius: 12px;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(212,175,55,0.18);
color: #d8d0b6;
line-height: 1.45;
}

.generation-hint strong {
color: #f5df97;
display: inline-block;
margin-right: 6px;
}

.meses-theme-card {
margin-top: 0;
}

.muted-inline {
color: #a8a8a8;
}

.btn-acao-submit {
font: inherit;
cursor: pointer;
}

.cards {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.department-modules-panel .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 18px;
    max-width: 980px;
}

.card {
    background-color: rgba(0,0,0,0.6);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #D4AF37;
    width: 250px;
}

.card-link,
.card-link:visited,
.card-link:hover,
.card-link:active {
    color: #f3ebd4;
    text-decoration: none;
}

.department-modules-panel .card {
    width: 100%;
    min-height: 110px;
    padding: 16px 18px;
}

.department-modules-panel .card.card-featured {
    min-height: 142px;
    border-color: rgba(242, 210, 122, 0.55);
    background: linear-gradient(180deg, rgba(22, 28, 40, 0.92), rgba(9, 12, 18, 0.76));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.department-modules-panel .card h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.department-modules-panel .card p {
    margin: 0;
    line-height: 1.45;
}

.meses-card {
background-color: rgba(0,0,0,0.65);
border: 1px solid #D4AF37;
border-radius: 12px;
padding: 20px;
margin-top: 25px;
max-width: 980px;
}

.meses-table {
width: 100%;
border-collapse: collapse;
color: white;
}

.meses-table th,
.meses-table td {
padding: 12px 10px;
border-bottom: 1px solid rgba(212,175,55,0.2);
text-align: left;
}

.meses-table th {
color: #D4AF37;
font-weight: bold;
}

.btn-acao {
display: inline-block;
padding: 8px 12px;
border-radius: 8px;
border: 1px solid #D4AF37;
color: #D4AF37;
text-decoration: none;
background-color: rgba(0,0,0,0.45);
font-weight: bold;
min-width: 72px;
text-align: center;
box-sizing: border-box;
}

.acoes-mes {
display: flex;
gap: 8px;
flex-wrap: wrap;
}

.btn-acao:hover {
background-color: #D4AF37;
color: black;
}

.btn-disabled {
opacity: 0.45;
pointer-events: none;
}

.estado-pill {
display: inline-block;
padding: 6px 10px;
border-radius: 999px;
font-size: 13px;
font-weight: bold;
text-transform: lowercase;
}

.estado-edicao {
background-color: rgba(52, 152, 219, 0.18);
color: #7fc8ff;
}

.estado-editado {
background-color: rgba(243, 156, 18, 0.18);
color: #f5c26b;
}

.estado-bloqueada {
background-color: rgba(39, 174, 96, 0.18);
color: #7ee0a9;
}

.estado-inexistente {
background-color: rgba(127, 140, 141, 0.2);
color: #d0d6d7;
}

.page-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
margin-bottom: 24px;
}

.page-title {
margin: 0;
font-size: 32px;
color: #f2e0a6;
}

.page-subtitle {
margin-top: 8px;
margin-bottom: 0;
color: #ddd4b3;
max-width: 760px;
}

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

.dashboard-header-main {
min-width: 0;
}

.dashboard-header-actions {
display: flex;
gap: 12px;
flex-wrap: wrap;
align-items: flex-start;
}

.page-content {
display: flex;
flex-direction: column;
gap: 18px;
}

.dashboard-modules-grid {
display: grid;
gap: 18px;
}

.dashboard-module-card {
display: block;
}

.dashboard-module-card > .panel-card {
margin: 0;
}

.scale-context-card {
    margin-bottom: 18px;
}

.scale-context-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.scale-context-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    grid-column: 2 / -1;
}

.scale-context-copy {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(212,175,55,0.22);
    background: rgba(255,255,255,0.03);
}

.scale-context-kicker {
    color: #d9c37a;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.scale-context-copy h2 {
    margin: 0;
    font-size: 28px;
    color: #fff1c2;
}

.scale-context-copy p {
    margin: 0;
    color: #d8ceb0;
    line-height: 1.5;
}

.scale-context-chip {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(212,175,55,0.22);
    background: rgba(255,255,255,0.04);
}

.scale-context-chip span {
    color: #d9c37a;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.scale-context-chip strong {
    color: #fff1c2;
    font-size: 16px;
}

.scale-context-chip-state .estado-pill {
    width: fit-content;
}

.scale-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.scale-action-bar .btn-escala {
    min-height: 46px;
}

.btn-escala-ghost {
    background: rgba(255,255,255,0.04);
    border-color: rgba(212,175,55,0.18);
    color: #f2e3b4;
}

.btn-escala-ghost:hover {
    background: rgba(212,175,55,0.14);
    color: #0b0f16;
}

.editor-scale-context-card {
    margin-bottom: 20px;
}

.editor-import-strip {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.7fr) auto;
    gap: 12px;
    align-items: end;
}

.editor-import-strip .field-group {
    margin: 0;
}

.editor-import-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.editor-import-actions .btn-escala {
    margin: 0;
    min-height: 46px;
}

body.page-escala-staff:not(.layout-mobile) .main-content.dashboard-main,
body.page-mobile-escala:not(.layout-mobile) .main-content.dashboard-main {
    min-width: 0;
    max-width: calc(100vw - 250px);
    box-sizing: border-box;
}

.page-escala-staff .scale-compact-panel,
.page-mobile-escala .scale-compact-panel {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #050608;
    border: 1px solid rgba(212, 175, 55, 0.44);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.page-escala-staff .scale-compact-scroll,
.page-mobile-escala .scale-compact-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.page-escala-staff .scale-compact-table,
.page-mobile-escala .scale-compact-table {
    width: max-content;
    min-width: 0;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: #050608;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
}

.page-escala-staff .scale-compact-table th,
.page-escala-staff .scale-compact-table td,
.page-mobile-escala .scale-compact-table th,
.page-mobile-escala .scale-compact-table td {
    min-width: 38px;
    width: 38px;
    height: 28px;
    padding: 1px 3px;
    text-align: center;
    vertical-align: middle;
    background: #050608;
    border: 1px solid rgba(212, 175, 55, 0.42);
    box-sizing: border-box;
}

.page-escala-staff .scale-compact-table th,
.page-mobile-escala .scale-compact-table th {
    height: 25px;
    color: #f2d24d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    white-space: nowrap;
}

.page-escala-staff .scale-compact-weekdays th,
.page-mobile-escala .scale-compact-weekdays th {
    height: 24px;
    font-size: 12px;
    text-transform: none;
}

.page-escala-staff .scale-compact-days th,
.page-mobile-escala .scale-compact-days th {
    height: 24px;
    font-size: 12px;
}

.page-escala-staff .scale-compact-table th:first-child,
.page-escala-staff .scale-compact-table td.scale-compact-name,
.page-mobile-escala .scale-compact-table th:first-child,
.page-mobile-escala .scale-compact-table td.scale-compact-name {
    min-width: 116px;
    width: 116px;
    max-width: 116px;
}

.page-escala-staff .scale-compact-name,
.page-mobile-escala .scale-compact-name {
    position: sticky;
    left: 0;
    z-index: 2;
    overflow: hidden;
    padding: 0 6px;
    color: #f2d24d;
    font-weight: 800;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #050608;
}

.page-escala-staff .scale-compact-cell,
.page-mobile-escala .scale-compact-cell {
    background: #090b10;
}

.page-escala-staff .scale-compact-shift,
.page-mobile-escala .scale-compact-shift {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 22px;
    margin: 0 auto;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.rules-intro-head {
margin-bottom: 20px;
}

.rules-intro-head p {
max-width: 920px;
}

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

.regras-intro-copy {
    display: grid;
    gap: 6px;
}

.regras-intro-kicker {
    color: #d9c37a;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.regras-page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.regras-page-actions form {
    margin: 0;
}

.regras-page-card {
    padding: 20px;
}

.regras-grid-sprint {
    gap: 18px;
}

.regras-block-card {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(14, 18, 28, 0.95), rgba(10, 14, 21, 0.98));
}

.regras-block-head {
    margin-bottom: 16px;
}

.regras-block-head h3 {
    margin-bottom: 6px;
}

.regras-block-head p {
    max-width: 100%;
}

.regras-subblock-card {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
}

.regras-subblock-head {
    margin-bottom: 10px;
}

.regras-editor-actions {
    margin-top: 8px;
}

.regras-editor-actions .btn-escala {
    min-width: 180px;
}

.management-grid {
display: grid;
grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
gap: 22px;
align-items: start;
}

.staff-layout {
grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
}

.staff-records-full {
grid-column: 1 / -1;
}

.regras-layout {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}

.nested-card {
padding: 18px;
background: rgba(255,255,255,0.03);
}

.regras-layout .nested-card {
display: flex;
flex-direction: column;
gap: 14px;
}

.regras-textarea {
    min-height: 128px;
    resize: vertical;
    line-height: 1.45;
    white-space: pre-wrap;
}

.turno-color-chip {
display: inline-block;
width: 16px;
height: 16px;
border-radius: 999px;
vertical-align: middle;
margin-right: 8px;
border: 1px solid rgba(255,255,255,0.35);
}

.color-input {
padding: 6px;
min-height: 46px;
}

.panel-card {
  background: rgba(0,0,0,0.62);
  border: 1px solid rgba(212,175,55,0.38);
border-radius: 16px;
padding: 22px;
box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.credenciais-card {
  margin-bottom: 18px;
}

.credenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.credenciais-grid div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(212,175,55,0.22);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
}

.panel-head {
margin-bottom: 18px;
}

.panel-head h3 {
margin: 0 0 6px 0;
color: #f0d57a;
font-size: 22px;
}

.panel-head p {
margin: 0;
color: #d0c8af;
font-size: 14px;
line-height: 1.5;
}

.panel-head h4 {
margin: 0;
color: #f5df97;
font-size: 17px;
}

.department-overview-hero {
display: grid;
grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
gap: 18px;
align-items: start;
margin-bottom: 18px;
}

.department-overview-badges,
.department-overview-capacity-strip,
.department-overview-tags,
.department-overview-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.department-overview-badges {
margin-top: 12px;
}

.department-overview-note {
margin: 12px 0 0;
color: #d8cfb3;
line-height: 1.5;
}

.department-overview-capacity-strip {
justify-content: flex-start;
align-content: flex-start;
}

.department-overview-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 14px;
margin-top: 18px;
}

.department-overview-card {
background: rgba(9, 12, 18, 0.72);
border: 1px solid rgba(212, 175, 55, 0.22);
border-radius: 14px;
padding: 16px;
min-height: 150px;
display: flex;
flex-direction: column;
gap: 8px;
}

.department-overview-card h4 {
margin: 0;
font-size: 15px;
color: #f6df91;
line-height: 1.35;
}

.department-overview-card strong {
font-size: 24px;
color: #fff4c5;
line-height: 1.1;
}

.department-overview-card p {
margin: 0;
color: #d8cfb3;
line-height: 1.45;
}

.department-card-stats {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}

.department-card-action {
margin-top: 6px;
font-size: 13px;
color: #e8d18a;
}

.department-card-cta {
display: inline-flex;
align-items: center;
justify-content: center;
margin-top: 14px;
padding: 10px 14px;
border-radius: 999px;
border: 1px solid rgba(242, 210, 122, 0.34);
background: rgba(242, 210, 122, 0.08);
color: #fff1bf;
font-weight: 700;
font-size: 13px;
}

.department-overview-actions {
margin-top: 18px;
}

.department-overview-actions .btn-escala {
margin: 0;
}

.department-module-header {
margin-bottom: 18px;
}

.hotel-module-header {
margin-bottom: 18px;
}

.hotel-module-context {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}

.department-module-context {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}

.department-primary-actions {
margin-top: 18px;
padding: 16px;
border-radius: 16px;
border: 1px solid rgba(212, 175, 55, 0.18);
background: rgba(7, 10, 15, 0.44);
}

.department-primary-actions-head {
margin-bottom: 12px;
}

.department-primary-actions-head h4 {
margin: 0;
color: #f6df91;
font-size: 16px;
}

.department-primary-actions-head p {
margin: 6px 0 0;
color: #d8cfb3;
font-size: 14px;
line-height: 1.45;
}

.department-primary-actions-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
gap: 10px;
}

.department-primary-action {
display: flex;
flex-direction: column;
justify-content: center;
min-height: 96px;
padding: 14px 16px;
border-radius: 14px;
border: 1px solid rgba(212, 175, 55, 0.22);
background: rgba(255, 255, 255, 0.04);
color: #f8e8b5;
text-decoration: none;
gap: 6px;
}

.department-primary-action strong {
font-size: 18px;
color: #fff3c7;
}

.department-primary-action span {
font-size: 13px;
line-height: 1.45;
color: #d8cfb3;
}

.department-primary-action-primary {
background: linear-gradient(135deg, rgba(202, 167, 77, 0.22), rgba(12, 16, 24, 0.84));
border-color: rgba(242, 210, 122, 0.38);
}

.department-primary-action-secondary {
background: rgba(12, 16, 24, 0.84);
}

.department-primary-action-ghost {
background: rgba(255, 255, 255, 0.03);
}

.month-status-legend {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}

.month-status-legend-item {
font-size: 12px;
letter-spacing: 0.2px;
}

.history-filter-card {
margin-bottom: 18px;
}

.history-top-card {
display: flex;
flex-direction: column;
gap: 16px;
margin-bottom: 18px;
}

.history-top-row {
display: grid;
grid-template-columns: minmax(0, 1.6fr) minmax(230px, 0.9fr);
gap: 16px;
align-items: stretch;
}

.history-top-copy-block {
display: flex;
flex-direction: column;
gap: 8px;
}

.history-top-title {
margin: 0;
color: #fff1c2;
font-size: 26px;
line-height: 1.1;
}

.history-top-copy {
margin: 0;
color: #d8cda3;
font-size: 14px;
line-height: 1.55;
max-width: 62ch;
}

.history-top-context {
display: flex;
flex-direction: column;
justify-content: center;
gap: 5px;
padding: 16px 18px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(212, 175, 55, 0.16);
}

.history-top-label {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1.1px;
color: rgba(248, 232, 176, 0.82);
}

.history-top-context strong {
font-size: 18px;
color: #f9e7aa;
}

.history-top-context span {
color: rgba(249, 231, 170, 0.74);
}

.history-top-chips,
.history-header-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.history-top-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 999px;
border: 1px solid rgba(212, 175, 55, 0.2);
background: rgba(212, 175, 55, 0.08);
color: #f7e3a0;
font-size: 12px;
font-weight: 700;
}

.history-top-chip.is-muted {
background: rgba(255, 255, 255, 0.05);
border-color: rgba(255, 255, 255, 0.1);
color: #e9dec0;
}

.history-filter-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 14px;
align-items: end;
}

.history-filter-wide {
grid-column: span 1;
}

.history-filter-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
justify-content: flex-end;
grid-column: 1 / -1;
}

.backup-pill {
display: inline-flex;
align-items: center;
padding: 4px 10px;
border-radius: 999px;
background: rgba(202, 167, 77, 0.14);
border: 1px solid rgba(212, 175, 55, 0.22);
color: #f7e3a0;
font-size: 12px;
font-weight: 700;
}

.history-period-pill {
display: inline-flex;
align-items: center;
padding: 4px 10px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(212, 175, 55, 0.16);
color: #f4e4ae;
font-size: 12px;
font-weight: 700;
}

.history-action-badge {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 6px 10px;
border-radius: 999px;
border: 1px solid rgba(212, 175, 55, 0.18);
background: rgba(255, 255, 255, 0.05);
color: #f4e4ae;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.35px;
}

.history-action-generate {
background: rgba(72, 144, 226, 0.18);
border-color: rgba(72, 144, 226, 0.4);
color: #c5e0ff;
}

.history-action-save {
background: rgba(126, 211, 33, 0.16);
border-color: rgba(126, 211, 33, 0.38);
color: #daf7b1;
}

.history-action-block {
background: rgba(231, 76, 60, 0.18);
border-color: rgba(231, 76, 60, 0.42);
color: #ffc3c0;
}

.history-action-unblock {
background: rgba(241, 196, 15, 0.16);
border-color: rgba(241, 196, 15, 0.38);
color: #ffe9a8;
}

.history-action-rules {
background: rgba(156, 89, 182, 0.16);
border-color: rgba(156, 89, 182, 0.4);
color: #e6c8fb;
}

.history-action-default {
background: rgba(212, 175, 55, 0.18);
border-color: rgba(212, 175, 55, 0.42);
color: #fff0bf;
}

.history-action-neutral {
background: rgba(255, 255, 255, 0.05);
color: #f4e4ae;
}

.history-table .history-row td {
background: rgba(255, 255, 255, 0.02);
}

.history-table .history-row.history-action-generate td:first-child {
box-shadow: inset 4px 0 0 rgba(72, 144, 226, 0.95);
}

.history-table .history-row.history-action-save td:first-child {
box-shadow: inset 4px 0 0 rgba(126, 211, 33, 0.95);
}

.history-table .history-row.history-action-block td:first-child {
box-shadow: inset 4px 0 0 rgba(231, 76, 60, 0.95);
}

.history-table .history-row.history-action-unblock td:first-child {
box-shadow: inset 4px 0 0 rgba(241, 196, 15, 0.95);
}

.history-table .history-row.history-action-rules td:first-child {
box-shadow: inset 4px 0 0 rgba(156, 89, 182, 0.95);
}

.history-table .history-row.history-action-default td:first-child {
box-shadow: inset 4px 0 0 rgba(212, 175, 55, 0.95);
}

.history-summary-text {
display: inline-flex;
align-items: center;
gap: 6px;
margin-left: 8px;
color: #e9dec0;
font-size: 13px;
line-height: 1.45;
}

.mobile-record-topline {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
}

.mobile-record-card {
display: flex;
flex-direction: column;
gap: 8px;
}

.mobile-record-card.history-action-generate {
border-left: 4px solid rgba(72, 144, 226, 0.95);
}

.mobile-record-card.history-action-save {
border-left: 4px solid rgba(126, 211, 33, 0.95);
}

.mobile-record-card.history-action-block {
border-left: 4px solid rgba(231, 76, 60, 0.95);
}

.mobile-record-card.history-action-unblock {
border-left: 4px solid rgba(241, 196, 15, 0.95);
}

.mobile-record-card.history-action-rules {
border-left: 4px solid rgba(156, 89, 182, 0.95);
}

.mobile-record-card.history-action-default {
border-left: 4px solid rgba(212, 175, 55, 0.95);
}

.mobile-record-card .mobile-record-title {
font-size: 15px;
font-weight: 700;
color: #fff1c2;
line-height: 1.4;
}

.mobile-record-meta {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
color: #d8cda3;
font-size: 13px;
line-height: 1.5;
}

.panel-form {
display: flex;
flex-direction: column;
gap: 16px;
}

.field-row {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}

.field-group {
display: flex;
flex-direction: column;
gap: 8px;
}

.field-group label {
color: #f0d57a;
font-size: 14px;
font-weight: bold;
}

.panel-input {
width: 100%;
box-sizing: border-box;
padding: 12px 14px;
border-radius: 10px;
border: 1px solid rgba(212,175,55,0.35);
background: rgba(255,255,255,0.08);
color: white;
outline: none;
font-size: 14px;
}

.panel-input:focus {
border-color: #d4af37;
box-shadow: 0 0 0 3px rgba(212,175,55,0.16);
}

.panel-input option {
color: black;
}

.checkbox-grid {
display: flex;
flex-wrap: wrap;
gap: 10px;
}

.turnos-grid {
gap: 8px;
}

.checkbox-chip {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 12px;
border-radius: 10px;
border: 1px solid rgba(212,175,55,0.24);
background: rgba(255,255,255,0.05);
color: #f5e7bc;
font-size: 14px;
}

.checkbox-chip input {
accent-color: #d4af37;
}

.records-table-wrap {
overflow-x: auto;
}

.records-table {
width: 100%;
border-collapse: collapse;
color: white;
}

.records-table th,
.records-table td {
padding: 12px 10px;
border-bottom: 1px solid rgba(212,175,55,0.16);
text-align: left;
vertical-align: top;
}

.records-table th {
color: #f0d57a;
font-size: 13px;
letter-spacing: 0.4px;
text-transform: uppercase;
}

.records-table tbody tr:hover {
background: rgba(255,255,255,0.03);
}

.role-badge {
display: inline-block;
padding: 6px 10px;
border-radius: 999px;
background: rgba(212,175,55,0.16);
color: #f6df91;
font-size: 12px;
font-weight: bold;
text-transform: lowercase;
}

.badge-group {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}

.dashboard-highlight-panel {
border: 1px solid rgba(212, 175, 55, 0.25);
box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08), 0 18px 40px rgba(0, 0, 0, 0.2);
}

.alert-ribbon {
margin-top: 12px;
}

.alert-pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
line-height: 1.2;
}

.alert-pill-warning {
background: rgba(217, 119, 6, 0.18);
color: #ffd79a;
}

.alert-pill-info {
background: rgba(59, 130, 246, 0.16);
color: #cfe3ff;
}

.table-strong {
font-weight: 800;
color: #f6df91;
}

.btn-link-danger {
color: #ff8f8f;
text-decoration: none;
font-weight: bold;
}

.btn-link-danger:hover {
color: #ffffff;
text-decoration: underline;
}

/* ================= LEGENDA TURNOS ================= */

.legenda {
width: 60%;
margin: 30px auto;
background-color: rgba(0,0,0,0.5);
padding: 15px;
border-radius: 10px;
border: 1px solid #D4AF37;
color: #D4AF37;
}

.legenda-grid {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
margin-top: 10px;
}

.legenda-item {
padding: 8px 12px;
border-radius: 6px;
font-weight: bold;
}

@media (max-width: 980px) {
    .dashboard-theme-grid,
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}

.app-confirm-open {
overflow: hidden;
}

.app-confirm-modal[hidden] {
display: none;
}

.app-confirm-modal {
position: fixed;
inset: 0;
z-index: 5000;
}

.app-confirm-backdrop {
position: absolute;
inset: 0;
background: rgba(3, 8, 18, 0.72);
backdrop-filter: blur(4px);
}

.app-confirm-dialog {
position: relative;
width: min(92vw, 480px);
margin: min(12vh, 96px) auto 0;
padding: 24px 24px 20px;
border-radius: 24px;
background: linear-gradient(180deg, rgba(10,16,30,0.96), rgba(7,11,20,0.98));
border: 1px solid rgba(212,175,55,0.45);
box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 24px rgba(212,175,55,0.16);
}

.app-confirm-kicker {
font-size: 0.72rem;
letter-spacing: 0.24em;
text-transform: uppercase;
color: rgba(212,175,55,0.76);
margin-bottom: 10px;
}

.app-confirm-title {
margin: 0 0 10px;
color: #f3d17a;
font-size: 1.45rem;
}

.app-confirm-message {
margin: 0;
color: rgba(255,255,255,0.84);
line-height: 1.6;
}

.app-confirm-actions {
display: flex;
justify-content: flex-end;
gap: 12px;
margin-top: 22px;
}

.btn-confirm-cancel {
opacity: 0.88;
}

.btn-confirm-ok {
background: linear-gradient(135deg, rgba(232,191,84,0.98), rgba(197,151,31,0.98));
color: #101010;
border-color: rgba(245,214,126,0.55);
}

/* ================= REDESIGN ADMIN / CHEFIAS ================= */

.page-portal-admin .dashboard-main,
.page-dashboard-hotel .dashboard-main,
.page-dashboard-department .dashboard-main {
    gap: 18px;
}

.page-portal-admin .sidebar,
.page-dashboard-hotel .sidebar,
.page-dashboard-department .sidebar {
    width: 230px;
    padding: 22px 18px 18px;
    background: linear-gradient(180deg, rgba(7, 10, 16, 0.98), rgba(12, 16, 24, 0.98));
    border-right: 1px solid rgba(212, 175, 55, 0.12);
}

.page-portal-admin .main-content,
.page-dashboard-hotel .main-content,
.page-dashboard-department .main-content {
    margin-left: 250px;
    padding: 28px 30px 36px;
}

.page-portal-admin .page-header,
.page-dashboard-hotel .page-header,
.page-dashboard-department .page-header {
    padding: 24px 24px 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(12, 16, 24, 0.86), rgba(8, 11, 17, 0.94));
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.page-portal-admin .page-title,
.page-dashboard-hotel .page-title,
.page-dashboard-department .page-title {
    font-size: 30px;
}

.page-portal-admin .page-subtitle,
.page-dashboard-hotel .page-subtitle,
.page-dashboard-department .page-subtitle {
    max-width: 760px;
    color: #d7ccb0;
}

.page-portal-admin .panel-card,
.page-dashboard-hotel .panel-card,
.page-dashboard-department .panel-card {
    border-radius: 22px;
    border-color: rgba(212, 175, 55, 0.16);
    background: rgba(8, 11, 17, 0.72);
}

.page-portal-admin .staff-greeting-box,
.page-dashboard-hotel .staff-greeting-box,
.page-dashboard-department .staff-greeting-box {
    padding: 12px 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.14), rgba(255, 255, 255, 0.04));
}

.page-portal-admin .menu-section,
.page-dashboard-hotel .menu-section,
.page-dashboard-department .menu-section {
    margin-top: 18px;
    margin-bottom: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    letter-spacing: 0.16em;
    color: rgba(212, 175, 55, 0.72);
}

.page-portal-admin .menu-item,
.page-dashboard-hotel .menu-item,
.page-dashboard-department .menu-item {
    margin-bottom: 7px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    color: #f2ead2;
}

.page-portal-admin .menu-item:visited,
.page-dashboard-hotel .menu-item:visited,
.page-dashboard-department .menu-item:visited,
.page-portal-admin .menu-item:focus,
.page-dashboard-hotel .menu-item:focus,
.page-dashboard-department .menu-item:focus,
.page-portal-admin .menu-item:active,
.page-dashboard-hotel .menu-item:active,
.page-dashboard-department .menu-item:active {
    color: #f2ead2;
}

.page-portal-admin .menu-item:hover,
.page-dashboard-hotel .menu-item:hover,
.page-dashboard-department .menu-item:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.24);
    color: #f2ead2;
    transform: translateX(2px);
}

.page-portal-admin .superadmin-hero-card,
.page-dashboard-hotel .department-overview-panel,
.page-dashboard-department .department-overview-panel {
    background: linear-gradient(180deg, rgba(11, 15, 22, 0.92), rgba(7, 10, 16, 0.96));
}

.page-portal-admin .superadmin-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
}

.page-portal-admin .portal-admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.page-portal-admin .portal-admin-summary-item {
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    background: rgba(255, 255, 255, 0.04);
    padding: 18px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.page-portal-admin .portal-admin-summary-item h4 {
    margin: 0;
    color: #f7e4a4;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-portal-admin .portal-admin-summary-item strong {
    font-size: 28px;
    color: #fff5ce;
    line-height: 1.05;
}

.page-portal-admin .portal-admin-summary-item p {
    margin: 0;
    color: #d8cfb3;
    line-height: 1.45;
}

.page-portal-admin .portal-admin-hotels-panel .superadmin-hotels,
.page-portal-admin .portal-admin-departments-panel .superadmin-departamentos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.page-portal-admin .superadmin-hotel-card {
    padding: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.page-portal-admin .superadmin-hotel-head h3 {
    font-size: 24px;
}

.page-portal-admin .superadmin-capacity-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-portal-admin .form-panel,
.page-utilizadores-superadmin .form-panel {
    border-radius: 22px;
    border-color: rgba(212, 175, 55, 0.16);
    background: linear-gradient(180deg, rgba(12, 16, 24, 0.82), rgba(8, 11, 17, 0.74));
}

.page-portal-admin .records-table-wrap,
.page-utilizadores-superadmin .records-table-wrap {
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.page-portal-admin .records-table th,
.page-portal-admin .records-table td,
.page-utilizadores-superadmin .records-table th,
.page-utilizadores-superadmin .records-table td {
    padding: 14px 12px;
    vertical-align: top;
}

.page-portal-admin .records-table th,
.page-utilizadores-superadmin .records-table th {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #f2df9c;
}

.page-portal-admin .records-table tbody tr:nth-child(even),
.page-utilizadores-superadmin .records-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.page-portal-admin .records-table tbody tr:hover,
.page-utilizadores-superadmin .records-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.page-portal-admin .role-badge,
.page-utilizadores-superadmin .role-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.14);
    color: #efe3b8;
    text-transform: none;
}

.page-portal-admin .panel-head h3,
.page-utilizadores-superadmin .panel-head h3 {
    color: #fff3cc;
}

.page-portal-admin .panel-head p,
.page-utilizadores-superadmin .panel-head p {
    color: #c8c0ac;
}

.page-portal-admin .panel-input,
.page-utilizadores-superadmin .panel-input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.14);
}

.page-portal-admin .checkbox-chip,
.page-utilizadores-superadmin .checkbox-chip {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(212, 175, 55, 0.12);
}

.page-utilizadores-superadmin .sidebar,
.page-perfis-superadmin .sidebar,
.page-utilizadores-hotel .sidebar,
.page-utilizadores-departamento .sidebar,
.page-backups-hotel .sidebar,
.page-historico-hotel .sidebar,
.page-relatorios-hotel .sidebar {
    width: 230px;
    padding: 22px 18px 18px;
    background: linear-gradient(180deg, rgba(7, 10, 16, 0.98), rgba(12, 16, 24, 0.98));
    border-right: 1px solid rgba(212, 175, 55, 0.12);
}

.page-staff .sidebar,
.page-ferias .sidebar,
.page-baixas .sidebar,
.page-turnos .sidebar,
.page-historico .sidebar,
.page-exportar .sidebar,
.page-relatorios-departamento .sidebar,
.page-regras .sidebar {
    width: 230px;
    padding: 22px 18px 18px;
    background: linear-gradient(180deg, rgba(7, 10, 16, 0.98), rgba(12, 16, 24, 0.98));
    border-right: 1px solid rgba(212, 175, 55, 0.12);
}

.page-utilizadores-superadmin .menu-section,
.page-perfis-superadmin .menu-section,
.page-utilizadores-hotel .menu-section,
.page-utilizadores-departamento .menu-section,
.page-backups-hotel .menu-section,
.page-historico-hotel .menu-section,
.page-relatorios-hotel .menu-section {
    margin-top: 18px;
    margin-bottom: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    letter-spacing: 0.16em;
    color: rgba(212, 175, 55, 0.72);
}

.page-staff .menu-section,
.page-ferias .menu-section,
.page-baixas .menu-section,
.page-turnos .menu-section,
.page-historico .menu-section,
.page-exportar .menu-section,
.page-relatorios-departamento .menu-section,
.page-regras .menu-section {
    margin-top: 18px;
    margin-bottom: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    letter-spacing: 0.16em;
    color: rgba(212, 175, 55, 0.72);
}

.page-utilizadores-superadmin .menu-item,
.page-perfis-superadmin .menu-item,
.page-utilizadores-hotel .menu-item,
.page-utilizadores-departamento .menu-item,
.page-backups-hotel .menu-item,
.page-historico-hotel .menu-item,
.page-relatorios-hotel .menu-item {
    margin-bottom: 7px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    color: #f2ead2;
}

.page-staff .menu-item,
.page-ferias .menu-item,
.page-baixas .menu-item,
.page-turnos .menu-item,
.page-historico .menu-item,
.page-exportar .menu-item,
.page-relatorios-departamento .menu-item,
.page-regras .menu-item {
    margin-bottom: 7px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    color: #f2ead2;
}

.page-utilizadores-superadmin .menu-item:hover,
.page-perfis-superadmin .menu-item:hover,
.page-utilizadores-hotel .menu-item:hover,
.page-utilizadores-departamento .menu-item:hover,
.page-backups-hotel .menu-item:hover,
.page-historico-hotel .menu-item:hover,
.page-relatorios-hotel .menu-item:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.24);
    transform: translateX(2px);
}

.page-staff .menu-item:hover,
.page-ferias .menu-item:hover,
.page-baixas .menu-item:hover,
.page-turnos .menu-item:hover,
.page-historico .menu-item:hover,
.page-exportar .menu-item:hover,
.page-relatorios-departamento .menu-item:hover,
.page-regras .menu-item:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.24);
    transform: translateX(2px);
}

.page-utilizadores-superadmin .staff-greeting-box,
.page-perfis-superadmin .staff-greeting-box,
.page-utilizadores-hotel .staff-greeting-box,
.page-utilizadores-departamento .staff-greeting-box,
.page-backups-hotel .staff-greeting-box,
.page-historico-hotel .staff-greeting-box,
.page-relatorios-hotel .staff-greeting-box {
    padding: 12px 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.14), rgba(255, 255, 255, 0.04));
}

.page-staff .staff-greeting-box,
.page-ferias .staff-greeting-box,
.page-baixas .staff-greeting-box,
.page-turnos .staff-greeting-box,
.page-historico .staff-greeting-box,
.page-exportar .staff-greeting-box,
.page-relatorios-departamento .staff-greeting-box,
.page-regras .staff-greeting-box {
    padding: 12px 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.14), rgba(255, 255, 255, 0.04));
}

.page-utilizadores-superadmin .role-badge,
.page-perfis-superadmin .role-badge,
.page-utilizadores-superadmin .menu-item.logout,
.page-perfis-superadmin .menu-item.logout {
    text-transform: none;
}

.page-utilizadores-hotel .role-badge,
.page-utilizadores-departamento .role-badge,
.page-utilizadores-hotel .menu-item.logout,
.page-utilizadores-departamento .menu-item.logout {
    text-transform: none;
}

.page-departamentos-superadmin .dashboard-software {
    display: block;
}

.page-departamentos-superadmin .panel-grid {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 30px 36px;
    display: grid;
    gap: 18px;
}

.page-departamentos-superadmin .page-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 24px 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(12, 16, 24, 0.86), rgba(8, 11, 17, 0.94));
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.page-departamentos-superadmin .hero-kicker {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d7c37f;
    margin-bottom: 6px;
}

.page-departamentos-superadmin .page-title {
    font-size: 30px;
}

.page-departamentos-superadmin .page-subtitle {
    max-width: 860px;
    color: #d7ccb0;
}

.page-departamentos-superadmin .panel-card {
    border-radius: 22px;
    border-color: rgba(212, 175, 55, 0.16);
    background: rgba(8, 11, 17, 0.72);
    backdrop-filter: blur(8px);
}

.page-departamentos-superadmin .records-table-wrap {
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.page-departamentos-superadmin .records-table th,
.page-departamentos-superadmin .records-table td {
    padding: 14px 12px;
    vertical-align: top;
}

.page-departamentos-superadmin .records-table th {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #f2df9c;
}

.page-departamentos-superadmin .records-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.page-departamentos-superadmin .records-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.page-departamentos-superadmin .role-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.14);
    color: #efe3b8;
    text-transform: none;
}

.page-dashboard-hotel .department-overview-hero,
.page-dashboard-department .department-overview-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.85fr);
}

.page-dashboard-hotel .department-overview-grid,
.page-dashboard-department .department-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-dashboard-hotel .department-overview-card,
.page-dashboard-department .department-overview-card {
    min-height: 166px;
}

.page-dashboard-hotel .department-overview-note,
.page-dashboard-department .department-overview-note {
    max-width: 760px;
}

.page-dashboard-department .department-modules-panel .cards {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    max-width: none;
}

.page-dashboard-department .department-modules-panel .card {
    min-height: 126px;
}

.page-dashboard-hotel .hotel-departments-panel .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.page-dashboard-hotel .hotel-department-card {
    width: auto;
    min-height: 230px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    background: linear-gradient(180deg, rgba(15, 20, 28, 0.82), rgba(9, 13, 18, 0.72));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #f3ebd4;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.page-dashboard-hotel .hotel-department-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.3);
    background: linear-gradient(180deg, rgba(18, 24, 32, 0.9), rgba(10, 14, 20, 0.8));
}

.page-dashboard-hotel .hotel-department-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #fff5da;
    letter-spacing: 0.01em;
}

.page-dashboard-hotel .hotel-department-card p {
    color: #d7d0be;
    line-height: 1.5;
}

.page-dashboard-hotel .hotel-department-badges {
    margin: 0 0 14px;
}

.page-dashboard-hotel .hotel-department-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.14);
    color: #ede2b8;
    text-transform: none;
    font-weight: 600;
}

.page-dashboard-hotel .hotel-department-badge-primary {
    background: rgba(212, 175, 55, 0.16);
    color: #fff2c2;
    border-color: rgba(212, 175, 55, 0.24);
}

.page-dashboard-hotel .hotel-department-action {
    margin-top: 10px;
    color: #c8c0ac;
    font-size: 13px;
}

.page-dashboard-hotel .hotel-department-tags {
    margin-top: 14px;
}

.page-dashboard-hotel .hotel-department-cta {
    align-self: flex-start;
    margin-top: auto;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(212, 175, 55, 0.1);
    color: #fff2c2;
    font-weight: 700;
}

.page-dashboard-hotel .hotel-management-card,
.page-backups-hotel .department-overview-card,
.page-relatorios-hotel .department-overview-card,
.page-utilizadores .credenciais-card {
    min-height: 170px;
}

.page-dashboard-hotel .hotel-management-card h3,
.page-backups-hotel .page-title,
.page-relatorios-hotel .page-title,
.page-utilizadores .page-title {
    letter-spacing: 0.01em;
}

.page-dashboard-hotel .hotel-management-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 176px;
}

.page-dashboard-hotel .hotel-departments-panel .card,
.page-backups-hotel .panel-card,
.page-relatorios-hotel .panel-card,
.page-historico .panel-card,
.page-utilizadores .panel-card {
    backdrop-filter: blur(8px);
}

.page-backups-hotel .records-table th,
.page-backups-hotel .records-table td,
.page-relatorios-hotel .records-table th,
.page-relatorios-hotel .records-table td,
.page-historico .records-table th,
.page-historico .records-table td,
.page-utilizadores .records-table th,
.page-utilizadores .records-table td {
    vertical-align: top;
}

.page-backups-hotel .panel-card {
    border-radius: 22px;
    border-color: rgba(212, 175, 55, 0.14);
    background: rgba(8, 11, 17, 0.76);
}

.page-backups-hotel .dashboard-card {
    min-height: 150px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    background: linear-gradient(180deg, rgba(16, 20, 28, 0.78), rgba(11, 14, 20, 0.72));
}

.page-backups-hotel .dashboard-card-label {
    color: #b9b2a1;
    letter-spacing: 0.08em;
}

.page-backups-hotel .dashboard-card-value {
    color: #fff2c9;
}

.page-backups-hotel .records-table-wrap {
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.page-backups-hotel .records-table th,
.page-backups-hotel .records-table td {
    padding: 14px 12px;
}

.page-backups-hotel .records-table th {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #f2df9c;
}

.page-backups-hotel .records-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.page-backups-hotel .records-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.page-backups-hotel .badge-group {
    gap: 8px;
}

.page-backups-hotel .role-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.14);
    color: #efe3b8;
    text-transform: none;
}

.page-backups-hotel .alert-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.12);
    color: #eadfb7;
}

.page-backups-hotel .btn-acao {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.1);
    color: #fff2c2;
    font-weight: 700;
}

.page-relatorios-hotel .panel-card,
.page-historico-hotel .panel-card,
.page-utilizadores-hotel .panel-card {
    border-radius: 22px;
    border-color: rgba(212, 175, 55, 0.14);
    background: rgba(8, 11, 17, 0.76);
    backdrop-filter: blur(8px);
}

.page-relatorios-hotel .department-overview-card,
.page-utilizadores-hotel .credenciais-card {
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    background: linear-gradient(180deg, rgba(16, 20, 28, 0.78), rgba(11, 14, 20, 0.72));
    min-height: 170px;
}

.page-relatorios-hotel .department-overview-card h4,
.page-utilizadores-hotel .panel-head h3,
.page-historico-hotel .panel-head h3 {
    color: #fff3cc;
}

.page-relatorios-hotel .department-overview-card p,
.page-utilizadores-hotel .panel-head p,
.page-historico-hotel .panel-head p {
    color: #c8c0ac;
}

.page-relatorios-hotel .department-overview-card strong {
    color: #fff2c9;
}

.page-relatorios-hotel .records-table-wrap,
.page-historico-hotel .records-table-wrap,
.page-utilizadores-hotel .records-table-wrap {
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.page-relatorios-hotel .records-table th,
.page-relatorios-hotel .records-table td,
.page-historico-hotel .records-table th,
.page-historico-hotel .records-table td,
.page-utilizadores-hotel .records-table th,
.page-utilizadores-hotel .records-table td {
    padding: 14px 12px;
    vertical-align: top;
}

.page-relatorios-hotel .records-table th,
.page-historico-hotel .records-table th,
.page-utilizadores-hotel .records-table th {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #f2df9c;
}

.page-relatorios-hotel .records-table tbody tr:nth-child(even),
.page-historico-hotel .records-table tbody tr:nth-child(even),
.page-utilizadores-hotel .records-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.page-relatorios-hotel .records-table tbody tr:hover,
.page-historico-hotel .records-table tbody tr:hover,
.page-utilizadores-hotel .records-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.page-relatorios-hotel .role-badge,
.page-historico-hotel .role-badge,
.page-utilizadores-hotel .role-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.14);
    color: #efe3b8;
    text-transform: none;
}

.page-historico-hotel .history-filter-card,
.page-utilizadores-hotel .panel-card.form-panel {
    background: linear-gradient(180deg, rgba(16, 20, 28, 0.8), rgba(11, 14, 20, 0.74));
}

.page-historico-hotel .history-top-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.14);
    color: #efe3b8;
}

.page-historico-hotel .history-top-chip.is-muted {
    color: #cabf9d;
}

.page-utilizadores-hotel .credenciais-grid strong {
    color: #fff2c9;
}

.page-utilizadores-hotel .btn-link-danger,
.page-utilizadores-hotel .btn-acao,
.page-historico-hotel .btn-acao {
    color: #fff1c0;
}

.page-historico-superadmin .panel-card {
    border-radius: 22px;
    border-color: rgba(212, 175, 55, 0.16);
    background: rgba(8, 11, 17, 0.74);
    backdrop-filter: blur(8px);
}

.page-historico-superadmin .records-table-wrap {
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.page-historico-superadmin .records-table th,
.page-historico-superadmin .records-table td {
    padding: 14px 12px;
    vertical-align: top;
}

.page-historico-superadmin .records-table th {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #f2df9c;
}

.page-historico-superadmin .records-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.page-historico-superadmin .records-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.page-historico-superadmin .role-badge,
.page-historico-superadmin .history-top-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.14);
    color: #efe3b8;
    text-transform: none;
}

.page-historico-superadmin .history-top-chip.is-muted {
    color: #cabf9d;
}

.page-dashboard-hotel .hotel-modules-panel .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: none;
}

.page-dashboard-hotel .hotel-modules-panel .card {
    min-height: 112px;
}

.page-dashboard-hotel .hotel-modules-panel .card h3 {
    font-size: 18px;
}

.page-dashboard-hotel .hotel-modules-panel .card p {
    line-height: 1.45;
}

.page-dashboard-department .department-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.page-dashboard-department .department-module-card {
    min-height: 188px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    background: linear-gradient(180deg, rgba(15, 20, 28, 0.82), rgba(9, 13, 18, 0.72));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #f3ebd4;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.page-dashboard-department a.department-module-card:visited,
.page-dashboard-department a.department-module-card:link,
.page-dashboard-department a.department-module-card:hover,
.page-dashboard-department a.department-module-card:active {
    color: #f3ebd4;
    text-decoration: none;
}

.page-dashboard-department a.department-module-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.3);
    background: linear-gradient(180deg, rgba(18, 24, 32, 0.9), rgba(10, 14, 20, 0.8));
}

.page-dashboard-department .department-module-card.is-featured {
    min-height: 220px;
    grid-column: span 2;
    border-color: rgba(242, 210, 122, 0.34);
    background: linear-gradient(180deg, rgba(24, 30, 42, 0.94), rgba(10, 14, 20, 0.82));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.page-dashboard-department .department-module-card-kicker {
    margin-bottom: 14px;
    color: #d7c48a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-dashboard-department .department-module-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #fff5da;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.page-dashboard-department .department-module-card p {
    margin: 0;
    color: #d7d0be;
    line-height: 1.55;
    text-decoration: none;
}

.page-dashboard-department .department-module-card-footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
}

.page-dashboard-department .department-module-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(212, 175, 55, 0.1);
    color: #fff2c2;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.page-dashboard-department .department-module-card-cta.is-disabled {
    opacity: 0.78;
}

.page-mobile-hoje .mobile-department-modules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.page-mobile-hoje .department-module-card {
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    background: linear-gradient(180deg, rgba(15, 20, 28, 0.82), rgba(9, 13, 18, 0.72));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #f3ebd4;
    text-decoration: none;
}

.page-mobile-hoje a.department-module-card:visited,
.page-mobile-hoje a.department-module-card:link,
.page-mobile-hoje a.department-module-card:hover,
.page-mobile-hoje a.department-module-card:active {
    color: #f3ebd4;
    text-decoration: none;
}

.page-mobile-hoje .department-module-card.is-featured {
    border-color: rgba(242, 210, 122, 0.34);
    background: linear-gradient(180deg, rgba(24, 30, 42, 0.94), rgba(10, 14, 20, 0.82));
}

.page-mobile-hoje .department-module-card h3 {
    margin: 0;
    color: #fff5da;
    font-size: 20px;
}

.page-mobile-hoje .department-module-card p {
    margin: 0;
    color: #d7d0be;
    line-height: 1.5;
}

.page-staff .panel-card,
.page-ferias .panel-card,
.page-baixas .panel-card,
.page-turnos .panel-card,
.page-historico .panel-card,
.page-exportar .panel-card,
.page-relatorios-departamento .panel-card,
.page-regras .panel-card {
    border-radius: 22px;
    border-color: rgba(212, 175, 55, 0.16);
    background: rgba(8, 11, 17, 0.74);
    backdrop-filter: blur(8px);
}

.page-staff .department-module-header,
.page-ferias .department-module-header,
.page-baixas .department-module-header,
.page-turnos .department-module-header,
.page-historico .department-module-header,
.page-exportar .department-module-header,
.page-relatorios-departamento .department-module-header,
.page-regras .department-module-header {
    border-color: rgba(242, 210, 122, 0.24);
    background: linear-gradient(180deg, rgba(16, 22, 32, 0.88), rgba(8, 11, 17, 0.78));
}

.page-staff .department-module-context,
.page-ferias .department-module-context,
.page-baixas .department-module-context,
.page-turnos .department-module-context,
.page-historico .department-module-context,
.page-exportar .department-module-context,
.page-relatorios-departamento .department-module-context,
.page-regras .department-module-context {
    gap: 10px;
}

.page-staff .page-header,
.page-ferias .page-header,
.page-baixas .page-header,
.page-turnos .page-header,
.page-historico .page-header,
.page-exportar .page-header,
.page-relatorios-departamento .page-header,
.page-regras .page-header {
    margin-bottom: 22px;
    padding: 28px 30px;
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    background: linear-gradient(180deg, rgba(12, 17, 24, 0.9), rgba(7, 10, 16, 0.7));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.page-staff .page-header .entrada-title,
.page-ferias .page-header .entrada-title,
.page-baixas .page-header .entrada-title,
.page-turnos .page-header .entrada-title,
.page-historico .page-header .entrada-title,
.page-exportar .page-header .entrada-title,
.page-relatorios-departamento .page-header .entrada-title,
.page-regras .page-header .entrada-title {
    color: #d8c58d;
    letter-spacing: 0.16em;
}

.page-staff .page-header .page-title,
.page-ferias .page-header .page-title,
.page-baixas .page-header .page-title,
.page-turnos .page-header .page-title,
.page-historico .page-header .page-title,
.page-exportar .page-header .page-title,
.page-relatorios-departamento .page-header .page-title,
.page-regras .page-header .page-title {
    margin-top: 10px;
    color: #fff1c8;
}

.page-staff .page-header .page-subtitle,
.page-ferias .page-header .page-subtitle,
.page-baixas .page-header .page-subtitle,
.page-turnos .page-header .page-subtitle,
.page-historico .page-header .page-subtitle,
.page-exportar .page-header .page-subtitle,
.page-relatorios-departamento .page-header .page-subtitle,
.page-regras .page-header .page-subtitle {
    max-width: 74ch;
    color: #d4cfbf;
}

.page-staff .page-header .context-pill,
.page-ferias .page-header .context-pill,
.page-baixas .page-header .context-pill,
.page-turnos .page-header .context-pill,
.page-historico .page-header .context-pill,
.page-exportar .page-header .context-pill,
.page-relatorios-departamento .page-header .context-pill,
.page-regras .page-header .context-pill {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.18);
}

.page-staff .management-grid,
.page-ferias .management-grid,
.page-baixas .management-grid,
.page-turnos .management-grid {
    grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
    gap: 24px;
}

.page-staff .records-panel .panel-head p,
.page-ferias .records-panel .panel-head p,
.page-baixas .records-panel .panel-head p,
.page-turnos .records-panel .panel-head p,
.page-historico .panel-head p,
.page-exportar .panel-head p,
.page-relatorios-departamento .panel-head p,
.page-regras .panel-head p {
    max-width: 72ch;
}

.page-staff .records-table-wrap,
.page-ferias .records-table-wrap,
.page-baixas .records-table-wrap,
.page-turnos .records-table-wrap,
.page-historico .records-table-wrap,
.page-exportar .records-table-wrap,
.page-relatorios-departamento .records-table-wrap {
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.page-staff .records-table th,
.page-staff .records-table td,
.page-ferias .records-table th,
.page-ferias .records-table td,
.page-baixas .records-table th,
.page-baixas .records-table td,
.page-turnos .records-table th,
.page-turnos .records-table td,
.page-historico .records-table th,
.page-historico .records-table td,
.page-exportar .records-table th,
.page-exportar .records-table td,
.page-relatorios-departamento .records-table th,
.page-relatorios-departamento .records-table td {
    padding: 14px 12px;
    vertical-align: top;
}

.page-staff .records-table th,
.page-ferias .records-table th,
.page-baixas .records-table th,
.page-turnos .records-table th,
.page-historico .records-table th,
.page-exportar .records-table th,
.page-relatorios-departamento .records-table th {
    font-size: 12px;
    letter-spacing: 0.08em;
}

.page-staff .records-table tbody tr:nth-child(even),
.page-ferias .records-table tbody tr:nth-child(even),
.page-baixas .records-table tbody tr:nth-child(even),
.page-turnos .records-table tbody tr:nth-child(even),
.page-historico .records-table tbody tr:nth-child(even),
.page-exportar .records-table tbody tr:nth-child(even),
.page-relatorios-departamento .records-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.025);
}

.page-staff .acoes-mes,
.page-ferias .acoes-mes,
.page-baixas .acoes-mes,
.page-turnos .acoes-mes,
.page-historico .editor-actions,
.page-exportar .editor-actions,
.page-regras .editor-actions {
    gap: 10px;
}

.page-turnos .btn-link-danger,
.page-regras .btn-link-danger {
    white-space: nowrap;
}

.page-turnos .form-panel .panel-head h3,
.page-turnos .records-panel .panel-head h3,
.page-regras .panel-head h3 {
    margin-bottom: 6px;
}

.page-turnos .records-panel,
.page-regras .regras-page-card {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.page-staff .btn-acao,
.page-ferias .btn-acao,
.page-baixas .btn-acao,
.page-historico .btn-acao,
.page-exportar .btn-acao {
    min-width: 94px;
    text-align: center;
}

.page-staff .btn-link-danger,
.page-ferias .btn-link-danger,
.page-baixas .btn-link-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 143, 143, 0.28);
    background: rgba(255, 143, 143, 0.08);
    text-decoration: none;
}

.page-staff .page-header .btn-escala,
.page-ferias .page-header .btn-escala,
.page-baixas .page-header .btn-escala,
.page-historico .page-header .btn-escala,
.page-exportar .page-header .btn-escala,
.page-relatorios-departamento .page-header .btn-escala {
    min-width: 140px;
}

.page-ferias .vacation-page {
    gap: 20px;
}

.page-ferias .vacation-header-actions,
.page-ferias .vacation-map-toolbar,
.page-ferias .vacation-year-form,
.page-ferias .vacation-stats,
.page-ferias .vacation-person-name,
.page-ferias .vacation-person-periods {
    display: flex;
    align-items: center;
}

.page-ferias .vacation-header-actions {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page-ferias .vacation-hero,
.page-ferias .vacation-map-shell {
    border: 1px solid rgba(212, 175, 55, 0.16);
    background: linear-gradient(180deg, rgba(16, 20, 28, 0.82), rgba(8, 10, 15, 0.76));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.page-ferias .vacation-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border-radius: 18px;
}

.page-ferias .vacation-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #d4af37;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-ferias .vacation-hero h2,
.page-ferias .vacation-print-title h2,
.page-ferias .vacation-map-toolbar h3,
.page-ferias .vacation-section-head h3 {
    margin: 0;
    color: #ffe58a;
}

.page-ferias .vacation-hero p,
.page-ferias .vacation-map-toolbar p,
.page-ferias .vacation-section-head p,
.page-ferias .vacation-print-title p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.page-ferias .vacation-stats {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page-ferias .vacation-stats div {
    min-width: 126px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

.page-ferias .vacation-stats strong {
    display: block;
    color: #f4c430;
    font-size: 26px;
    line-height: 1;
}

.page-ferias .vacation-stats span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.page-ferias .vacation-workspace {
    display: grid;
    grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
    gap: 20px;
}

.page-ferias .vacation-records-panel .records-table-wrap {
    max-height: 430px;
    overflow: auto;
}

.page-ferias .vacation-picker {
    display: grid;
    gap: 12px;
}

.page-ferias .vacation-picker-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: center;
}

.page-ferias .vacation-picker-nav {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.34);
    background: rgba(212, 175, 55, 0.09);
    color: #ffe58a;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
}

.page-ferias .vacation-picker-nav:hover {
    background: rgba(212, 175, 55, 0.18);
}

.page-ferias .vacation-month-input {
    text-align: center;
    font-weight: 800;
}

.page-ferias .vacation-picker-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.page-ferias .vacation-picker-summary div {
    min-width: 0;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    background: rgba(255, 255, 255, 0.035);
}

.page-ferias .vacation-picker-summary span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.page-ferias .vacation-picker-summary strong {
    display: block;
    margin-top: 4px;
    color: #ffe58a;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.page-ferias .vacation-picker-weekdays,
.page-ferias .vacation-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.page-ferias .vacation-picker-weekdays {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-bottom: 0;
}

.page-ferias .vacation-picker-weekdays span {
    padding: 9px 2px;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.06);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.page-ferias .vacation-picker-grid {
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    background: rgba(2, 4, 8, 0.35);
}

.page-ferias .vacation-picker-day {
    min-height: 48px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    border-left: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(255, 255, 255, 0.018);
    color: rgba(255, 255, 255, 0.78);
    font-weight: 850;
    cursor: pointer;
}

.page-ferias .vacation-picker-day:hover {
    background: rgba(212, 175, 55, 0.12);
    color: #fff7ca;
}

.page-ferias .vacation-picker-day.is-weekend {
    background: rgba(212, 175, 55, 0.045);
}

.page-ferias .vacation-picker-day.is-range {
    background: rgba(244, 196, 48, 0.18);
    color: #fff7ca;
}

.page-ferias .vacation-picker-day.is-edge {
    background: #d4af37;
    color: #111;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.32);
}

.page-ferias .vacation-picker-day.is-empty {
    background: rgba(255, 255, 255, 0.01);
    cursor: default;
}

.page-ferias .vacation-map-shell {
    padding: 22px;
    border-radius: 18px;
}

.page-ferias .vacation-period-map-wrap {
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    background: rgba(2, 4, 8, 0.36);
}

.page-ferias .vacation-period-map {
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
}

.page-ferias .vacation-period-map th,
.page-ferias .vacation-period-map td {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

.page-ferias .vacation-period-map th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 8px;
    background: rgba(15, 19, 28, 0.98);
    color: #d4af37;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.page-ferias .vacation-period-map td {
    min-width: 78px;
    height: 58px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.018);
}

.page-ferias .vacation-period-map tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.03);
}

.page-ferias .vacation-period-name-head,
.page-ferias .vacation-period-person {
    position: sticky;
    left: 0;
    z-index: 3;
}

.page-ferias .vacation-period-person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 230px;
    background: rgba(15, 19, 28, 0.98) !important;
}

.page-ferias .vacation-period-person span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(212, 175, 55, 0.16);
    color: #ffe58a;
    font-size: 11px;
    font-weight: 900;
}

.page-ferias .vacation-period-person strong {
    color: #fff;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.page-ferias .vacation-period-map td.has-period {
    background: rgba(212, 175, 55, 0.08);
}

.page-ferias .vacation-period-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
    min-height: 28px;
    margin-bottom: 5px;
    padding: 5px 7px;
    border-radius: 8px;
    border: 1px solid rgba(244, 196, 48, 0.26);
    background: rgba(244, 196, 48, 0.15);
    color: #fff7ca;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.page-ferias .vacation-period-block small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 900;
}

.page-ferias .vacation-period-total {
    min-width: 72px;
    color: #d4af37;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.page-ferias .vacation-map-toolbar {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-ferias .vacation-year-form {
    gap: 10px;
}

.page-ferias .vacation-year-form label {
    color: #ffe58a;
    font-weight: 800;
}

.page-ferias .vacation-year-form .panel-input {
    min-width: 130px;
}

.page-ferias .vacation-print-title {
    display: none;
}

.page-ferias .vacation-calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 16px;
}

.page-ferias .vacation-month {
    min-width: 0;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    background: rgba(4, 6, 10, 0.46);
    overflow: hidden;
}

.page-ferias .vacation-month header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.page-ferias .vacation-month h4 {
    margin: 0;
    color: #ffe58a;
    font-size: 16px;
}

.page-ferias .vacation-month header span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.page-ferias .vacation-weekdays,
.page-ferias .vacation-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.page-ferias .vacation-weekdays span {
    padding: 8px 4px;
    color: #d4af37;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.05);
}

.page-ferias .vacation-day {
    min-height: 68px;
    padding: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.018);
}

.page-ferias .vacation-day.is-weekend {
    background: rgba(212, 175, 55, 0.045);
}

.page-ferias .vacation-day.is-muted {
    opacity: 0.28;
}

.page-ferias .vacation-day.has-vacation {
    background: rgba(212, 175, 55, 0.12);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.24);
}

.page-ferias .vacation-day-number {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 800;
}

.page-ferias .vacation-day-people {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 4px;
}

.page-ferias .vacation-day-people span {
    display: block;
    width: 100%;
    padding: 2px 4px;
    border-radius: 5px;
    background: rgba(244, 196, 48, 0.2);
    color: #fff7ca;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.page-ferias .vacation-people-map {
    margin-top: 22px;
}

.page-ferias .vacation-section-head {
    margin-bottom: 12px;
}

.page-ferias .vacation-person-grid {
    display: grid;
    gap: 10px;
}

.page-ferias .vacation-person-row {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) 86px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.page-ferias .vacation-person-name {
    gap: 10px;
    min-width: 0;
}

.page-ferias .vacation-person-name span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(212, 175, 55, 0.18);
    color: #ffe58a;
    font-size: 12px;
    font-weight: 900;
}

.page-ferias .vacation-person-name strong {
    color: #fff;
    overflow-wrap: anywhere;
}

.page-ferias .vacation-person-periods {
    gap: 7px;
    flex-wrap: wrap;
    min-width: 0;
}

.page-ferias .vacation-period-chip,
.page-ferias .vacation-empty {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 12px;
}

.page-ferias .vacation-period-chip {
    gap: 7px;
    border: 1px solid rgba(244, 196, 48, 0.24);
    background: rgba(244, 196, 48, 0.12);
    color: #fff7ca;
    font-weight: 700;
}

.page-ferias .vacation-period-chip small {
    color: rgba(255, 255, 255, 0.64);
    font-weight: 800;
}

.page-ferias .vacation-empty {
    color: rgba(255, 255, 255, 0.5);
}

.page-ferias .vacation-person-total {
    color: #d4af37;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
    text-transform: uppercase;
}

@media (max-width: 1200px) {
    .page-ferias .vacation-calendar-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }

    .page-ferias .vacation-workspace,
    .page-ferias .vacation-person-row {
        grid-template-columns: 1fr;
    }

    .page-ferias .vacation-person-total {
        text-align: left;
    }
}

@media (max-width: 760px) {
    .page-ferias .vacation-hero,
    .page-ferias .vacation-map-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .page-ferias .vacation-stats {
        justify-content: stretch;
    }

    .page-ferias .vacation-stats div {
        flex: 1 1 120px;
    }

    .page-ferias .vacation-calendar-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    body.page-ferias {
        background: #fff !important;
        color: #111 !important;
    }

    .page-ferias .sidebar,
    .page-ferias .vacation-screen-only,
    .page-ferias .page-header,
    .page-ferias .department-module-header {
        display: none !important;
    }

    .page-ferias .dashboard-software,
    .page-ferias .main-content,
    .page-ferias .vacation-page {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
        background: #fff !important;
        color: #111 !important;
    }

    .page-ferias .vacation-hero,
    .page-ferias .vacation-map-shell,
    .page-ferias .vacation-month,
    .page-ferias .vacation-person-row {
        box-shadow: none !important;
        background: #fff !important;
        border-color: #bbb !important;
    }

    .page-ferias .vacation-hero {
        padding: 0 0 10px !important;
        border: 0 !important;
    }

    .page-ferias .vacation-print-title {
        display: block;
        margin-bottom: 12px;
        color: #111;
    }

    .page-ferias .vacation-print-title h2,
    .page-ferias .vacation-hero h2,
    .page-ferias .vacation-month h4,
    .page-ferias .vacation-section-head h3 {
        color: #111 !important;
    }

    .page-ferias .vacation-hero p,
    .page-ferias .vacation-print-title p,
    .page-ferias .vacation-month header span,
    .page-ferias .vacation-section-head p {
        color: #444 !important;
    }

    .page-ferias .vacation-calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .page-ferias .vacation-period-map-wrap {
        overflow: visible;
        border-color: #aaa !important;
    }

    .page-ferias .vacation-period-map {
        min-width: 0;
        font-size: 10px;
    }

    .page-ferias .vacation-period-map th,
    .page-ferias .vacation-period-map td {
        position: static !important;
        border-color: #ccc !important;
        background: #fff !important;
        color: #111 !important;
        padding: 4px;
    }

    .page-ferias .vacation-period-person {
        min-width: 0;
    }

    .page-ferias .vacation-period-person span {
        width: 24px;
        height: 24px;
        background: #fff1b8 !important;
        color: #111 !important;
    }

    .page-ferias .vacation-period-person strong {
        color: #111 !important;
        font-size: 10px;
    }

    .page-ferias .vacation-period-map td.has-period {
        background: #fff8d8 !important;
    }

    .page-ferias .vacation-period-block {
        background: #fff1b8 !important;
        border-color: #d4af37 !important;
        color: #111 !important;
        font-size: 9px;
        padding: 3px 4px;
    }

    .page-ferias .vacation-period-block small,
    .page-ferias .vacation-period-total {
        color: #111 !important;
    }

    .page-ferias .vacation-month {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .page-ferias .vacation-day {
        min-height: 48px;
        border-color: #ddd !important;
        background: #fff !important;
    }

    .page-ferias .vacation-day.has-vacation {
        background: #fff8d8 !important;
        box-shadow: inset 0 0 0 1px #d4af37 !important;
    }

    .page-ferias .vacation-day-number,
    .page-ferias .vacation-person-name strong,
    .page-ferias .vacation-person-total {
        color: #111 !important;
    }

    .page-ferias .vacation-day-people span,
    .page-ferias .vacation-period-chip {
        background: #fff1b8 !important;
        border-color: #d4af37 !important;
        color: #111 !important;
    }
}

/* ========================================
   SFR UI CORE — DASHBOARD FOUNDATION
   ======================================== */

:root {
  --sfr-bg-main: #0b0b0d;
  --sfr-bg-overlay: rgba(8, 8, 10, 0.78);
  --sfr-bg-surface: rgba(20, 20, 24, 0.88);
  --sfr-bg-surface-strong: rgba(14, 14, 18, 0.94);

  --sfr-border-soft: rgba(212, 175, 55, 0.12);
  --sfr-border-medium: rgba(212, 175, 55, 0.22);

  --sfr-gold: #d4af37;
  --sfr-gold-soft: rgba(212, 175, 55, 0.72);
  --sfr-gold-faint: rgba(212, 175, 55, 0.08);

  --sfr-text-primary: #f5f5f7;
  --sfr-text-secondary: #c8c8ce;
  --sfr-text-muted: #9a9aa3;

  --sfr-success: #3fb950;
  --sfr-warning: #d29922;
  --sfr-danger: #f85149;
  --sfr-info: #58a6ff;

  --sfr-radius-lg: 18px;
  --sfr-radius-md: 14px;
  --sfr-radius-sm: 10px;

  --sfr-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
  --sfr-shadow-card: 0 14px 34px rgba(0, 0, 0, 0.30);

  --sfr-space-1: 6px;
  --sfr-space-2: 10px;
  --sfr-space-3: 14px;
  --sfr-space-4: 18px;
  --sfr-space-5: 24px;
  --sfr-space-6: 32px;

  --sfr-sidebar-width: 230px;
  --sfr-content-max: 1600px;
}

/* ========================================
   GLOBAL DASHBOARD SHELL
======================================== */

body.dashboard-core.dashboard-body {
  background:
    linear-gradient(var(--sfr-bg-overlay), var(--sfr-bg-overlay)),
    var(--sfr-bg-main);
  color: var(--sfr-text-primary);
}

body.dashboard-core .dashboard-software {
  display: flex;
  min-height: 100vh;
}

body.dashboard-core .sidebar {
  width: var(--sfr-sidebar-width);
  min-width: var(--sfr-sidebar-width);
  flex-shrink: 0;
}

body.dashboard-core .main-content.dashboard-main {
  flex: 1;
  min-width: 0;
  padding: var(--sfr-space-5);
}

body.dashboard-core .page-content {
  width: 100%;
  max-width: var(--sfr-content-max);
}

/* ========================================
   HEADER
======================================== */

body.dashboard-core .page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sfr-space-4);
  margin-bottom: var(--sfr-space-5);
  padding: var(--sfr-space-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dashboard-core .dashboard-header-main {
  display: flex;
  flex-direction: column;
  gap: var(--sfr-space-1);
  min-width: 0;
}

body.dashboard-core .dashboard-header-main h1,
body.dashboard-core .page-header h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--sfr-text-primary);
}

body.dashboard-core .dashboard-header-main p,
body.dashboard-core .page-header p,
body.dashboard-core .page-header .subtitle {
  margin: 0;
  color: var(--sfr-text-secondary);
  font-size: 0.98rem;
  line-height: 1.45;
}

body.dashboard-core .dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: var(--sfr-space-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ========================================
   ACTION BAR
======================================== */

body.dashboard-core .dashboard-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sfr-space-3);
  flex-wrap: wrap;
  margin-bottom: var(--sfr-space-5);
  padding: var(--sfr-space-3) var(--sfr-space-4);
  background: var(--sfr-bg-surface);
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-md);
  box-shadow: var(--sfr-shadow-soft);
  backdrop-filter: blur(10px);
}

/* ========================================
   MODULE GRID
======================================== */

body.dashboard-core .dashboard-modules-grid,
body.dashboard-core .module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sfr-space-4);
  align-items: start;
}

/* ========================================
   MODULE CARD
======================================== */

body.dashboard-core .dashboard-module-card,
body.dashboard-core .module-card,
body.dashboard-core .panel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--sfr-bg-surface);
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-lg);
  box-shadow: var(--sfr-shadow-card);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

body.dashboard-core .dashboard-module-card::before,
body.dashboard-core .module-card::before,
body.dashboard-core .panel-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--sfr-gold-soft) 50%,
    transparent 100%
  );
  opacity: 0.55;
  pointer-events: none;
}

body.dashboard-core .dashboard-module-card > *,
body.dashboard-core .module-card > *,
body.dashboard-core .panel-card > * {
  position: relative;
  z-index: 1;
}

body.dashboard-core .dashboard-module-card-header,
body.dashboard-core .module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sfr-space-2);
  padding: var(--sfr-space-4) var(--sfr-space-4) var(--sfr-space-2);
}

body.dashboard-core .dashboard-module-card-title,
body.dashboard-core .module-header h3,
body.dashboard-core .panel-card h3,
body.dashboard-core .panel-card h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--sfr-gold);
}

body.dashboard-core .dashboard-module-card-body,
body.dashboard-core .module-body {
  padding: 0 var(--sfr-space-4) var(--sfr-space-4);
}

body.dashboard-core .dashboard-module-card p,
body.dashboard-core .module-card p,
body.dashboard-core .panel-card p,
body.dashboard-core .dashboard-module-card li,
body.dashboard-core .module-card li,
body.dashboard-core .panel-card li {
  color: var(--sfr-text-secondary);
}

/* ========================================
   GENERIC CONTENT INSIDE CARDS
======================================== */

body.dashboard-core .dashboard-module-card .muted,
body.dashboard-core .module-card .muted,
body.dashboard-core .panel-card .muted,
body.dashboard-core .text-muted {
  color: var(--sfr-text-muted);
}

body.dashboard-core .dashboard-module-card .stat-value,
body.dashboard-core .module-card .stat-value,
body.dashboard-core .panel-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--sfr-text-primary);
}

body.dashboard-core .dashboard-module-card .stat-label,
body.dashboard-core .module-card .stat-label,
body.dashboard-core .panel-card .stat-label {
  color: var(--sfr-text-secondary);
  font-size: 0.92rem;
}

/* ========================================
   BUTTONS
======================================== */

body.dashboard-core .btn,
body.dashboard-core .btn-escala,
body.dashboard-core button {
  border-radius: var(--sfr-radius-sm);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

body.dashboard-core .btn-primary,
body.dashboard-core .btn-gold,
body.dashboard-core .btn-escala {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.96), rgba(180, 145, 34, 0.96));
  color: #111;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.18);
}

body.dashboard-core .btn-primary:hover,
body.dashboard-core .btn-gold:hover,
body.dashboard-core .btn-escala:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(212, 175, 55, 0.24);
}

body.dashboard-core .btn-secondary,
body.dashboard-core .btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--sfr-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

body.dashboard-core .btn-secondary:hover,
body.dashboard-core .btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

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

body.dashboard-core .status-pill,
body.dashboard-core .badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid transparent;
}

body.dashboard-core .status-ok {
  color: #dff7e5;
  background: rgba(63, 185, 80, 0.16);
  border-color: rgba(63, 185, 80, 0.28);
}

body.dashboard-core .status-warning {
  color: #fff1cf;
  background: rgba(210, 153, 34, 0.16);
  border-color: rgba(210, 153, 34, 0.30);
}

body.dashboard-core .status-danger {
  color: #ffe0de;
  background: rgba(248, 81, 73, 0.16);
  border-color: rgba(248, 81, 73, 0.30);
}

body.dashboard-core .status-info {
  color: #dbeeff;
  background: rgba(88, 166, 255, 0.16);
  border-color: rgba(88, 166, 255, 0.30);
}

/* ========================================
   TABLES / LIST BLOCKS
======================================== */

body.dashboard-core .dashboard-table,
body.dashboard-core .table-sfr {
  width: 100%;
  border-collapse: collapse;
}

body.dashboard-core .dashboard-table th,
body.dashboard-core .dashboard-table td,
body.dashboard-core .table-sfr th,
body.dashboard-core .table-sfr td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.dashboard-core .dashboard-table th,
body.dashboard-core .table-sfr th {
  color: var(--sfr-text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

body.dashboard-core .dashboard-table td,
body.dashboard-core .table-sfr td {
  color: var(--sfr-text-primary);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1200px) {
  body.dashboard-core .main-content.dashboard-main {
    padding: var(--sfr-space-4);
  }

  body.dashboard-core .dashboard-modules-grid,
  body.dashboard-core .module-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 900px) {
  body.dashboard-core .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  body.dashboard-core .dashboard-header-actions {
    justify-content: flex-start;
  }

  body.dashboard-core .dashboard-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  body.dashboard-core .main-content.dashboard-main {
    padding: var(--sfr-space-3);
  }

  body.dashboard-core .dashboard-header-main h1,
  body.dashboard-core .page-header h1 {
    font-size: 1.55rem;
  }

  body.dashboard-core .dashboard-modules-grid,
  body.dashboard-core .module-grid {
    grid-template-columns: 1fr;
    gap: var(--sfr-space-3);
  }

  body.dashboard-core .dashboard-module-card-header,
  body.dashboard-core .module-header,
  body.dashboard-core .dashboard-module-card-body,
  body.dashboard-core .module-body {
    padding-left: var(--sfr-space-3);
    padding-right: var(--sfr-space-3);
  }

  body.dashboard-core .dashboard-module-card-body,
  body.dashboard-core .module-body {
    padding-bottom: var(--sfr-space-3);
  }
}

/* ========================================
   SFR PORTAL CONTEXT REFINEMENT
======================================== */

body.dashboard-core .sfr-header-cta-group {
  display: flex;
  gap: var(--sfr-space-2);
  flex-wrap: wrap;
}

body.dashboard-core .sfr-context-panel {
  display: grid;
  gap: var(--sfr-space-4);
  padding: var(--sfr-space-4);
  background: var(--sfr-bg-surface-strong);
  border: 1px solid var(--sfr-border-medium);
}

body.dashboard-core .sfr-context-head h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--sfr-text-primary);
}

body.dashboard-core .sfr-context-head p {
  margin: 8px 0 0;
  color: var(--sfr-text-secondary);
  max-width: 900px;
}

body.dashboard-core .sfr-context-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--sfr-gold-soft);
  margin-bottom: 8px;
}

body.dashboard-core .sfr-context-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sfr-space-3);
}

body.dashboard-core .sfr-context-metric {
  display: grid;
  gap: 6px;
  padding: var(--sfr-space-3);
  border-radius: var(--sfr-radius-md);
  border: 1px solid var(--sfr-border-soft);
  background: rgba(12, 12, 15, 0.96);
}

body.dashboard-core .sfr-context-metric small {
  color: var(--sfr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

body.dashboard-core .sfr-context-metric strong {
  color: var(--sfr-text-primary);
  font-size: 1.08rem;
  line-height: 1.2;
}

body.dashboard-core .sfr-context-metric span {
  color: var(--sfr-text-secondary);
  font-size: 0.88rem;
}

body.dashboard-core .sfr-context-cta {
  display: flex;
  gap: var(--sfr-space-2);
  flex-wrap: wrap;
}

body.dashboard-core .sfr-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sfr-space-3);
}

body.dashboard-core .sfr-metric-card {
  min-height: 122px;
  border: 1px solid var(--sfr-border-soft);
  background: rgba(12, 12, 15, 0.98);
  box-shadow: none;
}

body.dashboard-core .portal-admin-hotels-panel .superadmin-hotel-card {
  background: rgba(12, 12, 16, 0.97);
  border: 1px solid var(--sfr-border-soft);
  box-shadow: none;
}

/* ========================================
   SFR UI CORE — CONTEXT PANEL / PORTAL REFINEMENT
======================================== */

body.dashboard-core {
  --sfr-bg-main: #0b0b0d;
  --sfr-bg-overlay: rgba(8, 8, 10, 0.84);
  --sfr-bg-surface: rgba(20, 20, 24, 0.94);
  --sfr-bg-surface-2: rgba(16, 16, 20, 0.96);

  --sfr-border-soft: rgba(212, 175, 55, 0.14);
  --sfr-border-medium: rgba(212, 175, 55, 0.22);

  --sfr-gold: #d4af37;
  --sfr-gold-soft: rgba(212, 175, 55, 0.75);
  --sfr-gold-faint: rgba(212, 175, 55, 0.08);

  --sfr-text-primary: #f5f5f7;
  --sfr-text-secondary: #cacad1;
  --sfr-text-muted: #9797a3;

  --sfr-radius-xl: 22px;
  --sfr-radius-lg: 18px;
  --sfr-radius-md: 14px;
  --sfr-radius-sm: 10px;

  --sfr-shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.22);
  --sfr-shadow-card: 0 18px 40px rgba(0, 0, 0, 0.30);

  --sfr-space-1: 6px;
  --sfr-space-2: 10px;
  --sfr-space-3: 14px;
  --sfr-space-4: 18px;
  --sfr-space-5: 24px;
  --sfr-space-6: 32px;
}

/* ========================================
   PAGE CONTENT RHYTHM
======================================== */

body.dashboard-core .main-content.dashboard-main {
  padding: 24px;
}

body.dashboard-core .page-content {
  margin-top: 8px;
}

body.dashboard-core .page-header {
  padding-bottom: 16px;
  margin-bottom: 24px;
}

body.dashboard-core .page-header h1 {
  letter-spacing: -0.3px;
}

body.dashboard-core .dashboard-header-actions .btn,
body.dashboard-core .dashboard-header-actions .btn-escala {
  height: 36px;
  padding: 0 12px;
}

/* ========================================
   CONTEXT PANEL
======================================== */

body.dashboard-core .sfr-context-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 20px;
  padding: 22px 24px;
  background: linear-gradient(
    180deg,
    rgba(22, 22, 28, 0.98) 0%,
    rgba(16, 16, 20, 0.98) 100%
  );
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-xl);
  box-shadow: var(--sfr-shadow-card);
  overflow: hidden;
}

body.dashboard-core .sfr-context-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--sfr-gold-soft) 50%,
    transparent 100%
  );
  opacity: 0.75;
  pointer-events: none;
}

body.dashboard-core .sfr-context-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

body.dashboard-core .sfr-context-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--sfr-gold);
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.18);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.dashboard-core .sfr-context-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--sfr-text-primary);
}

body.dashboard-core .sfr-context-description {
  margin: 0;
  max-width: 68ch;
  color: var(--sfr-text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

body.dashboard-core .sfr-context-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

body.dashboard-core .sfr-context-cta {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

body.dashboard-core .sfr-context-cta .btn,
body.dashboard-core .sfr-context-cta .btn-escala {
  min-height: 42px;
  padding: 0 16px;
}

/* ========================================
   CONTEXT METRICS
======================================== */

body.dashboard-core .sfr-context-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.dashboard-core .sfr-context-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--sfr-radius-md);
  box-shadow: var(--sfr-shadow-soft);
}

body.dashboard-core .sfr-context-metric-label {
  color: var(--sfr-text-muted);
  font-size: 0.84rem;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.dashboard-core .sfr-context-metric-value {
  color: var(--sfr-text-primary);
  font-size: 1.8rem;
  line-height: 1.05;
  font-weight: 700;
}

body.dashboard-core .sfr-context-metric-note {
  color: var(--sfr-text-secondary);
  font-size: 0.92rem;
  line-height: 1.35;
}

/* ========================================
   GENERIC SUMMARY CARDS
======================================== */

body.dashboard-core .sfr-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

body.dashboard-core .sfr-summary-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  background: var(--sfr-bg-surface-2);
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-lg);
  box-shadow: var(--sfr-shadow-card);
}

body.dashboard-core .sfr-summary-card-title {
  color: var(--sfr-text-secondary);
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 600;
}

body.dashboard-core .sfr-summary-card-value {
  color: var(--sfr-text-primary);
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 700;
}

body.dashboard-core .sfr-summary-card-note {
  color: var(--sfr-text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1100px) {
  body.dashboard-core .sfr-context-panel {
    grid-template-columns: 1fr;
  }

  body.dashboard-core .sfr-context-cta {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body.dashboard-core .main-content.dashboard-main {
    padding: 18px;
  }

  body.dashboard-core .sfr-context-panel {
    padding: 18px;
    gap: 16px;
  }

  body.dashboard-core .sfr-context-title {
    font-size: 1.6rem;
  }

  body.dashboard-core .sfr-context-metrics {
    grid-template-columns: 1fr;
  }

  body.dashboard-core .sfr-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   SFR UI CORE — HOTEL DASHBOARD REFINEMENT
======================================== */

body.dashboard-core .sfr-hotel-dashboard {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.dashboard-core .sfr-hotel-context-panel {
  background: linear-gradient(
    180deg,
    rgba(20, 20, 25, 0.99) 0%,
    rgba(13, 13, 17, 0.99) 100%
  );
}

body.dashboard-core .sfr-hotel-summary {
  background: var(--sfr-bg-surface);
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-lg);
  box-shadow: var(--sfr-shadow-card);
}

body.dashboard-core .sfr-hotel-summary .panel-head {
  padding: 18px 18px 0;
}

body.dashboard-core .sfr-hotel-summary .sfr-summary-grid {
  padding: 18px;
}

body.dashboard-core .sfr-hotel-modules-grid {
  margin-top: 2px;
}

body.dashboard-core .sfr-hotel-modules-grid .dashboard-module-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

body.dashboard-core .sfr-hotel-modules-grid .dashboard-module-card::before {
  display: none;
}

body.dashboard-core .hotel-departments-panel,
body.dashboard-core .hotel-modules-panel {
  background: var(--sfr-bg-surface);
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-lg);
  box-shadow: var(--sfr-shadow-card);
}

body.dashboard-core .hotel-departments-panel .panel-head,
body.dashboard-core .hotel-modules-panel .panel-head {
  padding: 18px 18px 0;
}

body.dashboard-core .hotel-departments-panel .cards,
body.dashboard-core .hotel-modules-panel .cards {
  padding: 18px;
}

body.dashboard-core .hotel-department-card,
body.dashboard-core .hotel-management-card {
  background: var(--sfr-bg-surface-2);
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-lg);
  box-shadow: var(--sfr-shadow-soft);
}

body.dashboard-core .hotel-department-card:hover,
body.dashboard-core .hotel-management-card:hover {
  border-color: var(--sfr-border-medium);
  background: rgba(18, 18, 23, 0.98);
}

/* ========================================
   SFR UI CORE — PORTAL SUPERADMIN RESET
======================================== */

body.dashboard-core .dashboard-software {
  align-items: stretch;
}

body.dashboard-core .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 20;
}

body.dashboard-core .main-content.dashboard-main {
  margin-left: 0;
  box-sizing: border-box;
  width: calc(100% - var(--sfr-sidebar-width));
}

body.dashboard-core.page-portal-admin {
  background:
    radial-gradient(circle at 72% 12%, rgba(15, 64, 122, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(2, 8, 23, 0.96), rgba(2, 8, 23, 0.9)),
    var(--sfr-bg-main);
}

body.dashboard-core.page-portal-admin .dashboard-software {
  background:
    radial-gradient(circle at 78% 6%, rgba(25, 83, 154, 0.16), transparent 36%),
    linear-gradient(135deg, #020817 0%, #06142b 52%, #020817 100%);
}

body.page-portal-admin .dashboard-software,
body.page-hoteis-superadmin .dashboard-software,
body.page-departamentos-superadmin .dashboard-software,
body.page-utilizadores-superadmin .dashboard-software,
body.page-perfis-superadmin .dashboard-software,
body.page-definicoes-superadmin .dashboard-software,
body.page-historico-superadmin .dashboard-software {
  background:
    radial-gradient(circle at 78% 6%, rgba(25, 83, 154, 0.16), transparent 36%),
    linear-gradient(135deg, #020817 0%, #06142b 52%, #020817 100%);
  min-height: 100vh;
}

body.dashboard-core.page-portal-admin .main-content.dashboard-main {
  max-width: none;
  padding: 28px 32px 40px;
}

body.dashboard-core.page-portal-admin .page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  width: 100%;
  max-width: 1280px;
  box-sizing: border-box;
  margin: 0 0 24px;
  padding: 24px 26px;
  background:
    radial-gradient(circle at 82% 12%, rgba(25, 83, 154, 0.24), transparent 42%),
    linear-gradient(135deg, rgba(6, 20, 43, 0.96), rgba(3, 14, 32, 0.98));
  border: 1px solid rgba(242, 196, 95, 0.22);
  border-radius: 22px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
}

body.dashboard-core.page-portal-admin .entrada-title {
  margin: 0 0 8px;
  color: rgba(212, 175, 55, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.22em;
}

body.dashboard-core.page-portal-admin .page-title {
  margin: 0;
  color: var(--sfr-text-primary);
  font-size: 2rem;
  line-height: 1.12;
}

body.dashboard-core.page-portal-admin .page-subtitle {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--sfr-text-secondary);
}

body.dashboard-core.page-portal-admin .sfr-header-cta-group {
  justify-content: flex-end;
}

body.dashboard-core.page-portal-admin .page-content {
  max-width: 1280px;
}

body.dashboard-core.page-portal-admin .sfr-portal-superadmin {
  display: grid;
  gap: 18px;
}

body.dashboard-core.page-portal-admin .sfr-portal-context-panel {
  margin: 0;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.78fr);
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at 92% 18%, rgba(25, 83, 154, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(6, 20, 43, 0.9), rgba(3, 14, 32, 0.96));
  border-color: rgba(242, 196, 95, 0.18);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

body.dashboard-core.page-portal-admin .sfr-context-main {
  gap: 8px;
}

body.dashboard-core.page-portal-admin .sfr-context-kicker {
  min-height: 26px;
  padding: 0 10px;
  font-size: 0.78rem;
}

body.dashboard-core.page-portal-admin .sfr-context-title {
  font-size: 1.65rem;
}

body.dashboard-core.page-portal-admin .sfr-context-description {
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.42;
}

body.dashboard-core.page-portal-admin .sfr-context-aside {
  gap: 12px;
}

body.dashboard-core.page-portal-admin .sfr-context-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.dashboard-core.page-portal-admin .sfr-context-metric {
  padding: 12px;
  background: rgba(2, 8, 23, 0.48);
  border-color: rgba(242, 196, 95, 0.12);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.dashboard-core.page-portal-admin .sfr-context-metric-label {
  font-size: 0.72rem;
}

body.dashboard-core.page-portal-admin .sfr-context-metric-value {
  font-size: 1.2rem;
}

body.dashboard-core.page-portal-admin .sfr-context-metric-note {
  font-size: 0.82rem;
  line-height: 1.3;
}

body.dashboard-core.page-portal-admin .sfr-context-cta .btn-escala {
  min-height: 38px;
}

body.dashboard-core.page-portal-admin .sfr-context-cta {
  justify-content: flex-end;
}

body.dashboard-core.page-portal-admin .portal-admin-hotels-panel {
  padding: 20px;
  background:
    radial-gradient(circle at 88% 10%, rgba(25, 83, 154, 0.16), transparent 40%),
    linear-gradient(135deg, rgba(6, 20, 43, 0.86), rgba(3, 14, 32, 0.94));
  border: 1px solid rgba(242, 196, 95, 0.16);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

body.dashboard-core.page-portal-admin .portal-admin-hotels-panel .panel-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

body.dashboard-core.page-portal-admin .portal-admin-hotels-panel .panel-head h3 {
  margin: 0;
  color: var(--sfr-gold);
  font-size: 1.1rem;
}

body.dashboard-core.page-portal-admin .portal-admin-hotels-panel .panel-head p {
  margin: 0;
  color: var(--sfr-text-secondary);
}

body.dashboard-core.page-portal-admin .portal-admin-hotels-panel .superadmin-hotels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 0;
}

body.dashboard-core.page-portal-admin .superadmin-hotel-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 170px;
  padding: 18px;
  background: rgba(2, 8, 23, 0.5);
  border: 1px solid rgba(242, 196, 95, 0.14);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.dashboard-core.page-portal-admin .superadmin-hotel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.dashboard-core.page-portal-admin .superadmin-hotel-kicker {
  color: var(--sfr-text-muted);
}

body.dashboard-core.page-portal-admin .superadmin-hotel-head h3 {
  margin: 6px 0 0;
  color: var(--sfr-gold);
  font-size: 1.05rem;
  line-height: 1.25;
}

body.dashboard-core.page-portal-admin .superadmin-hotel-text {
  margin: 0;
  color: var(--sfr-text-secondary);
}

body.dashboard-core.page-portal-admin .superadmin-hotel-card .dashboard-header-actions {
  margin-top: auto;
}

@media (max-width: 900px) {
  body.dashboard-core .dashboard-software {
    flex-direction: column;
  }

  body.dashboard-core .sidebar {
    position: relative;
    width: 100%;
    min-width: 0;
    height: auto;
  }

  body.dashboard-core .main-content.dashboard-main {
    width: 100%;
  }

  body.dashboard-core.page-portal-admin .page-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.dashboard-core.page-portal-admin .sfr-header-cta-group {
    justify-content: flex-start;
  }

  body.dashboard-core.page-portal-admin .sfr-portal-context-panel,
  body.dashboard-core.page-portal-admin .sfr-context-metrics {
    grid-template-columns: 1fr;
  }
}

body.dashboard-core .hotel-department-card h3,
body.dashboard-core .hotel-management-card h3 {
  color: var(--sfr-text-primary);
}

body.dashboard-core .hotel-department-card p,
body.dashboard-core .hotel-management-card p {
  color: var(--sfr-text-secondary);
}

body.dashboard-core .hotel-department-badge {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(212, 175, 55, 0.14);
  color: var(--sfr-text-secondary);
}

body.dashboard-core .hotel-department-badge-primary,
body.dashboard-core .hotel-department-cta {
  background: var(--sfr-gold-faint);
  border-color: var(--sfr-border-medium);
  color: var(--sfr-gold);
}

/* ========================================
   SFR UI CORE — HOTEL MANAGER ALIGNMENT
======================================== */

.page-utilizadores-hotel .main-content,
.page-backups-hotel .main-content,
.page-relatorios-hotel .main-content {
  margin-left: 250px;
  padding: 28px 30px 36px;
}

.page-utilizadores-hotel .page-header,
.page-backups-hotel .page-header,
.page-relatorios-hotel .page-header {
  margin-bottom: 22px;
  padding: 24px 24px 22px;
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.88), rgba(8, 11, 17, 0.94));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.page-dashboard-hotel .entrada-title,
.page-utilizadores-hotel .entrada-title,
.page-backups-hotel .entrada-title,
.page-relatorios-hotel .entrada-title {
  color: #d8c58d;
  letter-spacing: 0.16em;
}

.page-utilizadores-hotel .page-title,
.page-backups-hotel .page-title,
.page-relatorios-hotel .page-title {
  margin-top: 8px;
  color: #fff1c8;
  font-size: 30px;
}

.page-utilizadores-hotel .page-subtitle,
.page-backups-hotel .page-subtitle,
.page-relatorios-hotel .page-subtitle {
  max-width: 74ch;
  color: #d4cfbf;
}

.page-utilizadores-hotel .context-pill,
.page-backups-hotel .context-pill,
.page-relatorios-hotel .context-pill {
  background: rgba(212, 175, 55, 0.09);
  border-color: rgba(212, 175, 55, 0.22);
  color: #f3e7bf;
}

.page-dashboard-hotel .sidebar,
.page-utilizadores-hotel .sidebar,
.page-backups-hotel .sidebar,
.page-relatorios-hotel .sidebar {
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.98), rgba(12, 16, 24, 0.98));
  border-right: 1px solid rgba(212, 175, 55, 0.12);
  color: #f2ead2;
}

.page-dashboard-hotel .menu-item,
.page-utilizadores-hotel .menu-item,
.page-backups-hotel .menu-item,
.page-relatorios-hotel .menu-item {
  color: #f2ead2;
}

.page-dashboard-hotel .menu-item:hover,
.page-utilizadores-hotel .menu-item:hover,
.page-backups-hotel .menu-item:hover,
.page-relatorios-hotel .menu-item:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.24);
  color: #f2ead2;
}

.page-backups-superadmin .backup-overview-panel,
.page-backups-superadmin .backup-maintenance-panel,
.page-backups-superadmin .panel-card {
  border-radius: var(--sfr-radius-lg);
  border: 1px solid var(--sfr-border-soft);
  background: var(--sfr-bg-surface);
  box-shadow: var(--sfr-shadow-card);
}

.page-backups-superadmin .backup-overview-panel .panel-head,
.page-backups-superadmin .panel-card .panel-head {
  padding: 18px 18px 0;
}

.page-backups-superadmin .sfr-summary-grid {
  padding: 18px;
}

.page-backups-superadmin .records-table-wrap {
  margin: 18px;
  border-radius: var(--sfr-radius-md);
  border: 1px solid var(--sfr-border-soft);
  background: rgba(255, 255, 255, 0.025);
  overflow: auto;
}

.page-backups-superadmin .records-table th {
  color: var(--sfr-gold);
}

.page-backups-superadmin .records-table th,
.page-backups-superadmin .records-table td {
  padding: 13px 12px;
}

.page-backups-superadmin .records-grid-form,
.page-backups-superadmin .panel-card > form,
.page-backups-superadmin .form-actions-inline,
.page-backups-superadmin .panel-card > .badge-group {
  padding: 18px;
}

.page-backups-superadmin .panel-card .form-actions-inline {
  padding-top: 0;
}

.page-backups-superadmin .backup-maintenance-panel {
  border-color: rgba(190, 80, 80, 0.26);
  background: linear-gradient(180deg, rgba(34, 18, 18, 0.62), rgba(9, 11, 16, 0.82));
}

.page-backups-superadmin .backup-maintenance-panel .panel-head h3 {
  color: #ffd4a8;
}

/* ========================================
   SFR UI CORE — DEPARTMENT DASHBOARD REFINEMENT
======================================== */

body.dashboard-core .sfr-department-dashboard {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.dashboard-core .sfr-department-context-panel {
  background: linear-gradient(
    180deg,
    rgba(18, 18, 22, 0.99) 0%,
    rgba(12, 12, 15, 0.99) 100%
  );
}

body.dashboard-core .sfr-department-context-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.dashboard-core .sfr-department-summary {
  background: var(--sfr-bg-surface);
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-lg);
  box-shadow: var(--sfr-shadow-card);
}

body.dashboard-core .sfr-department-summary .panel-head {
  padding: 18px 18px 0;
}

body.dashboard-core .sfr-department-summary .sfr-summary-grid {
  padding: 18px;
}

body.dashboard-core .sfr-department-modules-grid {
  margin-top: 2px;
}

body.dashboard-core .sfr-department-modules-grid .dashboard-module-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

body.dashboard-core .sfr-department-modules-grid .dashboard-module-card::before {
  display: none;
}

body.dashboard-core .department-modules-panel {
  background: var(--sfr-bg-surface);
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-lg);
  box-shadow: var(--sfr-shadow-card);
}

body.dashboard-core .department-modules-panel .panel-head {
  padding: 18px 18px 0;
}

body.dashboard-core .department-modules-panel .department-modules-grid {
  padding: 18px;
}

body.dashboard-core .department-module-card {
  background: var(--sfr-bg-surface-2);
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-lg);
  box-shadow: var(--sfr-shadow-soft);
}

body.dashboard-core .department-module-card:hover {
  border-color: var(--sfr-border-medium);
  background: rgba(18, 18, 23, 0.98);
}

body.dashboard-core .department-module-card.is-featured {
  border-color: rgba(212, 175, 55, 0.34);
  background: linear-gradient(
    180deg,
    rgba(28, 24, 14, 0.98) 0%,
    rgba(17, 16, 14, 0.98) 100%
  );
}

body.dashboard-core .department-module-card-kicker {
  color: var(--sfr-gold);
  letter-spacing: 0.04em;
}

body.dashboard-core .department-module-card h3 {
  color: var(--sfr-text-primary);
}

body.dashboard-core .department-module-card p {
  color: var(--sfr-text-secondary);
}

body.dashboard-core .department-module-card-cta {
  background: var(--sfr-gold-faint);
  border: 1px solid var(--sfr-border-medium);
  color: var(--sfr-gold);
}

@media (max-width: 1100px) {
  body.dashboard-core .sfr-department-context-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.dashboard-core .sfr-department-context-metrics {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   SFR UI CORE — SITUACAO OPERACIONAL
======================================== */

body.dashboard-core .sfr-today-dashboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.dashboard-core .sfr-today-context-panel {
  background: linear-gradient(
    180deg,
    rgba(17, 17, 21, 0.99) 0%,
    rgba(11, 11, 14, 0.99) 100%
  );
}

body.dashboard-core .sfr-today-context-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.dashboard-core .sfr-today-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px;
  width: fit-content;
  max-width: 100%;
  background: var(--sfr-bg-surface);
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-md);
  box-shadow: var(--sfr-shadow-soft);
}

body.dashboard-core .sfr-today-tab {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--sfr-radius-sm);
  color: var(--sfr-text-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

body.dashboard-core .sfr-today-tab:hover,
body.dashboard-core .sfr-today-tab.is-active {
  color: #111;
  background: var(--sfr-gold);
}

body.dashboard-core .sfr-today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 14px;
}

body.dashboard-core .sfr-today-card {
  background: var(--sfr-bg-surface);
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-md);
  box-shadow: var(--sfr-shadow-card);
  overflow: hidden;
}

body.dashboard-core .sfr-today-card-primary {
  border-color: var(--sfr-border-medium);
}

body.dashboard-core .sfr-today-card .panel-head {
  padding: 16px 16px 0;
}

body.dashboard-core .sfr-today-status-list,
body.dashboard-core .sfr-today-reading,
body.dashboard-core .sfr-today-actions,
body.dashboard-core .sfr-today-shortcuts {
  padding: 16px;
}

body.dashboard-core .sfr-today-status-list,
body.dashboard-core .sfr-today-reading {
  display: grid;
  gap: 12px;
}

body.dashboard-core .sfr-today-note-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

body.dashboard-core .sfr-today-note-list p {
  margin: 0;
  padding: 12px 14px;
  color: var(--sfr-text-secondary);
  background: rgba(210, 153, 34, 0.10);
  border: 1px solid rgba(210, 153, 34, 0.20);
  border-radius: var(--sfr-radius-md);
  line-height: 1.4;
}

body.dashboard-core .sfr-today-status-list > div,
body.dashboard-core .sfr-today-reading > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: var(--sfr-bg-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--sfr-radius-sm);
}

body.dashboard-core .sfr-today-status-list span,
body.dashboard-core .sfr-today-reading span {
  color: var(--sfr-text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.dashboard-core .sfr-today-status-list strong,
body.dashboard-core .sfr-today-reading strong {
  color: var(--sfr-text-primary);
  font-size: 1.05rem;
  line-height: 1.2;
}

body.dashboard-core .sfr-today-reading small {
  color: var(--sfr-text-secondary);
  line-height: 1.35;
}

body.dashboard-core .sfr-today-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

body.dashboard-core .sfr-today-actions .btn-escala {
  justify-content: center;
  min-height: 44px;
}

body.dashboard-core .sfr-today-shortcuts {
  display: grid;
  gap: 12px;
}

body.dashboard-core .sfr-today-shortcut {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  color: var(--sfr-text-primary);
  background: var(--sfr-bg-surface-2);
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-md);
  text-decoration: none;
}

body.dashboard-core .sfr-today-shortcut:hover {
  border-color: var(--sfr-border-medium);
}

body.dashboard-core .sfr-today-shortcut span {
  color: var(--sfr-gold);
  font-weight: 700;
}

body.dashboard-core .sfr-today-shortcut small {
  color: var(--sfr-text-secondary);
  line-height: 1.35;
}

body.dashboard-core .sfr-today-day-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

body.dashboard-core .sfr-today-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sfr-border-soft);
}

body.dashboard-core .sfr-today-day-head span,
body.dashboard-core .sfr-today-day-metrics span,
body.dashboard-core .sfr-today-week-date span {
  color: var(--sfr-gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.dashboard-core .sfr-today-day-head h3 {
  margin: 4px 0 0;
  color: var(--sfr-text-primary);
  font-size: 1.55rem;
  line-height: 1.1;
}

body.dashboard-core .sfr-today-day-head > strong {
  color: var(--sfr-text-secondary);
  font-size: 0.95rem;
  white-space: nowrap;
}

body.dashboard-core .sfr-today-day-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.dashboard-core .sfr-today-day-metrics > div {
  min-width: 0;
  padding: 12px;
  background: var(--sfr-bg-surface-2);
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-sm);
}

body.dashboard-core .sfr-today-day-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--sfr-text-primary);
  font-size: 1.45rem;
  line-height: 1;
}

body.dashboard-core .sfr-today-shifts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}

body.dashboard-core .sfr-today-shift {
  min-width: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--sfr-radius-sm);
}

body.dashboard-core .sfr-today-shift strong {
  color: var(--sfr-gold);
  font-size: 0.92rem;
}

body.dashboard-core .sfr-today-shift span {
  float: right;
  color: var(--sfr-text-primary);
  font-weight: 800;
}

body.dashboard-core .sfr-today-shift small {
  display: block;
  clear: both;
  margin-top: 6px;
  color: var(--sfr-text-secondary);
  line-height: 1.35;
}

body.dashboard-core .sfr-today-empty {
  margin: 0;
  padding: 12px;
  color: var(--sfr-text-secondary);
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed var(--sfr-border-soft);
  border-radius: var(--sfr-radius-sm);
}

body.dashboard-core .sfr-today-absence-list {
  display: grid;
  gap: 8px;
}

body.dashboard-core .sfr-today-absence-list span {
  padding: 10px 12px;
  color: var(--sfr-text-primary);
  background: rgba(210, 153, 34, 0.10);
  border: 1px solid rgba(210, 153, 34, 0.20);
  border-radius: var(--sfr-radius-sm);
}

body.dashboard-core .sfr-today-card-compact {
  align-self: start;
}

body.dashboard-core .sfr-today-week-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

body.dashboard-core .sfr-today-week-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 0.8fr) minmax(260px, 1.4fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--sfr-bg-surface-2);
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-sm);
}

body.dashboard-core .sfr-today-week-date strong {
  display: block;
  margin-top: 4px;
  color: var(--sfr-text-primary);
}

body.dashboard-core .sfr-today-week-metrics,
body.dashboard-core .sfr-today-week-shifts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.dashboard-core .sfr-today-week-metrics span,
body.dashboard-core .sfr-today-week-shifts span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--sfr-text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

@media (max-width: 1100px) {
  body.dashboard-core .sfr-today-context-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard-core .sfr-today-grid {
    grid-template-columns: 1fr;
  }

  body.dashboard-core .sfr-today-week-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.dashboard-core .sfr-today-context-metrics {
    grid-template-columns: 1fr;
  }

  body.dashboard-core .sfr-today-tabs {
    width: 100%;
  }

  body.dashboard-core .sfr-today-tab {
    flex: 1;
    justify-content: center;
  }

  body.dashboard-core .sfr-today-day-head {
    flex-direction: column;
    gap: 6px;
  }

  body.dashboard-core .sfr-today-day-metrics {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   SFR UI CORE — SCALE EDITOR
======================================== */

body.dashboard-core.page-escala-editor {
  background: #0b0b0d;
}

body.dashboard-core.page-escala-editor .scale-editor-main {
  padding: 22px;
}

body.dashboard-core.page-escala-editor .scale-editor-content {
  max-width: none;
}

body.dashboard-core.page-escala-editor .editor-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.dashboard-core.page-escala-editor .editor-scale-context-card {
  margin-bottom: 18px;
  background: #101014;
  border: 1px solid var(--sfr-border-soft);
  box-shadow: var(--sfr-shadow-card);
}

body.dashboard-core.page-escala-editor .scale-context-grid {
  grid-template-columns: minmax(360px, 1fr) minmax(260px, 0.7fr);
  align-items: stretch;
}

body.dashboard-core.page-escala-editor .scale-context-copy,
body.dashboard-core.page-escala-editor .scale-context-chip {
  background: #0d0d11;
  border: 1px solid rgba(212, 175, 55, 0.14);
}

body.dashboard-core.page-escala-editor .scale-context-copy h2 {
  color: var(--sfr-text-primary);
}

body.dashboard-core.page-escala-editor .scale-context-copy p,
body.dashboard-core.page-escala-editor .scale-context-chip strong {
  color: var(--sfr-text-secondary);
}

body.dashboard-core.page-escala-editor .scale-context-summary {
  grid-column: auto;
  grid-template-columns: 1fr;
}

body.dashboard-core.page-escala-editor .editor-import-strip,
body.dashboard-core.page-escala-editor .assistant-panel,
body.dashboard-core.page-escala-editor .legenda {
  background: #101014;
  border: 1px solid var(--sfr-border-soft);
  box-shadow: var(--sfr-shadow-soft);
}

body.dashboard-core.page-escala-editor .scale-context-copy {
  padding: 14px 16px;
}

body.dashboard-core.page-escala-editor .scale-context-copy h2 {
  font-size: 22px;
}

body.dashboard-core.page-escala-editor .scale-action-bar {
  margin-top: 12px;
  gap: 8px;
}

body.dashboard-core.page-escala-editor .scale-action-bar .btn-escala {
  min-height: 38px;
  padding: 0 12px;
  font-size: 14px;
}

body.dashboard-core.page-escala-editor .scale-context-chip {
  padding: 12px 14px;
  border-radius: 14px;
}

body.dashboard-core.page-escala-editor .scale-context-chip strong {
  color: var(--sfr-text-primary);
  letter-spacing: 0.02em;
}

body.dashboard-core.page-escala-editor details.assistant-panel {
  padding: 0;
}

body.dashboard-core.page-escala-editor details.assistant-panel > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

body.dashboard-core.page-escala-editor details.assistant-panel > summary::-webkit-details-marker {
  display: none;
}

body.dashboard-core.page-escala-editor .assistant-summary-left {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

body.dashboard-core.page-escala-editor .assistant-summary-left .assistant-copy h3 {
  font-size: 18px;
  margin: 0 0 6px 0;
}

body.dashboard-core.page-escala-editor .assistant-summary-left .assistant-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--sfr-text-secondary);
  line-height: 1.35;
}

body.dashboard-core.page-escala-editor .assistant-summary-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  align-items: stretch;
}

body.dashboard-core.page-escala-editor .assistant-summary-stat {
  padding: 12px;
  border-radius: 14px;
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.dashboard-core.page-escala-editor .assistant-summary-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--sfr-gold);
  margin-bottom: 4px;
}

body.dashboard-core.page-escala-editor .assistant-summary-stat-label {
  color: var(--sfr-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

body.dashboard-core.page-escala-editor .assistant-body {
  padding: 0 16px 16px;
}

body.dashboard-core.page-escala-editor .editor-grid-wrapper {
  width: 100%;
  margin-top: 18px;
  overflow: auto;
  background: #101014;
  border: 1px solid var(--sfr-border-soft);
  border-radius: var(--sfr-radius-lg);
  box-shadow: var(--sfr-shadow-card);
}

body.dashboard-core.page-escala-editor .tabela-escala {
  margin: 0;
  width: max-content;
  min-width: 100%;
  background: #0b0b0d;
}

body.dashboard-core.page-escala-editor .tabela-escala th {
  background: #101014;
}

@media (max-width: 980px) {
  body.dashboard-core.page-escala-editor .scale-context-grid,
  body.dashboard-core.page-escala-editor .scale-context-summary {
    grid-template-columns: 1fr;
  }

  body.dashboard-core.page-escala-editor .assistant-summary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ========================================
   SFR UI CORE — MONTH GENERATION CONTROLS
   (Manual/Auto + Epoca)
======================================== */

body.dashboard-core .mes-acao-select {
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--sfr-text-primary, #f5f5f7);
  font-weight: 600;
}

body.dashboard-core .mes-acao-select option {
  color: #111;
}

/* ================= SR PRIME GLOBAL THEME ================= */

:root {
    --sr-navy-950: #020817;
    --sr-navy-925: #031126;
    --sr-navy-900: #06142b;
    --sr-navy-850: #071b38;
    --sr-navy-800: #0a2344;
    --sr-gold-600: #b97816;
    --sr-gold-500: #d9a233;
    --sr-gold-400: #f2c45f;
    --sr-gold-300: #ffe29a;
    --sr-text: #f8fafc;
    --sr-muted: #94a3b8;
    --sr-panel: rgba(3, 17, 43, 0.82);
    --sr-panel-strong: rgba(4, 20, 47, 0.94);
    --sr-border: rgba(242, 196, 95, 0.24);
}

body.dashboard-body:not(.login-page),
body.editor-body {
    background:
        linear-gradient(90deg, rgba(2, 8, 23, 0.42), rgba(2, 8, 23, 0.86)),
        radial-gradient(circle at 78% 18%, rgba(13, 58, 109, 0.34), transparent 34%),
        linear-gradient(145deg, var(--sr-navy-900) 0%, var(--sr-navy-950) 70%) !important;
    color: var(--sr-text) !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

body.dashboard-body:not(.login-page)::before,
body.editor-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 82% -10%, rgba(242, 196, 95, 0.09), transparent 34%),
        linear-gradient(90deg, rgba(2, 8, 23, 0.18), rgba(2, 8, 23, 0.66));
}

.dashboard-software {
    min-height: 100vh;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(2, 8, 23, 0.98), rgba(3, 17, 43, 0.96)) !important;
    border-right: 1px solid rgba(242, 196, 95, 0.24);
    box-shadow: 18px 0 45px rgba(0, 0, 0, 0.34);
    color: var(--sr-gold-400) !important;
}

.staff-greeting-box {
    background:
        radial-gradient(circle at 50% 0%, rgba(242, 196, 95, 0.16), transparent 62%),
        linear-gradient(180deg, rgba(10, 35, 68, 0.74), rgba(2, 8, 23, 0.7)) !important;
    border-color: rgba(242, 196, 95, 0.32) !important;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.staff-greeting-text,
.menu-section,
.scale-context-kicker,
.department-module-card-kicker,
.entrada-title {
    color: var(--sr-gold-400) !important;
}

.staff-clock,
.page-title,
.panel-head h3,
.panel-head h4,
.department-module-card h3,
.scale-context-copy h2 {
    color: var(--sr-gold-300) !important;
}

.staff-date,
.page-subtitle,
.panel-head p,
.department-module-card p,
.muted-inline,
.scale-context-copy p {
    color: rgba(226, 232, 240, 0.76) !important;
}

.menu-item {
    color: var(--sr-text) !important;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid transparent;
    border-radius: 10px !important;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.menu-item:hover,
.menu-item.active {
    background: linear-gradient(135deg, rgba(217, 162, 51, 0.24), rgba(10, 35, 68, 0.55)) !important;
    border-color: rgba(242, 196, 95, 0.35);
    color: var(--sr-gold-300) !important;
    transform: translateX(2px);
}

.menu-item.logout,
.logout {
    background: rgba(127, 29, 29, 0.34) !important;
    border-color: rgba(248, 113, 113, 0.28);
    color: #fecaca !important;
}

.main-content {
    color: var(--sr-text) !important;
}

.page-header,
.panel-card,
.dashboard-wrapper,
.portal-shell,
.portal-home-shell,
.department-module-card,
.department-overview-card,
.sfr-context-panel,
.sfr-summary-card,
.mobile-home-panel,
.scale-context-copy,
.scale-context-chip {
    background:
        radial-gradient(circle at 18% 0%, rgba(13, 58, 109, 0.24), transparent 40%),
        linear-gradient(135deg, rgba(3, 17, 43, 0.82), rgba(4, 20, 47, 0.94)) !important;
    border: 1px solid var(--sr-border) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28) !important;
}

.panel-card,
.department-module-card,
.department-overview-card,
.sfr-context-panel,
.sfr-summary-card {
    border-radius: 18px !important;
}

.btn-escala,
.btn-acao,
.menu-btn,
.login-btn {
    background: linear-gradient(180deg, #f4c961, #d49420) !important;
    border: 1px solid rgba(255, 226, 154, 0.26) !important;
    color: #071225 !important;
    box-shadow: 0 14px 28px rgba(217, 162, 51, 0.22);
    font-weight: 800;
}

.btn-escala:hover,
.btn-acao:hover,
.menu-btn:hover,
.login-btn:hover {
    filter: brightness(1.06);
    color: #071225 !important;
    transform: translateY(-1px);
}

.btn-escala-secondary,
.btn-escala-ghost,
.btn-disabled {
    background: rgba(6, 20, 43, 0.76) !important;
    border-color: rgba(242, 196, 95, 0.28) !important;
    color: var(--sr-gold-300) !important;
    box-shadow: none;
}

.btn-danger-soft,
.btn-link-danger {
    background: rgba(127, 29, 29, 0.34) !important;
    border-color: rgba(248, 113, 113, 0.34) !important;
    color: #fecaca !important;
}

.panel-input,
.input-box,
textarea,
select {
    background: rgba(2, 8, 23, 0.42) !important;
    border-color: rgba(148, 163, 184, 0.34) !important;
    color: var(--sr-text) !important;
}

.panel-input:focus,
.input-box:focus-within,
textarea:focus,
select:focus {
    border-color: rgba(242, 196, 95, 0.82) !important;
    box-shadow: 0 0 0 4px rgba(217, 162, 51, 0.12) !important;
}

.panel-input::placeholder,
textarea::placeholder,
input::placeholder {
    color: rgba(226, 232, 240, 0.48) !important;
}

.field-group label,
.campo-label,
.records-table th,
.tabela-escala th,
.nome,
.role-badge,
.context-pill {
    color: var(--sr-gold-300) !important;
}

.records-table-wrap,
.editor-grid-wrapper {
    border-radius: 14px;
    border: 1px solid rgba(242, 196, 95, 0.16);
    background: rgba(2, 8, 23, 0.28);
}

.records-table,
.tabela-escala {
    background: rgba(2, 8, 23, 0.5) !important;
    color: var(--sr-text) !important;
}

.records-table th,
.records-table td,
.tabela-escala th,
.tabela-escala td {
    border-color: rgba(242, 196, 95, 0.17) !important;
}

.records-table th,
.tabela-escala th {
    background: rgba(3, 17, 43, 0.86) !important;
}

.records-table tbody tr:hover {
    background: rgba(242, 196, 95, 0.055) !important;
}

.checkbox-chip,
.role-badge,
.context-pill,
.estado-bloqueada,
.estado-gerada,
.estado-inexistente {
    border-color: rgba(242, 196, 95, 0.24) !important;
}

.checkbox-chip,
.role-badge,
.context-pill {
    background: rgba(217, 162, 51, 0.13) !important;
}

.checkbox-chip input,
input[type="checkbox"] {
    accent-color: var(--sr-gold-500);
}

.login-alerta {
    border-color: rgba(248, 113, 113, 0.55) !important;
    background: rgba(127, 29, 29, 0.35) !important;
    color: #fecaca !important;
}

.version,
.assistant-empty {
    color: var(--sr-muted) !important;
}

/* ================= SR PRIME — FERIAS / BAIXAS ================= */

.page-ferias .department-module-header,
.page-baixas .department-module-header,
.page-ferias .vacation-hero,
.page-baixas .vacation-hero,
.page-ferias .vacation-map-shell,
.page-baixas .vacation-map-shell,
.page-ferias .vacation-map-toolbar,
.page-baixas .vacation-map-toolbar,
.page-ferias .vacation-people-map,
.page-baixas .vacation-people-map,
.page-ferias .vacation-records-panel,
.page-baixas .vacation-records-panel,
.page-ferias .vacation-form-panel,
.page-baixas .vacation-form-panel {
    background:
        radial-gradient(circle at 18% 0%, rgba(13, 58, 109, 0.28), transparent 42%),
        linear-gradient(135deg, rgba(3, 17, 43, 0.86), rgba(4, 20, 47, 0.96)) !important;
    border: 1px solid rgba(242, 196, 95, 0.24) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.30) !important;
}

.page-ferias .department-module-header,
.page-baixas .department-module-header,
.page-ferias .vacation-hero,
.page-baixas .vacation-hero,
.page-ferias .vacation-map-shell,
.page-baixas .vacation-map-shell {
    border-radius: 20px !important;
}

.page-ferias .vacation-kicker,
.page-baixas .vacation-kicker,
.page-ferias .vacation-year-form label,
.page-baixas .vacation-year-form label,
.page-ferias .vacation-period-total,
.page-baixas .vacation-period-total,
.page-ferias .vacation-person-total,
.page-baixas .vacation-person-total {
    color: var(--sr-gold-400) !important;
}

.page-ferias .vacation-hero h2,
.page-baixas .vacation-hero h2,
.page-ferias .vacation-print-title h2,
.page-baixas .vacation-print-title h2,
.page-ferias .vacation-map-toolbar h3,
.page-baixas .vacation-map-toolbar h3,
.page-ferias .vacation-section-head h3,
.page-baixas .vacation-section-head h3 {
    color: var(--sr-gold-300) !important;
}

.page-ferias .vacation-hero p,
.page-baixas .vacation-hero p,
.page-ferias .vacation-map-toolbar p,
.page-baixas .vacation-map-toolbar p,
.page-ferias .vacation-section-head p,
.page-baixas .vacation-section-head p,
.page-ferias .vacation-print-title p,
.page-baixas .vacation-print-title p {
    color: rgba(226, 232, 240, 0.76) !important;
}

.page-ferias .vacation-stats div,
.page-baixas .vacation-stats div,
.page-ferias .vacation-picker,
.page-baixas .vacation-picker,
.page-ferias .vacation-picker-summary div,
.page-baixas .vacation-picker-summary div,
.page-ferias .vacation-month,
.page-baixas .vacation-month,
.page-ferias .vacation-person-row,
.page-baixas .vacation-person-row {
    background: rgba(2, 8, 23, 0.42) !important;
    border-color: rgba(242, 196, 95, 0.20) !important;
}

.page-ferias .vacation-stats strong,
.page-baixas .vacation-stats strong {
    color: var(--sr-gold-400) !important;
}

.page-ferias .vacation-stats span,
.page-baixas .vacation-stats span,
.page-ferias .vacation-picker-summary span,
.page-baixas .vacation-picker-summary span {
    color: rgba(226, 232, 240, 0.68) !important;
}

.page-ferias .vacation-period-map-wrap,
.page-baixas .vacation-period-map-wrap {
    background: rgba(2, 8, 23, 0.38) !important;
    border-color: rgba(242, 196, 95, 0.18) !important;
}

.page-ferias .vacation-period-map,
.page-baixas .vacation-period-map {
    background: rgba(2, 8, 23, 0.58) !important;
    color: var(--sr-text) !important;
}

.page-ferias .vacation-period-map th,
.page-baixas .vacation-period-map th {
    background: rgba(3, 17, 43, 0.96) !important;
    color: var(--sr-gold-300) !important;
    border-color: rgba(242, 196, 95, 0.18) !important;
}

.page-ferias .vacation-period-map td,
.page-baixas .vacation-period-map td {
    background: rgba(2, 8, 23, 0.34) !important;
    border-color: rgba(242, 196, 95, 0.12) !important;
}

.page-ferias .vacation-period-map tr:nth-child(even) td,
.page-baixas .vacation-period-map tr:nth-child(even) td {
    background: rgba(6, 20, 43, 0.42) !important;
}

.page-ferias .vacation-period-person,
.page-baixas .vacation-period-person {
    background: rgba(3, 17, 43, 0.98) !important;
}

.page-ferias .vacation-period-person span,
.page-baixas .vacation-period-person span,
.page-ferias .vacation-person-name span,
.page-baixas .vacation-person-name span {
    background: rgba(217, 162, 51, 0.18) !important;
    color: var(--sr-gold-300) !important;
    border: 1px solid rgba(242, 196, 95, 0.22);
}

.page-ferias .vacation-period-person strong,
.page-baixas .vacation-period-person strong,
.page-ferias .vacation-person-name strong,
.page-baixas .vacation-person-name strong {
    color: var(--sr-text) !important;
}

.page-ferias .vacation-period-map td.has-period,
.page-baixas .vacation-period-map td.has-period {
    background: rgba(217, 162, 51, 0.10) !important;
}

.page-ferias .vacation-period-block,
.page-baixas .vacation-period-block,
.page-ferias .vacation-period-chip,
.page-baixas .vacation-period-chip {
    background: rgba(217, 162, 51, 0.15) !important;
    border-color: rgba(242, 196, 95, 0.30) !important;
    color: #fff4c7 !important;
}

.page-ferias .vacation-empty,
.page-baixas .vacation-empty {
    color: rgba(226, 232, 240, 0.58) !important;
}

