/**
 * Carbon Design System - Utility Classes
 * Reusable utility classes to reduce inline styles
 */

/* ========================================
   Spacing Utilities
   ======================================== */

/* Padding */
.p-0 { padding: 0; }
.p-05 { padding: 0.5rem; }
.p-1 { padding: 1rem; }
.p-15 { padding: 1.5rem; }
.p-2 { padding: 2rem; }

.pt-05 { padding-top: 0.5rem; }
.pt-075 { padding-top: 0.75rem; }
.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }

.pb-05 { padding-bottom: 0.5rem; }
.pb-075 { padding-bottom: 0.75rem; }
.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }

.px-1 { padding-left: 1rem; padding-right: 1rem; }
.px-15 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-2 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }

/* Margin */
.m-0 { margin: 0; }
.m-05 { margin: 0.5rem; }
.m-1 { margin: 1rem; }
.m-2 { margin: 2rem; }

.mt-025 { margin-top: 0.25rem; }
.mt-05 { margin-top: 0.5rem; }
.mt-075 { margin-top: 0.75rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-05 { margin-bottom: 0.5rem; }
.mb-075 { margin-bottom: 0.75rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.my-1 { margin-top: 1rem; margin-bottom: 1rem; }
.my-2 { margin-top: 2rem; margin-bottom: 2rem; }

/* Gap */
.gap-025 { gap: 0.25rem; }
.gap-05 { gap: 0.5rem; }
.gap-075 { gap: 0.75rem; }
.gap-1 { gap: 1rem; }
.gap-15 { gap: 1.5rem; }
.gap-2 { gap: 2rem; }

/* ========================================
   Layout Utilities
   ======================================== */

/* Flexbox */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

.flex-1 { flex: 1; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ========================================
   Page Layout
   ======================================== */

.page-header {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--cds-border-subtle);
}

.page-header-title {
    flex: 1;
    min-width: 0;
}

.page-title {
    margin: 0;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    font-weight: 400;
}

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

/* Page Header Actions */
.page-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.page-header-secondary-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-header-overflow-menu {
    display: none;
    position: relative;
}

.page-header-overflow-trigger {
    min-width: 44px;
    min-height: 44px;
}

.page-header-overflow-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    background: var(--cds-layer);
    border: 1px solid var(--cds-border-subtle);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    z-index: 9999;
}

.page-header-overflow-options.open {
    display: block;
}

.page-header-overflow-options .cds--overflow-menu-options__btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    color: var(--cds-text-primary);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.11s;
}

.page-header-overflow-options .cds--overflow-menu-options__btn:hover {
    background: var(--cds-layer-hover);
}

