:root{color-scheme:light;font:16px system-ui,sans-serif;color:#18352a;background:#f5f8f3}
*{box-sizing:border-box}
body{margin:0}
header,nav{display:flex;align-items:center;gap:12px;padding:12px 18px;background:#fff;border-bottom:1px solid #dce6dc}
header{padding-top:calc(12px + env(safe-area-inset-top));color:#145c46}
header strong{font-size:20px}header span{margin-left:auto;font-size:13px;color:#506b5c}
main{max-width:680px;margin:auto;padding:20px 16px 112px}
h1{margin:0 0 8px;font-size:28px}h2{font-size:19px;margin:0 0 12px}
p{line-height:1.5}small,.muted{color:#526b5c}
section{margin-top:16px;padding:16px;border:1px solid #dce6dc;border-radius:14px;background:#fff}
label{display:block;margin-bottom:12px;font-size:14px;font-weight:650}
input,select,textarea{display:block;width:100%;margin-top:4px;padding:10px;border:1px solid #aebfb3;border-radius:8px;font:inherit;color:inherit;background:#fff;min-height:44px}
textarea{min-height:72px;resize:vertical}
button{font:inherit;font-weight:650;border:1px solid #b6c9bd;background:white;color:#18553e;padding:10px 14px;border-radius:9px;min-height:44px;cursor:pointer}
button.primary,nav button[aria-current=page]{background:#145c46;color:white;border-color:#145c46}
button:disabled{opacity:.55;cursor:default}
.row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e5ece5}
.row:last-child{border:0}.row strong{overflow-wrap:anywhere}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
header{position:sticky;top:0;z-index:3}
#menu{padding:10px 12px}
.menu-lines{display:grid;gap:4px;width:20px}
.menu-lines i{display:block;height:2px;background:currentColor;border-radius:2px}
nav{position:fixed;z-index:4;top:calc(71px + env(safe-area-inset-top));right:0;width:min(84vw,290px);max-height:calc(100dvh - 74px - env(safe-area-inset-top));overflow:auto;flex-direction:column;align-items:stretch;gap:5px;box-shadow:-8px 12px 32px #18352a30}
nav button{text-align:left;padding:9px 12px;font-size:15px;flex:none}
#message{z-index:5}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{text-align:left;padding:9px;border-bottom:1px solid #e5ece5;vertical-align:top}
th{color:#526b5c;white-space:nowrap}
#message{position:fixed;bottom:calc(70px + env(safe-area-inset-bottom));left:12px;right:12px;max-width:640px;margin:auto;background:#153d2e;color:#fff;border-radius:9px;padding:12px;white-space:pre-wrap}
[hidden]{display:none!important}
input[type=checkbox]{display:inline-block;width:auto;min-height:0;margin:0 6px 0 0}
summary{cursor:pointer;font-weight:650;padding:12px 0}
details+details{border-top:1px solid #e5ece5}
.row small{white-space:pre-line;overflow-wrap:anywhere}
.daily-profit-table table{font-size:11px;line-height:1.2;font-variant-numeric:tabular-nums}
.daily-profit-table th,.daily-profit-table td{padding:5px 3px;text-align:right}
.daily-profit-table th{white-space:normal}
.daily-profit-table td{white-space:nowrap}
.daily-profit-table th:first-child,.daily-profit-table td:first-child{min-width:66px;text-align:left;white-space:normal;overflow-wrap:anywhere}
.daily-profit-table tbody tr:last-child{font-weight:700}
@media (orientation:landscape){main:has(#daily-profit-date){max-width:1120px}}
@media print{header,nav,#message,#workspace>h1,#workspace>section:not(:first-of-type),.actions{display:none!important}main{padding:0}section{border:0}}
.transaction-sheet input{min-width:70px;width:100%;padding:6px} .transaction-sheet td{padding:4px} .transaction-sheet td:first-child{min-width:110px} .transaction-sheet td:nth-last-child(2){white-space:nowrap}
.entry-sheet{margin-bottom:12px}.entry-sheet td{padding:4px}.entry-sheet td label{font-size:0;margin:0}.entry-sheet input,.entry-sheet select{font-size:16px;min-width:90px;margin-top:0}.entry-sheet td:first-child input,.entry-sheet td:first-child select{min-width:125px}
details>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 13px;border:1px solid #d1ded5;border-radius:10px;background:#f7faf8;color:#174e3d;cursor:pointer} details>summary::-webkit-details-marker{display:none} details>summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-top:2px solid currentColor;transform:rotate(45deg);flex:none;margin-right:3px} details[open]>summary::after{transform:rotate(135deg)} details>summary:focus-visible{outline:2px solid #145c46;outline-offset:2px} .transaction-sheet [name=lineProduct]{min-width:145px} #sale button[name=receiptIntent]{margin:0 8px 8px 0}
.sales-register td,.sales-register th{white-space:nowrap}.sales-register [name=selection]{min-width:145px}.sales-register [name=quantity]{min-width:70px}.register-time{display:block;margin-top:3px}.register-entry{background:#f2f8f4}.sales-register button{white-space:nowrap}

.sales-register [name=paymentMode]{min-width:120px}
