/* ============================================
   NOMINA PAGE STYLES
   ============================================ */

.nomina-page {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.nomina-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.nomina-header .header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nomina-header .back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--rz-base-200);
    border-radius: 10px;
    color: var(--rz-text-secondary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nomina-header .back-btn:hover {
    background: var(--rz-primary-lighter);
    color: var(--rz-primary);
}

.nomina-header .back-btn .rzi {
    font-size: 1.5rem;
}

.nomina-header .header-title {
    display: flex;
    flex-direction: column;
}

.nomina-header .page-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--rz-text-color);
}

.nomina-header .period-name {
    font-size: 0.875rem;
    color: var(--rz-text-secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.periods-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--rz-text-secondary-color);
    background: var(--rz-base-100);
    transition: all 0.2s;
    text-decoration: none;
}

.periods-link:hover {
    background: var(--rz-primary-lighter);
    color: var(--rz-primary);
}

.periods-link .rzi {
    font-size: 1.25rem;
}

/* Summary Cards */
.period-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .period-summary {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .period-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

.summary-card {
    background: var(--rz-surface);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--rz-border-color);
}

.summary-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.summary-card.status .card-icon {
    background: var(--rz-primary-lighter);
    color: var(--rz-primary);
}

.summary-card.employees .card-icon {
    background: var(--ns-hours-bg-light);
    color: var(--ns-hours-text);
}

.summary-card.income .card-icon {
    background: var(--ns-success-bg);
    color: var(--rz-success);
}

.summary-card.deductions .card-icon {
    background: var(--ns-danger-bg);
    color: var(--rz-danger);
}

.summary-card.netpay .card-icon {
    background: var(--ns-accent-bg);
    color: var(--ns-accent-text);
}

.summary-card .card-content {
    display: flex;
    flex-direction: column;
}

.summary-card .card-label {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card .card-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--rz-text-color);
}

.card-value.status-draft { color: var(--rz-text-secondary-color); }
.card-value.status-processing { color: var(--rz-info); }
.card-value.status-calculated { color: var(--rz-primary); }
.card-value.status-approved { color: var(--rz-success); }
.card-value.status-closed { color: var(--rz-text-secondary-color); }

/* Pending Entries Alert */
.pending-entries-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: var(--ns-warning-bg);
    border: 1px solid var(--ns-warning-border);
    border-radius: 8px;
    color: var(--ns-warning-text);
    font-size: 0.9rem;
}

.pending-entries-alert .rzi {
    font-size: 1.25rem;
    color: var(--rz-warning);
}

.pending-entries-alert span {
    flex: 1;
}

.pending-entries-alert strong {
    color: var(--ns-warning-text);
}

/* Period Actions */
.period-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.period-actions .search-container {
    position: relative;
    width: 280px;
}

.period-actions .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rz-text-secondary-color);
    font-size: 1.25rem;
}

.period-actions .search-input {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.5rem;
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.period-actions .search-input:focus {
    outline: none;
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 3px var(--rz-primary-lighter);
}

/* Payroll Table */
.payroll-table-container {
    background: var(--rz-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--rz-border-color);
}

.payroll-table {
    width: 100%;
    border-collapse: collapse;
}

.payroll-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rz-text-secondary-color);
    background: var(--rz-base-200);
    border-bottom: 1px solid var(--rz-border-color);
}

.payroll-table th.text-right {
    text-align: right;
}

.payroll-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--rz-border-color);
    vertical-align: middle;
}

.payroll-table td.text-right {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.payroll-table td.income {
    color: var(--rz-success);
}

.payroll-table td.deduction {
    color: var(--rz-danger);
}

.payroll-table td.netpay {
    color: var(--rz-text-color);
    font-weight: 600;
}

.payroll-table tbody tr:hover {
    background: var(--rz-base-200);
}

.payroll-table tfoot td {
    padding: 1rem;
    background: var(--rz-base-200);
    border-top: 2px solid var(--rz-border-color);
}

.payroll-table .employee-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payroll-table .employee-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rz-primary-lighter);
    color: var(--rz-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.payroll-table .employee-info {
    display: flex;
    flex-direction: column;
}

.payroll-table .employee-name {
    font-weight: 500;
    color: var(--rz-text-color);
}

.payroll-table .employee-cedula {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
}

.payroll-table .status-badge {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.pending {
    background: var(--rz-base-200);
    color: var(--rz-text-secondary-color);
}

.status-badge.calculated {
    background: var(--rz-primary-lighter);
    color: var(--rz-primary);
}

.status-badge.adjusted {
    background: var(--ns-warning-bg);
    color: var(--ns-warning-text);
}

.status-badge.approved {
    background: var(--ns-success-bg);
    color: var(--rz-success);
}

.payroll-table .view-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    color: var(--rz-text-secondary-color);
    transition: background 0.2s, color 0.2s;
}

.payroll-table .view-btn:hover {
    background: var(--rz-primary-lighter);
    color: var(--rz-primary);
}

/* Empty States */
.empty-state,
.empty-state-large {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--rz-text-secondary-color);
}

.empty-state-large {
    padding: 5rem 2rem;
    background: var(--rz-surface);
    border-radius: 12px;
    border: 1px solid var(--rz-border-color);
}

.empty-state .empty-icon,
.empty-state-large .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-large h3 {
    margin: 0 0 0.5rem;
    color: var(--rz-text-color);
}

.empty-state .hint {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Loading State */
.loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* ============================================
   PAYROLL DETAIL SIDEBAR
   ============================================ */

/* Reset transforms on Radzen containers when overlay is visible */
.rz-body:has(.payroll-detail-overlay),
.rz-layout:has(.payroll-detail-overlay),
.main-content:has(.payroll-detail-overlay) {
    transform: none !important;
    perspective: none !important;
    filter: none !important;
    contain: none !important;
}

.payroll-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    justify-content: flex-end;
    isolation: isolate;
}

