/**
 * ENNU Order Display Styles
 * Styles for live order display and service management
 */



 .tabs-left,.tabs-right {
    display: flex;
}

.provider-panel-container .entry-content > h2 {
    display: none;
}

.provider-panel-main {
    padding: 0px !important;
}


/* Order Display Container */
#ennu-order-display {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Order Header */
.ennu-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.ennu-order-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.order-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.875em;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.status-pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.status-processing {
    background: #cce5ff;
    color: #004085;
}

.order-status.status-completed {
    background: #d4edda;
    color: #155724;
}

.order-status.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Customer Info */
.ennu-customer-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.ennu-customer-info p {
    margin: 5px 0;
    color: #666;
}

.ennu-customer-info strong {
    color: #333;
    margin-right: 8px;
}

/* Order Items Table */
.ennu-order-items {
    margin-bottom: 20px;
}

.ennu-items-table {
    width: 100%;
    border-collapse: collapse;
}

.ennu-items-table thead {
    background: #f8f9fa;
}

.ennu-items-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.ennu-items-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    color: #666;
}

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

.ennu-items-table .empty-order {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 30px;
}

/* Item Quantity Input */
.ennu-item-quantity {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

/* Action Buttons */
.ennu-remove-item-btn,
.ennu-add-service-btn,
.ennu-refresh-order-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ennu-remove-item-btn {
    background: #dc3545;
    color: white;
}

.ennu-remove-item-btn:hover {
    background: #c82333;
}

.ennu-add-service-btn {
    background: #28a745;
    color: white;
}

.ennu-add-service-btn:hover {
    background: #218838;
}

.ennu-refresh-order-btn {
    background: #007bff;
    color: white;
}

.ennu-refresh-order-btn:hover {
    background: #0056b3;
}

/* Order Totals */
.ennu-order-totals {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.total-row span:first-child {
    color: #666;
}

.total-row span:last-child {
    font-weight: 600;
    color: #333;
}

.total-row.total-final {
    border-top: 2px solid #dee2e6;
    padding-top: 15px;
    margin-top: 10px;
    font-size: 18px;
}

.total-row.total-final span {
    font-weight: 700;
    color: #000;
}

.total-row.balance-due span:last-child {
    color: #dc3545;
    font-size: 20px;
}

/* Services Panel */
#ennu-services-panel {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

/* Service Filters */
.ennu-service-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

#ennu-service-search {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

#ennu-service-category {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    min-width: 200px;
}

/* Services Grid */
.ennu-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Service Card */
.ennu-service-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ennu-service-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ennu-service-card.not-synced {
    opacity: 0.7;
}

.service-header {
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

.service-description {
    padding: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.service-meta {
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.service-duration {
    display: inline-flex;
    align-items: center;
}

.service-duration::before {
    content: "⏱";
    margin-right: 5px;
}

.service-category {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
}

.service-actions {
    padding: 15px;
    border-top: 1px solid #e9ecef;
}

.service-actions button {
    width: 100%;
}

.not-available {
    display: block;
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 13px;
}

/* Notifications */
.ennu-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ennu-notification.success {
    background: #28a745;
}

.ennu-notification.error {
    background: #dc3545;
}

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

/* Loader */
#ennu-order-loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9998;
}

.ennu-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ennu-services-grid {
        grid-template-columns: 1fr;
    }

    .ennu-service-filters {
        flex-direction: column;
    }

    #ennu-service-category {
        width: 100%;
    }

    .ennu-items-table {
        font-size: 12px;
    }

    .ennu-items-table th,
    .ennu-items-table td {
        padding: 8px;
    }

    .service-header h4 {
        font-size: 14px;
    }

    .service-price {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .ennu-add-service-btn,
    .ennu-remove-item-btn,
    .ennu-refresh-order-btn,
    #ennu-services-panel,
    .ennu-service-filters {
        display: none !important;
    }

    #ennu-order-display {
        border: none;
        box-shadow: none;
    }

    .ennu-order-header {
        border-bottom: 2px solid #000;
    }
}

/* Enhanced Service Selection UI */

/* Service Filters */
.ennu-service-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
}

