/* ==========================================================================
   EHS SISTEMA GTR MATRIX - STYLE SHEET (GLASSMORPHISM DARK PREMIUM)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-base: #05141e;            /* Deep Dark Slate Blue (derived from #0B354C) */
    --bg-surface: rgba(10, 34, 49, 0.70);
    --bg-card: rgba(5, 20, 30, 0.50);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-glow: rgba(255, 255, 255, 0.15);
    
    /* Neon Cores EHS */
    --color-primary: #108538; /* Verde folha institucional */
    --color-primary-glow: rgba(16, 133, 56, 0.2);
    --color-secondary: #0084c1; /* Azul ciano/accent institucional */
    --color-secondary-glow: rgba(0, 132, 193, 0.2);
    
    /* Status Colors */
    --color-success: #108538;
    --color-success-bg: rgba(16, 133, 56, 0.1);
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.1);
    --color-danger: #ef4444;
    --color-danger-bg: rgba(239, 68, 68, 0.1);
    --color-neutral: #64748b;
    --color-neutral-bg: rgba(100, 116, 139, 0.1);
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Theme component variables */
    --bg-input: rgba(15, 23, 42, 0.4);
    --bg-sticky-col: rgba(30, 41, 59, 0.95);
    --bg-th: rgba(15, 23, 42, 0.8);
    --bg-modal: #1e293b;
    --bg-dropdown: #0f172a;
    --bg-support-card: rgba(30, 41, 59, 0.75);
    --card-val-gradient: linear-gradient(135deg, #fff, var(--text-secondary));
    --color-not-required: rgba(255, 255, 255, 0.15);
    
    /* Effects */
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --blur-glass: 12px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
body.light-theme {
    --bg-base: #f1f5f9;            /* Light Slate Blue/Grey */
    --bg-surface: rgba(255, 255, 255, 0.65);
    --bg-card: rgba(255, 255, 255, 0.45);
    --border-glass: rgba(15, 23, 42, 0.08);
    --border-glass-glow: rgba(15, 23, 42, 0.16);
    
    --text-primary: #0f172a;        /* Dark slate text */
    --text-secondary: #475569;      /* Muted slate text */
    --text-muted: #94a3b8;
    
    --bg-input: rgba(255, 255, 255, 0.85);
    --bg-sticky-col: rgba(241, 245, 249, 0.95);
    --bg-th: rgba(241, 245, 249, 0.9);
    --bg-modal: #ffffff;
    --bg-dropdown: #ffffff;
    --bg-support-card: rgba(241, 245, 249, 0.75);
    --card-val-gradient: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    --color-not-required: rgba(15, 23, 42, 0.15);
    --shadow-premium: 0 8px 32px 0 rgba(148, 163, 184, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 133, 56, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 132, 193, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.95) 0px, var(--bg-base) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Layout Grid */
.app-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    --bg-surface: rgba(10, 34, 49, 0.70);
    --bg-card: rgba(5, 20, 30, 0.50);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-glow: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(var(--blur-glass));
    border-right: 1px solid var(--border-glass);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.logo-img {
    height: 150px;
    width: 150px;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass-glow);
    padding: 8px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.logo-img:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff 40%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item button {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
    text-align: left;
}

.nav-item button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: var(--transition-smooth);
}

.nav-item.active button,
.nav-item button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass-glow);
}

.nav-item.active button {
    background: linear-gradient(90deg, var(--color-primary-glow), rgba(255,255,255,0.02));
    border-left: 3px solid var(--color-primary);
    box-shadow: inset 5px 0 15px rgba(16, 133, 56, 0.05);
}

.nav-item.active button svg {
    color: var(--color-primary);
    filter: drop-shadow(0 0 5px var(--color-primary-glow));
}

.badge-count {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.1rem 0.45rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.nav-item.active .badge-count {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-primary);
    border-color: rgba(16, 185, 129, 0.3);
}