.payroll-detail-sidebar {
    width: 480px;
    max-width: 100%;
    background: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.payroll-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--rz-border-color);
    background: white;
    flex-shrink: 0;
    min-height: 60px;
}

.payroll-sidebar-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--rz-text-color);
}

.payroll-sidebar-header .close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    color: var(--rz-text-secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.payroll-sidebar-header .close-btn:hover {
    background: var(--rz-base-200);
    color: var(--rz-text-color);
}

.payroll-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.payroll-sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--rz-border-color);
    display: flex;
    justify-content: flex-end;
    background: var(--rz-surface);
    flex-shrink: 0;
}

/* Employee Header */
.employee-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.employee-avatar.large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--rz-primary-lighter);
    color: var(--rz-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.employee-header .employee-info h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.employee-header .employee-info p {
    margin: 0.25rem 0 0;
    color: var(--rz-text-secondary-color);
    font-size: 0.875rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--rz-base-200);
    border-radius: 8px;
}

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

.info-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rz-text-secondary-color);
}

.info-item .value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rz-text-color);
}

/* Days Grid */
.days-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.days-item {
    text-align: center;
    padding: 0.75rem;
    background: var(--rz-base-200);
    border-radius: 8px;
}

.days-item .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--rz-text-secondary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.days-item .value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--rz-text-color);
}

.days-item .value.negative {
    color: var(--rz-danger);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    color: var(--rz-text-secondary-color);
    font-size: 0.875rem;
}

/* Sections */
.section {
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--rz-border-color);
}

.section-title.income {
    color: var(--rz-success);
}

.section-title.deduction {
    color: var(--rz-danger);
}

/* Concept List */
.concept-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.concept-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.concept-item .amount {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.concept-item .amount.negative {
    color: var(--rz-danger);
}

.concept-item.total {
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--rz-border-color);
    font-weight: 600;
}

/* Net Pay Box */
.net-pay-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--rz-primary), var(--rz-primary-dark));
    color: white;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.net-pay-box .label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.net-pay-box .amount {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

/* Provisions Section */
.provisions-section {
    background: var(--rz-base-200);
    border-radius: 8px;
    padding: 0;
}

.provisions-section summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--rz-text-secondary-color);
}

.provisions-section summary .total {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.provisions-section[open] summary {
    border-bottom: 1px solid var(--rz-border-color);
}

.provisions-section .concept-list {
    padding: 0.75rem 1rem;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 3rem;
    color: var(--rz-text-secondary-color);
}

.error-state .rz-icon {
    font-size: 2.5rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

/* ============================================
   DIALOGS
   ============================================ */

.period-dialog,
.reopen-dialog {
    padding: 1rem 0;
}

.period-dialog .form-group,
.reopen-dialog .form-group {
    margin-bottom: 1rem;
}

.period-dialog label,
.reopen-dialog label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rz-text-color);
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rz-border-color);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--ns-danger-bg);
    color: var(--rz-danger);
    border-radius: 6px;
    font-size: 0.875rem;
}

/* ============================================
   NOVEDADES DIALOG
   ============================================ */

.novedades-dialog {
    min-height: 400px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.novedades-dialog .loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.novedades-dialog .concept-selector {
    margin-bottom: 1rem;
}

.novedades-dialog .concept-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rz-text-color);
}

.novedades-dialog .concept-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.novedades-dialog .concept-type {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.novedades-dialog .concept-type.income {
    background: var(--ns-success-bg);
    color: var(--rz-success);
}

.novedades-dialog .concept-type.deduction {
    background: var(--ns-danger-bg);
    color: var(--rz-danger);
}

.novedades-dialog .concept-name {
    flex: 1;
}

.novedades-dialog .concept-code {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
    font-family: 'JetBrains Mono', monospace;
}

.novedades-dialog .concept-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--rz-base-200);
    border-radius: 8px;
}

.novedades-dialog .concept-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.novedades-dialog .concept-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.novedades-dialog .concept-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 100px;
    text-transform: uppercase;
}

.novedades-dialog .concept-badge.income {
    background: var(--ns-success-bg);
    color: var(--rz-success);
}

.novedades-dialog .concept-badge.deduction {
    background: var(--ns-danger-bg);
    color: var(--rz-danger);
}

.novedades-dialog .filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.novedades-dialog .search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--rz-border-color);
    border-radius: 6px;
    width: 250px;
}

.novedades-dialog .search-box input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 0.875rem;
}

.novedades-dialog .stats {
    font-size: 0.8rem;
    color: var(--rz-text-secondary-color);
}

.novedades-dialog .stats .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.novedades-dialog .employees-grid {
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
}

.novedades-dialog .employees-grid table {
    width: 100%;
    border-collapse: collapse;
}

.novedades-dialog .employees-grid thead {
    position: sticky;
    top: 0;
    background: var(--rz-base-200);
    z-index: 1;
}

.novedades-dialog .employees-grid th {
    padding: 0.625rem 0.75rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--rz-text-secondary-color);
    border-bottom: 1px solid var(--rz-border-color);
}

.novedades-dialog .employees-grid td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--rz-border-color);
    vertical-align: middle;
}

.novedades-dialog .employees-grid tr:hover {
    background: var(--rz-base-100);
}

.novedades-dialog .employees-grid tr.has-value {
    background: rgba(var(--rz-primary-rgb), 0.05);
}

.novedades-dialog .employees-grid tr.has-value:hover {
    background: rgba(var(--rz-primary-rgb), 0.1);
}

.novedades-dialog .employee-cell {
    display: flex;
    flex-direction: column;
}

.novedades-dialog .employee-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.novedades-dialog .employee-cedula {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
}

.novedades-dialog .col-employee {
    min-width: 180px;
}

.novedades-dialog .col-department {
    min-width: 120px;
    font-size: 0.8rem;
}

