/* Mobile-first shell; overrides the original compact sidebar layout. */
:root{--bg:#f5f7fa;--radius:18px;--shadow:0 4px 18px #102b4e08}
[hidden]{display:none!important}
.production-material{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:14px;border:1px solid #e5ebf1;border-radius:16px;margin:12px 0}.production-material button{justify-self:start}.production-material input,.production-material select{min-width:0;width:100%}#production-preview{background:#f8fcfb;border-color:#cce5e4}#production-preview .breakdown{grid-template-columns:minmax(0,1fr) auto}input[data-money]{font-variant-numeric:tabular-nums}@media(min-width:720px){.production-material{grid-template-columns:minmax(0,2fr) minmax(100px,1fr) auto;align-items:end}}
.form-card>label:has(input[type=checkbox]){min-height:48px;padding:8px 0}.form-card input[type=checkbox]{width:22px;height:22px;accent-color:var(--turq);flex-shrink:0}
html{scroll-padding-top:110px}body{overflow-wrap:anywhere}.app-shell{padding-bottom:calc(88px + env(safe-area-inset-bottom));min-width:0}
.icon{display:block;width:24px;height:24px;flex-shrink:0;background:none;mask:none;-webkit-mask:none;color:inherit}
.top{height:96px;padding:8px 16px;background:white;color:var(--navy);border-bottom:1px solid #e4eaf0;gap:10px;z-index:20}
.top .brand{position:static;min-width:0;gap:10px}.brand img{width:72px;height:72px;object-fit:contain;filter:none;flex-shrink:0}.top .brand span{display:flex;flex-direction:column;font-size:1rem}.brand strong{font-size:1.25rem;letter-spacing:-.02em}.brand small{font-size:.73rem;font-weight:500;color:var(--muted);border-left:3px solid var(--orange);padding-left:6px;margin-top:3px}
.account{position:relative;flex-shrink:0}.account summary{display:grid;place-items:center;list-style:none;width:48px;height:48px;border:1px solid #dae4ed;border-radius:16px;background:#f7f9fc;cursor:pointer}.account summary::-webkit-details-marker{display:none}.account[open] summary{background:#fff4d0;border-color:var(--yellow)}
.account-menu{position:absolute;right:0;top:58px;width:min(290px,calc(100vw - 32px));padding:18px;background:white;border:1px solid #e0e8ef;border-radius:18px;box-shadow:0 16px 45px #102b4e26;display:grid;gap:8px}.account-menu form{display:grid;gap:8px;padding:10px 0;border-bottom:1px solid #e4eaf0}.account-menu label{font-size:.8rem;color:var(--muted)}.account-menu a{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px;border-radius:12px}.account-menu a:hover{background:#f3f7fa}.business-switch{width:100%;max-width:none;min-height:48px;background:#f5f8fb;color:var(--navy);border:1px solid #d4e0e9;padding:10px}
.wrap{width:100%;max-width:1180px;margin:0 auto;padding:22px 16px 32px;min-width:0}.wrap>*{min-width:0}.page-head{align-items:flex-start;flex-wrap:wrap;gap:14px;margin-bottom:22px}.page-head h1{font-size:1.65rem;line-height:1.2;letter-spacing:-.025em}.page-head p{font-size:.9rem;max-width:60ch}.page-head .button{flex-shrink:0}.wrap h2{font-size:1.18rem;line-height:1.3}.grid>*{min-width:0}
.card,.form-card,.quick a{border:1px solid #e4eaf0;background:white}.card{padding:18px}.quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick a,.quick a:nth-child(n){background:white;min-height:118px;padding:18px;justify-content:space-between;gap:14px}.quick a .icon{width:34px;height:34px;color:var(--turq)}.quick a:hover{border-color:var(--turq)}.quick span{font-size:.95rem}.cards{gap:12px;margin:22px 0}.metric{font-size:clamp(1.15rem,3vw,1.6rem);letter-spacing:-.02em}.dashboard-actions{display:grid;grid-template-columns:1fr;gap:12px}.dashboard-actions .button{justify-content:flex-start;min-height:60px;font-size:1rem}
button,.button{min-height:48px;border-radius:12px;max-width:100%}.button.accent,button.accent{background:var(--yellow);color:var(--navy)}.button.secondary,button.secondary{background:#edf3f7;color:var(--navy)}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--turq);outline-offset:3px}
.form-card{padding:18px;scroll-margin-top:110px}.fields{grid-template-columns:minmax(0,1fr);gap:16px}.field,.field input,.field select,.field textarea{min-width:0}.field label{font-size:.88rem;color:var(--navy)}.field input,.field select,.field textarea{min-height:50px;background:white}.field input[type=file]{padding:10px 6px;font-size:.8rem}.form-group-title{grid-column:1/-1;margin:10px 0 0;padding:12px 0 0;border-top:1px solid #e4eaf0;font-size:.95rem;color:var(--navy)}.form-group-title:first-child{border-top:0;margin-top:0;padding-top:0}.field-error{color:#a2263b;font-weight:600}.field [aria-invalid=true]{border-color:#a2263b}.field-error[hidden]{display:none}.actions{gap:10px;margin-top:22px}.form-card>.actions{padding-top:16px;border-top:1px solid #edf2f5}.list-search{padding:16px;background:white;border:1px solid #e4eaf0;border-radius:16px;margin:0 0 16px}.note{background:white;border:1px solid #e3eaf0;border-left:4px solid var(--turq);padding:18px;margin:20px 0}.photo{display:inline-grid;place-items:center;color:var(--turq)}
.sidebar{display:none}.bottom{height:calc(76px + env(safe-area-inset-bottom));top:auto;bottom:0;left:0;right:0;width:auto;padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:white;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid #dfe7ee;z-index:19;overflow:visible}.bottom a{min-width:0;min-height:56px;font-size:.7rem;gap:4px;border-radius:13px;color:#64778c;padding:5px 1px}.bottom a.active{background:#fff5d1;color:var(--navy);font-weight:800}.bottom a.active .icon{color:#b85013}.bottom .icon{width:23px;height:23px}
.table-card{max-width:100%;border:1px solid #e4eaf0;border-radius:18px;background:white;overscroll-behavior-inline:contain}.table{box-shadow:none;table-layout:fixed}.table th,.table td{padding:12px 8px;font-size:.78rem;overflow-wrap:anywhere;vertical-align:top}.table th{font-size:.65rem}.table .pill{white-space:normal;display:inline-block}.customer-snapshot p{font-size:.78rem}.recipe-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:14px;border:1px solid #e4eaf0;border-radius:14px;margin:12px 0}.recipe-row select{grid-column:1/-1}.recipe-row input{font-size:.9rem}.recipe-row span:empty{display:none}.sale-customer{background:#f8fbfc;border-color:#dbe9ec}.customer-search{border:1px solid #e4eaf0}.customer-cards{grid-template-columns:minmax(0,1fr)}.customer-avatar{font-size:0}.customer-avatar:after{content:'';width:26px;height:26px;background:var(--turq);mask:url(icons/users.svg) center/contain no-repeat}.auth{background:#f3f7fa;padding-bottom:30px}.auth-box{border:1px solid #e3eaf0;box-shadow:var(--shadow)}.auth .fields{grid-template-columns:1fr}.auth-logo{width:120px;height:120px}
@media(min-width:600px){.dashboard-actions{grid-template-columns:1fr 1fr}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.field.full{grid-column:1/-1}.customer-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.quick{grid-template-columns:repeat(3,minmax(0,1fr))}.table th,.table td{font-size:.88rem;padding:14px}.recipe-row{grid-template-columns:minmax(0,1fr) 110px 150px}.recipe-row select{grid-column:auto}}
@media(min-width:720px) and (max-width:1023px){.wrap{margin:0 auto;padding:24px}.top{padding:8px 24px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.bottom{flex-direction:row}.customer-search{grid-template-columns:2fr 1fr auto}}
@media(min-width:1024px){.app-shell{padding-bottom:0;padding-left:224px;padding-top:96px}.top{position:fixed;inset:0 0 auto 0;padding:8px 28px}.sidebar{display:flex;flex-direction:column;gap:8px;position:fixed;top:96px;bottom:0;left:0;width:224px;background:white;border-right:1px solid #e4eaf0;padding:24px 14px;overflow-y:auto}.sidebar a{display:flex;align-items:center;gap:14px;min-height:52px;padding:12px 16px;border-radius:14px;font-size:.94rem;font-weight:650;color:#5d7087}.sidebar a.active{background:#fff4cd;color:var(--navy);box-shadow:inset 4px 0 var(--orange)}.sidebar a:hover{background:#f0f6f7}.sidebar a.active .icon{color:#b85013}.bottom{display:none}.wrap{margin:0 auto;width:100%;padding:32px;max-width:1180px}.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.form-card{padding:26px}.quick{grid-template-columns:repeat(3,minmax(0,1fr))}.table th,.table td{font-size:.9rem;padding:16px}.page-head h1{font-size:1.9rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Product rules extracted from Ninho3D_Referencia_Visual.html (.n3-*).
   Preview frame, sample data, scripts and presentation wrapper are not imported. */
:root{--navy:#142b49;--ink:#172c46;--muted:#66788a;--bg:#f4f7fa;--turq:#008e91;--yellow:#ffbe23;--orange:#fa652e;--radius:16px;--shadow:0 4px 18px #142b4908}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.app-shell{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
.top{height:111px;padding:17px 16px 20px;gap:12px;border-bottom:0}
.top::after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#ffbe23 0 34%,#fa652e 34% 67%,#008e91 67% 100%)}
.top .brand{gap:12px}.brand img{width:74px;height:74px;border-radius:17px;border:1px solid #edf0f3;background:white;object-fit:contain}
.brand strong{font-size:23px;font-weight:800;line-height:1.2;letter-spacing:-.65px;white-space:nowrap}
.brand .brand-accent{color:#de4b14;font-style:normal}
.brand small{font-size:12px;line-height:1.4;margin-top:5px;color:#53667c;border:0;padding:0;font-weight:400}
.account summary{width:44px;height:44px;border-radius:50%;border:1px solid #d9e3ed;background:#eaf0f7;font-size:13px;font-weight:750;color:#172c46}
.account-menu{top:54px}
.wrap{padding:20px 18px 26px}.page-head{margin:0 0 16px;gap:10px}.page-head h1{font-size:25px;font-weight:750;letter-spacing:-.7px;line-height:1.15}.page-head p{font-size:13px;line-height:1.45;margin-top:5px}
.dashboard-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0}
.dashboard-actions .button{min-height:80px;padding:14px;border-radius:16px;display:flex;align-items:center;justify-content:flex-start;gap:10px;text-align:left;font-size:14px;font-weight:750;box-shadow:0 6px 14px #ecaa1b21;min-width:0}
.dashboard-actions .button.secondary{background:white;border:1px solid #e5ebf1;box-shadow:none;color:var(--ink)}
.dashboard-actions .icon{width:23px;height:23px}.dashboard-actions span{min-width:0}
.section-line{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:20px 0 10px}
.section-line h2{font-size:16px;font-weight:750;margin:0}.section-line>.muted{font-size:13px}
.section-line>a{color:var(--turq);font-size:12px;font-weight:700;padding:8px 0}
.dashboard-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.dashboard-summary article{background:white;border:1px solid #e5ebf1;padding:12px 10px;border-radius:15px;min-height:82px;min-width:0}
.dashboard-summary strong{display:block;font-size:17px;font-weight:750;margin-bottom:4px;line-height:1.25;font-variant-numeric:tabular-nums}
.dashboard-summary article:nth-child(2) strong{font-size:clamp(12px,3.8vw,17px)}
.dashboard-summary span{display:block;color:var(--muted);font-size:11px;line-height:1.2}
.quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.quick a,.quick a:nth-child(n){border:1px solid #e5ebf1;border-radius:16px;background:white;color:var(--ink);min-height:84px;text-align:left;padding:12px;display:flex;flex-direction:column;justify-content:space-between;gap:10px;font-size:13px;font-weight:700;box-shadow:none}
.quick a .icon{width:23px;height:23px;color:var(--turq)}.quick a span{font-size:13px}
.note{background:#e7f6f4;border:0;border-radius:15px;padding:14px;margin-top:16px;font-size:12px;line-height:1.4}
.note:has(>.icon){display:flex;gap:10px;align-items:flex-start}.note>.icon{width:18px;height:18px;color:var(--turq)}
.card,.form-card,.table-card,.customer-search{border-color:#e5ebf1;border-radius:16px}
.card{padding:13px}.customer-avatar{width:42px;height:42px;border-radius:13px;background:#d9f4ed;color:var(--navy);font-size:13px;font-weight:800}.customer-avatar::after{content:none}
.customer-card-head{gap:11px}.customer-card b{font-size:14px}.customer-card p{font-size:12px;margin:9px 0}.customer-link{font-size:12px}
.list-search{border-radius:14px;padding:12px}.list-search label{font-size:12px}
.bottom{height:calc(72px + env(safe-area-inset-bottom));padding:8px 7px calc(11px + env(safe-area-inset-bottom))}
.bottom a{min-height:53px;gap:3px;font-size:10px;font-weight:650;border-radius:12px;padding:0}
.bottom a.active{color:var(--navy);background:#fff3cb}.bottom a.active .icon{color:var(--navy)}.bottom .icon{width:21px;height:21px}
.financial-cards{margin-top:0}
.cost-complementary,.estimate-origins{margin:18px 0;padding:14px;border:1px solid #e5ebf1;border-radius:15px;background:#f8fbfc}.cost-source-list{display:grid;gap:12px;margin-top:14px}.cost-source-list>div{display:grid;gap:5px;padding-bottom:10px;border-bottom:1px solid #e5ebf1}.cost-source-list small{color:var(--muted);line-height:1.5}.cost-source-list strong{font-variant-numeric:tabular-nums}.cost-complementary summary,.estimate-origins summary{min-height:44px;display:list-item;padding:9px 0;cursor:pointer;font-weight:700}#precificacao{scroll-margin-top:130px}
.production-material{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:12px;padding:14px;border:1px solid #e5ebf1;background:#fff;border-radius:15px;margin:12px 0;align-items:end}
.production-material .field{min-width:0}.production-material input,.production-material select{width:100%;min-width:0}.production-material button{min-height:44px}
.estimate-line{grid-template-columns:repeat(3,minmax(0,1fr)) auto}
.breakdown{column-gap:14px}.breakdown span:nth-child(even),.breakdown strong:nth-child(even){white-space:nowrap;font-variant-numeric:tabular-nums}.sidebar{overflow-y:auto}
@media(max-width:719px){.production-material,.estimate-line{grid-template-columns:minmax(0,1fr)}.production-material button{justify-self:start}.breakdown{grid-template-columns:minmax(0,1fr) auto}.form-card .form-card{padding:12px}}
.sale-empty{background:white;border:1px solid #e5ebf1;border-radius:22px;padding:22px 18px;text-align:center;margin:20px 0}.hero-icon{width:66px;height:66px;background:#d9f4ed;border-radius:21px;margin:0 auto 15px;display:grid;place-items:center;color:var(--turq)}.hero-icon .icon{width:30px;height:30px}.sale-empty h2{font-size:16px;margin:0 0 7px}.sale-empty p{color:var(--muted);line-height:1.45;font-size:13px;margin:0 0 16px}.next-steps{display:grid;gap:11px;background:white;border-radius:17px;border:1px solid #e5ebf1;padding:16px}.next-steps a{display:flex;align-items:center;gap:10px;font-size:13px;min-height:40px}.next-steps b{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#e9eef4;font-size:12px}
@media(min-width:720px) and (max-width:1023px){.wrap{padding:24px}.quick{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1024px){.app-shell{padding-top:111px;padding-bottom:0}.top{height:111px;padding:17px 28px 20px}.sidebar{top:111px}.wrap{padding:32px}.quick{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-actions{max-width:650px}.dashboard-summary{max-width:760px}.dashboard-summary article{padding:16px;min-height:88px}.dashboard-summary strong{font-size:22px}.dashboard-summary article:nth-child(2) strong{font-size:22px}.dashboard-summary span{font-size:12px}.page-head h1{font-size:28px}}

/* Fluxo curto de peça e produção, mantendo a identidade aprovada. */
.simple-details{margin:16px 0;border:1px solid #dce6ec;border-radius:16px;padding:14px}
.simple-details summary{font-weight:750;cursor:pointer;min-height:44px;display:flex;align-items:center}
.check-row{display:flex;gap:12px;align-items:flex-start;line-height:1.5;margin:16px 0;cursor:pointer}
.check-row input{width:24px;height:24px;flex-shrink:0}
.price-preview{margin-top:20px;padding:16px;border:1px solid #a7dfda;border-radius:18px;background:#f5fcfb}
.price-preview .breakdown strong{border:0;padding:0;margin:0;text-align:right}
.suggested-price{font-size:1.3rem;font-weight:850;background:#fff4c9;padding:16px;border-radius:14px}
.back-link{flex-shrink:0}.page-head{flex-wrap:wrap}.page-head>div{min-width:0}
#piece-form .estimate-line{grid-template-columns:minmax(0,1fr) minmax(80px,130px) auto}
#piece-form .estimate-line select{min-width:0}button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:600px){#piece-form .estimate-line{grid-template-columns:minmax(0,1fr) minmax(80px,110px)}#piece-form .estimate-line>.field:first-child{grid-column:1/-1}#piece-form .estimate-line>button{align-self:end}.price-preview .breakdown{grid-template-columns:minmax(0,1fr) auto}.page-head .button{padding:10px 13px}.actions>button{flex:1 1 150px}}
.cost-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.cost-shortcuts .button{min-width:0;min-height:108px;display:flex;flex-direction:column;justify-content:center;gap:12px;white-space:normal;text-align:center}
.cost-shortcuts svg{width:32px;height:32px;display:block;flex:none}
.print-item-row,.print-material-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end;padding:16px 0;border-bottom:1px solid #e4e9ee}
.print-material-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto}
#print-form select,#print-form input{min-width:0;width:100%}
#print-form button{white-space:normal}
#print-preview:empty{display:none}
@media(max-width:719px){.print-item-row,.print-material-row{grid-template-columns:repeat(2,minmax(0,1fr))}.print-item-row>.field:first-child,.print-material-row>.field:first-child{grid-column:1/-1}.print-item-row>button{grid-column:1/-1}.print-material-row>button{min-height:48px}.cost-shortcuts .button{padding:12px 6px}}

/* Header has its own small stacking hierarchy: stripe < brand/account < dropdown. */
.top{isolation:isolate;overflow:visible;transform:none}
.top::after{z-index:0;pointer-events:none}
.top .brand{position:relative;z-index:1}
.account{z-index:2;overflow:visible;transform:none}
.account-menu{z-index:1;overflow-y:auto;overscroll-behavior:contain;max-height:calc(100dvh - 150px);max-width:calc(100vw - 24px)}
.account summary{overflow:hidden}
.profile-avatar{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.profile-initials{display:grid;place-items:center}
.profile-current{display:flex;align-items:center;gap:18px;margin-bottom:24px}
.profile-large{width:88px;height:88px;flex:none;border-radius:50%;background:#eaf0f7;color:var(--navy);font-size:24px;font-weight:750}
.profile-current h2{margin-bottom:6px}.profile-current p{margin:0;overflow-wrap:anywhere}
.profile-current>div{min-width:0}
.image-upload-field{position:relative}
.image-dropzone{border:2px dashed #ccdce5;border-radius:16px;display:grid;justify-items:center;gap:12px;text-align:center;padding:22px 16px;background:#f8fbfd;cursor:pointer;min-width:0;transition:border-color .15s,background .15s}
.image-dropzone .icon{width:32px;height:32px;color:var(--turq)}
.image-dropzone.drag-over{border-color:var(--turq);background:#e8f7f5}
.image-dropzone:focus-visible,.image-dropzone:focus-within{outline:3px solid var(--turq);outline-offset:3px}
.image-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;opacity:0;clip-path:inset(50%);overflow:hidden}
.image-upload-preview{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;width:100%}
.image-upload-preview img{width:120px;height:120px;max-width:100%;object-fit:contain;border-radius:12px;background:white;border:1px solid #e0e8ef}
.image-upload-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}
.image-upload-error{color:#a2263b;margin:0;font-size:.88rem}

.duration-control{display:flex;align-items:stretch;gap:8px;min-width:0}.duration-control>input{flex:1;min-width:0;font-variant-numeric:tabular-nums}.duration-toggle{flex:none;width:50px;padding:10px}
.duration-picker{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:14px;border:1px solid #d8e5ec;border-radius:14px;background:#f8fbfd}.duration-picker label{display:grid;gap:6px}.duration-picker .actions{grid-column:1/-1;margin:0}
.sale-product-status{margin-bottom:20px}.sale-product-status .actions .button{font-size:.85rem}
.duration-picker[hidden]{display:none}
.simple-print .print-item-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;align-items:end;min-width:0}
.simple-print .print-item-row>.field:first-child{grid-column:1/-1}
.simple-print .print-composition{grid-column:1/-1;margin:0;overflow-wrap:anywhere}
.simple-print #print-items,.simple-print #print-guidance,.simple-print #print-preview{min-width:0;max-width:100%}
.simple-print .note,.simple-print details{overflow-wrap:anywhere}
@media(max-width:719px){.simple-print .print-item-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.simple-print .print-item-row>button{grid-column:auto;min-height:48px}.simple-print .actions>button{flex:1;min-width:0}}

.payment-form{display:grid;gap:14px;margin:14px 0;min-width:0}.payment-form input,.payment-form select{min-width:0;width:100%}.payment-editor summary{padding:12px 0;cursor:pointer;font-weight:700}.payment-sales th:nth-child(4){width:32%}.payment-sales details p{overflow-wrap:anywhere}
@media(max-width:767px){.payment-sales,.payment-sales tbody,.payment-sales tr,.payment-sales td{display:block;width:100%}.payment-sales tr:first-child{display:none}.payment-sales tr{padding:14px;border-bottom:1px solid #e4eaf0}.payment-sales td{padding:8px 0}.payment-sales td:before{content:attr(data-label);display:block;font-size:.75rem;font-weight:700;color:var(--navy);margin-bottom:6px}}

/* Vendas: lista compacta e formulário único em diálogo nativo. */
.sales-list{border-top:1px solid #e4eaf0}.sale-row{border-bottom:1px solid #e4eaf0}.sale-row>summary{list-style:none;padding:12px 2px;cursor:pointer;min-height:60px}.sale-row>summary::-webkit-details-marker{display:none}.sale-row>summary:focus-visible{outline:2px solid var(--turq);outline-offset:2px}.sale-line{display:flex;align-items:baseline;gap:12px;justify-content:space-between}.sale-title{min-width:0;overflow-wrap:anywhere;font-weight:650;font-size:.94rem}.sale-code{color:#62758a;font-size:.83rem;white-space:nowrap}.sale-total{flex-shrink:0;font-size:.94rem;white-space:nowrap;color:var(--navy)}.sale-client{display:block;margin-top:3px;color:#62758a;font-size:.8rem}.sale-expanded{padding:12px 14px 18px;background:#f8fafc;border-radius:12px;margin-bottom:12px;overflow-wrap:anywhere}.sale-item-details{padding-left:18px}.sale-item-details li{margin:10px 0}.sale-filters{margin:12px 0 18px}.sale-filters>summary{padding:10px 0;cursor:pointer;font-weight:650}.sale-filters .form-card{margin:8px 0;padding:16px}.sale-filters h2{display:none}.sale-dialog{width:min(820px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:0;border:1px solid #dce5ec;border-radius:20px;color:var(--navy);background:white;overflow:auto;overscroll-behavior:contain}.sale-dialog::backdrop{background:rgba(10,28,49,.58)}.sale-dialog-head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;background:white;border-bottom:1px solid #e4eaf0;z-index:1}.sale-dialog-head h2{margin:0}.sale-dialog-head button{display:flex;align-items:center;gap:6px;min-height:44px}.sale-dialog #nova-venda{padding:20px 22px;margin:0}.sale-stock-toggle{display:flex;align-items:flex-start;gap:10px;margin-top:16px}.sale-stock-toggle input{width:20px;min-width:20px;height:20px}.sale-modal-open,.sale-modal-open body{overflow:hidden}.sale-dialog .field{min-width:0}.sale-dialog .sale-customer{grid-column:1/-1}.sale-dialog .flash{scroll-margin-top:90px}
@media(max-width:599px){.sale-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}.sale-dialog-head{padding:12px}.sale-dialog #nova-venda{padding:16px 12px}.sale-line{gap:8px}.sale-title,.sale-total{font-size:.88rem}.sale-expanded{padding:10px}.sale-dialog .actions>button{min-height:48px}}