.ennu-service-filters input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ennu-service-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

/* Service Container */
.ennu-services-container {
    max-height: 600px;
    overflow-y: auto;
}

/* Category Sections */
.ennu-category-section {
    margin-bottom: 30px;
}

.ennu-category-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007cba;
}

/* Enhanced Service Cards */
.ennu-service-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 6px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.ennu-service-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ennu-service-card.product-card {
    border-left: 4px solid #007cba;
}

.ennu-service-card.service-card {
    border-left: 4px solid #46b450;
}

.ennu-service-card.out-of-stock {
    opacity: 0.6;
    border-color: #dc3545;
}

.ennu-service-card.requires-prescription {
    border-left-color: #ffc107;
}

.ennu-service-card.controlled-substance {
    border-left-color: #dc3545;
}

/* Service Image - COMPACT */
.service-image {
    margin-bottom: 4px;
    text-align: center;
}

.service-image img {
    max-width: 50px;
    max-height: 50px;
    object-fit: cover;
    border-radius: 3px;
}

/* Service Header */
.service-header {
    margin-bottom: 10px;
}

.service-header h4 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* Service Pricing */
.service-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #007cba;
}

.service-price.sale-price {
    color: #dc3545;
}

.regular-price {
    text-decoration: line-through;
    color: #666;
    font-size: 0.9em;
}

/* Service Meta */
.service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.875em;
    color: #666;
}

.service-unit,
.service-duration,
.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.service-unit::before {
    content: "📏";
}

.service-duration::before {
    content: "⏱️";
}

.stock-status.in-stock::before {
    content: "✅";
    color: #28a745;
}

.stock-status.out-of-stock::before {
    content: "❌";
    color: #dc3545;
}

/* Service Indicators */
.service-indicators {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
}

.indicator.prescription-required {
    background: #ffc107;
    color: #000;
}

.indicator.controlled-substance {
    background: #dc3545;
    color: #fff;
}

.indicator.requires-supervision {
    background: #17a2b8;
    color: #fff;
}

/* Service Actions */
.service-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.service-actions .not-available {
    color: #dc3545;
    font-style: italic;
    font-size: 0.875em;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quantity-selector input[type="number"] {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.unit-label {
    font-size: 0.875em;
    color: #666;
    font-weight: 500;
}

.service-actions input[type="number"] {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

/* Add Service Button */
.ennu-add-service-btn {
    background: #007cba;
    color: #ffffff;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.ennu-add-service-btn:hover {
    background: #005a87;
}

.ennu-add-service-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Services Grid */
.ennu-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ennu-service-filters {
        flex-direction: column;
        gap: 10px;
    }

    .ennu-service-filters select {
        min-width: auto;
    }

    .ennu-services-grid {
        grid-template-columns: 1fr;
    }

    .ennu-service-card {
        padding: 12px;
    }

    .service-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .quantity-selector {
        justify-content: center;
    }
}

/* Loading States */
.ennu-service-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.ennu-service-card.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.ennu-service-card.error {
    border-color: #dc3545;
    background: #f8d7da;
}

/* Success States */
.ennu-service-card.success {
    border-color: #28a745;
    background: #d4edda;
}

/* Cart Management Styles - Quantity Controls and Remove Button */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 2px;
    border: 1px solid #e9ecef;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #ffffff;
    color: #495057;
    cursor: pointer;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.quantity-btn:hover {
    background: #007cba;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 186, 0.3);
}

.quantity-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quantity-btn.minus-btn {
    border-radius: 4px 0 0 4px;
}

.quantity-btn.plus-btn {
    border-radius: 0 4px 4px 0;
}

.quantity-input {
    width: 50px;
    height: 32px;
    border: 1px solid #ced4da;
    border-left: none;
    border-right: none;
    border-radius: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    background: #ffffff;
    padding: 0;
    margin: 0;
    transition: border-color 0.15s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
}

.remove-item-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dc3545;
    background: #dc3545;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.2);
}

.remove-item-btn:hover {
    background: #c82333;
    border-color: #bd2130;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.remove-item-btn:active {
    background: #bd2130;
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(220, 53, 69, 0.4);
}

/* Cart Item Row Styling */
.cart-item-row {
    background: #f8f9fa;
}

.cart-item-row:hover {
    background: #e9ecef;
}

/* Deposit Credit Row */
.deposit-row {
    background-color: #f0f9ff;
}

.deposit-row td {
    color: #28a745;
}

.deposit-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #28a745;
    color: white;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.deposit-credit-row {
    background: #fff3cd;
    font-weight: 600;
}

.deposit-credit-row td {
    color: #856404;
}

/* Responsive adjustments for cart controls */
@media (max-width: 768px) {
    .quantity-controls {
        gap: 1px;
        padding: 1px;
    }

    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .quantity-input {
        width: 45px;
        height: 30px;
        font-size: 13px;
    }

    .remove-item-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* Full-height Services Panel (Add Treatments & Services) */
#ennu-services-panel {
    height: calc(100vh - 140px);
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

#ennu-services-panel .ennu-service-filters {
    flex: 0 0 auto;
}

#ennu-services-panel .ennu-services-container {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: none;
    min-height: 0; /* ensures proper flexbox scrolling in Safari/Chrome */
}

