/* Admin Orders Page Styles */

/* ===== Filter Container Styles ===== */
.AOfilter-container {
    margin: 10px auto;   
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.AOfilter-container h3 {
    color: #6F4F37;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

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

.AOfilter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.AOfilter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #6F4F37;
    margin-bottom: 2px;
}

.AOfilter-input,
.AOfilter-select,
.AOfilter-date {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.AOfilter-input:focus,
.AOfilter-select:focus,
.AOfilter-date:focus {
    outline: none;
    border-color: #6F4F37;
    box-shadow: 0 0 0 2px rgba(111, 79, 55, 0.2);
}

.AOfilter-input::placeholder {
    color: #999;
}

.AOclear-filters {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    align-self: flex-end;
    margin-top: 10px;
}

.AOclear-filters:hover {
    background: #c82333;
}

.AOresults-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-align: center;
    padding: 10px;
    background: #e9ecef;
    border-radius: 6px;
    margin-top: 10px;
}

.AOno-orders {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.AOno-orders p {
    font-size: 16px;
    margin-bottom: 20px;
}

.AOno-orders .AOclear-filters {
    margin-top: 0;
}

/* ===== Responsive Admin Orders Filter Styles ===== */
@media (max-width: 768px) {
    .AOfilter-container {
        margin: 15px;
        padding: 15px;
    }
    
    .AOfilter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .AOfilter-group {
        gap: 8px;
    }
    
    .AOclear-filters {
        width: 100%;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .AOfilter-container {
        margin: 10px;
        padding: 12px;
    }
    
    .AOfilter-container h3 {
        font-size: 16px;
    }
    
    .AOfilter-input,
    .AOfilter-select,
    .AOfilter-date {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ===== Print Modal Styles ===== */
.CLprint-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.CLprint-modal {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 800px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.CLprint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.CLprint-header h3 {
    margin: 0;
    color: #6F4F37;
    font-size: 18px;
    font-weight: 600;
}

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

.CLprint-close:hover {
    background: #e9ecef;
    color: #333;
}

.CLprint-content {
    padding: 20px;
}

.CLprint-summary {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.CLprint-summary h4 {
    margin: 0 0 10px 0;
    color: #6F4F37;
    font-size: 16px;
}

.CLprint-summary p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.CLprint-orders h4 {
    margin: 0 0 15px 0;
    color: #6F4F37;
    font-size: 16px;
}

.CLprint-table {
    overflow-x: auto;
}

.CLprint-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.CLprint-table th,
.CLprint-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.CLprint-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #6F4F37;
}

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

.CLprint-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.CLprint-cancel {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.CLprint-cancel:hover {
    background: #5a6268;
}

.CLprint-confirm {
    padding: 10px 20px;
    background: #ab9679;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.CLprint-confirm:hover {
    background: #946e50;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(171, 150, 121, 0.3);
}

/* Enhanced Print Modal Styles */
.CLprint-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.CLprint-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.CLprint-preview-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 4px;
    text-align: center;
}

.CLprint-preview-value {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.CLprint-filters-info {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.CLprint-filters-info h5 {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 13px;
    font-weight: 500;
}

.CLprint-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.CLprint-filter-tag {
    background: #6c757d;
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
}

.CLprint-orders h4 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 15px;
    font-weight: 500;
}

/* Responsive Print Modal */
@media (max-width: 768px) {
    .CLprint-modal {
        width: 95%;
        margin: 20px;
    }
    
    .CLprint-actions {
        flex-direction: column;
    }
    
    .CLprint-cancel,
    .CLprint-confirm {
        width: 100%;
    }
}