.novedades-dialog .col-salary {
    min-width: 100px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.novedades-dialog .col-hours,
.novedades-dialog .col-days,
.novedades-dialog .col-amount {
    min-width: 80px;
}

.novedades-dialog .col-notes {
    min-width: 100px;
}

.novedades-dialog .notes-input {
    width: 100%;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--rz-border-color);
    border-radius: 4px;
    font-size: 0.8rem;
}

.novedades-dialog .notes-input:focus {
    outline: none;
    border-color: var(--rz-primary);
}

.novedades-dialog .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--rz-text-secondary-color);
    text-align: center;
}

.novedades-dialog .empty-state .rz-icon {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.novedades-dialog .error-message {
    margin-top: 1rem;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 0 0;
    margin-top: 1rem;
    border-top: 1px solid var(--rz-border-color);
}

/* ============================================
   NOVEDADES DIALOG V2 - Tabs + Cards
   ============================================ */

.novedades-dialog-v2 {
    min-height: 500px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

/* Tabs */
.novedades-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rz-border-color);
}

.novedades-tabs .tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--rz-base-200);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--rz-text-secondary-color);
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

.novedades-tabs .tab-btn:hover {
    background: var(--rz-base-300);
    color: var(--rz-text-color);
}

.novedades-tabs .tab-btn.active {
    background: var(--rz-primary-lighter);
    border-color: var(--rz-primary);
    color: var(--rz-primary);
}

.novedades-tabs .tab-btn .rzi {
    font-size: 1.25rem;
}

.novedades-tabs .tab-count {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: rgba(0,0,0,0.1);
    border-radius: 100px;
    margin-left: 0.25rem;
}

.novedades-tabs .tab-btn.active .tab-count {
    background: var(--rz-primary);
    color: white;
}

/* Concepts Container */
.concepts-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Concept Card */
.concept-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--rz-surface);
    border: 1px solid var(--rz-border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.concept-card:hover {
    border-color: var(--rz-primary-lighter);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.concept-card.expanded {
    border-color: var(--rz-primary);
    background: var(--rz-primary-lighter);
}

.concept-card.hours-card {
    background: linear-gradient(135deg, var(--ns-hours-bg) 0%, var(--ns-hours-bg-light) 100%);
    border-color: var(--ns-hours-border);
}

.concept-card.hours-card:hover {
    border-color: var(--ns-hours-border-hover);
    box-shadow: 0 2px 12px var(--ns-hours-shadow);
}

.concept-card .card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.concept-card .card-icon.income {
    background: var(--ns-success-bg);
    color: var(--rz-success);
}

.concept-card .card-icon.deduction {
    background: var(--ns-danger-bg);
    color: var(--rz-danger);
}

.concept-card.hours-card .card-icon {
    background: var(--ns-hours-icon-bg);
    color: var(--ns-hours-text);
}

.concept-card .card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.concept-card .card-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--rz-text-color);
}

.concept-card .card-subtitle {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
}

.concept-card .card-stats {
    text-align: center;
    min-width: 60px;
}

.concept-card .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rz-text-color);
}

.concept-card .stat-label {
    font-size: 0.65rem;
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
}

.concept-card .card-arrow {
    color: var(--rz-text-secondary-color);
    font-size: 1.5rem;
}

/* Concept Expanded - Employee Grid */
.concept-expanded {
    padding: 1rem;
    margin: -0.25rem 0 0.5rem;
    background: var(--rz-base-100);
    border: 1px solid var(--rz-border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.concept-expanded .employee-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.concept-expanded .search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--rz-surface);
    border: 1px solid var(--rz-border-color);
    border-radius: 6px;
    width: 220px;
}

.concept-expanded .search-box input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 0.85rem;
}

.concept-expanded .search-box .rzi {
    color: var(--rz-text-secondary-color);
}

.concept-expanded .grid-stats {
    font-size: 0.8rem;
    color: var(--rz-text-secondary-color);
}

.concept-expanded .employee-grid {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
    background: var(--rz-surface);
}

.concept-expanded .employee-grid table {
    width: 100%;
    border-collapse: collapse;
}

.concept-expanded .employee-grid thead {
    position: sticky;
    top: 0;
    background: var(--rz-base-200);
    z-index: 1;
}

.concept-expanded .employee-grid th {
    padding: 0.625rem 0.75rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--rz-text-secondary-color);
    border-bottom: 1px solid var(--rz-border-color);
}

.concept-expanded .employee-grid td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--rz-border-color);
    vertical-align: middle;
    font-size: 0.85rem;
}

.concept-expanded .employee-grid tr:hover {
    background: var(--rz-base-100);
}

.concept-expanded .employee-grid tr.has-value {
    background: rgba(var(--rz-success-rgb), 0.08);
}

.concept-expanded .employee-cell {
    display: flex;
    flex-direction: column;
}

.concept-expanded .employee-name {
    font-weight: 500;
}

.concept-expanded .employee-cedula {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
}

.concept-expanded .col-amount {
    width: 120px;
}

.concept-expanded .col-notes {
    width: 150px;
}

.concept-expanded .notes-input {
    width: 100%;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--rz-border-color);
    border-radius: 4px;
    font-size: 0.8rem;
}

.concept-expanded .notes-input:focus {
    outline: none;
    border-color: var(--rz-primary);
}

.concept-expanded .grid-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rz-border-color);
}

/* Empty concepts state */
.empty-concepts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--rz-text-secondary-color);
    text-align: center;
}

.empty-concepts .rzi {
    font-size: 3rem;
    opacity: 0.4;
    margin-bottom: 1rem;
}

/* ============================================
   HORAS EXTRA DIALOG
   ============================================ */

.horas-extra-dialog {
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.horas-extra-dialog .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 1rem;
    color: var(--rz-text-secondary-color);
}

/* Header */
.horas-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rz-border-color);
}

