/* Gestor 2.2 — captura de pedidos. Cotton / Cherry / Noir. */
.order-form{--order-gap:24px;max-width:1480px;margin-inline:auto}
body:has(.order-form) .page-head h1{font-size:32px;max-width:none;line-height:1.2}
body:has(.order-form) .page-head{margin-bottom:24px}
.order-form .voice-console{padding:16px 20px;background:var(--paper);border-color:var(--line);margin-bottom:24px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 20px}
.order-form .voice-intro{gap:12px}
.order-form .voice-symbol{height:40px;width:40px;background:#f1e5df;color:var(--cherry)}
.order-form .voice-intro h2{font-size:16px;margin-bottom:2px}
.order-form .voice-intro p{font-size:13px;color:var(--muted)}
.order-form .voice-toolbar{margin:0;gap:8px;justify-content:flex-end}
.order-form .voice-toolbar .primary{background:var(--paper);border-color:#bcb4a6;color:var(--cherry)}
.order-form .voice-toolbar .primary:hover{background:#f1e5df}
.order-form .voice-status{margin:0;flex-basis:100%;justify-content:flex-end}
.order-form .voice-tools,.order-form .voice-review,.order-form #voice-text{grid-column:1/-1}
.order-form .voice-tools{border-top:1px solid var(--line);font-size:13px;padding-top:4px}
.order-form .voice-tools summary{width:fit-content;min-height:40px;display:list-item;align-content:center}
.order-form .voice-review{margin-top:0;border-radius:8px;background:#f8f5ed}
.order-form #voice-text:empty{display:none}
.order-form #voice-text{margin:0;font-size:13px;overflow-wrap:anywhere}
.order-form .voice-transcript{border-color:var(--line);margin-top:12px}
.order-form #guided-panel{background:#f4f0e6}
.order-layout{grid-template-columns:minmax(0,1fr) 340px;gap:var(--order-gap)}
.order-main{display:flex;flex-direction:column;gap:var(--order-gap)}
.order-layout .panel{margin:0;padding:24px}
.order-layout h2{line-height:1.3}
.order-layout .report-head{margin-bottom:20px;flex-wrap:wrap}
.order-layout .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
.order-layout .full{grid-column:1/-1}
.order-layout label{font-weight:600}
.order-form .field-heading{min-height:40px;gap:4px}
.order-form .voice-icon{width:40px;height:40px;border:0;background:transparent}
.order-form .voice-icon:hover{background:#f1e5df}
.order-form .voice-icon svg{width:16px;height:20px}
.order-form .segmented button{min-height:40px;padding:8px 14px}
.order-form .filters{gap:10px;margin-bottom:16px}
.order-form .filters>button{min-height:44px;flex-shrink:0}
.order-form .filters label{min-width:0}
.order-form .filters input,.order-form .filters select{min-width:0;text-overflow:ellipsis}
.order-form .line-item{padding:20px 0;border-bottom:1px solid var(--line)}
.order-form .line-item-head{align-items:flex-start;gap:12px;margin:0}
.order-form .line-item-head>div{min-width:0;overflow-wrap:anywhere}
.order-form .line-item-head strong{display:block;font-size:16px;line-height:1.4}
.order-form .line-item-head small{display:block;margin-top:4px;font-size:12px}
.order-form .line-item-head button{min-height:40px;flex:none;padding:4px 8px}
.order-form .variant-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));gap:12px}
.order-form .variant-grid label{min-width:0;margin:8px 0 12px}
.order-form .variant-grid input{max-width:none}
.order-form .line-item-foot{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-variant-numeric:tabular-nums}
.order-form .line-item-foot strong{white-space:nowrap}
.order-form .line-item-foot small{font-size:12px}
.order-form .order-empty{padding:32px 16px 20px;border-top:1px solid var(--line);margin-top:24px;text-align:left}
.order-form .order-empty strong{display:block;color:var(--ink);font-size:16px;margin-bottom:8px}
.order-form .order-empty p{font-size:14px;margin:0;max-width:40ch}
.order-form .order-aside{position:sticky;top:24px}
.order-form #order-summary-count{margin-bottom:16px}
.order-form .order-aside .totals{margin:16px 0 24px;padding:12px 0}
.order-form .order-aside .totals>div:nth-child(4){font-size:20px;font-weight:700;border-top:1px solid var(--line);padding-top:12px;margin-top:8px}
.order-form .order-aside .totals>div:last-child{font-size:16px;color:var(--cherry);padding-top:8px;border:0}
.order-form .totals dd{overflow-wrap:anywhere;text-align:right}
.order-form .submit-stack button{min-height:44px}
.order-form .submit-stack button[type=submit]{line-height:1.5;white-space:normal}
.order-form .submit-stack .text-button{min-height:40px}
.order-form .attachment-label{border-style:solid;background:#f8f5ed;margin-bottom:8px;padding:16px}
.order-form .attachment-label input{max-width:100%;min-width:0;min-height:44px;font-size:13px}
.order-form .attachment-label input::file-selector-button{min-height:40px;border:1px solid #bcb4a6;border-radius:6px;background:var(--paper);color:var(--ink);padding:8px 12px;font:inherit;cursor:pointer;margin-right:10px}
.order-form .order-extras textarea{min-height:88px}
.order-form .order-extras>p:last-child{margin-bottom:0}
.order-form input::placeholder,.order-form textarea::placeholder{color:#736c63;opacity:1}
.order-form button:disabled{cursor:not-allowed}
@media(min-width:1101px){.order-form .voice-toolbar{max-width:465px}}
@media(max-width:1100px){.order-layout{grid-template-columns:1fr}.order-form .order-aside{position:static}.order-form .voice-console{grid-template-columns:1fr}.order-form .voice-toolbar{justify-content:flex-start}.order-form .voice-status{flex-basis:auto}.order-form .order-aside .panel{max-width:none}.order-form .order-aside .totals{max-width:none}}
@media(max-width:760px){.order-form{--order-gap:16px}.order-form .voice-console{padding:16px;gap:10px;margin-bottom:16px}.order-form .voice-toolbar{display:grid;grid-template-columns:1fr 1fr;width:100%}.order-form .voice-toolbar>button{width:100%;min-width:0;min-height:44px;font-size:13px;padding:10px 8px}.order-form .voice-status{justify-content:flex-start;grid-column:1/-1}.order-form .order-layout .panel{padding:20px 16px}.order-form .filters{flex-wrap:nowrap;align-items:flex-end}.order-form .filters>*{width:auto}.order-form .filters label{min-width:0;flex:1}.order-form .filters button{padding-inline:12px}.order-form .order-layout .report-head{gap:12px;margin-bottom:16px}.order-form .order-layout .form-grid{grid-template-columns:1fr}.order-form .order-layout .full{grid-column:auto}.order-form .segmented{margin-left:auto}.order-form .order-layout h2{font-size:18px}.order-form #guided-panel{grid-template-columns:1fr}.order-form .transcript-fields{grid-template-columns:1fr}.order-form #order-product{font-size:14px}.order-form .order-empty{padding-inline:0}}
@media(max-width:380px){.order-form .voice-intro{align-items:flex-start}.order-form .voice-symbol{display:none}.order-form .filters:has(#order-product){flex-wrap:wrap}.order-form .filters:has(#order-product)>*{flex-basis:100%;width:100%}.order-form .report-head .segmented{margin-left:0}}

.order-form #stop-voice:disabled{display:none}

@media(max-width:760px){.order-form .filters:has(#order-product){flex-wrap:wrap}.order-form .filters:has(#order-product)>*{flex-basis:100%;width:100%}}
