/**
 * Transport Manager - Styles Frontend
 */

/* Variables */
:root {
    --tm-primary: #3498db;
    --tm-primary-dark: #2980b9;
    --tm-secondary: #95a5a6;
    --tm-success: #27ae60;
    --tm-warning: #f39c12;
    --tm-danger: #e74c3c;
    --tm-dark: #2c3e50;
    --tm-light: #ecf0f1;
    --tm-white: #ffffff;
    --tm-border: #ddd;
    --tm-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --tm-radius: 8px;
}

/* Base */
.tm-dashboard,
.tm-destinataires,
.tm-nouvelle-commande,
.tm-commandes,
.tm-commande-detail,
.tm-historique,
.tm-factures,
.tm-chauffeur-dashboard,
.tm-suivi-public {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Page Header */
.tm-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.tm-page-header h2 {
    margin: 0;
    color: var(--tm-dark);
}

.tm-back-link {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--tm-primary);
    text-decoration: none;
}

.tm-back-link:hover {
    text-decoration: underline;
}

/* Dashboard Header */
.tm-dashboard-header {
    background: linear-gradient(135deg, var(--tm-primary), var(--tm-primary-dark));
    color: var(--tm-white);
    padding: 30px;
    border-radius: var(--tm-radius);
    margin-bottom: 30px;
}

.tm-dashboard-header h2 {
    margin: 0 0 10px 0;
    color: var(--tm-white);
}

.tm-dashboard-header p {
    margin: 0;
    opacity: 0.9;
}

/* Stats Grid */
.tm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tm-stats-4 {
    grid-template-columns: repeat(4, 1fr);
}

.tm-stat-card {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 20px;
    box-shadow: var(--tm-shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.tm-stat-icon {
    font-size: 40px;
}

.tm-stat-content {
    display: flex;
    flex-direction: column;
}

.tm-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--tm-dark);
}

.tm-stat-label {
    font-size: 14px;
    color: var(--tm-secondary);
}

/* Dashboard Actions */
.tm-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

/* Dashboard Section */
.tm-dashboard-section {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 25px;
    box-shadow: var(--tm-shadow);
    margin-bottom: 30px;
}

.tm-dashboard-section h3 {
    margin: 0 0 20px 0;
    color: var(--tm-dark);
}

/* Buttons */
.tm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--tm-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

.tm-btn-secondary {
    background: var(--tm-light);
    color: var(--tm-dark);
}

.tm-btn-secondary:hover {
    background: #d5dbdb;
}

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

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

.tm-btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.tm-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.tm-btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.tm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Tables */
.tm-table-responsive {
    overflow-x: auto;
}

.tm-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--tm-white);
}

.tm-table th,
.tm-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--tm-border);
}

.tm-table th {
    background: var(--tm-light);
    font-weight: 600;
    color: var(--tm-dark);
}

.tm-table tbody tr:hover {
    background: #f8f9fa;
}

.tm-actions {
    display: flex;
    gap: 5px;
}

/* Forms */
.tm-form-section {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--tm-shadow);
}

.tm-form-section h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tm-light);
}

.tm-form-group {
    margin-bottom: 20px;
}

.tm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--tm-dark);
}

.tm-form-group .required {
    color: var(--tm-danger);
}

.tm-input,
.tm-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.tm-input:focus,
.tm-select:focus {
    outline: none;
    border-color: var(--tm-primary);
}

.tm-input-large {
    padding: 15px 20px;
    font-size: 16px;
}

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

.tm-form-group-half {
    flex: 1;
}

.tm-form-group-third {
    flex: 1;
}

.tm-input-group {
    display: flex;
    gap: 10px;
}

.tm-input-group .tm-input {
    flex: 1;
}

.tm-form-actions {
    text-align: center;
    margin-top: 30px;
}

/* Service Options */
.tm-service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tm-service-option input[type="radio"] {
    display: none;
}

.tm-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    border: 2px solid var(--tm-border);
    border-radius: var(--tm-radius);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.tm-service-option input[type="radio"]:checked + .tm-service-card {
    border-color: var(--tm-primary);
    background: rgba(52, 152, 219, 0.1);
}

