:root { 
    --brand-color: #1F2937; 
    --font-main: 'Inter', sans-serif; 
    --base-size: 16px; 
}

body { font-family: 'Inter', sans-serif; font-size: 14px; color: #1f2937; }

.print-container { 
    font-family: var(--font-main); 
    font-size: var(--base-size); 
    font-variant-numeric: tabular-nums; 
}

@media print {
    @page { size: A4; margin: 10mm 15mm; }
    html, body {
        background: white !important;
        padding: 0 !important; margin: 0 !important;
        width: 100% !important; height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }
    .no-print { display: none !important; }
    .print-container {
        box-shadow: none !important; border: none !important;
        width: 100% !important; max-width: 100% !important;
        margin: 0 !important; padding: 0 !important;
        min-height: 0 !important;
    }
    .flex.flex-col.lg\:flex-row { display: block !important; padding: 0 !important; gap: 0 !important; }
    .flex.flex-col.md\:flex-row.justify-between { display: flex !important; flex-direction: row !important; align-items: flex-start !important; }
    .flex.flex-col.md\:flex-row.justify-between > div { width: 50% !important; }
    .grid.grid-cols-1.md\:grid-cols-2 { display: grid !important; grid-template-columns: 1fr 1fr !important; }
    .text-right { text-align: right !important; }
    .mt-auto.pt-24 { padding-top: 2.5rem !important; }
}

[contenteditable]:focus { outline: 2px dashed var(--brand-color); outline-offset: -2px; background: #f9fafb; padding: 2px; }
#logo-preview { object-fit: contain; width: 150px; }

input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch {
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.price-text {
    text-align: right;
    white-space: nowrap;
    min-width: 100px;
}
.btn-spacer { width: 24px; flex-shrink: 0; }

.delete-btn-red {
    color: #ef4444 !important;
    font-weight: bold;
    opacity: 1 !important;
}

/* Toggle Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--brand-color); }
input:checked + .slider:before { transform: translateX(22px); }

/* Mobile Table Fix */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}