@font-face {
    font-family: 'ChampagneLimousines';
    src: url('Logos-produtos-EE/ChampLim.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ChampagneLimousines';
    src: url('Logos-produtos-EE/ChampLimB.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --accent-primary: #6366f1;
    --accent-secondary: #4f46e5;
    --neon-blue: #00f2ff;
    --neon-purple: #bc13fe;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --bg-dark: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'ChampagneLimousines', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

.background-energy {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    z-index: -1;
}

/* Layout */
.app-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Catalog Section */
.catalog-section {
    padding-right: 10px;
}

.catalog-header {
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    z-index: 10;
    padding: 10px 0;
}

.catalog-header h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-container input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 45px 12px 20px;
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(5px);
}

.btn-clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    line-height: 1;
}

.btn-clear-search:hover {
    color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* Product Card */
.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.product-card.active {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    opacity: 1;
}

.product-card.dormant {
    opacity: 0.6;
}

.product-logo-container {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    position: relative;
}

.product-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-type {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Sidebar Section */
.sidebar-section {
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
}

.glass-sidebar {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.patient-info-trigger {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.patient-info-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-blue);
}

.patient-info-trigger .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 2px;
}

.patient-info-trigger .value {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-badge {
    background: var(--neon-blue);
    color: #000;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.selected-products-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.empty-state {
    color: var(--text-dim);
    text-align: center;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 450px;
}

/* Individual Dosage Interface Integration */
.prescription-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--glass-shadow);
    max-height: 85vh;
    overflow-y: auto;
    /* Hide scrollbar for cleaner look but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.prescription-card::-webkit-scrollbar {
    width: 6px;
}

.prescription-card::-webkit-scrollbar-track {
    background: transparent;
}

.prescription-card::-webkit-scrollbar-thumb {
    background-color: var(--accent-primary);
    border-radius: 20px;
}

.card-header-dosage {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.logo-container {
    position: relative;
    width: 48px;
    height: 48px;
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    filter: blur(15px);
    opacity: 0.5;
    border-radius: 50%;
}

.modal-product-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.product-name-dosage {
    font-size: 1.2rem;
    color: #fff;
}

.product-name-dosage .size {
    font-weight: 300;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-left: 8px;
}

/* Natural Care Four Specific Styles */
.card-content-dosage h2 {
    font-size: 1rem;
    color: var(--neon-blue);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    padding-bottom: 5px;
}

.card-content-dosage h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 12px;
    margin-top: 20px;
}

.care-label {
    display: block;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 500;
}

.input-group {
    margin-bottom: 24px;
}

.group-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.chip-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    font-weight: 600;
}

.chip small {
    display: block;
    font-size: 0.6rem;
    font-weight: 400;
    opacity: 0.6;
}

.product-card.active {
    background: rgba(var(--neon-blue-rgb), 0.1);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(var(--neon-blue-rgb), 0.2);
}