.horas-header .header-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--rz-text-secondary-color);
    max-width: 450px;
}

.horas-header .no-attendance-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--rz-text-tertiary-color);
    font-style: italic;
}

/* Summary Cards */
.horas-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.horas-summary .summary-card {
    padding: 0.875rem;
    background: var(--rz-base-100);
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--rz-border-color);
}

.horas-summary .summary-card.total {
    background: linear-gradient(135deg, var(--rz-primary-lighter) 0%, var(--ns-info-bg) 100%);
    border-color: var(--rz-primary);
}

.horas-summary .summary-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rz-text-secondary-color);
    margin-bottom: 0.25rem;
}

.horas-summary .summary-card.total .summary-label {
    color: var(--rz-primary);
}

.horas-summary .summary-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rz-text-color);
}

.horas-summary .summary-amount {
    display: block;
    font-size: 0.8rem;
    color: var(--rz-success);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 0.125rem;
}

/* Filter */
.horas-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.horas-filter .search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--rz-surface);
    border: 1px solid var(--rz-border-color);
    border-radius: 6px;
    width: 250px;
}

.horas-filter .search-box input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 0.85rem;
}

.horas-filter .search-box .rzi {
    color: var(--rz-text-secondary-color);
}

.horas-filter .filter-stats {
    font-size: 0.8rem;
    color: var(--rz-text-secondary-color);
}

.horas-filter .filter-stats .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* Table */
.horas-table-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--rz-border-color);
    border-radius: 10px;
    background: var(--rz-surface);
}

.horas-table {
    width: 100%;
    border-collapse: collapse;
}

.horas-table thead {
    position: sticky;
    top: 0;
    background: var(--rz-base-200);
    z-index: 1;
}

.horas-table th {
    padding: 0.75rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rz-text-secondary-color);
    border-bottom: 1px solid var(--rz-border-color);
}

.horas-table th .col-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.horas-table th .rate-hint {
    font-size: 0.65rem;
    color: var(--rz-text-tertiary-color);
    font-weight: 400;
}

.horas-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--rz-border-color);
    vertical-align: middle;
}

.horas-table tbody tr:hover {
    background: var(--rz-base-100);
}

.horas-table tbody tr.has-value {
    background: rgba(var(--rz-success-rgb), 0.08);
}

.horas-table .col-employee {
    min-width: 180px;
}

.horas-table .employee-cell {
    display: flex;
    flex-direction: column;
}

.horas-table .employee-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.horas-table .employee-cedula {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
}

.horas-table .col-department {
    font-size: 0.8rem;
    color: var(--rz-text-secondary-color);
}

.horas-table .col-salary {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-align: right;
}

.horas-table .col-hours {
    width: 90px;
    text-align: center;
}

.horas-table .col-total {
    width: 100px;
    text-align: right;
}

.horas-table .total-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--rz-success);
}

/* ============================================
   NOVEDADES PAGE (Full Page)
   ============================================ */

.novedades-page {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

/* Page Header */
.novedades-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rz-border-color);
}

.novedades-page-header .header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.novedades-page-header .back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--rz-base-200);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: var(--rz-text-secondary-color);
    transition: all 0.2s ease;
}

.novedades-page-header .back-btn:hover {
    background: var(--rz-primary-lighter);
    color: var(--rz-primary);
}

.novedades-page-header .back-btn .rzi {
    font-size: 1.5rem;
}

.novedades-page-header .header-title {
    display: flex;
    flex-direction: column;
}

.novedades-page-header .header-title h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--rz-text-color);
}

.novedades-page-header .header-title .period-name {
    font-size: 0.875rem;
    color: var(--rz-text-secondary-color);
}

.novedades-page-header .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.novedades-page-header .period-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.novedades-page-header .info-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--rz-text-secondary-color);
}

.novedades-page-header .info-item .rzi {
    font-size: 1.125rem;
}

/* Tabs in page */
.novedades-page .novedades-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.novedades-page .novedades-tabs .tab-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.5rem;
    background: var(--rz-surface);
    border: 2px solid var(--rz-border-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--rz-text-secondary-color);
    transition: all 0.2s ease;
    min-width: 180px;
}

.novedades-page .novedades-tabs .tab-btn:hover {
    background: var(--rz-base-100);
    border-color: var(--rz-primary-lighter);
    color: var(--rz-text-color);
}

.novedades-page .novedades-tabs .tab-btn.active {
    background: var(--rz-primary-lighter);
    border-color: var(--rz-primary);
    color: var(--rz-primary);
}

.novedades-page .novedades-tabs .tab-btn .rzi {
    font-size: 1.5rem;
}

.novedades-page .novedades-tabs .tab-count {
    font-size: 0.8rem;
    padding: 0.25rem 0.625rem;
    background: rgba(0,0,0,0.08);
    border-radius: 100px;
    margin-left: auto;
}

.novedades-page .novedades-tabs .tab-btn.active .tab-count {
    background: var(--rz-primary);
    color: white;
}

/* Concepts Grid - Full page version */
.novedades-page .concepts-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.novedades-page .concept-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--rz-surface);
    border: 1px solid var(--rz-border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.novedades-page .concept-card:hover {
    border-color: var(--rz-primary-lighter);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.novedades-page .concept-card.expanded {
    border-color: var(--rz-primary);
    background: var(--rz-primary-lighter);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.novedades-page .concept-card.hours-card {
    background: linear-gradient(135deg, var(--ns-hours-bg) 0%, var(--ns-hours-bg-light) 100%);
    border-color: var(--ns-hours-border);
}

.novedades-page .concept-card.hours-card:hover {
    border-color: var(--ns-hours-border-hover);
    box-shadow: 0 4px 16px var(--ns-hours-shadow);
}

.novedades-page .concept-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.novedades-page .concept-card .card-icon.income {
    background: var(--ns-success-bg);
    color: var(--rz-success);
}

.novedades-page .concept-card .card-icon.deduction {
    background: var(--ns-danger-bg);
    color: var(--rz-danger);
}

.novedades-page .concept-card.hours-card .card-icon {
    background: var(--ns-hours-icon-bg);
    color: var(--ns-hours-text);
}

.novedades-page .concept-card .card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.novedades-page .concept-card .card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--rz-text-color);
}

.novedades-page .concept-card .card-subtitle {
    font-size: 0.8rem;
    color: var(--rz-text-secondary-color);
    font-family: 'JetBrains Mono', monospace;
}

.novedades-page .concept-card .card-stats {
    text-align: center;
    min-width: 80px;
}

.novedades-page .concept-card .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rz-text-color);
}