.nav-item button:hover .badge-count {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
}

.admin-badge {
    background: rgba(0, 132, 193, 0.1);
    border: 1px solid rgba(0, 132, 193, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-size: 0.75rem;
    text-align: center;
    color: var(--color-secondary);
    font-weight: 600;
}

/* Main Content Area */
.main-content {
    padding: 2.5rem;
    overflow-y: auto;
    height: 100vh;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.header-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.header-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.actions-group {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}
.btn-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
}

.btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #0c6c2d);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 133, 56, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 133, 56, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass-glow);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-secondary), #006da2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 132, 193, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 132, 193, 0.5);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Glass Cards */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(225deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.glass-card:hover {
    border-color: var(--border-glass-glow);
    transform: translateY(-3px);
}

/* Stat Cards */
.stat-card {
    cursor: pointer;
}
.stat-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.green {
    background: rgba(16, 133, 56, 0.1);
    color: var(--color-primary);
}

.stat-icon.blue {
    background: rgba(0, 132, 193, 0.1);
    color: var(--color-secondary);
}

.stat-icon.yellow {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.stat-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

.stat-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.stat-card .card-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--card-val-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card .card-footer {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.stat-trend.positive { color: var(--color-success); }
.stat-trend.negative { color: var(--color-danger); }
.stat-trend.neutral { color: var(--color-neutral); }

#dash-section-pendencias .stat-value {
    text-decoration: underline;
}

/* Main Section Grids */
.section-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.glass-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Compliance Ring Chart (SVG) */
.compliance-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.svg-ring-container {
    position: relative;
    width: 140px;
    height: 140px;
}

.svg-ring-container svg {
    transform: rotate(-90deg);
}

.svg-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 12;
}

