
/* ===== RESTAURANT POS STYLES - UPDATED WITH YOUR COLOR PALETTE ===== */
:root {
    /* Your Restaurant Color Palette */
    --primary: #E63946;          /* Vibrant Red for call-to-actions */
    --primary-dark: #D62839;
    --primary-light: #FF6B6B;
    --primary-50: #FFE5E7;
    
    --secondary: #F4A261;        /* Warm Orange for accents */
    --secondary-dark: #E76F51;
    --secondary-light: #FFD166;
    
    --accent: #0056b3;           /* Blue for highlights */
    --accent-dark: #007bff;
    --accent-light: #83C5BE;
    
    --neutral-dark: #2D3436;     /* Dark gray for text */
    --neutral-medium: #636E72;   /* Medium gray */
    --neutral-light: #DFE6E9;    /* Light gray for borders */
    --neutral-50: #F8F9FA;       /* Backgrounds */
    
    --success: #3498DB;          /* Blue for success */
    --warning: #F39C12;          /* Orange for warnings */
    --error: #E74C3C;            /* Red for errors */
    --info: #3498DB;             /* Blue for info */
    
    --surface: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: #f5f7fa;
    color: var(--neutral-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ===== PROFESSIONAL POS STYLES ===== */
/* Hidden Sections */
.pos-hidden-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 20px;
}

#submit-and-print-reciept {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

#submit-and-print-reciept:hover {
    background-color: var(--primary-dark);
    transform: scale(1.03);
}

#submit-and-print-reciept:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.4);
}

.checkwholesale {
    display: none;
}

/* ===== ENHANCED TABLE STYLES ===== */
#item-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

#item-table th {
    background: linear-gradient(180deg, var(--neutral-dark), #1a1a1a);
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border: none;
}

#item-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--neutral-light);
    vertical-align: middle;
    transition: var(--transition);
}

/* Alternating row colors with smooth transitions */
#item-table tbody tr {
    transition: var(--transition);
}

#item-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

#item-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Hover effects for rows */
#item-table tbody tr:hover {
    background-color: var(--primary-50) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.15);
}

/* New row animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#item-table tbody tr {
    animation: slideIn 0.4s ease-out;
}

#item-table input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
    transition: var(--transition);
}

#item-table input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
    outline: none;
}

/* Buttons */
.pos-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.pos-button:hover {
    background: var(--primary-dark);
}

.pos-button-primary {
    background: var(--primary);
}

.pos-button-primary:hover {
    background: var(--primary-dark);
}

.remove-item {
    background: linear-gradient(135deg, var(--error), #c82333);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.remove-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c82333, #a71e2a);
}

.remove-item:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.4);
}

/* Form Groups */
.form-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 12px 15px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.form-group:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-group label {
    min-width: 100px;
    font-weight: 600;
    color: var(--neutral-medium);
}

.form-group span {
    font-weight: 700;
    color: var(--neutral-dark);
    font-size: 16px;
    flex: 1;
    text-align: right;
}

.form-group input,
.form-group select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    min-width: 150px;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.25);
}

.form-group input[readonly] {
    background-color: #e9ecef;
    color: var(--neutral-medium);
}

/* Autocomplete */
#autocomplete-container {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

/* When product is selected */
.has-product #item-details-section,
.has-items #customer-section,
.has-items #payment-section {
    display: block;
    opacity: 1;
}

/* ===== CLEAN RESPONSIVE POS HEADER ===== */
.pos-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.2);
    min-height: 60px;
}

.pos-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: white;
    white-space: nowrap;
}

/* Receipt number */
.pos-header input[type="text"] {
    background: rgba(255,255,255,0.95);
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-dark);
    width: 160px;
    height: 36px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pos-header input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}

.pos-header input[type="text"]::placeholder {
    color: #8a8a8a;
    font-size: 12px;
}

/* Date and customer controls */
.pos-date {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.date-control-group label {
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
    white-space: nowrap;
}

.pos-date select,
.pos-date input[type="date"] {
    padding: 6px 8px;
    border: none;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.95);
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-dark);
    width: 100%;
    height: 32px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.pos-date select:focus,
.pos-date input[type="date"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}

/* Status indicator */
.header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #28a745;
}

/* ===== PAYMENT MODAL STYLES ===== */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200000;
    backdrop-filter: blur(5px);
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
}

.payment-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.payment-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 50%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    transform: scale(0.9);
    opacity: 0;
    transition: var(--transition);
    position: relative;
    z-index: 200001;
    
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.payment-modal.active .payment-modal-content {
    transform: scale(1);
    opacity: 1;
}