/* ===== CHECK-IN INTERFACE STYLES ===== */

                .ennu-login-form-container {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    min-height: 60vh;
                    padding: 20px;
                    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                }

                .ennu-login-form-wrapper {
                    background: white;
                    border-radius: 12px;
                    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
                    max-width: 400px;
                    width: 100%;
                    padding: 40px;
                    text-align: center;
                }

                .ennu-login-header h2 {
                    color: #2c3e50;
                    margin: 0 0 10px 0;
                    font-size: 24px;
                    font-weight: 600;
                }

                .ennu-login-header p {
                    color: #6c757d;
                    margin: 0 0 30px 0;
                    font-size: 16px;
                }

                .ennu-login-form {
                    margin-bottom: 30px;
                }

                .ennu-login-form .login-username,
                .ennu-login-form .login-password {
                    margin-bottom: 20px;
                }

                .ennu-login-form label {
                    display: block;
                    text-align: left;
                    font-weight: 500;
                    color: #495057;
                    margin-bottom: 5px;
                    font-size: 14px;
                }

                .ennu-login-form input[type="text"],
                .ennu-login-form input[type="password"] {
                    width: 100%;
                    padding: 12px 16px;
                    border: 2px solid #e9ecef;
                    border-radius: 6px;
                    font-size: 16px;
                    transition: border-color 0.2s ease;
                    box-sizing: border-box;
                }

                .ennu-login-form input[type="text"]:focus,
                .ennu-login-form input[type="password"]:focus {
                    outline: none;
                    border-color: #007cba;
                    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
                }

                .ennu-login-form .login-remember {
                    display: flex;
                    align-items: center;
                    margin-bottom: 20px;
                }

                .ennu-login-form .login-remember input[type="checkbox"] {
                    margin-right: 8px;
                    width: 16px;
                    height: 16px;
                }

                .ennu-login-form .login-remember label {
                    font-size: 14px;
                    color: #6c757d;
                    margin: 0;
                }

                .ennu-login-form .login-submit input[type="submit"] {
                    background: linear-gradient(135deg, #007cba 0%, #005177 100%);
                    color: white;
                    border: none;
                    padding: 14px 24px;
                    border-radius: 6px;
                    font-size: 16px;
                    font-weight: 600;
                    cursor: pointer;
                    width: 100%;
                    transition: all 0.2s ease;
                }

                .ennu-login-form .login-submit input[type="submit"]:hover {
                    transform: translateY(-1px);
                    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
                }

                .ennu-login-footer {
                    border-top: 1px solid #e9ecef;
                    padding-top: 20px;
                }

                .ennu-login-footer p {
                    margin: 0;
                }

                .ennu-login-footer a {
                    color: #007cba;
                    text-decoration: none;
                    font-weight: 500;
                }

                .ennu-login-footer a:hover {
                    text-decoration: underline;
                }

                @media (max-width: 480px) {
                    .ennu-login-form-container {
                        padding: 10px;
                        min-height: 50vh;
                    }

                    .ennu-login-form-wrapper {
                        padding: 30px 20px;
                    }

                    .ennu-login-header h2 {
                        font-size: 20px;
                    }
                }
            

/* ===== CHECK-IN INTERFACE STYLES ===== */

                .ennu-login-form-container {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    min-height: 60vh;
                    padding: 20px;
                    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                }

                .ennu-login-form-wrapper {
                    background: white;
                    border-radius: 12px;
                    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
                    max-width: 400px;
                    width: 100%;
                    padding: 40px;
                    text-align: center;
                }

                .ennu-login-header h2 {
                    color: #2c3e50;
                    margin: 0 0 10px 0;
                    font-size: 24px;
                    font-weight: 600;
                }

                .ennu-login-header p {
                    color: #6c757d;
                    margin: 0 0 30px 0;
                    font-size: 16px;
                }

                .ennu-login-form {
                    margin-bottom: 30px;
                }

                .ennu-login-form .login-username,
                .ennu-login-form .login-password {
                    margin-bottom: 20px;
                }

                .ennu-login-form label {
                    display: block;
                    text-align: left;
                    font-weight: 500;
                    color: #495057;
                    margin-bottom: 5px;
                    font-size: 14px;
                }

                .ennu-login-form input[type="text"],
                .ennu-login-form input[type="password"] {
                    width: 100%;
                    padding: 12px 16px;
                    border: 2px solid #e9ecef;
                    border-radius: 6px;
                    font-size: 16px;
                    transition: border-color 0.2s ease;
                    box-sizing: border-box;
                }

                .ennu-login-form input[type="text"]:focus,
                .ennu-login-form input[type="password"]:focus {
                    outline: none;
                    border-color: #007cba;
                    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
                }

                .ennu-login-form .login-remember {
                    display: flex;
                    align-items: center;
                    margin-bottom: 20px;
                }

                .ennu-login-form .login-remember input[type="checkbox"] {
                    margin-right: 8px;
                    width: 16px;
                    height: 16px;
                }

                .ennu-login-form .login-remember label {
                    font-size: 14px;
                    color: #6c757d;
                    margin: 0;
                }

                .ennu-login-form .login-submit input[type="submit"] {
                    background: linear-gradient(135deg, #007cba 0%, #005177 100%);
                    color: white;
                    border: none;
                    padding: 14px 24px;
                    border-radius: 6px;
                    font-size: 16px;
                    font-weight: 600;
                    cursor: pointer;
                    width: 100%;
                    transition: all 0.2s ease;
                }

                .ennu-login-form .login-submit input[type="submit"]:hover {
                    transform: translateY(-1px);
                    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
                }

                .ennu-login-footer {
                    border-top: 1px solid #e9ecef;
                    padding-top: 20px;
                }

                .ennu-login-footer p {
                    margin: 0;
                }

                .ennu-login-footer a {
                    color: #007cba;
                    text-decoration: none;
                    font-weight: 500;
                }

                .ennu-login-footer a:hover {
                    text-decoration: underline;
                }

                @media (max-width: 480px) {
                    .ennu-login-form-container {
                        padding: 10px;
                        min-height: 50vh;
                    }

                    .ennu-login-form-wrapper {
                        padding: 30px 20px;
                    }

                    .ennu-login-header h2 {
                        font-size: 20px;
                    }
                }
            
/* ===== CHECK-IN INTERFACE STYLES ===== */

.ennu-checkin-interface-enhanced {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.checkin-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 0;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .checkin-header {
        padding: 30px 40px;
    }
}

.checkin-header h1 {
    margin: 0 0 20px 0;
    font-size: 28px;
}

.header-stats {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
}

.stat-badge.active {
    background: #28a745;
}

.stat-badge.waiting {
    background: #ffc107;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

.checkin-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-content: center;
}

.checkin-tab {
    padding: 15px 25px;
    background: white;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5em;
}

.checkin-tab:hover {
    background: #f8f9fa;
    color: #0073aa;
}

.checkin-tab.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.appointments-grid {
    display: grid;
    gap: 20px;
}

.appointment-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: all 0.2s;
}

.appointment-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: #0073aa;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #005a87;
}