.novedades-page .concept-card .stat-label {
    font-size: 0.7rem;
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.novedades-page .concept-card .card-arrow {
    color: var(--rz-text-tertiary-color);
    font-size: 1.75rem;
}

/* Expanded Panel */
.novedades-page .concept-expanded-panel {
    background: var(--rz-surface);
    border: 1px solid var(--rz-primary);
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    padding: 1.5rem;
}

/* Employee Grid Section */
.employee-grid-section {
    display: flex;
    flex-direction: column;
}

.employee-grid-section .grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.employee-grid-section .search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--rz-base-100);
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
    width: 280px;
}

.employee-grid-section .search-box input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 0.9rem;
}

.employee-grid-section .search-box .rzi {
    color: var(--rz-text-secondary-color);
    font-size: 1.25rem;
}

.employee-grid-section .grid-stats {
    font-size: 0.875rem;
    color: var(--rz-text-secondary-color);
}

.employee-grid-section .grid-stats .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.employee-grid-section .grid-stats .highlight {
    color: var(--rz-primary);
    font-weight: 500;
}

/* Employee Table */
.employee-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--rz-border-color);
    border-radius: 10px;
    background: var(--rz-surface);
}

.employee-table {
    width: 100%;
    border-collapse: collapse;
}

.employee-table thead {
    position: sticky;
    top: 0;
    background: var(--rz-base-200);
    z-index: 1;
}

.employee-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rz-text-secondary-color);
    border-bottom: 1px solid var(--rz-border-color);
}

.employee-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rz-border-color);
    vertical-align: middle;
}

.employee-table tbody tr:hover {
    background: var(--rz-base-100);
}

.employee-table tbody tr.has-value {
    background: rgba(var(--rz-success-rgb), 0.08);
}

.employee-table tbody tr.has-value:hover {
    background: rgba(var(--rz-success-rgb), 0.12);
}

.employee-table .col-employee {
    min-width: 200px;
}

.employee-table .employee-cell {
    display: flex;
    flex-direction: column;
}

.employee-table .employee-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.employee-table .employee-cedula {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
}

.employee-table .col-department {
    font-size: 0.85rem;
    color: var(--rz-text-secondary-color);
}

.employee-table .col-salary {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-align: right;
}

.employee-table .col-amount {
    width: 140px;
}

.employee-table .col-notes {
    min-width: 180px;
}

.employee-table .notes-input {
    width: 100%;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--rz-border-color);
    border-radius: 6px;
    font-size: 0.85rem;
}

.employee-table .notes-input:focus {
    outline: none;
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 2px var(--rz-primary-lighter);
}

/* Grid Footer */
.employee-grid-section .grid-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rz-border-color);
}

/* Empty Concepts */
.novedades-page .empty-concepts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--rz-text-secondary-color);
    text-align: center;
    background: var(--rz-base-100);
    border-radius: 12px;
    border: 1px dashed var(--rz-border-color);
}

.novedades-page .empty-concepts .rzi {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.novedades-page .empty-concepts p {
    font-size: 1rem;
    margin: 0;
}

/* ============================================
   HORAS EXTRA PAGE
   ============================================ */

.horas-page {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

/* Page Header */
.horas-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rz-border-color);
}

.horas-page-header .header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.horas-page-header .back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--rz-gray-200);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: var(--rz-gray-600);
    transition: all 0.2s ease;
}

.horas-page-header .back-btn:hover {
    background: var(--rz-primary-lighter);
    color: var(--rz-primary);
}

.horas-page-header .header-title h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.horas-page-header .period-name {
    font-size: 0.875rem;
    color: var(--rz-gray-500);
}

.horas-page-header .period-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.horas-page-header .info-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--rz-gray-500);
}

/* Summary Cards */
.horas-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .horas-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.horas-summary-cards .summary-card {
    background: white;
    border: 1px solid var(--rz-gray-200);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.horas-summary-cards .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--ns-info-bg);
    color: var(--rz-primary);
}

.horas-summary-cards .summary-card.he25 .card-icon {
    background: var(--ns-hours-bg-light);
    color: var(--ns-hours-text);
}

.horas-summary-cards .summary-card.he50 .card-icon {
    background: var(--ns-warning-bg);
    color: var(--ns-accent-text);
}

.horas-summary-cards .summary-card.he100 .card-icon {
    background: var(--ns-danger-bg);
    color: var(--rz-danger);
}

.horas-summary-cards .card-content {
    display: flex;
    flex-direction: column;
}

.horas-summary-cards .card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ns-heading);
}

.horas-summary-cards .card-label {
    font-size: 0.75rem;
    color: var(--rz-gray-500);
}

/* Filter */
.horas-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.horas-filter .search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--rz-gray-100);
    border: 1px solid var(--rz-gray-200);
    border-radius: 8px;
    width: 300px;
}

.horas-filter .search-box input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 0.9rem;
}

.horas-filter .search-box .rzi {
    color: var(--rz-gray-400);
}

.horas-filter .filter-info {
    font-size: 0.875rem;
    color: var(--rz-gray-500);
}

