/* Schedule Section Custom Styling */

/* Days Checkboxes Grid */
.schedule-section .days-checkboxes-grid {
    margin-bottom: 1.5rem;
}

/* Custom Checkbox Styling */
.schedule-section .fi-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-section .fi-checkbox input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
    accent-color: #f59e0b; /* Amber/Orange color */
}

.schedule-section .fi-checkbox input[type="checkbox"]:checked {
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.schedule-section .fi-checkbox label {
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

/* Day Rows Styling */
.schedule-section .day-row {
    margin-bottom: 12px !important;
    gap: 8px !important;
    align-items: center;
}

.schedule-section .day-row:last-child {
    margin-bottom: 0 !important;
}

/* Day Label Styling */
.schedule-section .day-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

/* Time Picker Fields Styling */
.schedule-section .time-picker-field {
    margin: 0 !important;
    padding: 0 !important;
}

.schedule-section .time-picker-field .fi-input-wrp {
    margin: 0 !important;
}

.schedule-section .time-picker-field input {
    padding: 0.5rem 0.75rem !important;
}

/* "To" Label Styling */
.schedule-section .to-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgb(107 114 128); /* gray-500 */
    margin: 0;
    padding: 0;
}

/* Copy Button Wrapper */
.schedule-section .copy-button-wrapper {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.schedule-section .copy-button-wrapper button {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Reduce spacing between time fields */
.schedule-section .fi-input-wrp {
    margin-bottom: 0 !important;
}

/* Ensure proper alignment */
.schedule-section .fi-grid {
    align-items: center;
}

/* Days Selector Buttons */
.days-selector-container {
    margin-bottom: 1.5rem;
}

.days-buttons-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.day-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    border: 2px solid rgb(229 231 235); /* gray-200 */
    border-radius: 0.5rem;
    background-color: white;
    color: rgb(107 114 128); /* gray-500 */
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    min-height: 2.5rem;
}

.day-button:hover {
    border-color: #f59e0b; /* amber-500 */
    background-color: rgb(255 247 237); /* amber-50 */
    color: #f59e0b;
}

.day-button-selected {
    background-color: #f59e0b !important; /* amber-500 */
    border-color: #f59e0b !important;
    color: white !important;
    font-weight: 600;
}

.day-button-selected:hover {
    background-color: #d97706 !important; /* amber-600 */
    border-color: #d97706 !important;
}

.day-button-label {
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .schedule-section .day-row {
        gap: 4px !important;
    }

    .schedule-section .to-label {
        font-size: 0.75rem;
    }

    .days-buttons-grid {
        gap: 0.25rem;
    }

    .day-button {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
        min-height: 2rem;
    }
}

/* ===================================
   Breaks Section Custom Styling
   =================================== */

/* Make duration inputs inline and compact */
.duration-input input {
    text-align: center !important;
    font-weight: 500;
    padding: 0.5rem !important;
}

/* Improve toggle buttons appearance */
.fi-fo-toggle-buttons .fi-fo-toggle-buttons-option {
    border-radius: 0.375rem;
}

.fi-fo-toggle-buttons .fi-fo-toggle-buttons-option-label {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Checkbox styling in breaks */
.fi-fo-checkbox {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.fi-fo-checkbox label {
    font-size: 0.875rem;
    color: rgb(107 114 128); /* gray-500 */
}

/* Repeater item styling for breaks */
.fi-fo-repeater-item {
    background-color: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

/* Add break button styling */
.fi-fo-repeater .fi-ac-btn-group button[type="button"] {
    color: #f59e0b;
    font-weight: 500;
}

.fi-fo-repeater .fi-ac-btn-group button[type="button"]:hover {
    color: #d97706;
}

/* Time picker fields in breaks */
.fi-fo-time-picker input {
    font-size: 0.875rem;
}

/* Make break name input full width on mobile */
@media (max-width: 640px) {
    .fi-fo-repeater-item .fi-fo-field-wrp {
        width: 100% !important;
    }
}

/* ===================================
   Overtime Rules Section Styling
   =================================== */

/* Fieldset styling */
.fi-fo-fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: #fafafa;
}

.fi-fo-fieldset legend {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    padding: 0 0.5rem;
}

/* Toggle inline styling */
.fi-fo-toggle {
    margin-bottom: 1rem;
}

/* Helper text styling */
.fi-fo-field-wrp-helper-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}
