/* BAK Care 300 | estructura funcional de Clientes + Cotizaciones.
   Estética definitiva pospuesta: este CSS solo asegura legibilidad/usabilidad. */
.of300{max-width:1220px;margin:22px auto 60px;color:#f4f4f6;font-size:14px}
.of300 *{box-sizing:border-box}
.of300 button{cursor:pointer}
.of300-header{display:flex;align-items:center;justify-content:space-between;gap:14px;
 flex-wrap:wrap;margin-bottom:14px}
.of300-header>div:first-child{margin-right:auto}
.of300-header h1{margin:0 0 5px;font-size:clamp(26px,3vw,37px);letter-spacing:-.04em}
.of300-header p{margin:0;color:#aeb0b7;font-size:13px;line-height:1.5}
.of300-status{min-height:23px;color:#b7c2d1;font-size:12px;margin:13px 0}
.of300-status[data-error=true]{color:#efa9a9}
.of300-button,.of300-text-button{padding:10px 16px;min-height:42px;
 border:1px solid #53545b;border-radius:13px;background:#252529;color:#e9e9ec;
 font-size:13px;font-weight:570;white-space:normal}
.of300-primary{padding:11px 17px;min-height:44px;background:#f2f2f4;
 color:#161619;border:1px solid #f2f2f4;border-radius:13px;font-size:13px;font-weight:670}
.of300 button:disabled{opacity:.45;cursor:not-allowed}
.of300 button:focus-visible,.of300 input:focus-visible,
.of300 textarea:focus-visible,.of300 select:focus-visible{
 outline:2px solid #77b1f2;outline-offset:2px}
.of300-columns{display:grid;grid-template-columns:minmax(240px,0.78fr) minmax(0,1.8fr);
 gap:28px;align-items:start;min-height:400px}
.of300-list{border-right:1px solid #39393f;min-width:0;padding-right:20px;max-height:77vh;overflow:auto}
.of300-detail{min-width:0;padding:4px 0 35px}
.of300-list>h2{font-size:16px;margin:0 0 15px}
.of300-items{display:grid;gap:2px}
.of300-row{display:grid;gap:5px;padding:13px 11px;text-align:left;
 width:100%;border:0;border-bottom:1px solid #313136;border-radius:0;
 background:transparent;color:#ededf2;min-width:0}
.of300-row:hover,.of300-row:focus-visible{background:#242427}
.of300-row strong{font-size:14px;font-weight:620;overflow-wrap:anywhere}
.of300-row span{font-size:12px;line-height:1.45;color:#b9bbc2;overflow-wrap:anywhere}
.of300-row small{font-size:11px;line-height:1.45;color:#8d8f99}
.of300-search{display:flex;gap:8px;align-items:end;padding-bottom:14px}
.of300-search .of300-field{flex:1;min-width:0}
.of300-field{display:grid;gap:7px;font-size:12px;color:#c4c5cb;font-weight:590;min-width:0}
.of300-field input,.of300-field select,.of300-field textarea{
 display:block;width:100%;min-width:0;border:1px solid #505057;border-radius:11px;
 background:#252529;color:#f1f1f5;padding:11px 12px;
 font:inherit;font-size:14px;font-weight:450;line-height:1.4}
.of300-field input,.of300-field select{min-height:45px}
.of300-field textarea{resize:vertical;min-height:82px}
.of300-field input:disabled,.of300-field select:disabled,.of300-field textarea:disabled{opacity:.75}
.of300-detail-head{display:flex;justify-content:space-between;gap:15px;align-items:start;
 padding-bottom:18px;border-bottom:1px solid #39393e}
.of300-detail-head small{font-size:11px;color:#b2b4bc;letter-spacing:.08em}
.of300-detail-head h2,.of300-form h2{font-size:24px;margin:10px 0;line-height:1.17;letter-spacing:-.03em}
.of300-muted{font-size:13px;color:#aaaab3;line-height:1.6;margin:12px 0}
.of300-info{display:grid;margin:14px 0 23px}
.of300-info-line{display:flex;justify-content:space-between;align-items:start;
 border-bottom:1px solid #35353a;padding:12px 0;gap:15px}
.of300-info-line>span{font-size:12px;color:#92939e}
.of300-info-line>strong{font-size:13px;font-weight:560;text-align:right;overflow-wrap:anywhere}
.of300-section-head{display:flex;justify-content:space-between;align-items:center;
 gap:18px;margin-top:27px;margin-bottom:10px}
.of300-section-head h3,.of300-form h3{font-size:16px;letter-spacing:-.02em;margin:0}
.of300-property-row{padding:15px 0;border-bottom:1px solid #37373d;
 display:flex;justify-content:space-between;gap:15px;align-items:center}
.of300-property-row>div{display:grid;gap:6px;min-width:0}
.of300-property-row strong{font-size:13px;font-weight:600}
.of300-property-row span{font-size:12px;color:#aaaab3;line-height:1.5;overflow-wrap:anywhere}
.of300-form{display:grid;gap:16px;max-width:810px}
.of300-form>.of300-field{margin:0}
.of300-form h3{margin:9px 0 0}
.of300-form>.of300-muted{margin:0 0 3px}
.of300-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}
.of300-line-items{display:grid;gap:12px;margin-top:8px}
.of300-item-editor{display:grid;gap:8px;padding:14px 0;border-top:1px solid #37373b}
.of300-item-controls{display:grid;grid-template-columns:minmax(0,2fr) minmax(95px,.8fr) minmax(115px,1fr);gap:10px}
.of300-item-total{font-size:13px;font-weight:640;text-align:right}
.of300-text-button{justify-self:end;min-height:32px;padding:7px 12px;font-size:12px}
.of300-totals{display:grid;gap:0;margin:14px 0 10px;border-top:1px solid #47474d;
 border-bottom:1px solid #47474d;padding:10px 0}
.of300-total-row{display:flex;justify-content:space-between;gap:15px;
 font-size:14px;line-height:1.7;padding:6px 0}
.of300-total-row>span:first-child{color:#a7a8b0}
.of300-total-row strong{font-size:19px}
.of300-preview{padding:22px 0;border-top:1px solid #424248;display:grid;gap:9px}
.of300-preview[hidden]{display:none!important}
.of300-preview h3{margin:0}
.of300-preview p{font-size:13px;color:#ced0d7;margin:0;line-height:1.5}
.of300-detail button[hidden],.of300-form [hidden]{display:none!important}
@media(max-width:850px){
 .of300-columns{grid-template-columns:1fr;gap:20px}
 .of300-list{max-height:350px;border-right:0;border-bottom:1px solid #39393f;padding-right:0;padding-bottom:18px}
 .of300-item-controls{grid-template-columns:1fr 90px 110px}
}
@media(max-width:520px){
 .of300-header{align-items:start}
 .of300-header .of300-primary{width:100%}
 .of300-item-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .of300-item-controls>.of300-field:first-child{grid-column:1/-1}
 .of300-search{flex-wrap:wrap}
 .of300-actions>button{flex:1}
}

/* 301 · Aceptación trazable y orden autónoma (estética provisional). */
.of301-conversion{display:grid;gap:14px;padding:19px 0;border-top:1px solid #46464a;
 margin:13px 0 4px}
.of301-conversion[hidden],.of301-conversion [hidden]{display:none!important}
.of301-conversion h3{margin:0;font-size:16px;letter-spacing:-.02em}
.of301-conversion .of300-muted{margin:0}
.of301-conversion button{justify-self:start}
.of301-order{display:grid;gap:20px;min-width:0}
.of301-head small{color:#94959e;font-size:11px;letter-spacing:.08em}
.of301-head h2{font-size:28px;letter-spacing:-.04em;margin:9px 0}
.of301-head p{color:#c5c5ce;margin:8px 0 13px;font-size:15px}
.of301-status{display:inline-block;border:1px solid #51545b;border-radius:999px;
 padding:7px 14px;font-size:12px;font-weight:650}
.of301-info{display:grid;gap:0}
.of301-info-line{border-bottom:1px solid #39393f;padding:11px 0;display:flex;
 justify-content:space-between;gap:18px;align-items:start;font-size:13px}
.of301-info-line span{color:#9697a3}
.of301-info-line strong{max-width:66%;text-align:right;font-weight:580;
 overflow-wrap:anywhere}
.of301-proof,.of301-scope{padding:15px 0;border-bottom:1px solid #39393f}
.of301-proof h3,.of301-scope h3,.of301-action h3{font-size:16px;margin:0 0 10px}
.of301-proof p,.of301-scope p{white-space:pre-wrap;overflow-wrap:anywhere;
 font-size:13px;line-height:1.6;color:#c8c8d0;margin:0}
.of301-action{display:grid;gap:14px;align-items:start}
.of301-action>.of300-button,.of301-action>.of300-primary{justify-self:start}
.of301-step{display:grid;gap:12px;padding:17px 0;
 border-top:1px solid #3a3a3f}
.of301-step>button{justify-self:start}
.of301-step textarea{min-height:92px}
.of301-history{padding:20px 0;border-top:1px solid #3a3a3e}
.of301-history>summary,.of301-cancel>summary{font-size:13px;color:#d4d4da;cursor:pointer}
.of301-event{display:grid;gap:6px;border-bottom:1px solid #34343a;padding:13px 0}
.of301-event strong{font-size:13px}
.of301-event span{font-size:12px;color:#a0a2aa}
.of301-event p{font-size:12px;color:#cbcbd2;line-height:1.6;
 white-space:pre-wrap;overflow-wrap:anywhere;margin:0}

/* 305 · Vista previa PDF real: ventana A4, sin alterar la estética global. */
.of305-pdf-dialog{border:1px solid #44474e;border-radius:16px;padding:0;
 width:min(94vw,950px);height:min(94vh,1100px);max-width:none;max-height:none;
 color:#f3f3f5;background:#171719;box-shadow:0 20px 65px rgba(0,0,0,.5);
 overflow:hidden}
.of305-pdf-dialog::backdrop{background:rgba(0,0,0,.82)}
.of305-pdf-bar{height:66px;display:flex;justify-content:space-between;align-items:center;
 gap:16px;padding:12px 18px;border-bottom:1px solid #36373d;background:#1c1c1e}
.of305-pdf-bar>div{display:grid;gap:4px;min-width:0}
.of305-pdf-bar strong{font-size:14px;font-weight:660}
.of305-pdf-bar span{color:#aaaab2;font-size:11px;line-height:1.3}
.of305-pdf-close{flex-shrink:0;background:#f3f3f5;border:0;border-radius:10px;
 color:#18181c;min-height:40px;padding:9px 16px;font-size:12px;font-weight:650;cursor:pointer}
.of305-pdf-frame{display:block;width:100%;height:calc(100% - 66px);border:0;background:#fff}
@media(max-width:600px){
 .of305-pdf-dialog{width:100vw;height:100dvh;border-radius:0;border:0}
 .of305-pdf-bar{padding:10px 14px}
 .of305-pdf-bar span{display:none}
 .of305-pdf-close{padding:9px 12px}
}

/* 306 · PDF: opciones de respaldo cuando el visor nativo esté desactivado. */
.of305-pdf-bar>div{flex:1}
.of305-pdf-action{color:#e5e5eb;text-decoration:none;border:1px solid #48484f;
 border-radius:10px;min-height:40px;padding:10px 13px;display:inline-flex;
 align-items:center;justify-content:center;white-space:nowrap;font-size:12px;font-weight:600}
.of305-pdf-action:focus-visible,.of305-pdf-close:focus-visible{
 outline:2px solid #7da9ef;outline-offset:2px}
@media(max-width:600px){
 .of305-pdf-bar{height:auto;min-height:66px;flex-wrap:wrap;gap:8px}
 .of305-pdf-bar>div{flex-basis:100%}
 .of305-pdf-action{flex:1;padding:10px 7px;font-size:11px}
 .of305-pdf-frame{height:calc(100% - 111px)}
}