/* Attendance Table */
.attendance-table-container {
    background: var(--rz-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--rz-border-color);
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
}

.attendance-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rz-text-secondary-color);
    background: var(--rz-base-200);
    border-bottom: 1px solid var(--rz-border-color);
}

.attendance-table th.text-right {
    text-align: right;
}

.attendance-table td {
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--rz-border-color);
    vertical-align: middle;
    font-size: 0.875rem;
}

.attendance-table td.text-right {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
}

.attendance-table .employee-row {
    cursor: pointer;
    transition: background 0.15s;
}

.attendance-table .employee-row:hover {
    background: var(--rz-base-100);
}

.attendance-table .employee-row.expanded {
    background: var(--rz-primary-lighter);
}

.attendance-table .employee-row.has-hours {
    background: linear-gradient(90deg, var(--ns-hours-bg) 0%, transparent 50%);
}

.attendance-table .employee-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.attendance-table .employee-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rz-primary-lighter);
    color: var(--rz-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.attendance-table .employee-info {
    display: flex;
    flex-direction: column;
}

.attendance-table .employee-name {
    font-weight: 500;
    color: var(--rz-text-color);
}

.attendance-table .employee-cedula {
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
}

.attendance-table .hours-col {
    font-weight: 500;
}

.attendance-table .hours-col.he25 {
    color: var(--ns-hours-text);
}

.attendance-table .hours-col.he50 {
    color: var(--ns-accent-text);
}

.attendance-table .hours-col.he100 {
    color: var(--rz-danger);
}

.attendance-table .total-col {
    font-weight: 600;
    color: var(--rz-success);
}

.attendance-table .action-col {
    width: 40px;
    text-align: center;
    color: var(--rz-text-secondary-color);
}

.attendance-table .expanded-row td {
    padding: 0;
    background: var(--rz-gray-50);
}

/* Legacy: Employee List (kept for compatibility) */
.employees-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* Employee Card - Compact (legacy) */
.employee-card {
    background: white;
    border: 1px solid var(--rz-gray-200);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.employee-card:hover {
    border-color: var(--rz-gray-300);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.employee-card.expanded {
    border-color: var(--rz-primary);
}

.employee-card.has-hours .employee-header {
    background: linear-gradient(135deg, var(--ns-hours-bg) 0%, white 100%);
}

.employee-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    gap: 0.75rem;
}

.employee-header .employee-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.employee-header .employee-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rz-primary-lighter);
    color: var(--rz-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.employee-header .employee-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.employee-header .employee-name {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-header .employee-meta {
    font-size: 0.75rem;
    color: var(--rz-gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-header .employee-schedule {
    display: none; /* Hide to save space */
}

.employee-header .employee-summary {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.employee-header .hours-chip {
    padding: 0.25rem 0.5rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

.employee-header .hours-chip.he25 {
    background: var(--ns-hours-bg-light);
    color: var(--ns-hours-text);
}

.employee-header .hours-chip.he50 {
    background: var(--ns-warning-bg);
    color: var(--ns-accent-text);
}

.employee-header .hours-chip.he100 {
    background: var(--ns-danger-bg);
    color: var(--rz-danger);
}

.employee-header .hours-total {
    padding-left: 0.5rem;
    border-left: 1px solid var(--rz-gray-200);
}

.employee-header .hours-total .amount {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--rz-success);
}

.employee-header .expand-icon {
    color: var(--rz-gray-400);
    font-size: 1.25rem;
}

/* Employee Days (Expanded) */
.employee-days {
    border-top: 1px solid var(--rz-gray-200);
    background: var(--rz-gray-50);
    padding: 1rem 1.25rem;
}

.days-header {
    display: grid;
    grid-template-columns: 90px 100px 85px 85px 70px 70px 70px 50px 90px;
    gap: 0.5rem;
    padding: 0.75rem 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rz-gray-500);
    border-bottom: 1px solid var(--rz-gray-200);
}

.days-body {
    max-height: 400px;
    overflow-y: auto;
}

.day-row {
    display: grid;
    grid-template-columns: 90px 100px 85px 85px 70px 70px 70px 50px 90px;
    gap: 0.5rem;
    padding: 0.75rem 0;
    align-items: center;
    border-bottom: 1px solid var(--rz-gray-100);
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.day-row:last-child {
    border-bottom: none;
}

.day-row.has-overtime {
    background: rgba(var(--rz-success-rgb), 0.06);
}

.day-row.has-changes {
    background: rgba(var(--rz-warning-rgb), 0.12);
    border-left: 3px solid var(--rz-warning);
    padding-left: calc(0.75rem - 3px);
}

.day-row.is-absent {
    background: rgba(var(--rz-danger-rgb), 0.08);
}

.day-row.is-absent.has-changes {
    background: rgba(var(--rz-danger-rgb), 0.12);
    border-left-color: var(--rz-danger);
}

.day-row.is-holiday {
    background: rgba(255, 193, 7, 0.15);
    border-left: 3px solid #ffc107;
    padding-left: calc(0.75rem - 3px);
}

.day-row.is-holiday .date-day {
    color: #d4a500;
    font-weight: 700;
}

.day-row .holiday-badge {
    font-size: 0.7rem;
    margin-left: 2px;
}

.day-row .col-absent {
    display: flex;
    justify-content: center;
    align-items: center;
}

.day-row .col-date {
    display: flex;
    flex-direction: column;
}

.day-row .date-day {
    font-weight: 600;
    text-transform: capitalize;
    font-size: 0.75rem;
    color: var(--rz-gray-500);
}

.day-row .date-full {
    font-weight: 500;
}

.day-row .col-schedule {
    display: flex;
    flex-direction: column;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.day-row .col-schedule .schedule-time {
    font-weight: 500;
}

.day-row .col-schedule .schedule-break {
    font-size: 0.65rem;
    color: var(--rz-gray-400);
}

.day-row .col-time {
    display: flex;
    align-items: center;
}

.day-row .time-input {
    width: 100%;
    padding: 0.5rem 0.5rem;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid var(--rz-gray-300);
    border-radius: 4px;
    background: var(--rz-white);
    color: var(--rz-text-color);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.day-row .time-input:focus {
    outline: none;
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 2px rgba(var(--rz-primary-rgb), 0.2);
}

.day-row .time-input::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}

.day-row .time-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.day-row .no-schedule {
    color: var(--rz-gray-400);
    font-style: italic;
}

.day-row .col-amount {
    font-weight: 600;
    color: var(--rz-success);
    text-align: right;
}

.days-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--rz-gray-200);
}

.no-records {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--rz-gray-400);
    text-align: center;
    gap: 0.5rem;
}

.no-records .rzi {
    font-size: 2rem;
    opacity: 0.5;
}

/* Empty State */
.horas-page .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--rz-gray-500);
    text-align: center;
    background: var(--rz-gray-100);
    border-radius: 12px;
    border: 1px dashed var(--rz-gray-300);
}

.horas-page .empty-state .rzi {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.horas-page .empty-state h3 {
    margin: 0 0 0.5rem;
    color: var(--ns-heading);
}

.horas-page .empty-state p {
    margin: 0;
}

.horas-page .empty-state .hint {
    font-size: 0.875rem;
    color: var(--rz-gray-400);
    margin-top: 0.5rem;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.draft {
    background: var(--rz-gray-200);
    color: var(--rz-gray-600);
}

.status-badge.calculated {
    background: var(--ns-info-bg);
    color: var(--rz-primary);
}

.status-badge.approved {
    background: var(--ns-success-bg);
    color: var(--rz-success);
}

.status-badge.closed {
    background: var(--rz-gray-200);
    color: var(--rz-gray-600);
}

/* ============================================
   ABSENCE COLUMNS FOR HORAS EXTRA
   ============================================ */

/* Update grid for new columns (with duration column) */
.days-header {
    grid-template-columns: 90px 100px 100px 100px 130px 85px 90px 80px 80px 80px 90px;
}

.day-row {
    grid-template-columns: 90px 100px 100px 100px 130px 85px 90px 80px 80px 80px 90px;
}

/* Absence dropdown column */
.col-absence {
    min-width: 130px;
}

/* Duration dropdown column */
.col-duration {
    min-width: 85px;
}

.duration-select {
    width: 100%;
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid var(--rz-gray-300);
    border-radius: 4px;
    background: var(--rz-white);
    color: var(--rz-text-color);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.duration-select:focus {
    outline: none;
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 2px rgba(var(--rz-primary-rgb), 0.2);
}

.duration-select:disabled {
    background: var(--rz-gray-100);
    cursor: not-allowed;
    opacity: 0.7;
}

.duration-empty {
    color: var(--rz-gray-400);
    font-size: 0.8rem;
}

.absence-select {
    width: 100%;
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid var(--rz-gray-300);
    border-radius: 4px;
    background: var(--rz-white);
    color: var(--rz-text-color);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.absence-select:focus {
    outline: none;
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 2px rgba(var(--rz-primary-rgb), 0.2);
}

.absence-select.has-absence {
    background: rgba(var(--rz-danger-rgb), 0.1);
    border-color: var(--rz-danger);
}

.absence-select:disabled {
    background: var(--rz-gray-100);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Approved badge */
.approved-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, var(--ns-success-bg), rgba(var(--rz-success-rgb), 0.15));
    color: var(--rz-success);
    border: 1px solid rgba(var(--rz-success-rgb), 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.approved-badge::before {
    content: '\2713';
    margin-right: 0.25rem;
    font-size: 0.65rem;
}

/* Notes column */
.col-notes {
    min-width: 100px;
}

.day-row .notes-input {
    width: 100%;
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid var(--rz-gray-300);
    border-radius: 4px;
    background: var(--rz-white);
    color: var(--rz-text-color);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.day-row .notes-input:focus {
    outline: none;
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 2px rgba(var(--rz-primary-rgb), 0.2);
}

.day-row .notes-input:disabled {
    background: var(--rz-gray-100);
    cursor: not-allowed;
}

.day-row .notes-input::placeholder {
    color: var(--rz-gray-400);
}

/* ============================================
   PERIODOS PAGE
   ============================================ */

.periodos-page {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.periodos-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.periodos-page .page-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--rz-text-color);
}

.periodos-page .page-subtitle {
    font-size: 0.875rem;
    color: var(--rz-text-secondary-color);
    margin: 0.25rem 0 0 0;
}

.periodos-page .filters-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--rz-base-100);
    border-radius: 8px;
}

.periodos-page .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.periodos-page .filter-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
}

.periods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

.period-card {
    background: white;
    border: 1px solid var(--rz-base-300);
    border-radius: 12px;
    padding: 1.25rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.period-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--rz-primary-light);
}

.period-card.approved {
    border-left: 4px solid var(--rz-success);
}

.period-card.closed {
    border-left: 4px solid var(--rz-base-500);
}

.period-card.calculated {
    border-left: 4px solid var(--rz-info);
}

.period-card.draft {
    border-left: 4px solid var(--rz-warning);
}

.period-card .period-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.period-card .period-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.period-card .period-title .rzi {
    color: var(--rz-primary);
}

.period-card .period-dates {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rz-base-200);
}

.period-card .date-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.period-card .date-item .label {
    color: var(--rz-text-secondary-color);
}

.period-card .period-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.period-card .stat {
    text-align: center;
    padding: 0.5rem;
    background: var(--rz-base-100);
    border-radius: 6px;
}

.period-card .stat.highlight {
    background: var(--rz-primary-lighter);
}

.period-card .stat-value {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
}

.period-card .stat-value.income {
    color: var(--rz-success);
}

.period-card .stat-value.deduction {
    color: var(--rz-danger);
}

.period-card .stat-label {
    display: block;
    font-size: 0.625rem;
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
}

.period-card .period-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.period-card .period-audit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.period-card .audit-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
}

.period-card .audit-item .rzi {
    font-size: 0.875rem;
}

.period-card .period-actions {
    display: flex;
    gap: 0.25rem;
}

.periodos-page .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.periodos-page .empty-icon {
    font-size: 4rem;
    color: var(--rz-base-400);
    margin-bottom: 1rem;
}

.periodos-page .empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: var(--rz-text-color);
}