.payment-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px 30px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 200002;
}

.payment-modal-body {
    padding: 30px;
    position: relative;
    z-index: 200001;
    min-height: auto;
}

/* Enhanced payment summary styles */
.payment-summary-section {
    position: relative;
    z-index: 200001;
}

.payment-summary-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--neutral-light);
    transition: var(--transition);
    position: relative;
    z-index: 200001;
    
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.payment-summary-group:hover {
    background: #f8fafc;
    margin: 0 -10px;
    padding: 15px 10px;
    border-radius: var(--radius);
}

.payment-summary-group:last-child {
    border-bottom: none;
    border-top: 2px solid var(--primary);
    font-weight: 700;
    font-size: 18px;
    background: var(--primary-50);
    margin: 10px -10px -10px -10px;
    padding: 20px 10px;
    border-radius: 0 0 var(--radius) var(--radius);
}

.payment-summary-label {
    font-weight: 600;
    color: var(--neutral-medium);
    font-size: 15px;
}

.payment-summary-value {
    font-weight: 700;
    color: var(--neutral-dark);
    font-size: 16px;
}

.payment-summary-group:last-child .payment-summary-value {
    color: var(--primary);
    font-size: 20px;
}

/* Payment method styles */
.payment-method-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed var(--neutral-light);
    position: relative;
    z-index: 200001;
}

.payment-method-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 200001;
}

.payment-method-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--neutral-medium);
    font-size: 15px;
}

.payment-method-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--neutral-light);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    background: white;
    position: relative;
    z-index: 200001;
    
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.payment-method-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.payment-method-input::placeholder {
    color: var(--neutral-medium);
    font-weight: 400;
}

/* Multiple payment container */
.multiple-payment-container {
    position: relative;
    z-index: 200001;
}

/* Modal actions */
.payment-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--neutral-light);
    position: relative;
    z-index: 200001;
    
    position: sticky;
    bottom: 0;
    background: white;
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

.modal-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    z-index: 200002;
    
    min-height: 50px;
    -webkit-tap-highlight-color: rgba(230, 57, 70, 0.3);
    touch-action: manipulation;
}

.modal-btn-cancel {
    background: var(--neutral-medium);
    color: white;
}

.modal-btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.modal-btn-confirm {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== ENHANCED CHECKOUT BUTTON STYLES ===== */
#checkout-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1000;
    
    min-height: 60px;
    -webkit-tap-highlight-color: rgba(230, 57, 70, 0.3);
    touch-action: manipulation;
    
    width: 100%;
}



#checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

#checkout-btn:active {
    transform: translateY(-1px);
}

#checkout-btn:disabled {
    background: var(--neutral-medium);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#checkout-btn:hover::before {
    left: 100%;
}

/* Checkout container styles */
#checkout-container {
    margin-top: 25px;
    transition: var(--transition);
}

/* ===== TABS WRAPPER - EXTRA TALL ===== */
#tabs-wrapper {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--neutral-light);
    min-height: 100vh;
    height: auto;
}

#tab-bar {
    display: flex;
    background-color: #f1f5f9;
    border-bottom: 1px solid var(--neutral-light);
    padding: 0 10px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: thin;
}

#tab-bar::-webkit-scrollbar {
    height: 6px;
}

#tab-bar::-webkit-scrollbar-thumb {
    background: var(--neutral-light);
    border-radius: 3px;
}

.tab {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    border-right: 1px solid var(--neutral-light);
    background-color: #f8fafc;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    min-width: 140px;
}

.tab:hover {
    background-color: var(--neutral-light);
}

.tab.active {
    background-color: white;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-close {
    margin-left: 8px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--neutral-medium);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tab-close:hover {
    background-color: var(--error);
    color: white;
}

#add-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    cursor: pointer;
    background-color: #f1f5f9;
    border: none;
    font-size: 18px;
    color: var(--primary);
    transition: var(--transition);
    min-width: 60px;
}

#add-tab:hover {
    background-color: var(--neutral-light);
}

#tab-content {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px);
    min-height: 800px;
}

.tab-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.tab-frame.active {
    display: block;
}

/* ===== ENHANCED PRODUCT SEARCH SECTION ===== */
.pos-product-search {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    margin-bottom: 20px;
    align-items: end;
    background: white;
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--neutral-light);
}