/* Week Appointments Grid Layout */
.week-appointments-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

/* Week views contained within tab content - no full screen */

/* Week view header for navigation */
.week-view-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 15px 20px;
    border-bottom: 2px solid #0073aa;
    margin: -20px -20px 20px -20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 11;
}

.week-view-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.week-view-close {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.week-view-close:hover {
    background: #c82333;
}

.tab-panel#tab-this-week.active .week-appointments-grid,
.tab-panel#tab-next-week.active .week-appointments-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 15px;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Responsive adjustments for week views */
@media (max-width: 1400px) {
    .tab-panel#tab-this-week.active .week-appointments-grid,
    .tab-panel#tab-next-week.active .week-appointments-grid {
        grid-template-columns: repeat(5, minmax(200px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 1200px) {
    .tab-panel#tab-this-week.active .week-appointments-grid,
    .tab-panel#tab-next-week.active .week-appointments-grid {
        grid-template-columns: repeat(5, minmax(180px, 1fr));
        gap: 8px;
    }

    .tab-panel#tab-this-week.active,
    .tab-panel#tab-next-week.active {
        padding: 180px 20px !important;
    }
}

@media (max-width: 1000px) {
    .tab-panel#tab-this-week.active .week-appointments-grid,
    .tab-panel#tab-next-week.active .week-appointments-grid {
        grid-template-columns: repeat(5, minmax(150px, 1fr));
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .tab-panel#tab-this-week.active .week-appointments-grid,
    .tab-panel#tab-next-week.active .week-appointments-grid {
        grid-template-columns: repeat(5, minmax(120px, 1fr));
        gap: 3px;
    }

    .tab-panel#tab-this-week.active,
    .tab-panel#tab-next-week.active {
        padding: 10px;
    }

    .weekday-header {
        padding: 10px 8px;
        font-size: 14px;
    }

    .weekday-date {
        font-size: 12px;
    }

    .appointment-count {
        font-size: 11px;
    }

    .weekday-appointments {
        padding: 10px;
    }
}

