/**
 * Working Hours Enterprise Stylesheet
 * Sub-Fase 1.5 - HRIS Perum Jasa Tirta I
 */

/* Tab navigation underline style */
.custom-location-tabs .nav-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    padding: 10px 18px;
    border: none;
    border-bottom: 2.5px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out;
}

.custom-location-tabs .nav-link:hover {
    color: #2563eb;
}

.custom-location-tabs .nav-link.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: transparent;
}

.custom-location-tabs .nav-link ion-icon {
    font-size: 18px;
}

/* Stat Metric Cards */
.stat-metric-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04) !important;
}

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

/* Table Toolbar Search Input */
.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: 6px 12px 6px 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    background-color: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-input-control:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Enterprise Data Table */
.location-data-table {
    border-collapse: separate;
    border-spacing: 0;
}

.location-data-table thead th {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 11.5px;
    letter-spacing: 0.5px;
    color: #64748b;
    background-color: #f8fafc;
    font-weight: 700;
}

.location-data-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.location-data-table tbody tr.main-group-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.location-data-table tbody tr.main-group-row:hover {
    background-color: #f8fafc;
}

.location-data-table tbody tr.main-group-row.is-expanded {
    background-color: #f8fafc;
    border-bottom-color: transparent;
}

.collapse-toggle-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0;
}

.collapse-toggle-btn:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.collapse-toggle-btn ion-icon {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.main-group-row.is-expanded .collapse-toggle-btn {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.main-group-row.is-expanded .collapse-toggle-btn ion-icon {
    transform: rotate(90deg);
}

/* Standardized Row Action Buttons (Identical to Master Locations) */
.btn-row-action-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.btn-row-action {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    border: 1px solid #E2E8F0 !important;
    background: #ffffff !important;
    color: #64748b !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
}

.btn-row-action:hover {
    background: #F1F5F9 !important;
    border-color: #cbd5e1 !important;
}

/* Direct Seamless Sub-Policy Table */
.sub-policy-table {
    border-top: 1px solid #e2e8f0;
}

.sub-policy-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    padding: 9px 16px;
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.sub-policy-table tbody td {
    font-size: 12.5px;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.sub-policy-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Badges */
.bg-indigo-subtle {
    background-color: #e0e7ff !important;
}
.text-indigo {
    color: #4338ca !important;
}