.pos-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.pos-input-group label {
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--neutral-dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Barcode input group */
.pos-input-group:first-child {
    position: relative;
}

#product-code {
    padding: 10px 40px 10px 12px;
    border: 2px solid var(--primary-50);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    background: white;
    width: 100%;
    box-sizing: border-box;
    color: var(--neutral-dark);
    height: 46px;
}

#product-code:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
    background: white;
}

#product-code::placeholder {
    color: var(--neutral-medium);
    font-weight: 400;
    font-size: 13px;
}

/* Product description input */
#item-name {
    padding: 10px 12px;
    border: 2px solid var(--primary-50);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    background: white;
    width: 100%;
    box-sizing: border-box;
    color: var(--neutral-dark);
    height: 46px;
}

#item-name:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
    background: white;
}

#item-name::placeholder {
    color: var(--neutral-medium);
    font-weight: 400;
    font-size: 13px;
}

/* ===== SCANNER MODAL STYLES ===== */
.scanner-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 200000;
    backdrop-filter: blur(5px);
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
}

.scanner-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.scanner-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    transition: var(--transition);
}

.scanner-modal.active .scanner-modal-content {
    transform: scale(1);
    opacity: 1;
}

.scanner-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scanner-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.scanner-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.scanner-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.scanner-modal-body {
    padding: 0;
}

#scanner-container {
    width: 100%;
    height: 300px;
    background: #000;
    position: relative;
}

.scanner-instructions {
    padding: 15px 25px;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-light);
}

.scanner-instructions p {
    margin: 0;
    color: var(--neutral-medium);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scanner-instructions i {
    color: var(--primary);
}

.scanner-modal-actions {
    padding: 20px 25px;
    display: flex;
    gap: 10px;
}

.modal-btn-secondary {
    background: var(--neutral-medium);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.modal-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Updated scan icon styling */
.scan-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-medium);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    background: none;
    border: none;
    padding: 6px;
    border-radius: var(--radius);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-light);
}

.scan-icon:hover {
    color: var(--primary);
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.scan-icon.active {
    color: white;
    background: #28a745;
    animation: pulse 1.5s infinite;
}

/* Scanner viewfinder styling */
#scanner-container .html5-qrcode-element {
    display: none !important;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Hide the original payment section */
#payment-section {
    display: none !important;
}

