/* =========================================================================
   ROSTER JADWAL SHIFT PEGAWAI STYLESHEET (100% STANDARDIZED & ENHANCED)
   ========================================================================= */

/* Quick Stats Metric Cards */
.stat-metric-card {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
    border: 1px solid #E2E8F0 !important;
}
.stat-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon-wrapper ion-icon {
    font-size: 24px;
}

.text-indigo { color: #6366F1 !important; }
.bg-indigo-subtle { background-color: #EEF2FF !important; }

/* Shift Legend Card (Outside Table) */
.shift-legend-card {
    border: 1px solid #E2E8F0 !important;
    background: #FFFFFF !important;
}

/* Shift Badges */
.shift-badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.2px;
}
.badge-s1 { background: #EFF6FF; color: #2563EB; border: 1.5px solid #BFDBFE; }
.badge-s2 { background: #FFFBEB; color: #D97706; border: 1.5px solid #FDE68A; }
.badge-s3 { background: #EEF2FF; color: #4F46E5; border: 1.5px solid #C7D2FE; }
.badge-off { background: #FEF2F2; color: #DC2626; border: 1.5px solid #FECACA; }
.badge-wfo { background: #ECFDF5; color: #059669; border: 1.5px solid #A7F3D0; }
.badge-wfa { background: #F5F3FF; color: #7C3AED; border: 1.5px solid #DDD6FE; }

/* Search & Filter Toolbar Controls */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}
.search-input-control {
    width: 100%;
    height: 38px;
    padding: 8px 12px 8px 36px;
    font-size: 12.5px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.2s ease;
}
.search-input-control:focus {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    outline: none;
}

.periode-picker-wrapper {
    height: 38px;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
}

/* Export Tools Group (White Solid Standard) */
.export-btn-group {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 2px;
}
.btn-export-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.btn-export-tool:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.btn-export-tool .export-icon {
    font-size: 15px;
}

/* Mini Roster Month Strip in Table */
.mini-strip-wrapper {
    display: flex;
    gap: 3px;
    align-items: center;
    overflow-x: auto;
    max-width: 480px;
    padding-bottom: 2px;
}
.mini-strip-day {
    min-width: 19px;
    height: 22px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    flex-shrink: 0;
}

/* Interactive Strip Calendar in Modal */
.shift-strip-container {
    max-height: 380px;
    overflow-y: auto;
}
.cal-day-cell {
    width: 62px;
    min-height: 72px;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    padding: 6px 4px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.cal-day-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.cal-day-cell.type-s1 { border-color: #93C5FD; background: #EFF6FF; }
.cal-day-cell.type-s1 .cal-code { color: #2563EB; }
.cal-day-cell.type-s2 { border-color: #FCD34D; background: #FFFBEB; }
.cal-day-cell.type-s2 .cal-code { color: #D97706; }
.cal-day-cell.type-s3 { border-color: #A5B4FC; background: #EEF2FF; }
.cal-day-cell.type-s3 .cal-code { color: #4F46E5; }
.cal-day-cell.type-off { border-color: #FCA5A5; background: #FEF2F2; }
.cal-day-cell.type-off .cal-code { color: #DC2626; }
.cal-day-cell.type-wfo { border-color: #6EE7B7; background: #ECFDF5; }
.cal-day-cell.type-wfo .cal-code { color: #059669; }
.cal-day-cell.type-wfa { border-color: #C4B5FD; background: #F5F3FF; }
.cal-day-cell.type-wfa .cal-code { color: #7C3AED; }

.cal-dow { font-size: 10px; font-weight: 700; color: #94A3B8; text-transform: uppercase; }
.cal-date { font-size: 12px; font-weight: 700; color: #334155; }
.cal-code { font-size: 16px; font-weight: 900; }
.cal-input {
    width: 28px !important;
    height: 28px !important;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 900;
    outline: none;
    padding: 0;
    caret-color: #4F46E5;
}

/* Row Actions Standard */
.btn-row-action-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-row-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}
.btn-row-action:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* =========================================================================
   STANDARDIZED RESPONSIVE TABLE
   ========================================================================= */
.location-data-table {
    table-layout: auto !important;
    width: 100% !important;
    min-width: 900px !important;
}
.location-data-table td,
.location-data-table th {
    white-space: nowrap !important;
}
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}
.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 3px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}