.wh-admin-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.5;
}

.wh-presets-panel {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #eee;
    border-radius: 8px;
    color: rgb(0, 0, 0);
}

.wh-presets-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wh-presets-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wh-presets-buttons .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
}

.wh-copy-panel {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.wh-copy-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
}

.wh-copy-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wh-copy-arrow {
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: bold;
}

.wh-copy-targets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wh-copy-day {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
}

.wh-copy-day:hover {
    background: #e9ecef;
}

.wh-copy-day input[type="checkbox"] {
    margin: 0;
}

.wh-admin-day {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.wh-admin-day:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.wh-admin-day.wh-day-filled {
    border-left-color: #28a745;
    background-color: #f8fff9;
}

.wh-admin-day.wh-day-empty {
    border-left-color: #dc3545;
    background-color: #fff8f8;
}

.wh-day-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.indicator-filled {
    background-color: #28a745;
    box-shadow: 0 0 4px #28a745;
}

.indicator-empty {
    background-color: #dc3545;
    box-shadow: 0 0 4px #dc3545;
}

.wh-admin-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wh-admin-day-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    min-width: 140px;
    display: flex;
    align-items: center;
}

.wh-admin-day-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wh-admin-day-actions .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.wh-admin-time-row {
    margin-bottom: 1rem;
}

.wh-admin-time-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.wh-time-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.wh-time-inputs .form-control {
    width: 100px;
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wh-time-inputs .form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.wh-time-separator {
    color: #6c757d;
    font-weight: 500;
}

.wh-admin-day-status {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.wh-admin-day-status .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.6em;
}

.wh-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wh-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    gap: 1rem;
    flex-wrap: wrap;
}

.wh-item:last-child {
    border-bottom: none;
}

.wh-item.wh-today {
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
}

.wh-days {
    font-weight: 600;
    color: #212529;
    min-width: 120px;
    flex-shrink: 0;
}

.wh-time {
    color: #495057;
    font-weight: 500;
}

.wh-break {
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
}

.wh-status {
    font-size: 0.9em;
    padding: 0.25em 0.5em;
    border-radius: 3px;
    margin-left: auto;
    flex-shrink: 0;
}

.wh-status[data-status="open"] {
    background-color: #d4edda;
    color: #155724;
}

.wh-status[data-status="closed"] {
    background-color: #f8d7da;
    color: #721c24;
}

.wh-status[data-status="break"] {
    background-color: #fff3cd;
    color: #856404;
}

.wh-teaser {
    display: inline-block;
    padding: 0.5em 0.75em;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}

.wh-teaser.wh-open {
    background-color: #d4edda;
    color: #155724;
}

.wh-teaser.wh-closed {
    background-color: #f8d7da;
    color: #721c24;
}

.wh-teaser.wh-break {
    background-color: #fff3cd;
    color: #856404;
}

.wh-mode-weekdays,
.wh-mode-odd_even {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wh-collapsible {
    position: relative;
    transition: max-height 0.3s ease;
}

.wh-other-day {
    transition: opacity 0.3s ease, transform 0.3s ease, display 0.3s ease;
}

.wh-toggle-wrapper {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.wh-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(10px);
}

.wh-toggle-btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.wh-toggle-btn:active {
    transform: translateY(1px);
}

.wh-toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.wh-toggle-btn[data-expanded="1"] .wh-toggle-icon {
    transform: rotate(90deg);
}

.wh-toggle-text {
    white-space: nowrap;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wh-other-day[style*="display: flex"] {
    animation: fadeInUp 0.3s ease forwards;
}

.wh-collapsible[data-collapsed="1"] .wh-item {
    padding: 0.5rem 0.75rem;
    min-height: 44px;
}

.wh-collapsible[data-collapsed="1"] .wh-today {
    border-left-width: 4px;
    background-color: #f0f7ff;
}

.wh-container[data-collapsible-mode="1"] {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wh-collapsible[data-collapsed="1"] .wh-today .wh-days {
    font-weight: 700;
    color: #007bff;
}

.wh-collapsible[data-collapsed="1"] .wh-today .wh-time {
    font-weight: 600;
}

.wh-collapsible[data-collapsed="1"]::after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background-color: #dee2e6;
    border-radius: 2px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .wh-admin-day-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wh-admin-day-actions {
        width: 100%;
    }

    .wh-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .wh-status {
        margin-left: 0;
    }

    .wh-presets-buttons {
        flex-direction: column;
    }

    .wh-presets-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .wh-copy-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .wh-copy-targets {
        justify-content: center;
    }

    .wh-toggle-btn {
        width: 100%;
        justify-content: center;
    }
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.wh-filter-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    overflow: hidden;
    animation: whFilterSlideIn 0.5s ease;
}

@keyframes whFilterSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wh-filter-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.1);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wh-filter-header svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.wh-filter-body {
    padding: 20px;
    background: white;
}

.wh-filter-group {
    margin-bottom: 20px;
}

.wh-filter-group:last-child {
    margin-bottom: 0;
}

.wh-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.wh-filter-label svg {
    width: 18px;
    height: 18px;
    fill: #667eea;
}

.wh-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    background: #f7fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wh-filter-checkbox:hover {
    border-color: #667eea;
    background: #edf2f7;
}