.section-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--cds-border-subtle);
    background-color: var(--cds-layer-accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

/* ========================================
   Typography
   ======================================== */

.text-primary { color: var(--cds-text-primary); }
.text-secondary { color: var(--cds-text-secondary); }
.text-error { color: var(--cds-support-error); }
.text-success { color: var(--cds-support-success); }
.text-warning { color: var(--cds-support-warning); }
.text-info { color: var(--cds-support-info); }

.text-2xs { font-size: 0.6875rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-md { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.font-mono { font-family: 'IBM Plex Mono', 'Courier New', monospace; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.whitespace-nowrap { white-space: nowrap; }

/* Text Overflow */
.overflow-hidden { overflow: hidden; }
.text-overflow-ellipsis { text-overflow: ellipsis; }

/* Text Decoration */
.no-underline { text-decoration: none; }
.underline { text-decoration: underline; }

/* ========================================
   Borders
   ======================================== */

.border { border: 1px solid var(--cds-border-subtle); }
.border-t { border-top: 1px solid var(--cds-border-subtle); }
.border-top { border-top: 1px solid var(--cds-border-subtle); }
.border-b { border-bottom: 1px solid var(--cds-border-subtle); }
.border-l { border-left: 1px solid var(--cds-border-subtle); }
.border-r { border-right: 1px solid var(--cds-border-subtle); }

.border-2 { border-width: 2px; }
.border-3 { border-width: 3px; }

/* ========================================
   Sizing
   ======================================== */

.w-full { width: 100%; }
.w-auto { width: auto; }
.min-w-0 { min-width: 0; }

.h-full { height: 100%; }
.h-auto { height: auto; }

/* ========================================
   Display
   ======================================== */

.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

/* ========================================
   Background
   ======================================== */

.bg-layer-accent { background: var(--cds-layer-accent); }

/* ========================================
   Position
   ======================================== */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* ========================================
   Overflow
   ======================================== */

.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* ========================================
   Component Utilities
   ======================================== */

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    fill: var(--cds-icon-secondary);
    margin-bottom: 1rem;
}

.empty-state-title {
    margin-bottom: 0.5rem;
}

.empty-state-description {
    color: var(--cds-text-secondary);
    margin: 0.5rem 0 1.5rem;
}

/* Stats Display */
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--cds-text-secondary);
    text-transform: uppercase;
    font-weight: 500;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.stat-divider {
    padding-left: 1rem;
    border-left: 2px solid var(--cds-border-subtle);
}

/* Data Display */
.data-row {
    display: flex;
    gap: 0.5rem;
}

.data-label {
    min-width: 80px;
    color: var(--cds-text-secondary);
    font-weight: 600;
}

/* Cards */
.card {
    background: var(--cds-layer);
    border: 1px solid var(--cds-border-subtle);
    border-radius: 0;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--cds-border-subtle);
    background: var(--cds-layer-accent);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--cds-border-subtle);
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* Filter Panel */
.filter-panel {
    padding: 1rem;
    background: var(--cds-layer);
}

.filter-controls {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-control {
    min-width: 100px;
    flex: 1;
}

/* Form Control Compact for filters */
.form-control-compact {
    min-width: 140px;
    flex: 0 1 auto;
}

/* Status Indicators */
.status-success {
    color: var(--cds-support-success);
    background: var(--cds-support-success-inverse);
}

.status-warning {
    color: var(--cds-support-warning);
    background: var(--cds-support-warning-inverse);
}

.status-error {
    color: var(--cds-support-error);
    background: var(--cds-support-error-inverse);
}

.status-info {
    color: var(--cds-support-info);
    background: var(--cds-support-info-inverse);
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ========================================
   Responsive Utilities
   ======================================== */

@media (max-width: 672px) {
    .sm\:hidden { display: none; }
    .sm\:flex-col { flex-direction: column; }
    .sm\:w-full { width: 100%; }
    .sm\:text-xs { font-size: 0.75rem !important; }
    .sm\:p-05 { padding: 0.5rem !important; }
    .sm\:gap-05 { gap: 0.5rem !important; }

    /* Responsive Filter Controls for Mobile */
    .filter-controls {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .filter-control,
    .form-control-compact,
    .filter-controls .cds--form-item {
        width: 100% !important;
        min-width: 100% !important;
        flex: none;
    }

    .filter-controls .cds--btn {
        width: 100%;
        justify-content: center;
    }

    /* Mobile Table Responsive Adjustments */
    .cds--data-table {
        font-size: 0.75rem;
    }

    .cds--table-header,
    .cds--table-cell {
        padding: 0.5rem !important;
    }

    /* Hide less important columns on mobile - add this class to columns */
    .mobile-hide {
        display: none !important;
    }

    /* Reduce table padding */
    .table-header {
        padding: 0.5rem !important;
        font-size: 0.75rem !important;
    }

    .table-cell {
        padding: 0.5rem !important;
    }

    /* Touch-Friendly Target Sizes (minimum 44x44px) */
    .cds--btn--sm {
        min-height: 44px !important;
        padding: 0.75rem 1rem !important;
    }

    .cds--checkbox,
    .cds--radio-button {
        min-width: 44px;
        min-height: 44px;
    }

    /* Increase tap target for header actions */
    .cds--header__action {
        min-width: 48px;
        min-height: 48px;
    }

    /* Increase link/button spacing for easier tapping */
    .cds--header__menu-item {
        min-height: 48px;
        padding: 1rem 1.5rem !important;
    }

    /* Responsive Page Header for Mobile */
    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .page-header-title {
        width: 100%;
    }

    .page-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .page-header-primary-action {
        flex: 1;
        justify-content: center;
    }

    /* Hide secondary actions on mobile */
    .page-header-secondary-actions {
        display: none !important;
    }

    /* Show overflow menu on mobile */
    .page-header-overflow-menu {
        display: block !important;
    }

    /* Responsive Card Components */
    .card {
        margin-bottom: 1rem;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .card-footer {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .card-footer .cds--btn {
        width: 100%;
        justify-content: center;
    }

    /* Responsive Data Labels */
    .data-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .data-label {
        min-width: auto;
        width: 100%;
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
    }

    .data-value {
        font-size: 0.875rem;
    }

    /* Stat Items Stack on Mobile */
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .stat-divider {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--cds-border-subtle);
        padding-top: 0.75rem;
        margin-top: 0.75rem;
        width: 100%;
    }
}

@media (max-width: 1056px) {
    .md\:hidden { display: none; }
    .md\:flex-col { flex-direction: column; }
    .md\:w-full { width: 100%; }
    .md\:text-sm { font-size: 0.875rem !important; }
}

@media (min-width: 1057px) {
    .lg\:flex-row { flex-direction: row; }
    .lg\:w-auto { width: auto; }
}

/* ========================================
   Pointer & Cursor
   ======================================== */

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.pointer-events-none { pointer-events: none; }

/* ========================================
   Z-Index
   ======================================== */

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.z-999 { z-index: 999; }
.z-9999 { z-index: 9999; }

/* ========================================
   Shadow
   ======================================== */

.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.shadow { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.shadow-lg { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }

/* ========================================
   Opacity
   ======================================== */

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ========================================
   Transitions
   ======================================== */

.transition { transition: all 0.11s cubic-bezier(0.2, 0, 0.38, 0.9); }
.transition-fast { transition: all 0.07s cubic-bezier(0.2, 0, 0.38, 0.9); }
.transition-slow { transition: all 0.24s cubic-bezier(0.2, 0, 0.38, 0.9); }

/* ========================================
   Header Components (from base.html migration)
   ======================================== */

.header-logo {
    height: 28px;
    margin-right: 8px;
    vertical-align: middle;
}

.header-dropdown {
    display: none;
    position: absolute;
    right: 64px;
    top: 48px;
    background: var(--cds-layer);
    border: 1px solid var(--cds-border-subtle);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    min-width: 120px;
    border-radius: 0;
}

.header-dropdown .cds--overflow-menu-options__btn {
    display: block;
    padding: 12px 16px;
    color: var(--cds-text-primary);
    text-decoration: none;
    transition: background 0.11s;
}

.header-dropdown .cds--overflow-menu-options__btn:hover {
    background-color: var(--cds-layer-hover);
}

.user-menu-dropdown {
    right: 16px !important;
    min-width: 200px !important;
}

.user-menu-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--cds-border-subtle);
    color: var(--cds-text-secondary);
    font-size: 0.75rem;
}

.menu-icon {
    vertical-align: middle;
    margin-right: 8px;
    fill: currentColor;
}

.menu-item-divider {
    border-top: 1px solid var(--cds-border-subtle);
}

.flash-messages-container {
    max-width: 1584px;
    margin: 1rem auto;
    padding: 0 2rem;
}

.app-footer {
    background-color: var(--cds-layer-01);
    color: var(--cds-text-secondary);
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--cds-border-subtle);
    font-size: 0.875rem;
}

/* ========================================
   Login Page Components (from login.html migration)
   ======================================== */

.login-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.login-container {
    max-width: 400px;
}

.login-logo {
    max-width: 120px;
    height: auto;
}

.login-heading {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--cds-text-primary);
}

.login-btn {
    justify-content: center;
    max-width: 100%;
    width: 100%;
}

.login-notice {
    background-color: var(--cds-layer-01);
    border: 1px solid var(--cds-border-subtle);
    border-radius: 4px;
    line-height: 1.5;
    color: var(--cds-text-secondary);
}

.password-icon-visible {
    display: block;
}

.password-icon-hidden {
    display: none;
}

/* ========================================
   Table Utilities (from pay stubs migration)
   ======================================== */

/* Mobile Table Wrapper with Touch Scrolling */
.table-mobile-wrapper {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--cds-border-subtle) transparent;
}

.table-mobile-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-mobile-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.table-mobile-wrapper::-webkit-scrollbar-thumb {
    background: var(--cds-border-subtle);
    border-radius: 4px;
}

.table-mobile-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--cds-border-strong);
}