/* Ensure body doesn't scroll when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    -webkit-overflow-scrolling: auto;
}

/* Payment modal close button */
.payment-modal-close {
    background: transparent;
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.payment-modal-close:hover {
    color: #fff;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .receipt-container {
        padding: 15px;
    }
    
    .form-group {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .form-group label {
        font-weight: 600;
        color: var(--neutral-dark);
        margin-bottom: 5px;
        width: 100%;
    }

    #invoice_number, #cashier-name, #customer-number, #product-code, #item-name,
    #invoice_date, #due_date, #total_debit, #discount, #tax-rate, #tax-amount,
    #gross-total, #net-total, #payment_mode, #amount_paid, #balance_remaining,
    .form-group input, .form-group select {
        width: 100%;
        padding: 10px;
        border: 1px solid var(--neutral-light);
        border-radius: var(--radius);
        font-size: 14px;
        box-sizing: border-box;
    }
    
    .pos-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pos-product-search {
        grid-template-columns: 1fr;
    }

    .form-group label {
        min-width: unset;
        width: 100%;
    }
    
    .pos-date {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    #receipt-date,
    #receipt-number,
    select,input[type="text"],input[type="date"] {
        width: 100%;
        box-sizing: border-box;
    }

    #item-table th, #item-table td {
        font-size: 12px;
        padding: 8px;
    }

    .pos-button, .pos-button-primary {
        width: 100%;
        text-align: center;
    }
    
    /* Tab responsive */
    #tab-bar {
        padding: 0 5px;
    }
    
    .tab {
        padding: 10px 15px;
        min-width: 120px;
    }
    
    #tab-content {
        height: calc(100vh - 100px);
        min-height: 600px;
    }
    
    /* Payment modal adjustments */
    .payment-modal-content {
        width: 95%;
        margin: 20px;
        border-radius: var(--radius);
        max-height: 85vh;
    }
    
    .payment-modal-header {
        padding: 20px 25px;
        position: sticky;
        top: 0;
        border-radius: var(--radius) var(--radius) 0 0;
    }
    
    .payment-modal-header h2 {
        font-size: 20px;
    }
    
    .payment-modal-body {
        padding: 25px 20px;
    }
    
    /* Large screens: button on the right */
    #checkout-container {
        display: flex;
        justify-content: center;
    }
    
    #checkout-btn {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .form-group {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .form-group label {
        font-weight: 600;
        color: var(--neutral-dark);
        margin-bottom: 5px;
    }

    #invoice_number, #cashier-name, #customer-number, #product-code, #item-name,
    #invoice_date, #due_date, #total_debit, #discount, #tax-rate, #tax-amount,
    #gross-total, #net-total, #payment_mode, #amount_paid, #balance_remaining,
    .form-group input, .form-group select {
        width: 100%;
        padding: 10px;
        border: 1px solid var(--neutral-light);
        border-radius: var(--radius);
        font-size: 14px;
        box-sizing: border-box;
    }
    
    .pos-header h1 {
        font-size: 20px;
    }

    #product-code, #item-name,
    #receipt-date,
    #tax-rate, #discount {
        font-size: 13px;
        padding: 8px;
    }

    #gross-total-display,
    #tax-amount-display,
    #net-total-display {
        font-size: 14px;
    }

    #item-table {
        font-size: 12px;
    }

    .pos-customer-info, 
    #payment-section .receipt-container {
        padding: 10px;
    }

    .pos-header {
        padding-bottom: 10px;
        border-bottom: 1px solid var(--primary);
    }

    #item-table thead {
        display: none;
    }

    #item-table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: #fff;
        padding: 10px;
        border: 1px solid var(--neutral-light);
        border-radius: var(--radius);
    }

    #item-table td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        font-size: 13px;
        border: none;
    }

    #item-table td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 10px;
    }

    #invoice_number, #cashier-name, #customer-number, #product-code, #item-name,
    #invoice_date, #due_date, #total_debit, #discount, #tax-rate, #tax-amount,
    #gross-total, #net-total, #payment_mode, #amount_paid, #balance_remaining {
        width: 100%;
    }
    
    /* Mobile table styles */
    #item-table {
        display: block;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }
    
    #item-table thead {
        display: none;
    }
    
    #item-table tbody {
        display: block;
        width: 100%;
    }
    
    #item-table tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
        background: white;
        border: none;
        border-radius: var(--radius);
        padding: 0;
        box-shadow: var(--shadow);
        overflow: hidden;
        transition: var(--transition);
    }
    
    /* Enhanced mobile row colors */
    #item-table tbody tr:nth-child(odd) {
        background: linear-gradient(135deg, #ffffff, var(--neutral-50));
    }
    
    #item-table tbody tr:nth-child(even) {
        background: linear-gradient(135deg, var(--neutral-50), #ffffff);
    }
    
    #item-table tbody tr:hover {
        background: linear-gradient(135deg, var(--primary-50), #ffffff) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(230, 57, 70, 0.2);
    }
    
    #item-table td {
        display: flex;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--neutral-light);
        width: 100%;
        background: transparent !important;
    }
    
    #item-table td:last-child {
        border-bottom: none;
        padding-bottom: 16px;
    }
    
    #item-table td:first-child {
        padding-top: 16px;
        background: var(--neutral-50);
        border-bottom: 2px solid var(--primary);
    }
    
    /* Add labels for each cell with better styling */
    #item-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 8px;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
    }
    
    #item-table td::before::after {
        content: ":";
        margin-left: 4px;
    }
    
    /* Specific styling for checkbox cell */
    #item-table td:first-child::before {
        content: "📦 Wholesale Option";
        color: var(--primary-dark);
    }
    
    #item-table td:nth-child(2)::before {
        content: "🛍️ Product Details";
    }
    
    #item-table td:nth-child(3)::before {
        content: "📊 Quantity";
    }
    
    #item-table td:nth-child(4)::before {
        content: "💰 Price";
    }
    
    #item-table td:nth-child(5)::before {
        content: "🎯 Discount";
    }
    
    #item-table td:nth-child(6)::before {
        content: "🧮 Subtotal";
    }
    
    #item-table td:nth-child(7)::before {
        content: "⚡ Actions";
    }
    
    /* Checkbox label adjustments for mobile */
    .wholesale-checkbox-label {
        font-size: 15px;
        flex-direction: row;
        align-items: center;
        background: white;
        padding: 12px;
        border-radius: var(--radius);
        margin: 8px 0;
    }
    
    .checkwholesale {
        display: inline;
        font-weight: 600;
        color: var(--neutral-dark);
    }
    
    .use-wholesale {
        width: 24px;
        height: 24px;
    }
    
    /* Input adjustments for mobile */
    #item-table input {
        font-size: 16px;
        padding: 12px;
        border: 2px solid var(--neutral-light);
        border-radius: var(--radius);
        background: white;
    }
    
    #item-table input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
    }
    
    .remove-item, #submit-and-print-reciept {
        font-size: 16px;
        padding: 14px;
        border-radius: var(--radius);
        margin-top: 8px;
    }
    
    /* Small screens: full width with fixed positioning for easy access */
    #checkout-container {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        margin: 0;
        z-index: 1001;
        background: transparent;
        padding: 0;
    }
    
    #checkout-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 50px;
        border-radius: var(--radius);
        box-shadow: 0 8px 30px rgba(230, 57, 70, 0.4);
        margin: 0;
    }
    
    /* Add padding to the bottom of receipt container to prevent content from being hidden behind fixed button */
    .receipt-container {
        padding-bottom: 100px !important;
    }
}

