/* ========================================================================= */
/* CREW PLANNING - Styles principaux                                        */
/* ========================================================================= */

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --purple: #8b5cf6;
    --dark: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
}

/* ========================================================================= */
/* HEADER                                                                    */
/* ========================================================================= */

.header {
    background: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.logo i {
    color: var(--primary);
    font-size: 28px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    color: var(--primary);
}

/* ========================================================================= */
/* NAVIGATION SEMAINE                                                        */
/* ========================================================================= */

.week-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.week-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #374151;
    transition: all 0.2s;
}

.week-nav-btn:hover {
    background: var(--primary);
    color: white;
}

.week-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.week-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    min-width: 300px;
    text-align: center;
}

.week-dates {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.today-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.today-btn:hover {
    background: var(--primary-dark);
}

.export-btn {
    padding: 8px 16px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    font-family: inherit;
}

.export-btn:hover {
    background: #dc2626;
}

.export-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================================================= */
/* STATS BAR                                                                 */
/* ========================================================================= */

.stats-bar {
    display: flex;
    gap: 24px;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.stat-icon.total {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
}

.stat-icon.arrivals {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.stat-icon.departures {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple);
}

.stat-icon.assigned {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-info .label {
    font-size: 12px;
    color: #6b7280;
}

.stat-info .value {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

/* ========================================================================= */
/* PLANNING GRID                                                             */
/* ========================================================================= */

.planning-container {
    padding: 24px;
}

.day-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    overflow: visible;
}

.day-card .day-header {
    border-radius: 12px 12px 0 0;
}

.day-header {
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-header.today {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.day-title {
    font-size: 18px;
    font-weight: 700;
}

.day-date {
    font-size: 14px;
    opacity: 0.9;
}

.day-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.day-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e5e7eb;
}

.transfer-column {
    background: white;
    padding: 16px;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.column-header.arrivals {
    color: var(--info);
    border-color: var(--info);
}

.column-header.departures {
    color: var(--purple);
    border-color: var(--purple);
}

/* ========================================================================= */
/* MISSION ITEMS                                                             */
/* ========================================================================= */

.mission-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
    gap: 12px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.mission-item:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.mission-item.assigned {
    border-left: 4px solid var(--success);
}

.mission-item.pending {
    border-left: 4px solid var(--warning);
}

.mission-time {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    min-width: 50px;
}

.mission-flight {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.flight-number {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.flight-origin {
    font-size: 11px;
    color: #6b7280;
}

.mission-pax {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    min-width: 45px;
    justify-content: center;
}

.mission-driver {
    margin-left: auto;
}

/* ========================================================================= */
/* DRIVER SELECTOR                                                           */
/* ========================================================================= */

.driver-selector {
    position: relative;
}

.driver-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid transparent;
    min-width: 60px;
    justify-content: center;
}

.driver-badge.empty {
    background: #fef3c7;
    color: #92400e;
    border-style: dashed;
    border-color: #f59e0b;
}

.driver-badge.empty:hover {
    background: #fde68a;
}

.driver-badge.assigned {
    color: white;
}

.driver-badge.assigned:hover {
    transform: scale(1.05);
}

.driver-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1000;
    min-width: 200px;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.driver-dropdown-header {
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
}

.driver-option {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.driver-option:hover {
    background: #f3f4f6;
}

.driver-option.selected {
    background: rgba(249, 115, 22, 0.1);
}

.driver-option-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.driver-option-name {
    flex: 1;
    font-size: 14px;
    color: var(--dark);
}

.driver-option-clear {
    color: var(--danger);
}

.driver-option-clear:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ========================================================================= */
/* UPLOAD ZONE                                                               */
/* ========================================================================= */

.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: white;
    transition: all 0.2s;
    cursor: pointer;
    margin: 24px;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
}

.upload-zone i {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.upload-zone h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 8px;
}

.upload-zone p {
    font-size: 14px;
    color: #6b7280;
}

.upload-zone input {
    display: none;
}

/* ========================================================================= */
/* MODAL                                                                     */
/* ========================================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
}

.modal-title i {
    color: var(--primary);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* ========================================================================= */
/* FORMULAIRES                                                               */
/* ========================================================================= */

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: var(--dark);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    background: white;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:hover {
    border-color: #d1d5db;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: var(--dark);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Input color picker */
input[type="color"] {
    -webkit-appearance: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

/* ========================================================================= */
/* BUTTONS                                                                   */
/* ========================================================================= */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* ========================================================================= */
/* TOAST                                                                     */
/* ========================================================================= */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.info {
    background: var(--info);
}

.toast.warning {
    background: var(--warning);
}

/* ========================================================================= */
/* EMPTY STATE                                                               */
/* ========================================================================= */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: #9ca3af;
}

/* ========================================================================= */
/* LOADING                                                                   */
/* ========================================================================= */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-overlay .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-overlay p {
    margin-top: 16px;
    font-size: 16px;
    color: #6b7280;
}

/* ========================================================================= */
/* SEARCH                                                                    */
/* ========================================================================= */

.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-left: 24px;
}

.search-input {
    width: 280px;
    padding: 10px 16px 10px 40px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    background: white;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    font-size: 12px;
    transition: color 0.2s;
}

.search-clear:hover {
    color: var(--danger);
}

.search-results-count {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.search-results-count strong {
    color: var(--primary);
    font-weight: 700;
}

/* ========================================================================= */
/* HIGHLIGHTED ROW                                                           */
/* ========================================================================= */

.mission-item.highlight {
    background: #fef3c7;
    border-color: #f59e0b;
}

/* Lignes non trouvées (grisées) lors de la recherche */
.mission-item.dimmed {
    opacity: 0.35;
    filter: grayscale(60%);
}

/* Lignes trouvées (mises en évidence) */
.mission-item.search-match {
    background: #fef3c7 !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.mission-item.search-match .mission-time,
.mission-item.search-match .flight-number {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Jour card grisée si aucun résultat */
.day-card.dimmed .day-header {
    opacity: 0.5;
}

/* ========================================================================= */
/* ÉDITION INLINE                                                            */
/* ========================================================================= */

.editable-value {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
    border: 1px dashed transparent;
}

.editable-value:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
}

.editable-input {
    padding: 2px 6px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    min-width: 50px;
}

.editable-input.editable-time {
    width: 60px;
    text-align: center;
}

.editable-input.editable-flight {
    width: 90px;
}

.editable-input.editable-pax {
    width: 45px;
    text-align: center;
}

/* ========================================================================= */
/* ICÔNE HISTORIQUE                                                          */
/* ========================================================================= */

.history-icon-container {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 10;
}

.history-icon {
    width: 20px;
    height: 20px;
    background: var(--info);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.history-icon:hover {
    transform: scale(1.1);
    background: var(--primary);
}

.history-icon i {
    font-size: 10px;
    color: white;
}

/* Popup historique */
.history-popup {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    max-width: 350px;
    z-index: 100;
    overflow: hidden;
    animation: historySlideIn 0.2s ease;
}

@keyframes historySlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.history-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
}

.history-popup-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.history-popup-close:hover {
    color: var(--danger);
}

.history-popup-content {
    max-height: 250px;
    overflow-y: auto;
}

.history-loading,
.history-empty {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

.history-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: #f9fafb;
}

.history-item-field {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.history-item-change {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 4px;
}

.history-old {
    color: var(--danger);
    text-decoration: line-through;
    opacity: 0.7;
}

.history-arrow {
    color: #9ca3af;
    font-size: 10px;
}

.history-new {
    color: var(--success);
    font-weight: 600;
}

.history-item-date {
    font-size: 11px;
    color: #9ca3af;
}

/* Position relative sur mission-item pour l'icône historique */
.mission-item {
    position: relative;
}

/* ========================================================================= */
/* EXPORT PDF MODAL                                                          */
/* ========================================================================= */

.export-modal {
    max-width: 480px;
}

.export-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.export-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.spinner-small {
    width: 24px;
    height: 24px;
    border: 3px solid #fde68a;
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

/* ========================================================================= */
/* PROCEDURES & CONTACTS MODALS                                              */
/* ========================================================================= */

.modal-large {
    max-width: 800px;
    width: 90%;
}

.modal-large .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Procedures list */
.procedures-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.procedure-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.procedure-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.procedure-code {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
}

.procedure-name {
    font-weight: 600;
    color: var(--dark);
    flex: 1;
}

.procedure-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: white;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
}

.btn-icon.danger:hover {
    background: var(--danger);
    color: white;
}

.procedure-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.procedure-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
}

.procedure-detail i {
    color: var(--primary);
    width: 16px;
    text-align: center;
    margin-top: 2px;
}

.procedure-instructions {
    background: white;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    border-left: 3px solid var(--primary);
    margin-top: 8px;
}

/* Contacts list */
.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.contact-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
}

.contact-actions {
    display: flex;
    gap: 8px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
}

.contact-detail i {
    color: var(--primary);
    width: 16px;
    text-align: center;
    margin-top: 2px;
}

.contact-info-text span {
    line-height: 1.6;
}

/* ========================================================================= */
/* RESPONSIVE                                                                */
/* ========================================================================= */

@media (max-width: 768px) {
    .day-content {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 16px;
    }
    
    .week-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-bar {
        flex-wrap: wrap;
    }
}