/* Scroll indicator for mobile tables */
.table-mobile-wrapper::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: linear-gradient(to left, var(--cds-layer) 0%, transparent 100%);
    padding: 0.5rem 1rem;
    pointer-events: none;
    opacity: 0.7;
    font-size: 1.5rem;
    color: var(--cds-text-secondary);
    z-index: 1;
}

.table-header {
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
}

.table-cell {
    padding: 1rem;
}

.border-bottom {
    border-bottom: 1px solid var(--cds-border-subtle);
}

.p-0 { padding: 0; }
.px-05 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-05 { padding-top: 0.5rem; padding-bottom: 0.5rem; }

.list-none {
    list-style: none;
}

.icon-no-shrink {
    flex-shrink: 0;
    margin-top: 2px;
}

/* PDF Preview */
.pdf-iframe {
    border: 1px solid var(--cds-border-subtle);
}

/* Data List */
.data-list {
    margin: 0;
    padding: 0;
}

/* Checkbox column */
.checkbox-col {
    width: 40px;
}

/* Payment form rows */
.payment-form-row.hidden {
    display: none;
}

.payment-form-cell {
    background-color: var(--cds-layer-01);
    padding: 15px;
}

/* Margin vertical */
.my-1 { margin-top: 1rem; margin-bottom: 1rem; }