.weekday-column {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.weekday-header {
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.weekday-header .weekday-name {
    font-size: 16px;
    margin: 0;
}

.weekday-header .weekday-date {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.today-badge {
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
}

.appointment-count {
    font-size: 14px;
    font-weight: normal;
    color: #6c757d;
}

.weekday-appointments {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== APPOINTMENT CARDS - BEAUTIFUL STYLING ===== */

/* Main Appointment Card */
.appointment-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.appointment-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #0073aa;
}

.appointment-card.checked-in {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

/* Appointment Time Header */
.appointment-time-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dee2e6;
    gap: 20px;
}

/* Time Section */
.time-section {
    text-align: center;
    min-width: 100px;
}

.time-display {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 4px;
}

.duration {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Patient Section */
.patient-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.patient-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.patient-info-compact h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
}

.service-name-compact {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

/* Provider Section */
.provider-section-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.provider-avatar-small-placeholder {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.provider-info-compact {
    display: flex;
    flex-direction: column;
}

.provider-label-compact {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.provider-name-compact {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

/* Appointment Body */
.appointment-body {
    padding: 20px;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.order-service-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.order-amounts {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    display: flex;
    align-items: center;
    gap: 8px;
}

.amount-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.amount-value {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

/* Appointment Actions */
.appointment-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 113, 170, 0.2);
    flex: 1;
    justify-content: center;
    min-height: 44px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004a70 100%);
    box-shadow: 0 4px 8px rgba(0, 113, 170, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: #6c757d;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
    min-height: 44px;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #0073aa;
    color: #0073aa;
}

/* Requirements Status */
.requirements-status {
    margin-bottom: 20px;
}

.requirements-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.requirement-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requirement-badge.badge-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.requirement-badge.badge-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.requirement-badge.badge-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.badge-label {
    font-weight: 700;
}

/* Appointment Details Section */
.appointment-details-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e9ecef;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item .dashicons {
    color: #6c757d;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
    min-width: 0;
}

.detail-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.detail-value {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

/* Appointment Status */
.appointment-status {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px 20px;
    border-top: 1px solid #dee2e6;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.checked-in {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ennu-checkin-interface-enhanced {
        padding: 10px;
    }

    .checkin-header {
        padding: 20px;
        margin-bottom: 20px;
    }

    .checkin-header h1 {
        font-size: 24px;
    }

    .appointment-time-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 16px;
    }

    .appointment-body {
        padding: 16px;
    }

    .patient-section,
    .provider-section-compact {
        justify-content: center;
    }

    .appointment-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .requirements-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .appointment-card {
        margin-bottom: 16px;
    }
    
    .appointment-time-header,
    .appointment-body {
        padding: 16px;
    }
    
    .time-display {
        font-size: 20px;
    }
    
    .detail-item {
        gap: 10px;
    }
}

/* ==========================================================================
   Appointment Notes Section
   ========================================================================== */

.appointment-notes-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.appointment-notes-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.notes-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.notes-input-area textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    min-height: 60px;
}

.notes-input-area textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.notes-input-area button {
    padding: 10px 16px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.notes-input-area button:hover:not(:disabled) {
    background: #005a87;
}

.notes-input-area button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.notes-timeline {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.no-notes {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.notes-error {
    color: #dc3545;
    text-align: center;
    padding: 20px;
    background: #f8d7da;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.notes-loading {
    color: #6c757d;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.note-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #6c757d;
}

.note-timestamp {
    font-weight: 500;
}

.note-staff {
    font-style: italic;
}

.note-content {
    color: #2c3e50;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .appointment-details-section {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .appointment-notes-section {
        padding: 15px;
        margin-top: 20px;
    }

    .notes-input-area {
        flex-direction: column;
        align-items: stretch;
    }

    .notes-input-area textarea {
        min-height: 80px;
    }

    .notes-input-area button {
        align-self: flex-start;
    }

    .note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

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

.ennu-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
}

.modal-content {
    position: relative;
    margin: 50px auto;
    max-width: 900px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.modal-body {
    padding: 0;
}

/* Patient Modal Content Styles */
.patient-modal-content {
    padding: 20px;
}

.patient-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.patient-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.patient-info h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.patient-info p {
    margin: 5px 0;
    color: #666;
}

/* Appointment Details Section */
.appointment-details-section {
    margin-bottom: 30px;
}

.appointment-details-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.appointment-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

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

.appointment-header h4 {
    margin: 0;
    color: #495057;
}

.appointment-time {
    color: #6c757d;
    font-size: 14px;
}

.appointment-details p {
    margin: 5px 0;
    color: #495057;
}

/* Requirements Section */
.requirements-section {
    margin-bottom: 30px;
}

.requirements-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.requirements-status {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #dee2e6;
}

.requirement-item.complete {
    border-left-color: #28a745;
}

.requirement-item.incomplete {
    border-left-color: #dc3545;
}

.requirement-item.pending {
    border-left-color: #ffc107;
}

.requirement-icon {
    font-size: 18px;
}

.requirement-text {
    flex: 1;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
}

.document-list {
    margin-top: 10px;
    padding-left: 20px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.document-item.signed {
    color: #28a745;
}

.document-item.not_signed {
    color: #dc3545;
}

.document-name {
    flex: 1;
}

.document-status {
    font-size: 16px;
}

/* Assessment Section */
.assessment-section {
    margin-bottom: 30px;
}

.assessment-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.assessment-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.assessment-summary p {
    margin: 5px 0;
}

/* Biomarkers Section */
.biomarkers-section {
    margin-bottom: 30px;
}

.biomarkers-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

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

.biomarker-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.biomarker-item h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
}

.biomarker-value {
    font-size: 18px;
    font-weight: bold;
    color: #007cba;
    margin: 5px 0;
}

.biomarker-status {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    margin: 5px 0 0 0;
}

.biomarker-status.normal {
    color: #28a745;
}

.biomarker-status.high {
    color: #dc3545;
}

.biomarker-status.low {
    color: #ffc107;
}

/* Appointments Section */
.appointments-section {
    margin-bottom: 30px;
}

.appointments-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.appointments-list {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.appointment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

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

.appointment-service {
    font-weight: 500;
    color: #495057;
}

.appointment-date {
    color: #6c757d;
    font-size: 14px;
}

.appointment-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
}

.appointment-status.approved {
    background: #28a745;
    color: white;
}

.appointment-status.pending {
    background: #ffc107;
    color: #212529;
}

.appointment-status.cancelled {
    background: #dc3545;
    color: white;
}

/* Modal Actions */
.modal-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.modal-actions .btn-primary,
.modal-actions .btn-success,
.modal-actions .btn-secondary {
    min-width: 200px;
}

/* Check-in Modal Styles */
.checkin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkin-modal-overlay.show {
    opacity: 1;
}

.checkin-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.checkin-modal-overlay.show .checkin-modal-content {
    transform: scale(1);
}

.checkin-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.checkin-modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
    font-weight: 600;
}

.checkin-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.checkin-modal-close:hover {
    background-color: #e0e0e0;
    color: #333;
}

.checkin-modal-body {
    padding: 30px;
}

.checkin-form-section {
    margin-bottom: 25px;
}

.checkin-form-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.checkin-form-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.checkin-form-section textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

/* Product Search Styles */
.product-search-container {
    position: relative;
}

#product_search {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

#product_search:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.product-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.product-search-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.product-search-item:hover {
    background-color: #f8f9fa;
}

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

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-info strong {
    font-weight: 600;
    color: #333;
}

.product-price {
    color: #007cba;
    font-weight: 600;
}

.add-product-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.add-product-btn:hover {
    background: #005a87;
}

.no-results {
    padding: 12px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Selected Products Styles */
.selected-products {
    margin-top: 15px;
}

.selected-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
}

.selected-product-info {
    flex: 1;
}

.selected-product-info strong {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.product-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-quantity {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.remove-product-btn {
    background: #dc3232;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.remove-product-btn:hover {
    background: #a00;
}

/* Form Actions */
.checkin-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-secondary {
    background: #f7f7f7;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.btn-primary {
    background: #007cba;
    color: white;
    border: 1px solid #007cba;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-primary:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
}

.btn-danger {
    background: #dc3232;
    border-color: #dc3232;
}

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

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Responsive design */
@media (max-width: 768px) {
    .checkin-modal-content {
        width: 95%;
        margin: 20px;
    }

    .checkin-modal-header,
    .checkin-modal-body {
        padding: 15px 20px;
    }

    .checkin-form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin-bottom: 10px;
    }

    .selected-product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .product-controls {
        align-self: flex-end;
    }
}