.periodos-page .empty-state p {
    margin: 0 0 1rem 0;
    color: var(--rz-text-secondary-color);
}

/* ============================================
   HORAS EXTRA - DAY GROUPS WITH SEGMENTS
   ============================================ */

/* Day Group Container */
.day-group {
    background: var(--rz-surface);
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.day-group.has-overtime {
    border-left: 3px solid var(--rz-success);
}

.day-group.has-changes {
    border-left: 3px solid var(--rz-warning);
}

.day-group.is-absent {
    background: rgba(var(--rz-danger-rgb), 0.04);
    border-left: 3px solid var(--rz-danger);
}

.day-group.is-holiday {
    background: rgba(255, 193, 7, 0.08);
    border-left: 3px solid #ffc107;
}

/* Day Header */
.day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--rz-base-100);
    border-bottom: 1px solid var(--rz-border-color);
    gap: 1rem;
    flex-wrap: wrap;
}

.day-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
}

.day-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.day-date .date-day {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--rz-text-secondary-color);
    width: 32px;
}

.day-date .date-full {
    font-weight: 500;
    font-size: 0.9rem;
}

.day-date .holiday-badge {
    padding: 0.125rem 0.5rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    color: #d48800;
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.day-schedule {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--rz-text-secondary-color);
}

.day-schedule .schedule-time {
    font-weight: 500;
}

