@media screen{
#shell>aside{display:none}#shell>main{margin:0;max-width:none;min-height:0}
#newInvoice{display:none}#shell .chart-card{border-radius:6px}
dialog .modal-head h2{margin-left:auto}#closeModal:hover{background:#b91c3c;color:white}dialog.desktop-maximized[open]:not(.print-preview){width:calc(100vw - 24px)!important;max-width:none;max-height:calc(100dvh - 24px);height:calc(100dvh - 24px)}dialog.desktop-maximized:not(.print-preview) #modalBody{flex:1}dialog.print-preview #windowExpand{display:none}
@media(max-width:650px){#shell .toolbar{flex-wrap:wrap}dialog:not(.print-preview) input,dialog:not(.print-preview) select{font-size:16px;min-height:44px}.desktop-maximized #modalBody{min-width:0}#windowExpand{display:none}}
}
@media print{#desktopMenu,#desktopTabs,#desktopRibbon,#windowExpand,#mobileNav,#crumbs{display:none!important}}

@media screen{.entry-keyboard-help{font-size:12px;color:#65748a;margin:8px 0}#entryMessage{font-size:13px;min-height:20px;margin:6px 0}#runningTotal{display:flex;align-items:center;gap:22px;margin-left:auto;color:#374151}#runningTotal span{display:flex;gap:9px;align-items:baseline}#runningTotal strong{font-size:25px;font-variant-numeric:tabular-nums;white-space:nowrap}#runningTotal b{white-space:nowrap}#runningTotal small{color:#6b7280}@media(max-width:650px){#runningTotal{width:100%;margin:0;gap:4px 14px;flex-wrap:wrap;justify-content:space-between}#runningTotal strong{font-size:22px}#runningTotal span{font-size:12px}#runningTotal small{font-size:10px}.entry-keyboard-help{display:none}}}

@media screen{.pending-tools{display:flex;gap:12px}.pending-tools input{flex:1;min-width:0}.pending-card{padding:18px;background:#fff;border:1px solid #dbe2ec;border-radius:8px;margin:14px 0}.pending-card header{display:flex;align-items:start;justify-content:space-between;gap:16px}.pending-card h3{margin:0 0 6px;font-size:16px}.pending-card small{color:#64748b;font-size:11px}.pending-total{text-align:left}.pending-total strong{display:block;font-size:22px;white-space:nowrap}.pending-card ul{padding:0;list-style:none;margin:14px 0}.pending-card li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #eef0f4;padding:9px 0;font-size:13px}.pending-card li small{display:block}.pending-card li b{white-space:nowrap}.pending-actions{display:flex;gap:10px;justify-content:flex-end}.pending-card p{font-size:12px;color:#64748b}@media(max-width:650px){.pending-card header{flex-wrap:wrap}.pending-card li{flex-wrap:wrap}.pending-tools{flex-wrap:wrap}.pending-tools input{flex-basis:100%}.pending-total strong{font-size:20px}}}

/* Contact picker, amount previews, day close and readable document previews. Navigation lives in theme.css. */
#mobileNav{display:none}
@media screen{.contact-picker{position:relative;min-width:0}.contact-picker input[type=search]{width:100%}
.credit-warning{margin:10px 0 0;padding:10px 12px;border:1px solid #f3c4cf;background:#fff4f6;color:#9f1239;border-radius:8px;font-size:13px}.credit-warning[hidden]{display:none}
.amount-preview{display:block;font-size:13px;color:#24324a;margin-top:-6px;font-variant-numeric:tabular-nums}.amount-preview:empty{display:none}.amount-preview small{display:block;font-size:12px;color:#5b6678;margin-top:2px}
.show-secret{display:flex!important;align-items:center;gap:8px;font-size:13px}.show-secret input{width:auto!important;min-height:0!important;margin:0!important}
.stock-note.out{color:#a40e32!important;font-weight:600}.stock-note.low{color:#8a520b!important;font-weight:600}.group-filter{flex-wrap:wrap}.group-filter label{min-width:180px}
.day-tools{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.day-tools label{max-width:240px}.day-saved{font-size:13px;color:#116149;background:#e4f4ee;padding:8px 12px;border-radius:6px}.day-count{display:grid;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid #e2e8f0}.day-count output{font-size:13px}
.button-link.whatsapp{border:1px solid #9ad8b1;color:#116149;background:#f0faf4;display:inline-flex;align-items:center;justify-content:center}.button-link.whatsapp:hover{background:#e0f5e8}
#modalBody .document-sheet td,#modalBody .document-sheet th,#modalBody .document-sheet .cell-sub,#modalBody .document-party p,#modalBody .document-party span,#modalBody .document-party small,#modalBody .document-note small,#modalBody .document-date,#modalBody .document-footer,#modalBody .document-brand p,#modalBody .letterhead-company p,#modalBody .document-signatures,#modalBody .document-sheet .badge,#modalBody .warranty-dates time,#modalBody .statement-balances>div,#modalBody .account-statement .statement-note,#modalBody .statistics-report .cell-sub{font-size:11px}#modalBody .voucher-detail{font-size:12px}}
/* Non-blocking warnings (e.g. negative cash) and returns/opening documents. */
#notice{position:fixed;inset:12px auto auto 50%;transform:translateX(-50%);margin:0;z-index:120;display:flex;align-items:center;gap:12px;max-width:min(560px,calc(100vw - 24px));background:#fff4e5;color:#7a3e00;border:1px solid #f0c27a;border-radius:10px;padding:10px 14px;box-shadow:0 10px 30px #3b230820;font-size:14px;font-weight:600;overflow:visible}#notice[hidden]{display:none}#notice:popover-open{display:flex}#notice button{min-height:32px;padding:2px 10px;background:transparent;border:1px solid #e8b866;color:#7a3e00}@media print{#notice{display:none!important}}