.product-card.search-highlight {
    border-color: var(--neon-blue);
    box-shadow: 0 0 25px rgba(var(--neon-blue-rgb), 0.4);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.product-logo-container {
    font-size: 1.2rem;
}

.chip.active,
.chip.custom-trigger.active {
    background: var(--accent-primary);
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.custom-trigger {
    font-size: 1.2rem;
}

.custom-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-primary);
    border: 1px solid var(--neon-blue);
    padding: 5px 12px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.custom-input-wrapper.hidden,
.custom-trigger.hidden {
    display: none;
}

.btn-step {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
}

.step-value {
    min-width: 25px;
    text-align: center;
    font-weight: 700;
    color: var(--neon-blue);
}

.btn-confirm-custom {
    background: var(--accent-primary);
    border: none;
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.custom-text-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 15px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.custom-text-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    background: rgba(255, 255, 255, 0.08);
}

.fixed-instruction {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.9rem;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.main-actions .btn-action {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    cursor: pointer;
    width: 100%;
}

/* Final Prescription Modal */
.prescription-modal-content {
    max-width: 800px;
    width: 95%;
}

.prescription-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    border-bottom: 2px solid var(--neon-blue);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.header-logo {
    height: 60px;
    width: auto;
}

.header-info {
    text-align: right;
}

.header-info h2 {
    color: var(--neon-blue);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.date-display {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.patient-banner {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid var(--neon-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.patient-banner p {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
}

.patient-banner strong {
    color: var(--neon-blue);
    font-size: 1.1rem;
}

.week-container {
    margin-bottom: 30px;
    page-break-inside: avoid;
}

.week-title {
    color: var(--neon-blue);
    font-size: 1.1rem;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

#prescription-items-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.week-container {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.week-title {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    color: #000;
    font-size: 1rem;
    padding: 6px 20px;
    border-radius: 20px 20px 0 0;
    margin: -15px -15px 10px -15px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.2);
}

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

.prescribed-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.item-main-header {
    display: flex;
    width: 100%;
    align-items: flex-start;
}

.item-num {
    font-size: 0.9rem;
    font-weight: bold;
    margin-right: 5px;
    padding-top: 1px;
}

.item-details-body {
    flex: 1;
}

.item-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    width: 100%;
}

.item-name-col {
    white-space: nowrap;
    flex-shrink: 0;
}

.item-line-col {
    flex-grow: 1;
    height: 14px;
    border-bottom: 1px solid var(--text-dim);
    margin: 0 4px;
    opacity: 0.3;
}

.item-qty-col {
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.item-logo-small {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.item-details h4 {
    font-size: 0.9rem;
    margin: 0;
}

.posology-buy-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.item-posology {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.item-posology p {
    margin: 0;
    line-height: 1.2;
}

.btn-buy {
    background: #10b981;
    /* More vibrant emerald green */
    color: #fff;
    text-decoration: none;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-shadow: -1px 0px 9px rgb(97, 108, 105);
}

.btn-buy:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.general-instructions {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 242, 255, 0.05);
    border-radius: 16px;
}

.general-instructions h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--neon-blue);
}

.general-instructions ul {
    list-style-type: none;
    padding-left: 0;
}

.general-instructions li {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.general-instructions li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--neon-blue);
}

.signature-area {
    margin-top: 60px;
    text-align: center;
    display: none;
    /* Only show in print */
}

.sig-line {
    border-top: 1px solid #000;
    width: 250px;
    margin: 0 auto 10px;
}

.signature-image {
    display: block;
    width: 150px;
    height: auto;
    margin: 0 auto 1px;
    opacity: 0.9;
}

.prescription-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-action {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s;
}

.btn-action:active {
    transform: scale(0.98);
}

.btn-action.whatsapp {
    background: #25d366;
    color: white;
}

.btn-action.print {
    background: var(--accent-primary);
    color: white;
}

/* [DEBUG] Force Print View on Screen */
body.debug-print-mode>*:not(#prescription-modal) {
    display: none !important;
}

body.debug-print-mode #prescription-modal {
    display: block !important;
    position: static !important;
    background: #f1f5f9 !important;
    padding: 20px !important;
    height: auto !important;
    overflow: visible !important;
}

body.debug-print-mode .modal-content.prescription-modal-content {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 95% !important;
    max-width: 210mm !important;
}

body.debug-print-mode .printable-area {
    display: block !important;
    visibility: visible !important;
    background: white !important;
    color: black !important;
    padding: 10mm !important;
    border: 1px solid #ddd !important;
}

body.debug-print-mode .printable-area * {
    visibility: visible !important;
    color: black !important;
}

body.debug-print-mode .prescription-actions,
body.debug-print-mode .btn-secondary {
    display: none !important;
}

body.debug-print-mode .prescribed-items {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

body.debug-print-mode .signature-area {
    display: block !important;
    text-align: center;
}

body.debug-print-mode .signature-image {
    display: block !important;
}

body.debug-print-mode .item-posology {
    font-size: 1.1rem !important;
    white-space: normal !important;
}

body.debug-print-mode .item-details h4,
body.debug-print-mode .item-num {
    font-size: 1.25rem !important;
    color: black !important;
}

body.debug-print-mode .item-qty-col {
    font-size: 1rem !important;
    color: #333 !important;
}

body.debug-print-mode .posology-buy-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    margin-top: 10px;
}

body.debug-print-mode .btn-buy {
    display: block !important;
    background: #22c55e !important;
    margin-top: 0px !important;
}

body.debug-print-mode .date-display {
    font-size: 1.2rem !important;
    color: black !important;
}

/* Ensure table layout for debug print */
body.debug-print-mode .print-table {
    width: 100%;
    border-collapse: collapse;
}

/* Print Styles */
@media print {
    @page {
        size: A4;
        margin: 5mm;
    }

    body {
        background: white !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide everything by default */
    body>*:not(#prescription-modal) {
        display: none !important;
    }

    #prescription-modal {
        display: block !important;
        position: static !important;
        background: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    .modal-content.prescription-modal-content {
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        position: static !important;
        transform: none !important;
    }

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

    .print-table,
    .print-table tbody,
    .print-table tr,
    .print-table td {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }

    .prescription-actions,
    .btn-secondary {
        display: none !important;
    }

    .printable-area {
        display: block !important;
        visibility: visible !important;
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        padding: 5mm !important;
        border: none !important;
        box-sizing: border-box !important;
    }

    .printable-area * {
        visibility: visible !important;
        color: black !important;
    }

    /* Remove height limits from prescription-card for printing */
    .prescription-card {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    #prescription-items-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 20px;
        width: 100%;
        max-height: none !important;
        overflow: visible !important;
    }

    .week-container {
        border: 1px solid #ddd !important;
        border-radius: 15px !important;
        padding: 4px !important; /* Minimal lateral space as requested */
        margin-bottom: 20px !important;
        background: #fff !important;
        page-break-inside: avoid;
    }

    .week-title {
        background: #fbc2a8 !important;
        color: #000 !important;
        border: none !important;
        border-radius: 12px 12px 0 0 !important;
        margin: -4px -4px 8px -4px !important; /* Matching new container padding */
        padding: 6px !important;
        font-size: 1rem !important;
        text-align: center;
        font-weight: bold !important;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .week-items-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .prescription-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
        border-bottom: 2px solid #000;
        margin-bottom: 20px;
        padding-bottom: 5px;
        width: 100%;
    }

    .header-info {
        text-align: right;
        flex-shrink: 0;
    }

    .header-info h2 {
        margin: 0;
        padding-right: 2px;
    }

    .header-logo {
        height: 72px;
        /* Increased 1.5x from 60px */
    }

    .item-logo-small {
        width: 50px !important;
        height: 50px !important;
    }

    .prescribed-items {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        max-height: none !important;
        overflow: visible !important;
        height: auto !important;
    }

    .prescribed-item-card {
        padding: 5px; /* Tighter for print */
        margin-bottom: 0;
        border: 1px solid #f0f0f0 !important;
        background: #fafafa !important;
    }

    .item-header-row {
        gap: 5px;
    }

    .item-line-col {
        border-bottom: 1px solid #000 !important;
        opacity: 0.5 !important;
    }

    .header-info h2,
    .patient-banner strong,
    .general-instructions h3 {
        color: #000 !important;
    }

    .patient-banner,
    .prescribed-item-card,
    .general-instructions {
        background: none !important;
        border: 1px solid #eee !important;
        color: #333 !important;
    }

    .patient-banner {
        border-left: 1px solid #eee !important;
        margin-bottom: 15px;
        padding: 10px;
    }

    .general-instructions {
        margin-top: 20px;
        border-top: 1px dashed #ccc !important;
    }

    .manual-note-line {
        border-bottom: 1px solid #eee;
        height: 30px;
        margin-bottom: 10px;
    }

    .item-posology,
    .general-instructions li {
        color: #666 !important;
        font-size: 1.1rem !important; /* Larger font as requested */
    }

    .item-posology p {
        margin: 0;
        white-space: normal !important;
        line-height: 1.3;
    }

    .item-details h4,
    .item-num {
        font-size: 1.25rem !important; /* Larger font for product title */
        margin: 0;
        color: #000 !important;
    }

    .item-qty-col {
        font-size: 1rem !important;
        color: #333 !important;
    }

    .posology-buy-row {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        width: 100%;
        margin-top: 10px;
    }

    .item-posology {
        width: 100%;
        text-align: left;
    }

    .btn-buy {
        display: block !important;
        background: #22c55e !important;
        color: #fff !important;
        font-size: 0.9rem !important;
        padding: 6px 15px !important;
        border-radius: 8px !important;
        margin-top: -10px !important;
        text-align: center;
        width: fit-content;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        box-shadow: none !important;
    }

    .signature-area {
        display: block !important;
        margin-top: 40px;
    }

    .signature-area p {
        margin: 2px 0;
        font-size: 0.9rem;
    }

    .prescription-actions,
    .modal-footer {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-section {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 50vh;
        z-index: 100;
        top: auto;
    }
}