.tm-service-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.tm-service-name {
    font-weight: 600;
    color: var(--tm-dark);
}

.tm-service-desc {
    font-size: 12px;
    color: var(--tm-secondary);
    margin-top: 5px;
}

/* Price Display */
.tm-price-display {
    background: var(--tm-light);
    padding: 12px 15px;
    border-radius: var(--tm-radius);
    font-size: 20px;
    font-weight: 700;
    color: var(--tm-primary);
    text-align: center;
}

/* Modal */
.tm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.tm-modal-open {
    display: flex;
}

.tm-modal-content {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.tm-modal-small {
    max-width: 400px;
}

.tm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--tm-border);
}

.tm-modal-header h3 {
    margin: 0;
}

.tm-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--tm-secondary);
}

.tm-modal-body {
    padding: 20px;
}

.tm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--tm-border);
}

/* Badges */
.tm-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Empty State */
.tm-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
}

.tm-empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.tm-empty-state h3 {
    margin: 0 0 10px 0;
    color: var(--tm-dark);
}

.tm-empty-state p {
    color: var(--tm-secondary);
    margin-bottom: 20px;
}

.tm-empty-message {
    text-align: center;
    color: var(--tm-secondary);
    padding: 40px;
}

/* Links */
.tm-link-primary {
    color: var(--tm-primary);
    text-decoration: none;
}

.tm-link-primary:hover {
    text-decoration: underline;
}

/* Text Utilities */
.tm-text-center {
    text-align: center;
}

.tm-text-right {
    text-align: right;
}

.tm-text-muted {
    color: var(--tm-secondary);
}

.tm-text-danger {
    color: var(--tm-danger);
}

.tm-or-separator {
    color: var(--tm-secondary);
    margin: 15px 0;
}

/* Success Icon */
.tm-success-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

/* QR Preview */
.tm-qr-preview {
    margin: 20px 0;
}

.tm-qr-preview img {
    max-width: 200px;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
}

/* Commande Detail */
.tm-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.tm-detail-card {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 25px;
    box-shadow: var(--tm-shadow);
    margin-bottom: 20px;
}

.tm-detail-card h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tm-light);
}

.tm-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--tm-light);
}

.tm-detail-label {
    color: var(--tm-secondary);
}

.tm-detail-value {
    font-weight: 500;
}

.tm-detail-value.tm-price {
    color: var(--tm-primary);
    font-size: 18px;
}

.tm-address-block {
    margin-bottom: 20px;
}

.tm-address-block h4 {
    margin: 0 0 10px 0;
    color: var(--tm-dark);
}

.tm-qr-card {
    text-align: center;
}

.tm-qr-wrapper img {
    max-width: 200px;
}

.tm-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Timeline */
.tm-timeline {
    position: relative;
    padding-left: 30px;
}

.tm-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--tm-light);
}