.wh-filter-checkbox input[type="checkbox"] {
    display: none;
}

.wh-checkbox-slider {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.wh-checkbox-slider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.wh-filter-checkbox input[type="checkbox"]:checked + .wh-checkbox-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.wh-filter-checkbox input[type="checkbox"]:checked + .wh-checkbox-slider::after {
    transform: translate(-50%, -50%) scale(1);
}

.wh-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #4a5568;
    transition: color 0.3s ease;
}

.wh-filter-checkbox input[type="checkbox"]:checked + .wh-checkbox-slider + .wh-checkbox-label {
    color: #667eea;
}

.wh-checkbox-label svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.wh-filter-checkbox input[type="checkbox"]:checked + .wh-checkbox-slider + .wh-checkbox-label svg {
    opacity: 1;
    transform: scale(1);
}

.wh-time-range {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.wh-time-range:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wh-time-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 140px;
}

.wh-time-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #2d3748;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wh-time-input:hover {
    border-color: #cbd5e0;
}

.wh-time-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.wh-time-label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
    white-space: nowrap;
}

.wh-apply-time-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wh-apply-time-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.wh-apply-time-btn:active {
    transform: translateY(0);
}

.wh-apply-time-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.wh-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.wh-reset-btn,
.wh-now-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wh-reset-btn {
    background: #edf2f7;
    color: #4a5568;
}

.wh-reset-btn:hover {
    background: #e2e8f0;
    color: #2d3748;
    transform: translateY(-2px);
}

.wh-now-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    flex: 1;
    justify-content: center;
}

.wh-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.wh-reset-btn svg,
.wh-now-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.wh-btn-animating {
    animation: whBtnPulse 0.3s ease;
}

@keyframes whBtnPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.wh-filter-footer {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.wh-filter-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #718096;
}

.wh-filter-hint svg {
    width: 16px;
    height: 16px;
    fill: #f6ad55;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .wh-filter-container {
        border-radius: 8px;
    }
    
    .wh-filter-header {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .wh-filter-body {
        padding: 15px;
    }
    
    .wh-time-range {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wh-time-input-wrapper {
        width: 100%;
    }
    
    .wh-apply-time-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wh-filter-actions {
        flex-direction: column;
    }
    
    .wh-reset-btn,
    .wh-now-btn {
        width: 100%;
        justify-content: center;
    }
}

.wh-filter-minimal {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
    flex-wrap: nowrap;
}

.wh-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.wh-filter-toggle input[type="checkbox"] {
    display: none;
}

.wh-toggle-slider {
    width: 36px;
    height: 20px;
    background: #cbd5e0;
    border-radius: 20px;
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.wh-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.wh-filter-toggle input[type="checkbox"]:checked + .wh-toggle-slider {
    background: #4a5568;
}

.wh-filter-toggle input[type="checkbox"]:checked + .wh-toggle-slider::after {
    transform: translateX(16px);
}

.wh-toggle-text {
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 500;
}

.wh-filter-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    flex-shrink: 0;
}

.wh-filter-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wh-time-input {
    width: 75px;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #2d3748;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.wh-time-input:hover {
    border-color: #cbd5e0;
}

.wh-time-input:focus {
    outline: none;
    border-color: #4a5568;
}

.wh-time-separator {
    color: #a0aec0;
    font-size: 0.85rem;
}

.wh-filter-apply {
    padding: 6px 12px;
    background: #4a5568;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.wh-filter-apply:hover {
    background: #2d3748;
}

/* Адаптивность */
@media (max-width: 768px) {
    .wh-filter-minimal {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .wh-filter-divider {
        display: none;
    }
    
    .wh-filter-time {
        width: 100%;
        justify-content: flex-start;
    }
}