.sd-header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:8px 0 24px}.sd-header h1{font-size:clamp(25px,3vw,36px);letter-spacing:-1px;margin:8px 0}.sd-header p,.sd-help{color:var(--muted);line-height:1.6}.sd-kicker{font-size:12px;font-weight:800;letter-spacing:1.8px}.sd-actions{display:flex;flex-wrap:wrap;gap:10px}.sd-actions .btn,.sd-open{min-height:44px}.sd-stages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:20px 0}.sd-stages button{border:1px solid var(--line);border-radius:14px;padding:18px;text-align:left;background:var(--panel);color:var(--ink);cursor:pointer}.sd-stages span,.sd-stages strong{display:block}.sd-stages strong{font-size:30px;margin-top:10px}.sd-stages button[aria-pressed=true]{border-color:var(--red);box-shadow:inset 0 3px var(--red)}.sd-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:22px 0}.sd-filters label{flex:1;min-width:140px}.sd-filters label:first-child{flex:2;min-width:220px}.sd-filters label,.sd-panel label{display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:13px}.sd-filters input,.sd-filters select,.sd-panel input,.sd-panel select,.sd-panel textarea{width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:var(--panel);color:var(--ink);font:inherit;font-size:16px}.sd-count{font-size:13px;color:var(--muted)}.sd-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px}.sd-card,.sd-panel{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:22px;min-width:0}.sd-card{display:flex;flex-direction:column}.sd-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.sd-folio{font-size:12px;font-weight:700;color:var(--muted)}.sd-status{border-radius:99px;background:#eef2ff;color:#3348a6;padding:7px 12px;font-size:12px;font-weight:750;white-space:nowrap}.sd-status[data-stage=working]{background:#fff1dc;color:#805000}.sd-status[data-stage=finished]{background:#e1f6eb;color:#16653d}.sd-status[data-stage=delivered]{background:#edf0f4;color:#475569}.sd-card h2{font-size:19px;line-height:1.35;margin:20px 0 6px;overflow-wrap:anywhere}.sd-customer{font-size:13px;color:var(--muted);margin-bottom:20px;overflow-wrap:anywhere}.sd-meta{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--muted)}.sd-next{border-top:1px solid var(--line);padding-top:16px;margin-top:16px;font-size:14px;font-weight:600}.sd-open{margin-top:auto;width:100%;justify-content:space-between}.sd-card small{margin-bottom:12px;color:var(--muted)}.sd-notice{border-left:3px solid var(--blue);background:var(--panel);padding:10px 14px;font-size:13px;color:var(--muted)}.sd-detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:20px}.sd-panel h2{font-size:20px;margin-bottom:14px}.sd-panel h3{margin:26px 0 12px}.sd-panel p{line-height:1.65;font-size:14px}.sd-panel fieldset{border:0;margin:24px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:18px}.sd-panel fieldset>label:first-child,.sd-panel fieldset>label:has(textarea),.sd-panel .sd-help,.sd-save{grid-column:1/-1}.sd-check{flex-direction:row!important;align-items:center;justify-content:flex-start}.sd-check input{width:20px!important;min-height:20px;flex-shrink:0}.sd-save{position:sticky;bottom:0;background:var(--panel);padding:14px 0;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.sd-save span{font-size:13px}.sd-event{padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere}.sd-event small{display:block;color:var(--muted);margin-top:6px}#sdError{color:var(--red);font-weight:700}.sd-empty{padding:40px 16px;text-align:center;grid-column:1/-1}.sd-header button:focus-visible,.sd-stages button:focus-visible,.sd-panel :focus-visible,.sd-filters :focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(max-width:760px){.sd-header{align-items:flex-start;flex-direction:column;gap:12px}.sd-stages{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sd-stages button{padding:12px;font-size:12px}.sd-stages strong{font-size:24px}.sd-detail-grid{grid-template-columns:minmax(0,1fr)}.sd-panel fieldset{grid-template-columns:minmax(0,1fr)}.sd-panel fieldset>*{grid-column:1!important}.sd-panel,.sd-card{padding:18px}.sd-filters label,.sd-filters label:first-child{min-width:0;flex-basis:calc(50% - 12px)}.sd-filters label:first-child{flex-basis:100%}.sd-save{bottom:70px}.sd-actions .btn{flex:1 1 160px}.sd-panel{overflow-wrap:anywhere}}
.sd-panel details{grid-column:1/-1;border:1px solid var(--line);border-radius:10px;padding:12px}.sd-panel summary{min-height:44px;cursor:pointer;font-weight:700;line-height:1.5}.sd-panel details label+label{margin-top:14px}
@media print{body *{visibility:hidden}#serviceBilling,#serviceBilling *{visibility:visible}#serviceBilling{position:absolute;inset:0;padding:20px}.sd-actions,.sd-open,.sd-filters{display:none!important}.sd-cards{display:block}.sd-card{break-inside:avoid;margin-bottom:10px}.sd-header{margin-bottom:15px}}
.sd-order-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.sd-order-tabs button{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:10px;padding:12px 18px;min-height:44px;font:inherit;font-weight:650;cursor:pointer}
.sd-order-tabs button[aria-current=page]{background:var(--ink);color:var(--panel);border-color:var(--ink)}
.sd-order-tabs button:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
#sdModuleSlot,#sdModuleSlot>.page-content{min-width:0;width:100%;padding:0;margin:0}
#sdModuleSlot .quote-in-order{display:block}#sdModuleSlot .quote-in-order>.quote-list{display:none}
#sdModuleSlot .quote-grid,#sdModuleSlot .quote-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.sd-notice label{display:block;margin:12px 0}.sd-notice select{max-width:100%;min-height:44px}
@media(max-width:760px){#sdModuleSlot .quote-toolbar .quote-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}#sdModuleSlot .quote-toolbar .quote-actions .btn{width:100%;min-height:44px;white-space:normal;padding:8px}#sdModuleSlot .quote-save-status{grid-column:1/-1;justify-self:start}}
[data-order-section=summary] label:has([name=hub_final_amount]),[data-order-section=summary] label:has([name=hub_po_ref]),[data-order-section=summary] label:has([name=hub_received_by]),[data-order-section=summary] label:has([name=hub_po_required]),[data-order-section=summary] details{display:none}
#sdModuleSlot input[readonly]{background:var(--bg);color:var(--muted)}
@media(max-width:760px){.sd-order-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sd-order-tabs button{padding:12px 7px;font-size:13px}#sdModuleSlot .quote-grid,#sdModuleSlot .quote-bottom-grid{grid-template-columns:minmax(0,1fr)}#sdModuleSlot .quote-actions{display:flex;flex-wrap:wrap}#sdModuleSlot .quote-toolbar{align-items:flex-start;flex-direction:column}#sdModuleSlot .quote-items-table{min-width:0;width:100%}#sdModuleSlot .quote-items-table thead{display:none}#sdModuleSlot .quote-items-table tbody{display:block}#sdModuleSlot .quote-items-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:2px solid var(--line);padding:12px 0}#sdModuleSlot .quote-items-table td{display:block;min-width:0;border:0;padding:6px}#sdModuleSlot .quote-items-table td:first-child{grid-column:1/-1}#sdModuleSlot .quote-items-table td::before{display:block;font-size:12px;font-weight:700;margin-bottom:4px}#sdModuleSlot .quote-items-table td:nth-child(1)::before{content:'Producto o servicio'}#sdModuleSlot .quote-items-table td:nth-child(2)::before{content:'Cantidad'}#sdModuleSlot .quote-items-table td:nth-child(3)::before{content:'Costo interno'}#sdModuleSlot .quote-items-table td:nth-child(4)::before{content:'Precio unitario'}#sdModuleSlot .quote-items-table td:nth-child(5)::before{content:'Importe'}#sdModuleSlot .quote-items-table input{min-width:0;width:100%;min-height:44px;font-size:16px}}