.svg-ring-active {
    fill: none;
    stroke: url(#ring-gradient);
    stroke-width: 12;
    stroke-dasharray: 402; /* 2 * PI * r (r=64) */
    stroke-dashoffset: 402;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ring-percent {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.ring-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 0.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Lists and Lists Items */
.recent-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.recent-item:hover {
    border-color: rgba(255,255,255,0.06);
    background: rgba(255, 255, 255, 0.02);
}

.recent-item-info {
    display: flex;
    flex-direction: column;
}

.recent-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.recent-item-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.recent-item-status {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-valid {
    background: var(--color-success-bg);
    color: var(--color-success);
}
.status-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}
.status-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}
.status-neutral {
    background: var(--color-neutral-bg);
    color: var(--color-neutral);
}

/* Tabs Views */
.tab-view {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tables Styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.custom-table th {
    background: var(--bg-th);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.custom-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr {
    transition: var(--transition-smooth);
}

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

/* Grid Matrix View SPECIFIC styles */
.matrix-container {
    overflow-x: auto;
    padding-bottom: 1rem;
}

.matrix-table {
    border-collapse: collapse;
    width: auto;
    min-width: 100%;
    font-size: 0.8rem;
}

.matrix-table th.emp-header {
    min-width: 200px;
    position: sticky;
    left: 0;
    background: var(--bg-base);
    z-index: 10;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

.matrix-table td.emp-name {
    font-weight: 600;
    position: sticky;
    left: 0;
    background: var(--bg-sticky-col);
    z-index: 9;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    border-right: 1px solid var(--border-glass);
}

.matrix-table th.training-header-col {
    min-width: 140px;
    max-width: 180px;
    height: 120px;
    vertical-align: bottom;
    padding: 0.75rem;
}

/* Rotated Header Labels */
.header-rotation-wrapper {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 110px;
    margin: 0 auto;
    font-weight: 500;
    font-size: 0.75rem;
}

.matrix-cell {
    text-align: center;
    padding: 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.matrix-cell:hover {
    background: rgba(255, 255, 255, 0.08);
}

.matrix-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.matrix-badge.valid {
    background: rgba(16, 133, 56, 0.2);
    color: var(--color-success);
    border: 1px solid rgba(16, 133, 56, 0.3);
}

.matrix-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.matrix-badge.danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.matrix-badge.not-required {
    background: transparent;
    color: var(--color-not-required);
    border: none;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-backdrop.active {
    display: flex;
}

.modal-content {
    background: var(--bg-modal);
    border: 1px solid var(--border-glass-glow);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(16, 133, 56, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Grid layout columns in forms */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Search and Filters Bar */
.search-filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding-left: 2.25rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.filter-wrapper {
    display: flex;
    gap: 0.75rem;
}

/* Profile Details Card */
.profile-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.profile-sidebar {
    border-right: 1px solid var(--border-glass);
    padding-right: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.profile-meta h4 {
    font-size: 1.15rem;
    font-weight: 700;
}

.profile-meta p.role {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

.profile-meta p.dept {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.profile-compliance-meter {
    margin-top: 2rem;
}

.compliance-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    width: 0%;
    transition: width 0.5s ease-out;
}

/* Accordion or list of training items */
.training-check-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.training-check-item {
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: var(--bg-card);
    transition: var(--transition-smooth);
}

.training-check-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.training-check-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.training-check-body {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.training-check-item.expanded .training-check-body {
    display: block;
}

.training-check-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.detail-block {
    display: flex;
    flex-direction: column;
}

.detail-block span.lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
}

.detail-block span.val {
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-top: 0.15rem;
    font-weight: 500;
}

/* Accordion trigger indicator icon */
.chevron-icon {
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2;
    transition: var(--transition-smooth);
}

.training-check-item.expanded .chevron-icon {
    transform: rotate(180deg);
}

/* Badge tags in details */
.tag-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.tag-badge.theme {
    background: rgba(0, 132, 193, 0.15);
    color: var(--color-secondary);
    border-color: rgba(0, 132, 193, 0.2);
}

.tag-badge.law {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-color: var(--border-glass);
}

.tag-badge.mandatory {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.tag-badge.recommended {
    background: rgba(0, 132, 193, 0.1);
    color: var(--color-secondary);
    border-color: rgba(0, 132, 193, 0.2);
}

.tag-badge.origin-legal {
    background: rgba(16, 133, 56, 0.1);
    color: var(--color-primary);
    border-color: rgba(16, 133, 56, 0.2);
}

.tag-badge.origin-internal {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.2);
}


/* Legislative List Cards */
.legislation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.legislation-card {
    transition: var(--transition-smooth);
}

.legislation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.legislation-card-theme {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legislation-card-law {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.legislation-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.legislation-card-summary {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.legislation-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 0.75rem;
}

.legislation-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.legislation-card-meta-item svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.legislation-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Multi-select check list inside role form */
.checkbox-list {
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.3);
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    padding: 0.25rem;
    border-radius: 4px;
}

.checkbox-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.02);
}

.checkbox-item input {
    margin-top: 0.2rem;
    accent-color: var(--color-primary);
}

/* Tooltip standard visual */
.tooltip-custom {
    position: absolute;
    background: #0f172a;
    border: 1px solid var(--border-glass-glow);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-primary);
    z-index: 200;
    pointer-events: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    max-width: 240px;
    display: none;
}

.tooltip-custom h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.tooltip-custom p {
    margin-bottom: 0.15rem;
    color: var(--text-secondary);
}

/* Status summary block in role lists */
.role-badge-count {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Support & Consultoria Button */
.support-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.support-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-glass-glow);
    box-shadow: 0 0 10px rgba(16, 133, 56, 0.1);
}

.support-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Support Contact Cards */
.support-link-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.support-link-card:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--border-glass-glow) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Floating Support Side Tab */
.support-side-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    background: var(--bg-support-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass-glow);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    padding: 1rem 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.support-side-tab:hover {
    background: rgba(16, 133, 56, 0.15);
    border-color: var(--color-primary);
    color: #fff;
    padding-left: 0.75rem; /* subtle expand out left */
}

.support-side-tab span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.support-side-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed var(--border-glass-glow);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.2);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    margin-top: 0.25rem;
}

.upload-dropzone:hover {
    border-color: var(--color-primary);
    background: rgba(16, 133, 56, 0.05);
    color: #fff;
}

.upload-dropzone svg {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.upload-dropzone:hover svg {
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* CSS Bar Charts for Reports */
.bar-chart-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.bar-chart-row {
    display: grid;
    grid-template-columns: 200px 1fr 60px;
    align-items: center;
    gap: 1.5rem;
}

.bar-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bar-track {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.bar-fill.danger {
    background: linear-gradient(90deg, #ef4444, #f87171) !important;
}

.bar-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24) !important;
}

.bar-fill.success {
    background: linear-gradient(90deg, #10b981, #34d399) !important;
}

.bar-value-text {
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    text-align: right;
}

/* Print Optimizations */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    
    .app-container {
        display: block !important;
    }
    
    .sidebar, 
    .header-bar, 
    .search-filter-bar, 
    .support-side-tab, 
    .tooltip-custom, 
    .modal-backdrop,
    #btn-print-report {
        display: none !important;
    }
    
    .main-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        background: #fff !important;
    }
    
    .glass-card {
        background: #fff !important;
        border: none !important;
        box-shadow: none !important;
        color: #000 !important;
        padding: 0 !important;
    }
    
    /* Show only the active tab view */
    .tab-view {
        display: none !important;
    }
    .tab-view.active {
        display: block !important;
    }
    
    /* Text overrides */
    h1, h2, h3, h4, h5, h6, p, span, td, th, div, strong, option, select {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    /* Force custom table styling to be readable */
    .custom-table th {
        background: #f1f5f9 !important;
        border-bottom: 2px solid #cbd5e1 !important;
        color: #000 !important;
    }
    
    .custom-table td {
        border-bottom: 1px solid #e2e8f0 !important;
        color: #000 !important;
    }
    
    .bar-track {
        background: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
    }
    
    .bar-fill {
        background: #cbd5e1 !important; /* simple gray for printable charts */
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .bar-fill.success { background: #10b981 !important; }
    .bar-fill.warning { background: #f59e0b !important; }
    .bar-fill.danger { background: #ef4444 !important; }
}

/* ==========================================================================
   TELA DE LOGIN E SEGURANÇA MULTI-TENANT
   ========================================================================== */

/* Estados do Body */
body.logged-out .app-container,
body.logged-out .support-side-tab,
body.logged-out .modal-backdrop,
body.logged-out .tooltip-custom {
    display: none !important;
}

body.logged-in .login-overlay {
    display: none !important;
}

/* Tela de Login */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
    overflow-y: auto;
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 133, 56, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 132, 193, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.95) 0px, var(--bg-base) 100%);
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid var(--border-glass-glow);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(var(--blur-glass));
    animation: loginCardSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginCardSlideIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.login-logo-img {
    height: 120px;
    width: 120px;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass-glow);
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.login-logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff 40%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-logo-text span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.login-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.login-error-msg {
    color: var(--color-danger);
    background: var(--color-danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-align: center;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Banner de Simulação no topo */
.simulation-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(245, 158, 11, 0.18);
    border-bottom: 1px solid rgba(245, 158, 11, 0.35);
    backdrop-filter: blur(12px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    font-size: 0.85rem;
    color: #fef08a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    animation: bannerFadeDown 0.3s ease;
}

@keyframes bannerFadeDown {
    from { transform: translateY(-50px); }
    to { transform: translateY(0); }
}

/* Modificações do layout sob simulação */
body.simulated .app-container {
    margin-top: 50px;
    height: calc(100vh - 50px) !important;
}

body.simulated .sidebar {
    height: calc(100vh - 50px) !important;
}

/* Perfil Leitor: Esconder ações de escrita */
body.user-viewer .btn-primary,
body.user-viewer .btn-accent,
body.user-viewer #btn-quick-cert,
body.user-viewer #btn-add-emp-global,
body.user-viewer #btn-add-employee,
body.user-viewer #btn-add-role,
body.user-viewer #btn-add-legislation,
body.user-viewer #btn-reset-database,
body.user-viewer #btn-add-super-empresa,
body.user-viewer #btn-add-super-usuario,
body.user-viewer .action-edit,
body.user-viewer .action-delete {
    display: none !important;
}

/* Badges de Status Super Admin */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.ativo {
    background: rgba(16, 133, 56, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 133, 56, 0.3);
}

.status-badge.bloqueado {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.pre-cadastro {
    background: rgba(0, 132, 193, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(0, 132, 193, 0.3);
}

.status-badge.inativo {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.status-badge.info {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

/* Custom Searchable Dropdown */
.custom-select-search-container {
    position: relative;
}
.select-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.select-search-input {
    width: 100%;
    padding-right: 2.5rem !important;
}
.select-search-arrow {
    position: absolute;
    right: 0.75rem;
    pointer-events: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.select-search-arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.select-search-wrapper.open .select-search-arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
}
.select-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.25rem;
    padding: 0.25rem;
    background: var(--bg-dropdown) !important;
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
}
.select-search-option {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}
.select-search-option:hover {
    background: rgba(16, 133, 56, 0.15);
    color: #fff;
}
.select-search-option.no-results {
    color: var(--text-muted);
    font-style: italic;
    cursor: default;
    background: transparent !important;
}

.role-link {
    transition: color 0.15s ease, opacity 0.15s ease;
}
.role-link:hover {
    color: var(--color-secondary) !important;
    opacity: 0.85;
}

/* View Mode Toggles for Legislation */
.btn-view-mode {
    padding: 0.35rem 0.6rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    height: 38px;
    border: 1px solid transparent;
}
.btn-view-mode:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.btn-view-mode.active {
    color: var(--color-primary);
    background: rgba(16, 133, 56, 0.12) !important;
    border: 1px solid rgba(16, 133, 56, 0.25);
}


/* ==========================================================================
   SUPPLIER MANAGEMENT (GESTÃO DE FORNECEDORES) STYLES
   ========================================================================== */

.supplier-detail-tab {
    transition: var(--transition-smooth);
    outline: none;
}
.supplier-detail-tab:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.03) !important;
}
.supplier-detail-tab.active {
    color: var(--color-primary) !important;
    border-bottom-color: var(--color-primary) !important;
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
    font-size: 1.4rem;
    color: #475569;
    user-select: none;
}

.rating-stars .star {
    cursor: pointer;
    transition: color 0.15s ease, transform 0.1s ease;
}

.rating-stars .star:hover {
    transform: scale(1.2);
}

.rating-stars .star.selected {
    color: #eab308 !important; /* Gold/yellow */
    text-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
}

/* Badge for ESG score in tables */
.esg-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(234, 179, 8, 0.1);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.25);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.esg-score-badge.high {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.25);
}

.esg-score-badge.low {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
}

/* Estilos para ordenação interativa de tabelas */
th.sortable {
    position: relative;
    padding-right: 24px !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

th.sortable:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
}

th.sortable .sort-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

th.sortable:hover .sort-icon {
    opacity: 0.8;
}

th.sortable.asc .sort-icon::after {
    content: " ▲";
    color: var(--color-primary);
}

th.sortable.desc .sort-icon::after {
    content: " ▼";
    color: var(--color-primary);
}

th.sortable.asc, th.sortable.desc {
    color: #fff;
    font-weight: bold;
}

th.sortable.asc .sort-icon, th.sortable.desc .sort-icon {
    opacity: 1;
}