@media (max-width: 480px) {
    .scanner-modal-content {
        width: 98%;
        margin: 10px;
    }
    
    #scanner-container {
        height: 200px;
    }
    
    .scanner-instructions {
        padding: 12px 15px;
    }
    
    .scanner-modal-actions {
        padding: 15px;
    }
    
    .payment-modal-header {
        padding: 15px 20px;
    }
    
    .payment-modal-body {
        padding: 20px 15px;
    }
    
    .payment-modal-actions {
        flex-direction: column;
        gap: 10px;
        position: sticky;
        bottom: 0;
        background: white;
        padding: 15px 0;
        margin-top: 20px;
    }
    
    .payment-summary-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .payment-summary-value {
        align-self: flex-end;
    }
    
    .payment-modal-content {
        width: 98%;
        margin: 10px;
        max-height: 80vh;
    }
    
    #checkout-container {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
    
    #checkout-btn {
        padding: 12px 16px;
        font-size: 15px;
        min-height: 48px;
    }
    
    .receipt-container {
        padding-bottom: 90px !important;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    #checkout-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    #checkout-btn {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .receipt-container {
        padding-bottom: 80px !important;
    }
}

/* Print Styles */
@media print {
    .remove-item {
        display: none;
    }
    
    #item-table {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    #item-table tbody tr {
        background: white !important;
    }
}

.suggestions-dropdown {
    position: absolute;
    background: white;
    border: 1px solid var(--neutral-light);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: calc(100% - 2px);
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: var(--neutral-50);
}

/* Custom scrollbar for better touch experience */
.payment-modal-content::-webkit-scrollbar,
#autocomplete-container::-webkit-scrollbar,
.scanner-modal-content::-webkit-scrollbar {
    width: 6px;
}

.payment-modal-content::-webkit-scrollbar-track,
#autocomplete-container::-webkit-scrollbar-track,
.scanner-modal-content::-webkit-scrollbar-track {
    background: var(--neutral-50);
    border-radius: 3px;
}

.payment-modal-content::-webkit-scrollbar-thumb,
#autocomplete-container::-webkit-scrollbar-thumb,
.scanner-modal-content::-webkit-scrollbar-thumb {
    background: var(--neutral-light);
    border-radius: 3px;
}

.payment-modal-content::-webkit-scrollbar-thumb:hover,
#autocomplete-container::-webkit-scrollbar-thumb:hover,
.scanner-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-medium);
}













/* ===== ENHANCED CHECKOUT BUTTON STYLES ===== */
#checkout-btn {

    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1000;
    
    /* Better touch targets */
    min-height: 60px;
    -webkit-tap-highlight-color: rgba(0, 123, 255, 0.3);
    touch-action: manipulation;
    
    /* Default mobile-first: full width */
    width: 100%;
}

#checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

#checkout-btn:active {
    transform: translateY(-1px);
}

#checkout-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#checkout-btn:hover::before {
    left: 100%;
}

/* Checkout container styles */
#checkout-container {
    margin-top: 25px;
    transition: all 0.3s ease;
}

/* Large screens: button on the right */
@media (min-width: 1024px) {
    #checkout-container {
        display: flex;
        justify-content: flex-end !important;
    }
    
    #checkout-btn {
        width: auto;
        min-width: 250px;
        padding: 16px 40px;
    }
}

/* Medium screens: centered but with max width */
@media (min-width: 768px) and (max-width: 1023px) {
    #checkout-container {
        display: flex;
        justify-content: center;
    }
    
    #checkout-btn {
        width: 100%;
        max-width: 400px;
    }
}

