/**
 * ShiftController Abrechnung – Frontend Styles
 * 
 * Styles für das Auswahlformular.
 * Druckansicht hat eigene Inline-Styles.
 * 
 * @package ShiftAbrechnung
 * @since 1.0.0
 */

/* === Container === */
.shiftabr-form-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

.shiftabr-notice {
    padding: 15px 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.shiftabr-test-notice {
    padding: 12px 20px;
    background: #d63638;
    color: #fff;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* === Fieldsets === */
.shiftabr-fieldset {
    margin: 0 0 30px 0;
    padding: 20px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.shiftabr-fieldset legend {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0 10px;
    background: #fafafa;
}

/* === Auswahl-Buttons === */
.shiftabr-select-actions {
    margin-bottom: 15px;
}

.shiftabr-select-actions .button {
    margin-right: 10px;
}

/* === Shift-Tabelle === */
.shiftabr-shift-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.shiftabr-shift-table th,
.shiftabr-shift-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.shiftabr-shift-table th {
    background: #f0f0f0;
    font-weight: 600;
    font-size: 0.9rem;
}

.shiftabr-shift-table tbody tr:hover {
    background: #f8f8f8;
}

.shiftabr-shift-table .col-check {
    width: 40px;
    text-align: center;
}

.shiftabr-shift-table .col-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.shiftabr-shift-table .col-date label {
    cursor: pointer;
    display: block;
}

.shiftabr-shift-table .col-date small {
    display: block;
    color: #666;
    font-size: 0.85rem;
}

.shiftabr-shift-table .col-duration {
    text-align: right;
    font-family: monospace;
}

.shiftabr-comment-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.shiftabr-comment-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

/* === Formularfelder === */
.shiftabr-field {
    margin-bottom: 15px;
}

.shiftabr-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.shiftabr-field input[type="text"],
.shiftabr-field input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.shiftabr-field input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Feldgruppen (nebeneinander) */
.shiftabr-field-group {
    display: flex;
    gap: 15px;
}

.shiftabr-field-zip {
    flex: 0 0 120px;
}

.shiftabr-field-city {
    flex: 1;
}

.shiftabr-field-date,
.shiftabr-field-number {
    flex: 1;
}

/* === Submit === */
.shiftabr-submit {
    text-align: center;
    padding: 20px 0;
}

.shiftabr-submit-btn {
    padding: 12px 30px !important;
    font-size: 1.1rem !important;
    height: auto !important;
}

/* === Filter === */
.shiftabr-filter-row {
    align-items: flex-end;
}

.shiftabr-filter-buttons {
    display: flex;
    gap: 10px;
    padding-bottom: 2px;
}

.shiftabr-filter-info {
    margin: 10px 0 0 0;
    font-style: italic;
    color: #666;
}

/* === Responsive === */
@media (max-width: 768px) {
    .shiftabr-shift-table {
        font-size: 0.9rem;
    }
    
    .shiftabr-shift-table th,
    .shiftabr-shift-table td {
        padding: 8px 5px;
    }
    
    .shiftabr-shift-table .col-calendar {
        display: none;
    }
    
    .shiftabr-field-group {
        flex-direction: column;
        gap: 0;
    }
    
    .shiftabr-field-zip {
        flex: none;
    }
}

@media (max-width: 480px) {
    .shiftabr-shift-table .col-duration {
        display: none;
    }
    
    .shiftabr-comment-input {
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
}

/* === Admin User-Auswahl === */
.shiftabr-admin-select {
    background: #f0f6fc;
    border: 1px solid #0073aa;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.shiftabr-user-select-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.shiftabr-user-select-form label {
    margin: 0;
}

.shiftabr-user-select-form select {
    padding: 8px 12px;
    font-size: 1rem;
    border: 1px solid #0073aa;
    border-radius: 4px;
    min-width: 250px;
}

.shiftabr-admin-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.shiftabr-admin-notice p {
    margin: 0;
}
