@import '_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.84wtju4z0n.bundle.scp.css';

/* /Pages/HRM/BangCongTongHopCalendar.razor.rz.scp.css */
/* Attendance Calendar Grid Styles */
.calendar-grid-wrapper[b-r1abm6w5g5] {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 70vh;
}

.calendar-grid-table[b-r1abm6w5g5] {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
    min-width: 1400px;
}

.calendar-grid-table th[b-r1abm6w5g5],
.calendar-grid-table td[b-r1abm6w5g5] {
    border: 1px solid var(--neutral-stroke-layer-rest);
    padding: 4px 6px;
    text-align: center;
    white-space: nowrap;
}

.calendar-header-row th[b-r1abm6w5g5] {
    background: var(--neutral-layer-3);
    color: var(--neutral-foreground-rest);
    font-weight: 600;
    font-size: 11px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.calendar-header-row th.col-employee-info[b-r1abm6w5g5] {
    left: 0;
    z-index: 25;
}

.col-employee-info[b-r1abm6w5g5] {
    min-width: 220px;
    max-width: 260px;
    text-align: left !important;
    position: sticky;
    left: 0;
    z-index: 15;
    background: var(--neutral-layer-2);
    font-size: 13px;
}

.cell-frozen[b-r1abm6w5g5] {
    background: var(--neutral-layer-2) !important;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.04);
}

.col-day[b-r1abm6w5g5] {
    min-width: 38px;
    max-width: 42px;
    width: 40px;
    padding: 2px !important;
    position: relative;
}

.day-cell-wrapper[b-r1abm6w5g5] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.day-cell-overlay[b-r1abm6w5g5] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 128, 128, 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.15s ease;
    cursor: pointer;
    z-index: 2;
    border-radius: 3px;
}

.day-cell-wrapper:hover .day-cell-overlay[b-r1abm6w5g5] {
    opacity: 1;
}

.col-day .day-number[b-r1abm6w5g5] {
    font-weight: 700;
    font-size: 11px;
}

.col-day .day-name[b-r1abm6w5g5] {
    font-weight: 400;
    font-size: 9px;
    opacity: 0.6;
}

.weekend-col[b-r1abm6w5g5],
.holiday-col[b-r1abm6w5g5] {
    background: var(--neutral-layer-3) !important;
}

.day-symbol[b-r1abm6w5g5] {
    font-weight: 700;
    font-size: 10px;
    display: inline-block;
    padding: 2px 4px;
    border-radius: 3px;
    min-width: 24px;
    text-align: center;
}

.att-work .day-symbol[b-r1abm6w5g5] {
    background: var(--neutral-layer-1);
    color: var(--neutral-foreground-rest);
    border: 1px solid var(--neutral-stroke-layer-rest);
}

.att-annual-leave .day-symbol[b-r1abm6w5g5] {
    background: #d4edda;
    color: #155724;
}

.att-off .day-symbol[b-r1abm6w5g5] {
    background: var(--neutral-layer-3);
    color: var(--neutral-foreground-hint);
}

.att-error .day-symbol[b-r1abm6w5g5] {
    background: #ba1a1a;
    color: #ffffff;
}

.att-pending .day-symbol[b-r1abm6w5g5] {
    background: #fff3cd;
    color: #856404;
    border: 1px dashed #ffc107;
}

.att-unauthorized .day-symbol[b-r1abm6w5g5] {
    background: #f57c00;
    color: #ffffff;
}

.att-personal .day-symbol[b-r1abm6w5g5] {
    background: #fff3cd;
    color: #856404;
}

.att-dual .day-symbol[b-r1abm6w5g5] {
    background: #ffe0b2;
    color: #e65100;
    font-weight: 800;
}

.att-business .day-symbol[b-r1abm6w5g5] {
    background: #bbdefb;
    color: #0d47a1;
}

.att-sl .day-symbol[b-r1abm6w5g5] {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px dashed #66bb6a;
}

.att-empty .day-symbol[b-r1abm6w5g5] {
    background: transparent;
    color: var(--neutral-foreground-hint);
    opacity: 0.4;
}

.pending-ot[b-r1abm6w5g5]::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: #f57c00;
    border-radius: 50%;
    pointer-events: none;
}

.col-summary-group[b-r1abm6w5g5] {
    min-width: 60px;
    font-weight: 600;
    font-size: 11px;
    background: var(--neutral-layer-3);
}

.col-nt[b-r1abm6w5g5] { color: #0f6cbd; }
.col-nn[b-r1abm6w5g5] { color: #107c10; }
.col-dem[b-r1abm6w5g5] { color: #5c2d91; }
.col-ot[b-r1abm6w5g5] { color: #0f6cbd; }
.col-phep[b-r1abm6w5g5] { color: #107c10; }
.col-kp[b-r1abm6w5g5] { color: #ba1a1a; }
.col-kh[b-r1abm6w5g5] { color: #e65100; }
.col-action[b-r1abm6w5g5] { color: var(--neutral-foreground-rest); }

.col-summary[b-r1abm6w5g5] {
    font-weight: 700;
    font-size: 12px;
    min-width: 55px;
}

.kp-warning[b-r1abm6w5g5] {
    background: #fce4ec !important;
    color: #ba1a1a !important;
}

.employee-info[b-r1abm6w5g5] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.employee-avatar[b-r1abm6w5g5] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-fill-rest);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.employee-details[b-r1abm6w5g5] {
    overflow: hidden;
}

.employee-name[b-r1abm6w5g5] {
    font-weight: 600;
    font-size: 12px;
    color: var(--neutral-foreground-rest);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-dept[b-r1abm6w5g5] {
    font-size: 10px;
    color: var(--neutral-foreground-hint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-data-row:hover[b-r1abm6w5g5] {
    background: var(--neutral-layer-1);
}

.calendar-data-row:hover .cell-frozen[b-r1abm6w5g5] {
    background: var(--neutral-layer-1) !important;
}

.legend-container[b-r1abm6w5g5] {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.legend-item[b-r1abm6w5g5] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--neutral-foreground-hint);
}

.legend-badge[b-r1abm6w5g5] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 9px;
}