.tm-timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.tm-timeline-marker {
    position: absolute;
    left: -30px;
    width: 18px;
    height: 18px;
    background: var(--tm-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.tm-timeline-content {
    background: var(--tm-light);
    padding: 15px;
    border-radius: var(--tm-radius);
}

.tm-timeline-date {
    font-size: 12px;
    color: var(--tm-secondary);
}

.tm-timeline-status {
    font-weight: 600;
    margin: 5px 0;
}

.tm-timeline-comment {
    font-size: 14px;
    color: var(--tm-dark);
}

/* Calendar */
.tm-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.tm-calendar-title {
    margin: 0;
}

.tm-month-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.tm-month-stat {
    text-align: center;
}

.tm-month-stat .tm-stat-number {
    font-size: 32px;
    font-weight: 700;
    display: block;
}

.tm-stat-success {
    color: var(--tm-success);
}

.tm-stat-warning {
    color: var(--tm-warning);
}

.tm-stat-danger {
    color: var(--tm-danger);
}

.tm-calendar {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.tm-calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--tm-dark);
    color: var(--tm-white);
}

.tm-calendar-day-name {
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

.tm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.tm-calendar-cell {
    min-height: 100px;
    padding: 10px;
    border: 1px solid var(--tm-border);
    position: relative;
    cursor: pointer;
}

.tm-calendar-cell:hover {
    background: var(--tm-light);
}

.tm-calendar-empty {
    background: #f8f9fa;
}

.tm-day-number {
    font-weight: 600;
    color: var(--tm-dark);
}

.tm-today {
    background: rgba(52, 152, 219, 0.1);
}

.tm-today .tm-day-number {
    color: var(--tm-primary);
}

.tm-has-events {
    background: rgba(39, 174, 96, 0.05);
}

.tm-day-events {
    margin-top: 5px;
    max-height: 60px;
    overflow: hidden;
}

.tm-event {
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--tm-primary);
    color: var(--tm-white);
}

.tm-event-livree {
    background: var(--tm-success);
}

.tm-event-annulee {
    background: var(--tm-danger);
}

.tm-event-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--tm-primary);
    color: var(--tm-white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-month-list {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 25px;
    box-shadow: var(--tm-shadow);
}

.tm-month-list h3 {
    margin: 0 0 20px 0;
}

/* Factures */
.tm-factures-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tm-summary-card {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 20px;
    box-shadow: var(--tm-shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.tm-summary-icon {
    font-size: 40px;
}

.tm-summary-number {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.tm-summary-warning .tm-summary-number {
    color: var(--tm-warning);
}

.tm-summary-success .tm-summary-number {
    color: var(--tm-success);
}

/* Chauffeur Dashboard */
.tm-scanner-section {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 25px;
    box-shadow: var(--tm-shadow);
    margin-bottom: 30px;
}

.tm-scanner-section h3 {
    margin: 0 0 20px 0;
}

.tm-scanner-wrapper {
    text-align: center;
}

.tm-scanner-preview {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: #000;
    margin: 0 auto 20px;
    border-radius: var(--tm-radius);
    overflow: hidden;
    position: relative;
}

.tm-scanner-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--tm-white);
    text-align: center;
}

.tm-scanner-placeholder .tm-scanner-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 10px;
}

#tm-scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-scanner-controls {
    margin-bottom: 20px;
}

.tm-manual-input {
    max-width: 400px;
    margin: 0 auto;
}

.tm-manual-input p {
    margin-bottom: 10px;
    color: var(--tm-secondary);
}

/* Scan Result */
.tm-scan-result {
    margin-bottom: 30px;
}

.tm-scan-result-card {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
    border-left: 4px solid var(--tm-primary);
}

.tm-scan-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--tm-border);
}

.tm-scan-result-header h4 {
    margin: 0;
}

.tm-close-result {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--tm-secondary);
}

.tm-scan-result-body {
    padding: 20px;
}

.tm-result-info {
    margin-bottom: 20px;
}

.tm-result-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid var(--tm-light);
}

.tm-result-label {
    width: 120px;
    color: var(--tm-secondary);
}

.tm-result-value {
    flex: 1;
    font-weight: 500;
}

.tm-result-actions h5 {
    margin: 0 0 15px 0;
}

.tm-status-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.tm-btn-status {
    padding: 15px;
    font-size: 14px;
}

.tm-comment-field label {
    display: block;
    margin-bottom: 5px;
}

/* Commandes Cards (Chauffeur) */
.tm-commandes-section {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 25px;
    box-shadow: var(--tm-shadow);
    margin-bottom: 30px;
}

.tm-commandes-section h3 {
    margin: 0 0 20px 0;
}

.tm-commandes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tm-commande-card {
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    overflow: hidden;
}

.tm-commande-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--tm-light);
}

.tm-commande-ref {
    font-weight: 600;
}

.tm-commande-body {
    padding: 15px;
}

.tm-commande-body > div {
    margin-bottom: 8px;
}

.tm-commande-tel a {
    color: var(--tm-primary);
    text-decoration: none;
}

.tm-commande-footer {
    padding: 15px;
    background: var(--tm-light);
    display: flex;
    gap: 10px;
}

/* Suivi Public */
.tm-suivi-header {
    text-align: center;
    margin-bottom: 40px;
}

.tm-suivi-header h2 {
    margin: 0 0 10px 0;
}