/* ========================================
   Settings Page Utilities
   ======================================== */

/* Logo preview box */
.logo-preview-box {
    border: 2px dashed var(--cds-border-subtle);
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    background: var(--cds-layer-01);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-preview-img {
    max-width: 250px;
    max-height: 80px;
    object-fit: contain;
}

/* Spinner utility for loading states */
.spinner {
    margin-right: 0.5rem;
}

/* Tag spacing for inline use */
.tag-spaced {
    margin: 0 0.25rem;
}

/* ========================================
   Progress Bar Components
   ======================================== */

.progress-bar-container {
    height: 8px;
    background: var(--cds-layer-accent);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    transition: width 0.3s ease-in-out;
    border-radius: 4px;
}

.progress-bar--success {
    background: linear-gradient(90deg, #24a148, #42be65);
}

.progress-bar--info {
    background: linear-gradient(90deg, #0f62fe, #4589ff);
}

.progress-bar--warning {
    background: linear-gradient(90deg, #f1c21b, #e5a200);
}

.progress-bar--error {
    background: linear-gradient(90deg, #da1e28, #fa4d56);
}

/* Goal Card Styles */
.goal-card {
    background: var(--cds-layer);
    border: 1px solid var(--cds-border-subtle);
    border-radius: 4px;
    padding: 1.5rem;
}

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

.goal-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cds-text-secondary);
    text-transform: uppercase;
}

.goal-card-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--cds-text-primary);
}

.goal-card-subtitle {
    font-size: 0.875rem;
    color: var(--cds-text-secondary);
    margin-top: 0.25rem;
}

.goal-card-progress {
    margin-top: 1rem;
}

.goal-card-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--cds-text-secondary);
    margin-bottom: 0.5rem;
}

/* Text truncation utility */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   Holiday and Leave Calendar Highlighting
   ============================================ */

/* Holiday day styling */
.calendar-day-cell.holiday-day {
    background-color: var(--cds-support-success-inverse, rgba(36, 161, 72, 0.1));
    border-left: 3px solid var(--cds-support-success, #24a148);
}

.calendar-day-cell.holiday-day .day-number {
    color: var(--cds-support-success, #24a148);
    font-weight: 600;
}

/* Leave day styling */
.calendar-day-cell.leave-day {
    border-left: 3px solid var(--cds-support-info, #4589ff);
}

.calendar-day-cell.leave-day.leave-ferie {
    background-color: var(--cds-support-info-inverse, rgba(69, 137, 255, 0.1));
    border-left-color: var(--cds-support-info, #4589ff);
}

.calendar-day-cell.leave-day.leave-malattia {
    background-color: var(--cds-support-error-inverse, rgba(218, 30, 40, 0.1));
    border-left-color: var(--cds-support-error, #da1e28);
}

.calendar-day-cell.leave-day.leave-permesso {
    background-color: var(--cds-support-warning-inverse, rgba(248, 210, 78, 0.1));
    border-left-color: var(--cds-support-warning, #f1c21b);
}

.calendar-day-cell.leave-day.leave-rol {
    background-color: rgba(138, 63, 252, 0.1);
    border-left-color: #8a3ffc;
}

/* Holiday indicator icon */
.holiday-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
}

.holiday-indicator svg {
    fill: var(--cds-support-success, #24a148);
}

/* Leave indicator icon */
.leave-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
}

.leave-indicator svg {
    fill: var(--cds-support-info, #4589ff);
}

.leave-day.leave-malattia .leave-indicator svg {
    fill: var(--cds-support-error, #da1e28);
}

.leave-day.leave-permesso .leave-indicator svg {
    fill: var(--cds-support-warning, #f1c21b);
}

.leave-day.leave-rol .leave-indicator svg {
    fill: #8a3ffc;
}

/* Combined holiday + leave */
.calendar-day-cell.holiday-day.leave-day {
    background: linear-gradient(135deg, 
        var(--cds-support-success-inverse, rgba(36, 161, 72, 0.1)) 50%, 
        var(--cds-support-info-inverse, rgba(69, 137, 255, 0.1)) 50%);
}

/* Day cell header with indicators */
.day-cell-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Avatar utility for employee lists */
.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cds-layer-accent-01);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--cds-text-primary);
    flex-shrink: 0;
}