/* Small screens: full width with fixed positioning for easy access */
@media (max-width: 767px) {
    #checkout-container {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        margin: 0;
        z-index: 1001;
        background: transparent;
        padding: 0;
    }
    
    #checkout-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 50px;
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0, 123, 255, 0.4);
        margin: 0;
    }
    
    /* Add padding to the bottom of receipt container to prevent content from being hidden behind fixed button */
    .receipt-container {
        padding-bottom: 100px !important;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    #checkout-container {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
    
    #checkout-btn {
        padding: 12px 16px;
        font-size: 15px;
        min-height: 48px;
    }
    
    .receipt-container {
        padding-bottom: 90px !important;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    #checkout-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    #checkout-btn {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .receipt-container {
        padding-bottom: 80px !important;
    }
}

/* Animation when checkout container becomes visible */
#checkout-container[style*="display: block"] {
    animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for checkout button */
#checkout-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

#checkout-btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    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);
    }
}

/* Enhanced checkout button with total amount */
#checkout-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.checkout-text {
    font-size: 18px;
    font-weight: 700;
}

.checkout-total {
    font-size: 16px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

@media (max-width: 767px) {
    .checkout-text {
        font-size: 16px;
    }
    
    .checkout-total {
        font-size: 15px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .checkout-text {
        font-size: 15px;
    }
    
    .checkout-total {
        font-size: 14px;
        padding: 4px 8px;
    }
    
    #checkout-btn {
        gap: 10px;
    }
}












/* ===== PRESCRIPTION MODAL STYLES ===== */
.prescription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200010;
    backdrop-filter: blur(5px);
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.prescription-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.prescription-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    transform: scale(0.9);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.prescription-modal.active .prescription-modal-content {
    transform: scale(1);
    opacity: 1;
}

.prescription-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px 25px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.prescription-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prescription-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    line-height: 1;
}

.prescription-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.prescription-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    scroll-behavior: smooth;
}

.prescription-medicine-info {
    background: #f8f9fa;
    padding: 18px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    border-left: 4px solid var(--primary);
}

.prescription-medicine-info h4 {
    margin-top: 0;
    color: var(--neutral-dark);
    font-size: 16px;
    margin-bottom: 8px;
}

.prescription-form-group {
    margin-bottom: 20px;
}

.prescription-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--neutral-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.prescription-form-group input,
.prescription-form-group select,
.prescription-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--neutral-light);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    box-sizing: border-box;
}

.prescription-form-group input:focus,
.prescription-form-group select:focus,
.prescription-form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.prescription-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.prescription-dosage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.prescription-dosage-item {
    background: #f8f9fa;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--neutral-light);
    transition: var(--transition);
}

.prescription-dosage-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.prescription-dosage-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--neutral-dark);
}

.prescription-dosage-item input {
    width: 100%;
    margin-bottom: 8px;
}

.prescription-duration {
    background: #e8f4fc;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    border: 1px solid #c3e6ff;
}

.prescription-summary {
    background: #f1f8e9;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 25px;
    border-left: 4px solid #7cb342;
}

.prescription-summary h4 {
    margin-top: 0;
    color: #33691e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prescription-preview {
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    background: #f5f5f5;
    padding: 15px;
    border-radius: var(--radius);
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    max-height: 200px;
    overflow-y: auto;
    font-size: 13px;
}

.prescription-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid var(--neutral-light);
    background: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
}

.prescription-btn-primary {
    background: linear-gradient(135deg, var(--success), #2e86c1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.prescription-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2e86c1, var(--success));
}

.prescription-btn-secondary {
    background: var(--neutral-medium);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.prescription-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Tooltip */
.prescription-tooltip {
    position: relative;
    display: inline-block;
}

.prescription-tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--neutral-dark);
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    pointer-events: none;
}

.prescription-tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Prescription Status Badge */
.prescription-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.prescription-status.pending {
    background: #fff3cd;
    color: #856404;
}

.prescription-status.completed {
    background: #d4edda;
    color: #155724;
}

/* Prescription Button in Action Column */
.action-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.prescription-note-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: var(--error);
    border-radius: 50%;
    border: 2px solid white;
}

.prescription-label {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

.prescription-value {
    font-weight: bold;
    color: var(--neutral-dark);
}

.prescription-hint {
    margin-left: 5px;
    color: var(--primary);
    font-size: 0.9em;
}

/* Prescription button styles */
.prescription-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 8px;
    padding: 6px 10px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prescription-btn:hover {
    background-color: var(--primary-50);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.prescription-btn.has-prescription {
    color: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}