.day-schedule .schedule-break {
    font-size: 0.7rem;
    color: var(--rz-text-tertiary-color);
}

/* Day Header Center - Absence Controls */
.day-header-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.day-header-center .absence-select {
    width: auto;
    min-width: 140px;
    padding: 0.375rem 0.625rem;
    font-size: 0.8rem;
}

.day-header-center .duration-select {
    width: auto;
    min-width: 100px;
    padding: 0.375rem 0.625rem;
    font-size: 0.8rem;
}

.day-header-center .notes-input {
    width: 120px;
    padding: 0.375rem 0.625rem;
    font-size: 0.8rem;
    border: 1px solid var(--rz-border-color);
    border-radius: 4px;
}

.day-header-center .notes-input:focus {
    outline: none;
    border-color: var(--rz-primary);
}

/* Day Header Right - Totals */
.day-header-right {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.day-total-label {
    font-size: 0.7rem;
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
    margin-right: 0.25rem;
}

.day-total-hours {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    min-width: 40px;
    text-align: center;
}

.day-total-hours.he25 {
    background: var(--ns-hours-bg-light);
    color: var(--ns-hours-text);
}

.day-total-hours.he50 {
    background: var(--ns-warning-bg);
    color: var(--ns-accent-text);
}

.day-total-hours.he100 {
    background: var(--ns-danger-bg);
    color: var(--rz-danger);
}

.day-total-amount {
    padding: 0.25rem 0.625rem;
    background: var(--ns-success-bg);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rz-success);
    font-family: 'JetBrains Mono', monospace;
    margin-left: 0.25rem;
}

/* Segments Container */
.segments-container {
    padding: 0.5rem 1rem 0.75rem;
}

.segments-header {
    display: grid;
    grid-template-columns: 40px 100px 100px 90px 90px 90px;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rz-text-secondary-color);
    border-bottom: 1px solid var(--rz-border-color);
}

.segment-row {
    display: grid;
    grid-template-columns: 40px 100px 100px 90px 90px 90px;
    gap: 0.5rem;
    padding: 0.5rem 0;
    align-items: center;
    border-bottom: 1px solid var(--rz-base-200);
}

.segment-row:last-child {
    border-bottom: none;
}

.segment-row.has-overtime {
    background: rgba(var(--rz-success-rgb), 0.04);
}

.segment-row.has-changes {
    background: rgba(var(--rz-warning-rgb), 0.08);
}

.segment-row .col-segment {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rz-text-secondary-color);
    text-align: center;
}

.segment-row .col-time {
    display: flex;
    align-items: center;
}

.segment-row .time-input {
    width: 100%;
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid var(--rz-border-color);
    border-radius: 4px;
    background: var(--rz-surface);
}

.segment-row .time-input:focus {
    outline: none;
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 2px rgba(var(--rz-primary-rgb), 0.15);
}

.segment-row .col-hours {
    display: flex;
    justify-content: center;
}

/* Approved badge in header */
.day-header-center .approved-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

/* Segments - actions column */
.segments-header {
    grid-template-columns: 40px 100px 100px 90px 90px 90px 40px;
}

.segment-row {
    grid-template-columns: 40px 100px 100px 90px 90px 90px 40px;
}

.segment-row .col-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.remove-segment-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--rz-text-tertiary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.remove-segment-btn:hover {
    background: var(--ns-danger-bg);
    color: var(--rz-danger);
}

.remove-segment-btn .rzi {
    font-size: 1rem;
}

/* Add segment row */
.add-segment-row {
    padding: 0.5rem 0;
    display: flex;
    justify-content: flex-start;
}

.add-segment-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px dashed var(--rz-border-color);
    border-radius: 6px;
    color: var(--rz-text-secondary-color);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}

.add-segment-btn:hover {
    background: var(--rz-primary-lighter);
    border-color: var(--rz-primary);
    color: var(--rz-primary);
}

.add-segment-btn .rzi {
    font-size: 1rem;
}