.tm-suivi-search {
    max-width: 600px;
    margin: 0 auto 40px;
}

.tm-suivi-error,
.tm-suivi-help {
    text-align: center;
    padding: 60px 20px;
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
}

.tm-error-icon,
.tm-help-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.tm-suivi-result {
    max-width: 800px;
    margin: 0 auto;
}

.tm-suivi-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 20px;
    box-shadow: var(--tm-shadow);
    margin-bottom: 30px;
}

.tm-suivi-reference .tm-label {
    display: block;
    font-size: 12px;
    color: var(--tm-secondary);
}

.tm-suivi-reference .tm-value {
    font-size: 24px;
    font-weight: 700;
}

.tm-suivi-current-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-status-icon {
    font-size: 40px;
}

.tm-status-text {
    font-weight: 600;
}

/* Progress Bar */
.tm-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 30px 20px;
    box-shadow: var(--tm-shadow);
    margin-bottom: 30px;
    overflow-x: auto;
}

.tm-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.tm-step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--tm-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 10px;
}

.tm-step-active .tm-step-icon {
    background: var(--tm-success);
}

.tm-step-current .tm-step-icon {
    background: var(--tm-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

.tm-step-label {
    font-size: 11px;
    text-align: center;
    color: var(--tm-secondary);
}

.tm-step-active .tm-step-label {
    color: var(--tm-dark);
    font-weight: 500;
}

.tm-progress-line {
    flex: 1;
    height: 3px;
    background: var(--tm-light);
    margin: 0 10px 25px;
    min-width: 30px;
}

.tm-line-active {
    background: var(--tm-success);
}

.tm-suivi-cancelled {
    text-align: center;
    padding: 20px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: var(--tm-radius);
    margin-bottom: 30px;
}

.tm-suivi-info {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 25px;
    box-shadow: var(--tm-shadow);
    margin-bottom: 30px;
}

.tm-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tm-info-item {
    text-align: center;
}

.tm-info-label {
    display: block;
    font-size: 12px;
    color: var(--tm-secondary);
    margin-bottom: 5px;
}

.tm-info-value {
    font-weight: 600;
    font-size: 16px;
}

.tm-info-highlight .tm-info-value {
    color: var(--tm-success);
}

.tm-suivi-timeline {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 25px;
    box-shadow: var(--tm-shadow);
    margin-bottom: 30px;
}

.tm-suivi-timeline h3 {
    margin: 0 0 20px 0;
}

.tm-suivi-contact {
    text-align: center;
    padding: 20px;
}

.tm-suivi-contact a {
    color: var(--tm-primary);
    text-decoration: none;
    margin: 0 15px;
}

/* Search Bar */
.tm-search-bar {
    margin-bottom: 20px;
}

.tm-search-bar .tm-input {
    max-width: 300px;
}

/* Filters */
.tm-filters {
    margin-bottom: 20px;
}

.tm-filter-form {
    display: flex;
    gap: 15px;
}

.tm-filter-form .tm-select {
    width: auto;
    min-width: 200px;
}

/* Copy Input */
.tm-copy-input {
    font-size: 12px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .tm-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .tm-stats-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tm-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tm-dashboard-actions {
        flex-direction: column;
    }
    
    .tm-dashboard-actions .tm-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tm-form-row {
        flex-direction: column;
    }
    
    .tm-stats-4 {
        grid-template-columns: 1fr;
    }
    
    .tm-calendar-cell {
        min-height: 60px;
        padding: 5px;
    }
    
    .tm-day-events {
        display: none;
    }
    
    .tm-service-options {
        grid-template-columns: 1fr;
    }
    
    .tm-status-buttons {
        grid-template-columns: 1fr;
    }
    
    .tm-progress-step {
        min-width: 70px;
    }
    
    .tm-step-label {
        font-size: 9px;
    }
    
    .tm-suivi-result-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Notices */
.tm-notice {
    padding: 15px 20px;
    border-radius: var(--tm-radius);
    margin-bottom: 20px;
}

.tm-notice-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--tm-danger);
    color: var(--tm-danger);
}

.tm-notice a {
    color: inherit;
    font-weight: 600;
}
