*{box-sizing:border-box}body{margin:0;background:#f5f7fb;color:#1c2743;font:15px system-ui,-apple-system,sans-serif}header{height:66px;background:#16213b;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100% - 1120px)/2));font-size:19px}.brand-main{display:flex;align-items:center;gap:12px}.brand-main img{display:block;width:162px;height:auto;max-height:42px;object-fit:contain;object-position:left center}.brand-main span{font-size:12px;color:#aebbd5}button{background:#2767d8;color:#fff;border:0;border-radius:7px;padding:10px 14px;font-weight:650;cursor:pointer;margin:4px}main{max-width:1120px;margin:auto;padding:38px 24px}.intro{margin-bottom:35px}.intro h1{font-size:30px;margin:0 0 8px}.intro p,.event{color:#65718a}h2{font-size:18px;margin:25px 0 12px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:14px}.card{background:white;border:1px solid #e0e6f0;border-radius:10px;padding:17px;box-shadow:0 2px 8px #17234408}.card h3{margin:8px 0}.metric{display:inline-block;background:#edf3ff;border-radius:5px;padding:4px 7px;margin:3px;font-size:12px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;background:#fff;padding:18px;border-radius:10px;margin:12px 0}.auth{max-width:480px}.auth form{display:grid;gap:8px}label{display:block;font-weight:600}input,select,textarea{width:100%;margin-top:5px;border:1px solid #cbd4e2;border-radius:6px;padding:9px;font:inherit}textarea{min-height:65px}nav{margin-bottom:16px;border-bottom:1px solid #dfe5ef;padding-bottom:10px}table{width:100%;border-collapse:collapse;background:#fff}td,th{padding:10px;text-align:left;border-bottom:1px solid #e5e9f1}.event{font-size:13px}
nav .nav-link{display:inline-block;background:#2767d8;color:#fff;text-decoration:none;border-radius:7px;padding:10px 14px;font-weight:650;margin:4px}
.panel-shell{display:flex;gap:24px;align-items:stretch}.panel-main{min-width:0;flex:1}.module-tabs{width:150px;margin:0;padding:8px;border:1px solid #dfe5ef;border-radius:10px;background:#fff;display:flex;flex-direction:column;gap:5px;align-self:flex-start;box-shadow:0 2px 8px #17234408}.module-tabs a,.module-tabs button{display:block;width:100%;margin:0;padding:11px 10px;border-radius:7px;text-decoration:none;text-align:left;font:inherit;font-weight:650}.module-tabs a{background:#2767d8;color:#fff}.module-tabs a:hover{background:#1f59bd}.module-tabs button{background:#f1f5fd;color:#2767d8}.module-tabs button:hover{background:#dfeaff}@media(max-width:720px){.panel-shell{display:block}.module-tabs{width:100%;flex-direction:row;margin-bottom:16px}.module-tabs a,.module-tabs button{flex:1;text-align:center}}
#busy{position:fixed;inset:0;z-index:9999;background:#12203ab8;display:grid;place-items:center}.busy-card{width:min(420px,calc(100% - 40px));background:#fff;border-radius:14px;padding:30px;text-align:center;box-shadow:0 20px 60px #0005;display:grid;gap:12px;color:#1c2743}.busy-card i{width:42px;height:42px;border:5px solid #dce7fb;border-top-color:#2767d8;border-radius:50%;margin:auto;animation:spin .8s linear infinite}.busy-card b{font-size:18px}.busy-card span{color:#65718a}@keyframes spin{to{transform:rotate(360deg)}}
:root{--pa-blue:#003da5;--pa-blue-dark:#002b73;--pa-red:#e03c31;--pa-red-dark:#bf2e25;--pa-yellow:#ffd100}.brand-main{gap:10px}.logo-capsule{display:flex;align-items:center;justify-content:center;background:#fff;border-radius:12px;padding:5px 10px;box-shadow:0 2px 7px #0003}.brand-main img{width:162px;max-height:32px}.brand-subtitle{font-size:12px;color:#dbe7ff}header{background:var(--pa-blue-dark)}button,nav .nav-link,.module-tabs a{background:var(--pa-blue)}button:hover,nav .nav-link:hover,.module-tabs a:hover{background:var(--pa-blue-dark)}.module-tabs button{background:#eef4ff;color:var(--pa-blue)}.module-tabs button:hover{background:#dce8ff}.metric{background:#eef4ff;color:var(--pa-blue)}.busy-card i{border-top-color:var(--pa-red)}.field-hint{display:block;margin-top:4px;color:#65718a;font-size:11px;font-weight:400;line-height:1.25}.attachments{margin:14px 0}.attachments h3{margin-top:0}.attachments p{margin:7px 0}.attachments a{color:var(--pa-blue);font-weight:650}.attachment-size{color:#65718a;font-size:12px}
#transportFields,#editTransportFields{display:contents}
#directoryRows .card{min-width:0;overflow-wrap:anywhere}#directorySearch,#directoryOperation{max-width:440px;margin-bottom:12px}
.grid:has(select[name="type"] option[value="IMPORTACION"]:checked):has(select[name="mode"] option[value="AEREO"]:checked) label:has(input[name="hsCode"]),
.grid:has(select[name="type"] option[value="IMPORTACION"]:checked):has(select[name="mode"] option[value="AEREO"]:checked) label:has(input[name="deliveryAddress"]) {
  display: none !important;
}

.grid:has(select[name="type"] option[value="IMPORTACION"]:checked):has(select[name="mode"] option[value="MARITIMO"]:checked) label:has(input[name="deliveryAddress"]) {
  display: none !important;
}

.grid:has(select[name="type"] option[value="IMPORTACION"]:checked):has(select[name="mode"] option[value="TERRESTRE"]:checked) label:has(input[name="pickupAddress"]),
.grid:has(select[name="type"] option[value="IMPORTACION"]:checked):has(select[name="mode"] option[value="TERRESTRE"]:checked) label:has(input[name="deliveryAddress"]) {
  display: none !important;
}

.grid:has(select[name="type"] option[value="EXPORTACION"]:checked):has(select[name="mode"] option[value="TERRESTRE"]:checked) label:has(input[name="pickupAddress"]),
.grid:has(select[name="type"] option[value="EXPORTACION"]:checked):has(select[name="mode"] option[value="TERRESTRE"]:checked) label:has(input[name="deliveryAddress"]) {
  display: none !important;
}

.grid:has(select[name="cargoNature"] option[value="General Cargo"]:checked) label:has(input[name="hazardous"]) {
  display: none !important;
}

.grid:has(select[name="type"] option[value="IMPORTACION"]:checked):has(select[name="mode"] option[value="AEREO"]:checked):has(select[name="cargoNature"] option[value="Reefer Cargo"]:checked) label:has(input[name="hazardous"]) {
  display: none !important;
}

.grid:has(select[name="type"] option[value="IMPORTACION"]:checked):has(select[name="mode"] option[value="MARITIMO"]:checked):has(select[name="cargoNature"] option[value="Reefer Cargo"]:checked) label:has(input[name="pickupAddress"]),
.grid:has(select[name="type"] option[value="IMPORTACION"]:checked):has(select[name="mode"] option[value="MARITIMO"]:checked):has(select[name="cargoNature"] option[value="Reefer Cargo"]:checked) label:has(input[name="deliveryAddress"]),
.grid:has(select[name="type"] option[value="IMPORTACION"]:checked):has(select[name="mode"] option[value="MARITIMO"]:checked):has(select[name="cargoNature"] option[value="Reefer Cargo"]:checked) label:has(input[name="hazardous"]) {
  display: none !important;
}

.grid:has(select[name="type"] option[value="IMPORTACION"]:checked):has(select[name="mode"] option[value="MARITIMO"]:checked) label:has(input[name="pickupAddress"]) {
  display: none !important;
}

.grid:has(select[name="type"] option[value="IMPORTACION"]:checked):has(select[name="mode"] option[value="MARITIMO"]:checked):has(select[name="incoterm"] option[value="EXW"]:checked) label:has(input[name="pickupAddress"]),
.grid:has(select[name="type"] option[value="IMPORTACION"]:checked):has(select[name="mode"] option[value="MARITIMO"]:checked):has(select[name="incoterm"] option[value="FCA"]:checked) label:has(input[name="pickupAddress"]) {
  display: block !important;
}

.grid:has(select[name="type"] option[value="IMPORTACION"]:checked):has(select[name="mode"] option[value="MARITIMO"]:checked):has(select[name="cargoType"] option[value="LCL"]:checked) label:has(input[name="deliveryAddress"]),
.grid:has(select[name="type"] option[value="IMPORTACION"]:checked):has(select[name="mode"] option[value="MARITIMO"]:checked):has(select[name="cargoType"] option[value="LCL"]:checked) label:has(input[name="hazardous"]) {
  display: none !important;
}

.grid label:has(input[name="temperatureCelsius"]) {
  display: none !important;
}

.grid:has(select[name="type"] option[value="IMPORTACION"]:checked):has(select[name="cargoNature"] option[value="Reefer Cargo"]:checked) label:has(input[name="temperatureCelsius"]) {
  display: block !important;
}

/* Las reglas visuales también cubren exportación marítima, incluso en una pestaña ya abierta. */
.grid:has(select[name="type"] option[value="EXPORTACION"]:checked):has(select[name="mode"] option[value="MARITIMO"]:checked):has(select[name="cargoType"] option[value="LCL"]:checked) label:has(input[name="deliveryAddress"]),
.grid:has(select[name="type"] option[value="EXPORTACION"]:checked):has(select[name="mode"] option[value="MARITIMO"]:checked):has(select[name="cargoType"] option[value="LCL"]:checked) label:has(input[name="hazardous"]) {
  display: none !important;
}

.grid:has(select[name="type"] option[value="EXPORTACION"]:checked):has(select[name="mode"] option[value="MARITIMO"]:checked):has(select[name="cargoNature"] option[value="Reefer Cargo"]:checked) label:has(input[name="pickupAddress"]),
.grid:has(select[name="type"] option[value="EXPORTACION"]:checked):has(select[name="mode"] option[value="MARITIMO"]:checked):has(select[name="cargoNature"] option[value="Reefer Cargo"]:checked) label:has(input[name="deliveryAddress"]),
.grid:has(select[name="type"] option[value="EXPORTACION"]:checked):has(select[name="mode"] option[value="MARITIMO"]:checked):has(select[name="cargoNature"] option[value="Reefer Cargo"]:checked) label:has(input[name="hazardous"]) {
  display: none !important;
}

.grid:has(select[name="type"] option[value="EXPORTACION"]:checked):has(select[name="mode"] option[value="MARITIMO"]:checked):has(select[name="cargoNature"] option[value="Reefer Cargo"]:checked) label:has(input[name="temperatureCelsius"]) {
  display: block !important;
}

.grid:has(select[name="type"] option[value="EXPORTACION"]:checked):has(select[name="mode"] option[value="TERRESTRE"]:checked):has(select[name="cargoNature"] option[value="Reefer Cargo"]:checked) label:has(input[name="temperatureCelsius"]) {
  display: block !important;
}

.grid:has(select[name="type"] option[value="EXPORTACION"]:checked):has(select[name="mode"] option[value="AEREO"]:checked):has(select[name="cargoNature"] option[value="Reefer Cargo"]:checked) label:has(input[name="temperatureCelsius"]) {
  display: block !important;
}

.draft-send-controls{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.draft-selector{display:block;margin-bottom:12px;color:#003da5}.draft-selector input{width:auto;margin:0 5px 0 0}.draft-send-controls button{margin:0}
.proposal-list{display:grid;gap:14px;margin:14px 0 24px}.proposal-preview{--proposal-accent:#2f9464;--proposal-tint:#edf9f1;--proposal-border:#a8d8b8;background:#fff;border:1px solid var(--proposal-border);border-radius:14px;overflow:hidden;box-shadow:0 2px 8px rgba(17,45,75,.05)}.proposal-preview[open]{border-color:var(--proposal-accent);box-shadow:0 10px 28px color-mix(in srgb,var(--proposal-accent) 16%,transparent)}.proposal-preview summary{cursor:pointer;list-style:none;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#17385f;background:linear-gradient(90deg,var(--proposal-tint),#fff 62%);border-left:5px solid var(--proposal-accent)}.proposal-preview summary::-webkit-details-marker{display:none}.proposal-preview summary span:first-child{display:grid;gap:4px}.proposal-preview summary b{color:#143e78;font-size:17px}.proposal-preview summary small{font-size:13px;color:#56677d}.proposal-preview summary span:last-child{font-size:13px;font-weight:750;color:var(--proposal-accent);white-space:nowrap}.proposal-tone-1{--proposal-accent:#21855c;--proposal-tint:#eaf8ef;--proposal-border:#b2dfc2}.proposal-tone-2{--proposal-accent:#d65f4b;--proposal-tint:#fff0ed;--proposal-border:#f0b7ad}.proposal-tone-3{--proposal-accent:#7362ba;--proposal-tint:#f3f0ff;--proposal-border:#c8bff0}.proposal-tone-4{--proposal-accent:#197fae;--proposal-tint:#eaf7fe;--proposal-border:#afd8ed}.proposal-tone-5{--proposal-accent:#a77513;--proposal-tint:#fff8e6;--proposal-border:#e8cc8d}.proposal-sheet{padding:0 18px 18px}.proposal-sheet-compact{padding:12px 0 0}.proposal-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:16px 0;border-top:1px solid var(--proposal-border);color:#17243e}.proposal-head div{display:grid;gap:4px}.proposal-head span{font-size:13px;color:#65718a}.proposal-head strong{font-size:18px;color:var(--proposal-accent);white-space:nowrap}.proposal-section{margin:16px 0}.proposal-section h4{margin:0;padding:10px 12px;background:var(--proposal-tint);color:#173e73;border-radius:9px 9px 0 0;font-size:14px}.proposal-section dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;border:1px solid #d8e1ef;border-top:0}.proposal-section dl div{display:grid;grid-template-columns:minmax(120px,.75fr) 1.25fr;border-top:1px solid #e4eaf3;min-width:0}.proposal-section dl div:nth-child(-n+2){border-top:0}.proposal-section dt,.proposal-section dd{padding:9px 11px;margin:0;overflow-wrap:anywhere}.proposal-section dt{font-weight:700;background:#f8faff}.proposal-section dd{color:#394662}.proposal-detail-block{margin:12px 0;border:1px solid #dbe5ef;border-radius:10px;overflow:hidden;background:#fff}.proposal-detail-block h5{margin:0;padding:10px 12px;background:#f5f8fc;color:#23446e;font-size:13px}.proposal-detail-charges h5{background:#edf7f1;color:#176342}.proposal-detail-conditions h5{background:#fff7e5;color:#7d5812}.proposal-detail-summary h5{background:#edf5ff;color:#225b9f}.proposal-charge-list,.proposal-condition-list{display:grid;gap:8px;margin:0;padding:12px 14px 12px 35px;color:#344761;line-height:1.5}.proposal-charge-list li::marker{color:#20845c;font-weight:800}.proposal-condition-list li::marker{color:#ba7d10;font-weight:800}.proposal-charge-list b,.proposal-condition-list b{color:#183e6d}.proposal-not-informed{color:#748197;font-style:italic}.proposal-documents{margin:10px 0}.proposal-document{margin:3px 4px 3px 0;background:#eef4ff;color:#063d91;border:1px solid #b9cae8;padding:6px 9px;font-size:12px}.proposal-document:hover{background:#dce8ff}.proposal-form{align-items:start}.proposal-form .proposal-wide,.proposal-decision .proposal-wide{grid-column:1/-1}.proposal-decision{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:#fff;padding:18px;border-radius:10px;margin:12px 0}.decision-preview{grid-column:1/-1;border-top:1px solid #d8e1ef;padding-top:10px}.proposal-decision>button{justify-self:start}@media(max-width:720px){.proposal-preview summary,.proposal-head{align-items:flex-start;flex-direction:column}.proposal-preview summary span:last-child{white-space:normal}.proposal-section dl{grid-template-columns:1fr}.proposal-section dl div,.proposal-section dl div:nth-child(-n+2){border-top:1px solid #e4eaf3}.proposal-section dl div:first-child{border-top:0}.proposal-decision{grid-template-columns:1fr}}

/* Formulario de cotización: tratamiento visual inspirado en iOS.
   Está deliberadamente limitado a estos IDs para no alterar otros formularios ni su lógica. */
#quote.grid,#editQuote.grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px 16px;
  margin:18px 0 28px;
  padding:28px;
  border:1px solid rgba(210,220,236,.9);
  border-radius:24px;
  background:linear-gradient(145deg,#ffffff 0%,#fbfcff 100%);
  box-shadow:0 16px 40px rgba(32,54,92,.09),0 2px 7px rgba(32,54,92,.04);
}
#quote.grid>label,#editQuote.grid>label{
  min-width:0;
  color:#1e2d4d;
  font-size:13px;
  font-weight:700;
  letter-spacing:.01em;
}
#quote.grid input,#quote.grid select,#quote.grid textarea,
#editQuote.grid input,#editQuote.grid select,#editQuote.grid textarea{
  min-height:48px;
  margin-top:7px;
  padding:12px 13px;
  border:1px solid #d5deec;
  border-radius:13px;
  outline:0;
  background:rgba(255,255,255,.92);
  color:#17243e;
  box-shadow:inset 0 1px 2px rgba(20,42,80,.035);
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
#quote.grid textarea,#editQuote.grid textarea{min-height:96px;resize:vertical}
#quote.grid input::placeholder,#quote.grid textarea::placeholder,
#editQuote.grid input::placeholder,#editQuote.grid textarea::placeholder{color:#8290a7}
#quote.grid input:focus,#quote.grid select:focus,#quote.grid textarea:focus,
#editQuote.grid input:focus,#editQuote.grid select:focus,#editQuote.grid textarea:focus{
  border-color:#007aff;
  background:#fff;
  box-shadow:0 0 0 4px rgba(0,122,255,.14),inset 0 1px 2px rgba(20,42,80,.03);
}
#quote.grid input[type="file"],#editQuote.grid input[type="file"]{
  padding:9px;
  cursor:pointer;
  background:#f7f9fd;
}
#quote.grid input[type="file"]::file-selector-button,#editQuote.grid input[type="file"]::file-selector-button{
  margin-right:10px;
  padding:7px 10px;
  border:0;
  border-radius:8px;
  background:#e6efff;
  color:#003da5;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
#quote .incoterm-guide,#editQuote .incoterm-guide,
#quote.grid>.event,#editQuote.grid>.event{
  grid-column:1/-1;
  margin:0;
  padding:12px 14px;
  border:1px solid #dbe8ff;
  border-radius:14px;
  background:#f3f7ff;
  color:#426184;
  font-size:13px;
  line-height:1.45;
}
#quote #transportFields>p,#editQuote #editTransportFields>p{
  margin:0;
  align-self:end;
  padding-bottom:4px;
}
#quote #transportFields a,#editQuote #editTransportFields a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 13px;
  border:1px solid #cbdcff;
  border-radius:12px;
  background:#f5f8ff;
  color:#003da5;
  font-weight:700;
  text-decoration:none;
}
#quote #transportFields a:hover,#editQuote #editTransportFields a:hover{background:#e8f0ff}
#quote.grid>button,#editQuote.grid>button{
  grid-column:1/-1;
  justify-self:end;
  min-width:210px;
  min-height:50px;
  margin:4px 0 0;
  border-radius:15px;
  background:linear-gradient(135deg,#007aff,#0059c9);
  box-shadow:0 10px 18px rgba(0,92,205,.22);
  font-size:14px;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
#quote.grid>button:hover,#editQuote.grid>button:hover{
  transform:translateY(-1px);
  filter:brightness(1.03);
  box-shadow:0 13px 22px rgba(0,92,205,.27);
}
#quote.grid>button:active,#editQuote.grid>button:active{transform:translateY(0);box-shadow:0 6px 12px rgba(0,92,205,.2)}
@media(max-width:780px){
  #quote.grid,#editQuote.grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:20px;border-radius:20px}
}
@media(max-width:560px){
  #quote.grid,#editQuote.grid{grid-template-columns:1fr;gap:14px;padding:16px;border-radius:18px}
  #quote.grid>button,#editQuote.grid>button{justify-self:stretch;width:100%}
}

/* Constructor de pallets: conserva la misma estética del formulario iOS. */
.package-builder{
  grid-column:1/-1;
  padding:18px;
  border:1px solid #d9e3f3;
  border-radius:18px;
  background:linear-gradient(145deg,#fbfcff,#f5f8fd);
  box-shadow:inset 0 1px 0 #fff;
}
.package-builder[hidden]{display:none!important}
/* Los datos generales se calculan desde Packages; no se repiten en el formulario. */
#quote label:has(>select[name="packingType"]),
#editQuote label:has(>select[name="packingType"]),
#quote label:has(>input[name="dimensions"]),
#editQuote label:has(>input[name="dimensions"]),
#quote label:has(>input[name="pieces"]),
#editQuote label:has(>input[name="pieces"]){display:none!important}
.package-builder-head,.package-row-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.package-builder-head{margin-bottom:14px}
.package-builder-head div{display:grid;gap:3px}.package-builder-head b{font-size:16px}.package-builder-head small,.package-row-volume{color:#687995;font-size:12px}
.package-calculated-total{display:grid;gap:7px;color:#263a60;font-weight:750}
.package-calculated-total[hidden]{display:none!important}
.package-calculated-total output{display:flex;align-items:center;min-height:46px;padding:0 14px;border:1px solid #c9d9f1;border-radius:12px;background:#f4f8ff;color:#0059c9;font-weight:800;font-size:16px;box-sizing:border-box}
.package-builder .package-calculations{margin-top:13px}
.package-builder .package-calculated-total{display:flex;align-items:baseline;gap:7px;padding:0 2px;color:#647795;font-size:13px}
.package-builder .package-calculated-total output{display:inline;min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:#31517e;font-size:15px}
.package-cargo-area{margin-top:16px}
.package-cargo-area label{display:grid;gap:7px;color:#263a60;font-weight:750}
.package-cargo-area input{min-height:46px;margin:0;border-radius:12px}
.cargo-weight-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(175px,.32fr);gap:10px;align-items:stretch}
.cargo-weight-controls input,.cargo-weight-controls select{min-height:46px;margin:0;border-radius:12px}
.package-shipment-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:15px;padding-top:15px;border-top:1px solid #dfe8f5}
.package-shipment-totals>div{display:grid;gap:4px}.package-shipment-totals span{color:#70809a;font-size:12px;font-weight:700}.package-shipment-totals output{color:#0059c9;font-size:18px;font-weight:800}
.package-rows{display:grid;gap:12px}
.package-row{padding:15px;border:1px solid #e0e7f1;border-radius:15px;background:#fff;box-shadow:0 2px 7px rgba(29,55,95,.035)}
.package-row-top{margin-bottom:12px}.package-row-title{font-size:14px;color:#263a60}
.remove-package{margin:0;padding:4px 7px;min-height:30px;border-radius:9px;background:#fff1f1;color:#d53b36;box-shadow:none}.remove-package:hover{background:#ffe4e3}
.package-row-fields{display:grid;grid-template-columns:1.35fr 1.35fr repeat(4,minmax(82px,1fr));gap:12px}
.package-row-fields label{font-size:12px;color:#50627f}.package-row-fields input,.package-row-fields select{min-height:42px;margin-top:5px;border-radius:11px}
.package-row-volume{display:block;margin-top:10px;font-weight:650}
.add-package{margin:14px 0 0;padding:9px 12px;border-radius:11px;background:#e9f1ff;color:#0045a3;box-shadow:none}.add-package:hover{background:#dceaff}
@media(max-width:780px){.package-row-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.package-builder{padding:14px}.package-builder-head{flex-direction:column}.package-row-fields,.package-shipment-totals,.cargo-weight-controls{grid-template-columns:1fr}}

/* Nueva cotización: separa datos de control y detalle sin alterar sus reglas. */
#quote.quote-request-layout{display:grid;grid-template-columns:1fr;gap:18px;padding:0;background:transparent;border:0;box-shadow:none}
#quote.quote-request-layout>.quote-context-block,#quote.quote-request-layout>.quote-details-block{border:1px solid rgba(210,220,236,.95);border-radius:24px;background:linear-gradient(145deg,#fff,#fbfcff);box-shadow:0 12px 30px rgba(32,54,92,.07)}
#quote.quote-request-layout>.quote-context-block{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:22px 24px;background:linear-gradient(135deg,#f2f7ff,#fff)}
#quote.quote-request-layout>.quote-details-block{padding:28px}
#quote.quote-request-layout .quote-context-block label,#quote.quote-request-layout .quote-details-grid>label{min-width:0;color:#1e2d4d;font-size:13px;font-weight:700;letter-spacing:.01em}
#quote.quote-request-layout .quote-context-block input,#quote.quote-request-layout .quote-context-block select,#quote.quote-request-layout .quote-details-grid input,#quote.quote-request-layout .quote-details-grid select,#quote.quote-request-layout .quote-details-grid textarea{min-height:48px;margin-top:7px;padding:12px 13px;border:1px solid #d5deec;border-radius:13px;outline:0;background:rgba(255,255,255,.94);color:#17243e;box-shadow:inset 0 1px 2px rgba(20,42,80,.035);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
#quote.quote-request-layout .quote-context-block input[readonly]{background:#edf3fc;color:#385072;cursor:default}
#quote.quote-request-layout .quote-context-block input:focus,#quote.quote-request-layout .quote-context-block select:focus,#quote.quote-request-layout .quote-details-grid input:focus,#quote.quote-request-layout .quote-details-grid select:focus,#quote.quote-request-layout .quote-details-grid textarea:focus{border-color:#007aff;background:#fff;box-shadow:0 0 0 4px rgba(0,122,255,.14),inset 0 1px 2px rgba(20,42,80,.03)}
#quote.quote-request-layout .quote-details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 16px;align-items:start}
#quote.quote-request-layout .quote-details-grid #transportFields{display:contents}
#quote.quote-request-layout .quote-details-grid .incoterm-guide,#quote.quote-request-layout .quote-details-grid>.event,#quote.quote-request-layout .quote-details-grid>.package-builder{grid-column:1/-1}
#quote.quote-request-layout .quote-details-grid>.event{margin:0;padding:12px 14px;border:1px solid #dbe8ff;border-radius:14px;background:#f3f7ff;color:#426184;font-size:13px;line-height:1.45}
#quote.quote-request-layout .quote-details-grid>button{grid-column:1/-1;justify-self:end;min-width:210px;min-height:50px;margin:4px 0 0;border-radius:15px;background:linear-gradient(135deg,#007aff,#0059c9);box-shadow:0 10px 18px rgba(0,92,205,.22);font-size:14px}
@media(max-width:780px){#quote.quote-request-layout>.quote-context-block{grid-template-columns:repeat(2,minmax(0,1fr));padding:20px}#quote.quote-request-layout>.quote-details-block{padding:20px}#quote.quote-request-layout .quote-details-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#quote.quote-request-layout>.quote-context-block,#quote.quote-request-layout .quote-details-grid{grid-template-columns:1fr}#quote.quote-request-layout>.quote-context-block,#quote.quote-request-layout>.quote-details-block{padding:16px;border-radius:18px}#quote.quote-request-layout .quote-details-grid>button{justify-self:stretch;width:100%}}

/* Sistema visual: superficies suaves, jerarquía clara y movimiento discreto. */
:root{--ui-ink:#17233d;--ui-muted:#62708a;--ui-line:rgba(203,214,231,.78);--ui-surface:rgba(255,255,255,.82);--ui-accent:#0757c9;--ui-accent-dark:#003b91}
body{min-height:100vh;background:radial-gradient(circle at 10% -10%,#e7f0ff 0,transparent 32rem),radial-gradient(circle at 100% 16%,#f0f5ff 0,transparent 30rem),#f6f8fc;color:var(--ui-ink);letter-spacing:-.012em}
header{height:76px;background:linear-gradient(112deg,#002c72 0%,#064fae 58%,#003c8e 100%);box-shadow:0 10px 28px rgba(0,45,113,.17);padding:0 max(30px,calc((100% - 1480px)/2));position:relative;z-index:2}
header::after{content:"";position:absolute;inset:auto 0 0;height:1px;background:rgba(255,255,255,.22)}
.brand-main{gap:14px}.brand-subtitle{font-weight:600;letter-spacing:.01em}.logo-capsule{border-radius:14px;padding:6px 12px;box-shadow:0 7px 18px rgba(0,20,62,.22)}
main{max-width:1480px;padding:30px clamp(18px,3vw,42px) 52px}.panel-shell{gap:28px;align-items:flex-start}.panel-main{padding-top:2px}
nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 26px;padding:0 0 18px;border-bottom:1px solid rgba(193,207,229,.72)}
button,nav .nav-link{border-radius:13px;margin:0;padding:10px 15px;background:linear-gradient(135deg,#0a5fd4,#0045a6);box-shadow:0 5px 12px rgba(0,65,160,.15);transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s ease,filter .2s ease}
button:hover,nav .nav-link:hover{background:linear-gradient(135deg,#146ee9,#003b91);transform:translateY(-2px);box-shadow:0 10px 22px rgba(0,65,160,.2)}button:active{transform:translateY(0);box-shadow:0 3px 8px rgba(0,65,160,.16)}
.module-tabs{position:sticky;top:18px;width:172px;padding:10px;border:1px solid rgba(211,221,237,.88);border-radius:20px;background:rgba(255,255,255,.76);box-shadow:0 12px 28px rgba(39,59,96,.08);backdrop-filter:blur(14px)}
.module-tabs a{padding:13px 12px;border-radius:13px;box-shadow:none;transition:transform .2s ease,filter .2s ease}.module-tabs a:hover{transform:translateX(3px);filter:brightness(1.08)}
h2{font-size:24px;letter-spacing:-.035em;margin:0 0 16px}h3{letter-spacing:-.025em}.card,.grid{border:1px solid var(--ui-line);border-radius:18px;background:var(--ui-surface);box-shadow:0 10px 26px rgba(28,47,81,.055);backdrop-filter:blur(12px)}
.card{padding:20px;transition:transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s ease,border-color .22s ease}.cards{gap:18px}.card:hover{border-color:rgba(105,145,207,.5);box-shadow:0 16px 34px rgba(28,47,81,.1);transform:translateY(-3px)}
.metric{padding:5px 9px;border:1px solid #d6e4ff;border-radius:999px;background:#edf4ff;color:#0757c9;font-weight:750;letter-spacing:.02em}.grid{padding:20px;gap:14px}input,select,textarea{border-color:#d5dfef;border-radius:12px;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}input:focus,select:focus,textarea:focus{border-color:#1970e8;box-shadow:0 0 0 4px rgba(25,112,232,.12);outline:0}
#quoteRows{grid-template-columns:repeat(auto-fit,minmax(285px,1fr));align-items:stretch}.quote-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:240px;overflow:hidden;isolation:isolate;animation:quote-card-in .46s both;animation-delay:calc(var(--card-order,0) * 42ms)}.quote-card::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(180deg,#1681ff,#0043a1);border-radius:18px 0 0 18px}.quote-card::after{content:"";position:absolute;width:150px;height:150px;right:-70px;top:-70px;border-radius:50%;background:radial-gradient(circle,rgba(22,129,255,.12),transparent 69%);z-index:-1}.quote-card b:first-child{max-width:100%;overflow-wrap:anywhere;font-size:15px;letter-spacing:.025em}.quote-card h3{margin:17px 0 10px;font-size:20px;line-height:1.18}.quote-card p{margin:9px 0;overflow-wrap:anywhere;color:#3d4d6b}.quote-card button{position:static;align-self:flex-start;margin-top:auto;padding:8px 13px;border-radius:11px}.quote-card[data-status="aprobada"]::before{background:linear-gradient(180deg,#23a36a,#087a47)}.quote-card[data-status="borrador"]::before{background:linear-gradient(180deg,#8a67ee,#5b3bc7)}.quote-card[data-status="propuestas_recibidas"]::before{background:linear-gradient(180deg,#e69a19,#bd6c02)}
#content>.card:first-of-type{animation:surface-in .35s both}.quote-card~.quote-card{animation-delay:calc(var(--card-order,0) * 42ms)}
@keyframes quote-card-in{from{opacity:0;transform:translateY(12px) scale(.986)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes surface-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){header{height:auto;min-height:68px;padding:12px 18px}.brand-subtitle{display:none}.panel-shell{display:block}.module-tabs{position:static;width:100%;margin-bottom:16px;flex-direction:row}.module-tabs a{text-align:center}.panel-main{padding-top:0}nav{gap:7px}nav button{flex:1 1 auto}.quote-card{min-height:230px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Fondo operativo Panatlantic y dashboard inicial por rol. */
body{isolation:isolate;background:#edf3fb}body::before{content:"";position:fixed;inset:76px 0 0;z-index:-2;background:linear-gradient(90deg,rgba(243,248,255,.9),rgba(238,246,255,.72)),url('/assets/international-logistics-bg.png') center bottom/cover no-repeat;opacity:.9}body::after{content:"";position:fixed;inset:76px 0 0;z-index:-1;background:linear-gradient(180deg,rgba(245,249,255,.5),rgba(239,246,255,.76));pointer-events:none}
.dashboard-loading,.dashboard-empty{color:#64728a}.dashboard-loading{display:flex;align-items:center;justify-content:center;gap:10px;min-height:240px;border:1px solid var(--ui-line);border-radius:22px;background:rgba(255,255,255,.76);backdrop-filter:blur(14px)}.dashboard-loading span{width:20px;height:20px;border:3px solid #d5e5ff;border-top-color:#0761d6;border-radius:50%;animation:dashboard-spin .8s linear infinite}
.dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:190px;margin-bottom:18px;padding:32px 34px;border:1px solid rgba(211,225,247,.86);border-radius:24px;background:linear-gradient(115deg,rgba(255,255,255,.94),rgba(245,250,255,.77));box-shadow:0 16px 36px rgba(23,53,100,.1);backdrop-filter:blur(16px);animation:surface-in .42s both}.dashboard-hero h2{margin:4px 0 9px;font-size:31px}.dashboard-hero p:not(.dashboard-eyebrow){max-width:620px;margin:0;color:#50617e;font-size:15px;line-height:1.55}.dashboard-eyebrow{margin:0;color:#176bd3;font-size:11px;font-weight:800;letter-spacing:.16em}.dashboard-progress{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:13px;min-width:205px;padding:15px 17px;border:1px solid #d8e7fd;border-radius:18px;background:rgba(239,246,255,.8)}.dashboard-progress strong{grid-row:span 2;font-size:30px;color:#084ea9;letter-spacing:-.06em}.dashboard-progress span{font-size:12px;color:#526581}.dashboard-progress i{display:block;position:relative;height:7px;overflow:hidden;margin-top:7px;border-radius:999px;background:#dce9fa}.dashboard-progress i::after{content:"";display:block;width:var(--progress);height:100%;border-radius:inherit;background:linear-gradient(90deg,#2188ff,#0756c9);transition:width .5s ease}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.dashboard-stat{position:relative;overflow:hidden;display:grid;gap:3px;min-height:108px;padding:19px 21px;border:1px solid rgba(210,222,239,.9);border-radius:18px;background:rgba(255,255,255,.86);box-shadow:0 9px 24px rgba(30,54,90,.07);backdrop-filter:blur(13px);animation:quote-card-in .4s both}.dashboard-stat::after{content:"";position:absolute;right:-22px;bottom:-34px;width:100px;height:100px;border-radius:50%;background:currentColor;opacity:.07}.dashboard-stat strong{font-size:33px;line-height:1;color:#12335f;letter-spacing:-.06em}.dashboard-stat span{color:#61718b;font-size:13px;font-weight:650}.dashboard-stat.blue{color:#1674e8}.dashboard-stat.orange{color:#d98a0f}.dashboard-stat.green{color:#119863}.dashboard-stat.red{color:#d04d57}
.dashboard-columns{display:grid;grid-template-columns:1.05fr .95fr;gap:18px}.dashboard-panel{padding:23px;border:1px solid rgba(205,219,239,.9);border-radius:21px;background:rgba(255,255,255,.86);box-shadow:0 12px 28px rgba(30,54,90,.075);backdrop-filter:blur(14px)}.dashboard-panel>header{height:auto;min-height:0;padding:0 0 16px;margin-bottom:8px;color:inherit;background:transparent;box-shadow:none}.dashboard-panel>header::after{display:none}.dashboard-panel h3{margin:4px 0 0;font-size:19px}.dashboard-caption{padding:6px 9px;border-radius:999px;background:#edf4ff;color:#35618e;font-size:11px;font-weight:700}.dashboard-panel>header button{padding:8px 11px;font-size:12px}
.dashboard-bars{display:grid;gap:15px}.dashboard-bar{display:grid;grid-template-columns:minmax(120px,1fr) minmax(90px,1.2fr) 28px;align-items:center;gap:12px}.dashboard-bar div{display:grid;gap:2px;min-width:0}.dashboard-bar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:750}.dashboard-bar small{color:#74829a;font-size:11px}.dashboard-bar i{display:block;height:9px;overflow:hidden;border-radius:999px;background:#e3edf9}.dashboard-bar i b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3b98ff,#0758c6);transition:width .55s ease}.dashboard-bar>strong{text-align:right;color:#315172;font-size:13px}
.dashboard-request-list{display:grid;gap:8px}.dashboard-request{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 13px;border:1px solid #e0e8f4;border-radius:13px;background:rgba(250,252,255,.78);box-shadow:none;color:#243653;text-align:left}.dashboard-request:hover{background:#fff;border-color:#bcd5fa;transform:translateX(2px);box-shadow:0 6px 14px rgba(30,75,140,.08)}.dashboard-request span{display:grid;gap:3px;min-width:0}.dashboard-request b{font-size:13px}.dashboard-request small{overflow:hidden;color:#6c7d96;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.dashboard-request em{flex:0 0 auto;padding:4px 7px;border-radius:999px;background:#eaf2ff;color:#1763c7;font-size:10px;font-style:normal;font-weight:800}.dashboard-request em[data-state="aprobada"]{background:#e5f7ee;color:#0c8050}.dashboard-request em[data-state="rechazada"]{background:#fff0f1;color:#bc3e4a}.dashboard-request em[data-state="propuestas-recibidas"]{background:#fff3df;color:#af6900}
@keyframes dashboard-spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.dashboard-columns{grid-template-columns:1fr}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-hero{align-items:flex-start;flex-direction:column}.dashboard-progress{width:100%;max-width:360px}}@media(max-width:520px){body::before,body::after{inset:68px 0 0}.dashboard-hero{padding:23px}.dashboard-hero h2{font-size:26px}.dashboard-stats{grid-template-columns:1fr}.dashboard-panel{padding:17px}.dashboard-panel>header{align-items:flex-start;flex-direction:column}.dashboard-request{align-items:flex-start;flex-direction:column}.dashboard-bar{grid-template-columns:minmax(95px,1fr) minmax(70px,1fr) 24px}}

/* Conserva el contraste del texto, pero deja que la logística sea visible. */
body::before{background:linear-gradient(90deg,rgba(242,248,255,.48),rgba(229,242,255,.27)),url('/assets/international-logistics-bg.png') center 58%/cover no-repeat;opacity:1}body::after{background:linear-gradient(180deg,rgba(245,249,255,.18),rgba(235,244,255,.3))}.dashboard-hero{position:relative;overflow:hidden;background:linear-gradient(100deg,rgba(255,255,255,.91) 0%,rgba(250,253,255,.76) 57%,rgba(240,248,255,.48) 100%)}.dashboard-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.94) 2%,rgba(255,255,255,.78) 45%,rgba(242,249,255,.2) 100%),url('/assets/international-logistics-bg.png') right 56%/cover no-repeat;opacity:.7;pointer-events:none}.dashboard-hero>*{position:relative;z-index:1}.dashboard-panel,.dashboard-stat{background:rgba(255,255,255,.78)}

/* Borradores: un ejemplo visual y selección clara de destinatarios. */
.drafts-loading,.drafts-empty{display:flex;align-items:center;justify-content:center;gap:10px;min-height:210px;padding:28px;border:1px solid var(--ui-line);border-radius:22px;background:rgba(255,255,255,.8);box-shadow:0 12px 28px rgba(28,47,81,.07);color:#65738b}.drafts-loading span{width:20px;height:20px;border:3px solid #d8e7fc;border-top-color:#0a61d2;border-radius:50%;animation:dashboard-spin .8s linear infinite}.drafts-empty{display:block}.drafts-empty h2,.drafts-empty h3{margin-top:0}.drafts-intro{margin-bottom:18px;padding:28px 30px;border:1px solid rgba(208,222,244,.9);border-radius:22px;background:linear-gradient(112deg,rgba(255,255,255,.92),rgba(242,248,255,.68));box-shadow:0 13px 30px rgba(28,47,81,.08);backdrop-filter:blur(14px)}.drafts-intro h2{margin:5px 0 8px;font-size:27px}.drafts-intro>p:last-child{max-width:760px;margin:0;color:#566782;line-height:1.55}.draft-batch{margin:18px 0;padding:24px;border:1px solid rgba(205,220,241,.92);border-radius:23px;background:rgba(255,255,255,.82);box-shadow:0 13px 30px rgba(28,47,81,.08);backdrop-filter:blur(14px);animation:surface-in .38s both}.draft-batch-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid #deE8f6}.draft-batch-header h2{margin:4px 0 5px;font-size:21px}.draft-batch-header p:last-child{margin:0;color:#667690;font-size:13px}.draft-batch-actions{display:flex;gap:7px;flex-wrap:wrap}.draft-batch-actions button{padding:8px 10px;border-radius:10px;font-size:12px}.draft-batch-actions .draft-clear-all{background:#edf2fa;color:#36506f;box-shadow:none}.draft-review-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(310px,.9fr);gap:18px}.draft-sample,.draft-recipient-panel{border:1px solid #dbe6f5;border-radius:18px;background:rgba(253,254,255,.88);overflow:hidden}.draft-sample{padding:21px}.draft-sample header,.draft-recipient-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.draft-sample h3,.draft-recipient-panel h3{margin:4px 0 0;font-size:18px}.draft-sample-tag{padding:5px 8px;border:1px solid #cee0fc;border-radius:999px;background:#eef5ff;color:#1763c8;font-size:10px;font-weight:800}.draft-address,.draft-subject{display:grid;gap:3px;margin-top:16px;padding:10px 12px;border-left:3px solid #1e7bf0;background:#f4f8ff}.draft-address span,.draft-subject span{color:#5d708d;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.draft-address small{color:#63738c;font-size:12px}.draft-body{max-height:400px;overflow:auto;margin-top:15px;padding:14px;border:1px solid #e0e8f4;border-radius:12px;background:#fff;color:#2c3f5f;font-size:13px;line-height:1.55}.draft-attachments{display:grid;gap:4px;margin:13px 0 0;padding-top:12px;border-top:1px solid #e4ebf5;color:#435573;font-size:12px}.draft-attachments span{color:#6b7a91}.draft-recipient-panel{padding:21px}.draft-recipient-panel>header p:last-child{margin:7px 0 0;color:#687995;font-size:12px}.draft-selection-count{flex:0 0 auto;padding:7px 8px;border-radius:10px;background:#eaf3ff;color:#1763c8;font-size:11px;font-weight:800}.draft-recipient-list{display:grid;gap:8px;max-height:460px;margin-top:16px;overflow:auto;padding-right:2px}.draft-recipient{position:relative;display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #e0e8f4;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .18s ease,transform .18s ease,background .18s ease}.draft-recipient:hover{border-color:#aecbf4;background:#f9fcff;transform:translateX(2px)}.draft-recipient input{position:absolute;opacity:0;pointer-events:none}.draft-recipient-check{width:18px;height:18px;flex:0 0 18px;border:1.5px solid #b6c9e4;border-radius:6px;background:#fff}.draft-recipient input:checked+.draft-recipient-check{border-color:#1167d8;background:#1167d8;box-shadow:inset 0 0 0 4px #fff}.draft-recipient-details{display:grid;gap:3px;min-width:0;flex:1}.draft-recipient-details b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#243956;font-size:13px}.draft-recipient-details small{overflow:hidden;color:#718099;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.draft-ready,.draft-pending{padding:4px 6px;border-radius:999px;background:#e7f7ed;color:#128052;font-size:10px;font-weight:800}.draft-pending{background:#fff3df;color:#af6900}.draft-recipient-disabled{cursor:default;opacity:.75}.draft-recipient-disabled:hover{transform:none;border-color:#e0e8f4;background:#fff}.draft-send-selected{width:100%;margin-top:15px;padding:12px 15px;border-radius:12px;font-size:13px}.draft-send-selected:disabled{cursor:not-allowed;background:#c9d3e1;box-shadow:none;transform:none}@media(max-width:820px){.draft-review-layout{grid-template-columns:1fr}.draft-batch-header{align-items:flex-start;flex-direction:column}.draft-selection-count{white-space:nowrap}}@media(max-width:520px){.drafts-intro,.draft-batch,.draft-sample,.draft-recipient-panel{padding:17px}.draft-sample header,.draft-recipient-panel>header{align-items:flex-start;flex-direction:column}.draft-batch-actions{width:100%}.draft-batch-actions button{flex:1}.draft-recipient{align-items:flex-start}.draft-ready,.draft-pending{display:none}}

/* Los encabezados internos de Borradores no heredan la barra global del sitio. */
.draft-batch>header,.draft-sample>header,.draft-recipient-panel>header{position:static;z-index:auto;min-height:0;height:auto;margin:0;padding:0;color:var(--ui-ink);background:transparent;box-shadow:none}.draft-batch>header::after,.draft-sample>header::after,.draft-recipient-panel>header::after{display:none}.draft-batch-header{padding-bottom:18px}.draft-sample>header,.draft-recipient-panel>header{padding-bottom:0}.draft-sample>header h3,.draft-recipient-panel>header h3{color:var(--ui-ink)}

/* Posventa: vendedor seleccionable, filtros y paginación. */
.module-tabs #sideNewQuote{background:linear-gradient(135deg,#18a06c,#08794c);color:#fff;text-align:center}.module-tabs #sideNewQuote:hover{background:linear-gradient(135deg,#20b77d,#076b44)}
.dashboard-filters{display:grid;grid-template-columns:1.25fr 1fr 1fr auto;gap:12px;align-items:end;margin:0 0 18px;padding:16px 18px;border:1px solid var(--ui-line);border-radius:18px;background:rgba(255,255,255,.76);box-shadow:0 8px 22px rgba(28,47,81,.05)}
.dashboard-filters label{font-size:12px;color:#52627d}.dashboard-filters input,.dashboard-filters select{min-height:42px;margin-top:5px;background:#fff}.dashboard-filters button{min-height:42px;white-space:nowrap;background:#eaf2ff;color:#0757c9;box-shadow:none}.dashboard-filters button:hover{background:#dceaff}
.dashboard-filter-card{display:grid;width:100%;min-width:0;text-align:left;border:1px solid transparent}.dashboard-filter-card small{margin-top:5px;color:inherit;opacity:.72;font-size:11px;font-weight:700}.dashboard-filter-card:hover{border-color:currentColor}
.dashboard-request small+small{margin-top:3px;color:#6a7890;font-size:11px}.quote-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin:22px 0 4px;color:#61708b;font-size:13px}.quote-pagination button{min-width:116px}.quote-pagination button:disabled{cursor:not-allowed;opacity:.45;transform:none;box-shadow:none}
.dashboard-hero .dashboard-user-code{display:inline-flex;gap:5px;max-width:none;margin-top:12px;padding:6px 10px;border:1px solid #cfe0fb;border-radius:999px;background:rgba(234,243,255,.82);color:#35618e;font-size:12px;font-weight:650}.dashboard-hero .dashboard-user-code strong{color:#0757c9}
.result-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.result-card .metric{margin:0}.seller-choice-field small{display:block}
@media(max-width:760px){.dashboard-filters{grid-template-columns:1fr 1fr}.dashboard-filters button{grid-column:1/-1}.quote-pagination{flex-wrap:wrap}.module-tabs #sideNewQuote{min-width:145px}}
@media(max-width:480px){.dashboard-filters{grid-template-columns:1fr}.dashboard-filters button{grid-column:auto}}

.proposal-evidence{display:inline-flex;align-items:center;margin:0 0 10px;padding:5px 9px;border-radius:999px;background:#eaf7ef;color:#087a47;font-size:12px;font-weight:650}

/* Expediente de Pricing: primero se revisa la solicitud; la captura manual queda bajo demanda. */
.quote-review{margin:18px 0;padding:23px;border:1px solid rgba(194,215,241,.95);border-radius:20px;background:linear-gradient(125deg,rgba(255,255,255,.96),rgba(241,248,255,.8));box-shadow:0 12px 28px rgba(29,62,110,.07);backdrop-filter:blur(14px)}
.quote-review>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;min-height:0;height:auto;margin:0 0 18px;padding:0;color:inherit;background:transparent;box-shadow:none}.quote-review>header::after{display:none}.quote-review h3{margin:4px 0 5px;font-size:21px}.quote-review>header p:not(.quote-review-eyebrow){max-width:690px;margin:0;color:#61718b;line-height:1.5}.quote-review-eyebrow{margin:0;color:#1269cf;font-size:11px;font-weight:850;letter-spacing:.15em}.quote-review-status{flex:0 0 auto;padding:7px 10px;border:1px solid #c9ddfb;border-radius:999px;background:#edf5ff;color:#1763c8;font-size:11px;font-weight:800}.quote-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0}.quote-review-grid>div{min-width:0;padding:11px 12px;border:1px solid #dfe9f6;border-radius:12px;background:rgba(255,255,255,.78)}.quote-review-grid dt{margin:0 0 5px;color:#697b96;font-size:10px;font-weight:800;letter-spacing:.075em;text-transform:uppercase}.quote-review-grid dd{margin:0;color:#203754;font-size:13px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}.quote-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}.quote-detail-actions button{margin:0}.manual-proposal{margin:24px 0;border:1px solid #d8e4f3;border-radius:16px;background:rgba(255,255,255,.8);overflow:hidden}.manual-proposal summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;cursor:pointer;color:#174b91;list-style:none;font-weight:800}.manual-proposal summary::-webkit-details-marker{display:none}.manual-proposal summary small{color:#657590;font-size:12px;font-weight:600;text-align:right}.manual-proposal[open] summary{border-bottom:1px solid #dce7f5;background:#f5f9ff}.manual-proposal-body{padding:0 18px 18px}.manual-proposal-body>.event{margin:16px 0 0}.manual-proposal-body .proposal-form{margin-bottom:0}
@media(max-width:820px){.quote-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.quote-review{padding:19px}.quote-review>header,.manual-proposal summary{align-items:flex-start;flex-direction:column}.quote-review-status{align-self:flex-start}.quote-review-grid{grid-template-columns:1fr}.manual-proposal summary small{text-align:left}.manual-proposal-body{padding:0 14px 14px}}

/* Seguimiento de Posventa: composición independiente de la barra global. */
#backPostSale{margin:0 0 16px;padding:10px 16px}
.post-sale-detail{display:grid;gap:18px;max-width:1180px;margin:0 auto;padding-bottom:28px}
.post-sale-detail-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px;padding:28px 32px;border:1px solid rgba(25,95,195,.22);border-radius:22px;background:linear-gradient(120deg,#003b94,#0964ce);box-shadow:0 16px 32px rgba(9,67,145,.2);color:#fff}
.post-sale-title{min-width:0}.post-sale-title .dashboard-eyebrow{color:#8ec3ff}.post-sale-title h2{margin:5px 0 10px;color:#fff;font-size:clamp(25px,3vw,37px);line-height:1.08;overflow-wrap:anywhere}.post-sale-route{margin:0;font-size:20px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}.post-sale-route span{padding:0 5px;color:#a9d4ff}.post-sale-mode{margin:6px 0 0;color:#dcecff;font-size:13px;font-weight:700;letter-spacing:.045em;text-transform:uppercase}
.post-sale-status{display:grid;justify-items:end;gap:11px;min-width:225px}.post-sale-status .metric{margin:0;border:0;background:#eff6ff;color:#0757c9;font-size:13px}.post-sale-time{max-width:260px;margin:0;color:#dcecff;font-size:13px;line-height:1.35;text-align:right}.post-sale-time strong{display:block;margin-top:3px;color:#fff;font-size:21px;line-height:1.08}
.approved-proposal-card{display:grid;grid-template-columns:minmax(230px,1fr) minmax(235px,.7fr) auto;align-items:center;gap:22px;padding:24px 27px;border-color:#b9d7fb;background:linear-gradient(108deg,rgba(255,255,255,.96),rgba(239,247,255,.84))}.approved-proposal-copy h3{margin:5px 0 5px;font-size:22px;overflow-wrap:anywhere}.approved-proposal-note{margin:0;color:#62728b;font-size:13px}.approved-proposal-metrics{display:grid;grid-template-columns:repeat(2,minmax(105px,1fr));gap:9px;margin:0}.approved-proposal-metrics div{padding:12px 14px;border:1px solid #d9e8fb;border-radius:13px;background:rgba(255,255,255,.77)}.approved-proposal-metrics dt,.post-sale-request-data dt{margin:0 0 5px;color:#667895;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.approved-proposal-metrics dd,.post-sale-request-data dd{margin:0;color:#17335a;font-size:17px;font-weight:800;overflow-wrap:anywhere}.approved-proposal-card button{white-space:nowrap}
.post-sale-action{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px}.post-sale-action h3{margin:4px 0 6px;font-size:21px}.post-sale-action>div>p:last-child{max-width:680px;margin:0;color:#596b86;line-height:1.5}.post-sale-action form{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(250px,1.3fr) auto;align-items:end;gap:12px;width:100%}.post-sale-action form button{white-space:nowrap}.post-sale-action.is-complete{background:linear-gradient(110deg,rgba(241,250,245,.95),rgba(255,255,255,.92));border-color:#ccebd9}.post-sale-action.is-complete h3{color:#08794b}
.post-sale-request-data{display:grid;grid-template-columns:250px minmax(0,1fr);gap:22px;padding:25px 27px}.post-sale-request-data h3{margin:5px 0 0;font-size:21px}.post-sale-request-data dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}.post-sale-request-data dl>div{padding:12px 14px;border:1px solid #e0e9f6;border-radius:13px;background:rgba(247,250,255,.84)}.post-sale-request-data dd{font-size:14px;line-height:1.4}.post-sale-request-data dd small{display:inline-block;margin-left:5px;color:#607493;font-size:11px;font-weight:750}
@media(max-width:900px){.post-sale-detail-header{grid-template-columns:1fr}.post-sale-status{justify-items:start}.post-sale-time{text-align:left}.approved-proposal-card{grid-template-columns:1fr 1fr}.approved-proposal-card button{grid-column:1/-1;justify-self:start}.post-sale-action{grid-template-columns:1fr}.post-sale-action form{grid-template-columns:1fr 1fr}.post-sale-action form button{grid-column:1/-1;justify-self:start}.post-sale-request-data{grid-template-columns:1fr}}
@media(max-width:560px){.post-sale-detail-header{gap:19px;padding:23px 20px;border-radius:18px}.post-sale-route{font-size:17px}.post-sale-status{min-width:0}.approved-proposal-card{grid-template-columns:1fr;padding:20px}.approved-proposal-metrics{grid-template-columns:1fr 1fr}.post-sale-action form,.post-sale-request-data dl{grid-template-columns:1fr}.post-sale-action,.post-sale-request-data{padding:20px}.post-sale-action form button{width:100%;justify-self:stretch}}
.draft-email-frame{display:block;width:100%;height:640px;margin-top:15px;border:1px solid #dce6f4;border-radius:12px;background:#eef4fb}.draft-legacy-note{margin:10px 2px 0;color:#9a6300;font-size:12px;line-height:1.5}@media(max-width:520px){.draft-email-frame{height:560px}}
.dashboard-request.is-new-pricing-approval{border-color:#f2bf4a;background:linear-gradient(100deg,#fffdf6,#fff8e7);box-shadow:inset 4px 0 0 #f59e0b}.dashboard-request .post-sale-new-notice{display:flex;align-items:center;gap:7px;width:max-content;max-width:100%;margin-top:3px;padding:5px 8px;overflow:visible;border-radius:8px;background:#fff0c7;color:#8a4b00;white-space:normal;font-size:10px;line-height:1.25}.dashboard-request .post-sale-new-notice b{color:#9a5200;font-size:10px}.dashboard-request .post-sale-new-notice span{display:inline;overflow:visible;text-overflow:clip;white-space:normal}

/* Alerta en rojo para solicitudes recién enviadas por Posventa y aún no atendidas por Pricing. */
.dashboard-request.is-unattended-pricing{border-color:#fca5a5;background:linear-gradient(100deg,#fff8f8,#fff1f2);box-shadow:inset 4px 0 0 #dc2626}.dashboard-request.is-unattended-pricing:hover{border-color:#ef4444;background:#fff5f5;box-shadow:inset 4px 0 0 #b91c1c,0 8px 18px rgba(220,38,38,.12)}.dashboard-request .pricing-unattended-notice{display:inline-flex;align-items:center;gap:7px;width:max-content;max-width:100%;margin-top:4px;padding:5px 9px;border:1px solid #fecaca;border-radius:8px;background:#fee2e2;color:#991b1b;white-space:normal;font-size:10px;line-height:1.25}.dashboard-request .pricing-unattended-notice b{color:#7f1d1d;font-size:10px}.dashboard-request .pricing-unattended-notice span{display:inline;overflow:visible;text-overflow:clip;white-space:normal}.dashboard-request em[data-state="pendiente-pricing"]{border:1px solid #fca5a5;background:#fee2e2;color:#b91c1c;font-weight:800}
.quote-card[data-status="borrador"]{border-color:#fca5a5;background:linear-gradient(145deg,#fffafa,#fff1f2)}.quote-card[data-status="borrador"]::before{background:linear-gradient(180deg,#ef4444,#b91c1c)}.metric.metric-unattended,.quote-review-status.is-unattended{border:1px solid #fca5a5;background:#fee2e2;color:#b91c1c;font-weight:800}.quote-review.is-unattended-pricing{border-color:#fca5a5;box-shadow:inset 4px 0 0 #dc2626,0 12px 28px rgba(185,28,28,.08)}

/* Historial de actividad organizado en tarjeta cronológica. */
.history-panel{margin:24px 0;padding:24px;border:1px solid rgba(194,215,241,.95);border-radius:20px;background:linear-gradient(135deg,rgba(255,255,255,.97),rgba(244,249,255,.88));box-shadow:0 12px 28px rgba(29,62,110,.07);backdrop-filter:blur(14px)}
.history-panel>.history-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-height:0;height:auto;margin:0 0 18px;padding:0 0 14px;border-bottom:1px solid #e2ebf6;color:inherit;background:transparent;box-shadow:none}.history-panel>.history-panel-header::after{display:none}.history-panel-header h3{margin:4px 0 4px;font-size:20px;color:#17243e}.history-panel-header p:not(.quote-review-eyebrow){margin:0;color:#61718b;font-size:13px;line-height:1.45}.history-count-badge{flex:0 0 auto;padding:6px 11px;border:1px solid #cfe0fb;border-radius:999px;background:#eef5ff;color:#0b57c2;font-size:11px;font-weight:800}
.history-timeline{display:grid;gap:10px;max-height:540px;overflow:auto;padding-right:4px}
.history-item{display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid #e1eaf5;border-radius:14px;background:#fff;box-shadow:0 2px 8px rgba(23,36,62,.035)}
.history-item[data-tone="green"]{border-left:3px solid #16a34a}.history-item[data-tone="blue"]{border-left:3px solid #2563eb}.history-item[data-tone="amber"]{border-left:3px solid #d97706}.history-item[data-tone="red"]{border-left:3px solid #dc2626}.history-item[data-tone="indigo"]{border-left:3px solid #4f46e5}.history-item[data-tone="slate"]{border-left:3px solid #64748b}
.history-item-marker span{display:grid;place-items:center;width:26px;height:26px;border-radius:999px;background:#f0f5ff;color:#1e40af;font-size:11px;font-weight:800}
.history-item-body{min-width:0;display:grid;gap:5px}
.history-item-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.history-badge{padding:3px 8px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:10px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}
.history-badge[data-tone="green"]{background:#dcfce7;color:#15803d}.history-badge[data-tone="amber"]{background:#fef3c7;color:#b45309}.history-badge[data-tone="red"]{background:#fee2e2;color:#b91c1c}.history-badge[data-tone="indigo"]{background:#e0e7ff;color:#4338ca}.history-badge[data-tone="slate"]{background:#f1f5f9;color:#475569}
.history-actor{color:#1e293b;font-size:13px;font-weight:750}
.history-time{margin-left:auto;color:#64748b;font-size:11px;font-weight:600}
.history-text{margin:0;color:#334155;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.history-recipients{margin-top:4px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;overflow:hidden}
.history-recipients summary{cursor:pointer;padding:8px 11px;color:#0f4cb9;font-size:12px;font-weight:750;list-style:none}.history-recipients summary::-webkit-details-marker{display:none}
.history-recipients ul{margin:0;padding:6px 12px 10px;border-top:1px solid #e2e8f0;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:6px;max-height:220px;overflow:auto}
.history-recipients li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 8px;border:1px solid #e5edf7;border-radius:8px;background:#fff;font-size:11px;color:#1e293b}
.history-recipients li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}.history-recipients li small{flex:0 0 auto;color:#64748b;font-size:10px}
.history-empty{margin:0;color:#64748b;font-size:13px}
@media(max-width:600px){.history-panel{padding:17px}.history-panel>.history-panel-header{flex-direction:column}.history-time{margin-left:0;width:100%}.history-recipients ul{grid-template-columns:1fr}}
.proposal-original-email{background:#f8fbff;border:1px solid #d5e3f7;border-radius:14px;padding:16px 18px;margin-top:14px}
.proposal-original-email h4{margin:0 0 12px;color:#063d91;font-size:15px;letter-spacing:.2px}
.proposal-email-meta{margin-bottom:12px}
.proposal-structured-card{margin-top:12px;background:#ffffff;border:1px solid #dce6f5;border-radius:12px;overflow:hidden;box-shadow:0 2px 6px rgba(13,38,76,.04)}
.proposal-structured-card.is-clarification{border-color:#f0c674;background:#fffdf7}
.proposal-structured-title{padding:10px 14px;background:#eef4fc;color:#0d2e63;font-weight:700;font-size:13px;border-bottom:1px solid #dce6f5}
.proposal-structured-card.is-clarification .proposal-structured-title{background:#fef5e1;color:#8a5300;border-bottom-color:#f0d799}
.proposal-table-wrap{overflow-x:auto}
.proposal-options-table{width:100%;border-collapse:collapse;font-size:13.5px}
.proposal-options-table th{background:#f7faff;color:#4a607f;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.4px;padding:9px 14px;text-align:left;border-bottom:1px solid #e1ebf7}
.proposal-options-table td{padding:10px 14px;border-bottom:1px solid #edf2fa;color:#1b2b48;vertical-align:middle;line-height:1.45}
.proposal-options-table tr:last-child td{border-bottom:0}
.proposal-options-table tr.is-best-option{background:#f1fbf5}
.proposal-best-badge{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:999px;background:#15803d;color:#fff;font-size:11px;font-weight:700;vertical-align:middle}
.proposal-option-amount{white-space:nowrap;color:#063d91;font-size:14px}
.proposal-clean-message{padding:12px 15px;color:#1e2f4d;font-size:13.5px;line-height:1.6}
.proposal-clean-message p{margin:0 0 8px}
.proposal-clean-message p:last-child{margin-bottom:0}
.proposal-clarification-item{padding:11px 15px;border-bottom:1px solid #f4e3b8;font-size:13.5px;color:#3d2800}
.proposal-clarification-item:last-child{border-bottom:0}
.proposal-clarification-item p{margin:4px 0 0;line-height:1.5}
.proposal-clarification-date{display:inline-block;font-size:11.5px;font-weight:700;color:#9a5b00;background:#fdecc8;padding:2px 8px;border-radius:6px}

/* Colores distintivos para cada una de las 5 mejores propuestas (#1 a #5) */
.proposal-list{display:grid;gap:14px;margin:14px 0 24px}
.proposal-preview{--proposal-accent:#16794f;--proposal-tint:#e8f8ef;--proposal-tint-strong:#d3f2e1;--proposal-border:#8fd4b0;--proposal-title:#0f4d32;background:#fff;border:1.5px solid var(--proposal-border);border-radius:14px;overflow:hidden;box-shadow:0 3px 10px rgba(17,45,75,.06);transition:transform .12s ease,box-shadow .15s ease}
.proposal-preview:hover{box-shadow:0 6px 18px rgba(17,45,75,.1)}
.proposal-preview[open]{border-color:var(--proposal-accent);box-shadow:0 10px 26px rgba(17,45,75,.12)}
.proposal-preview summary{cursor:pointer;list-style:none;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--proposal-title);background:linear-gradient(90deg,var(--proposal-tint-strong) 0%,var(--proposal-tint) 58%,#ffffff 100%);border-left:6px solid var(--proposal-accent)}
.proposal-preview summary::-webkit-details-marker{display:none}
.proposal-preview summary>span:first-child{display:grid;gap:5px}
.proposal-preview summary b{color:var(--proposal-title);font-size:16.5px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.proposal-preview summary small{font-size:13.5px;color:#3d4f68}
.proposal-preview summary small strong{color:var(--proposal-accent);font-size:14.5px;font-weight:800}
.proposal-rank-pill{display:inline-flex;align-items:center;justify-content:center;padding:2px 9px;border-radius:999px;background:var(--proposal-accent);color:#fff;font-size:12px;font-weight:800;letter-spacing:.3px}
.proposal-open-cta{display:inline-flex;align-items:center;padding:6px 12px;border-radius:999px;background:#ffffffcc;border:1px solid var(--proposal-border);font-size:12.5px;font-weight:750;color:var(--proposal-accent);white-space:nowrap}
.proposal-tone-1{--proposal-accent:#16794f;--proposal-tint:#eefaf3;--proposal-tint-strong:#d8f3e4;--proposal-border:#86d1ab;--proposal-title:#0d4a2f}
.proposal-tone-2{--proposal-accent:#d94e34;--proposal-tint:#fff1ee;--proposal-tint-strong:#ffe1da;--proposal-border:#f2a696;--proposal-title:#7c2414}
.proposal-tone-3{--proposal-accent:#186fa8;--proposal-tint:#edf6fe;--proposal-tint-strong:#d8ecfc;--proposal-border:#92c5eb;--proposal-title:#0d3f63}
.proposal-tone-4{--proposal-accent:#b86e11;--proposal-tint:#fff7e8;--proposal-tint-strong:#fdebc9;--proposal-border:#e8c07a;--proposal-title:#693c05}
.proposal-tone-5{--proposal-accent:#6b52b8;--proposal-tint:#f4f0ff;--proposal-tint-strong:#e6ddff;--proposal-border:#b7a6ee;--proposal-title:#3b2875}
.proposal-sheet{padding:0 18px 18px;background:#fff}
.proposal-head{padding:15px 0;border-top:1px solid var(--proposal-border)}
.proposal-head strong{color:var(--proposal-accent);font-size:19px}
.proposal-section{margin:14px 0}
.proposal-section h4{padding:9px 12px;background:var(--proposal-tint);color:var(--proposal-title);border-radius:8px 8px 0 0;border:1px solid var(--proposal-border);border-bottom:0}
.proposal-section dt,.proposal-section dd{padding:9px 12px}
.proposal-section dt{font-weight:700}
.proposal-detail-block{margin:14px 0;border:1px solid #d5e2f2;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 2px 6px rgba(13,38,76,.04)}
.proposal-detail-block h5{margin:0;padding:10px 14px;font-size:13.5px;font-weight:750;border-bottom:1px solid #e1eaf5}
.proposal-detail-charges h5{background:#eaf7f0;color:#12593a;border-bottom-color:#c6e7d4}
.proposal-detail-conditions h5{background:#fff6e4;color:#7a4d0b;border-bottom-color:#efd6a3}
.proposal-detail-summary h5{background:#edf4ff;color:#144987;border-bottom-color:#cadef7}
.proposal-charge-list{list-style:none;margin:0;padding:10px 14px;display:grid;gap:8px}
.proposal-charge-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border:1px solid #e3ecf7;border-radius:9px;background:#f9fbff;font-size:13.5px;color:#1e2f4d}
.proposal-charge-row:first-child{background:#f1fbf5;border-color:#b7e3c9}
.proposal-charge-main{line-height:1.45}
.proposal-charge-main b{color:#0f3a6d}
.proposal-charge-total{flex:0 0 auto;padding:4px 10px;border-radius:999px;background:#063d91;color:#fff;font-weight:750;font-size:12.5px;white-space:nowrap}
.proposal-charge-row:first-child .proposal-charge-total{background:#15803d}
.proposal-condition-list{list-style:none;margin:0;padding:10px 14px;display:grid;gap:8px}
.proposal-condition-list li{padding:9px 12px;border-left:3.5px solid #e09f2d;background:#fffcf5;border-radius:0 8px 8px 0;color:#263854;font-size:13.5px;line-height:1.55}
.proposal-condition-list li b{color:#7a4b08;margin-right:4px}
.proposal-observations-list{margin:0;padding:12px 18px 12px 32px;color:#243757;font-size:13px;line-height:1.6}
.proposal-observations-list li{margin-bottom:7px}
.proposal-observations-list li:last-child{margin-bottom:0}
.proposal-email-iframe{display:block;width:100%;min-height:380px;border:0;background:#ffffff}

/* Decisión de Pricing dinámica con tarjetas interactivas por propuesta */
.proposal-decision-dynamic{display:grid;grid-template-columns:1fr;gap:16px;padding:22px 24px;border:1px solid #cfe0f8;border-radius:18px;background:linear-gradient(135deg,#ffffff,#f7faff);box-shadow:0 12px 28px rgba(18,48,92,.08)}
.decision-step-block{display:grid;gap:9px}
.decision-step-label,.decision-obs-label{font-size:12.5px;font-weight:800;color:#1b3b6f;letter-spacing:.03em;text-transform:uppercase}
.decision-obs-label textarea{margin-top:8px;font-weight:500;text-transform:none;letter-spacing:normal;min-height:68px;background:#fff}
.decision-status-toggle{display:inline-flex;flex-wrap:wrap;gap:10px}
.decision-toggle-btn{margin:0;padding:10px 18px;border-radius:12px;border:1.5px solid #cbd8ec;background:#f4f8ff;color:#274472;font-size:13.5px;font-weight:750;box-shadow:none;transition:all .16s ease}
.decision-toggle-btn:hover{background:#e7f0fe;color:#113264;transform:translateY(-1px);box-shadow:none}
.decision-toggle-btn.is-approve.is-active{background:linear-gradient(135deg,#168959,#0d6841);border-color:#0d6841;color:#fff;box-shadow:0 6px 16px rgba(13,104,65,.22)}
.decision-toggle-btn.is-reject.is-active{background:linear-gradient(135deg,#dc3545,#b01e2c);border-color:#b01e2c;color:#fff;box-shadow:0 6px 16px rgba(176,30,44,.22)}
.decision-proposal-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:11px}
.decision-choice-card{--proposal-accent:#16794f;--proposal-tint:#eefaf3;--proposal-tint-strong:#d8f3e4;--proposal-border:#86d1ab;--proposal-title:#0d4a2f;margin:0;padding:13px 14px;border-radius:14px;border:1.5px solid var(--proposal-border);background:linear-gradient(160deg,var(--proposal-tint) 0%,#ffffff 72%);color:var(--proposal-title);text-align:left;display:grid;gap:8px;box-shadow:0 2px 8px rgba(15,38,71,.05);transition:all .16s ease}
.decision-choice-card:hover{background:linear-gradient(160deg,var(--proposal-tint-strong) 0%,#ffffff 80%);border-color:var(--proposal-accent);transform:translateY(-2px);box-shadow:0 8px 18px rgba(15,38,71,.1)}
.decision-choice-card.is-selected{border:2px solid var(--proposal-accent);background:linear-gradient(160deg,var(--proposal-tint-strong) 0%,var(--proposal-tint) 100%);box-shadow:0 0 0 3px color-mix(in srgb,var(--proposal-accent) 20%,transparent),0 10px 20px rgba(15,38,71,.11);transform:translateY(-2px)}
.decision-choice-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.decision-choice-check{padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.85);border:1px solid var(--proposal-border);color:var(--proposal-accent);font-size:11px;font-weight:800}
.decision-choice-card.is-selected .decision-choice-check{background:var(--proposal-accent);border-color:var(--proposal-accent);color:#fff}
.decision-choice-name{font-size:13.5px;line-height:1.35;color:var(--proposal-title);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.decision-choice-meta{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding-top:6px;border-top:1px dashed var(--proposal-border)}
.decision-choice-meta strong{font-size:15px;font-weight:850;color:var(--proposal-accent)}
.decision-choice-meta span{font-size:11.5px;color:#4a5d79;font-weight:650}
.decision-preview{border-top:0;padding-top:0}
.decision-quick-banner{--proposal-accent:#16794f;--proposal-tint:#eefaf3;--proposal-tint-strong:#d8f3e4;--proposal-border:#86d1ab;--proposal-title:#0d4a2f;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-radius:14px;border:1.5px solid var(--proposal-border);border-left:6px solid var(--proposal-accent);background:linear-gradient(90deg,var(--proposal-tint-strong) 0%,var(--proposal-tint) 65%,#ffffff 100%)}
.decision-quick-banner.is-rejected{--proposal-accent:#c82838;--proposal-tint:#fff1f2;--proposal-tint-strong:#ffe2e5;--proposal-border:#f5a3ab;--proposal-title:#7d131e}
.decision-quick-main{display:grid;gap:3px;min-width:0}
.decision-quick-kicker{font-size:10.5px;font-weight:850;letter-spacing:.08em;color:var(--proposal-accent);text-transform:uppercase}
.decision-quick-main h4{margin:0;font-size:16px;color:var(--proposal-title)}
.decision-quick-main p{margin:0;font-size:12.5px;color:#3c4f6c}
.decision-quick-rate{color:#203554;font-size:12px;font-weight:650;margin-top:2px}
.decision-quick-side{display:grid;justify-items:end;gap:7px;flex:0 0 auto}
.decision-quick-side strong{font-size:20px;font-weight:850;color:var(--proposal-accent)}
.decision-jump-btn{margin:0;padding:6px 11px;border-radius:999px;background:#fff;border:1px solid var(--proposal-border);color:var(--proposal-title);font-size:11.5px;font-weight:750;box-shadow:none}
.decision-jump-btn:hover{background:var(--proposal-tint);color:var(--proposal-title);transform:translateY(-1px);box-shadow:none}
.decision-submit-row{display:flex;justify-content:flex-end}
.decision-submit-btn{margin:0;min-height:46px;padding:11px 22px;border-radius:13px;font-size:14px;font-weight:800}
@media(max-width:640px){.decision-quick-banner{flex-direction:column;align-items:flex-start}.decision-quick-side{justify-items:start;width:100%}.decision-submit-btn{width:100%}}

/* Agrupación de destinatarios por empresa en Borradores */
.draft-company-group{border:1px solid #dbe6f5;border-radius:13px;background:#ffffff;overflow:hidden;transition:border-color .16s ease,box-shadow .16s ease}
.draft-company-group:hover{border-color:#adc9f2;box-shadow:0 4px 12px rgba(17,58,122,.06)}
.draft-company-group[open]{border-color:#1e73e8;box-shadow:0 6px 16px rgba(17,58,122,.09)}
.draft-company-summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:11px 13px;background:linear-gradient(90deg,#f7faff,#ffffff);user-select:none}
.draft-company-summary::-webkit-details-marker{display:none}
.draft-company-group[open] .draft-company-summary{background:linear-gradient(90deg,#edf4ff,#f8fbff);border-bottom:1px solid #dce7f7}
.draft-company-check-wrap{position:relative;display:inline-flex;align-items:center;margin:0;cursor:pointer}
.draft-company-check-wrap input{position:absolute;opacity:0;pointer-events:none}
.draft-company-check-wrap input:checked+.draft-recipient-check{border-color:#1167d8;background:#1167d8;box-shadow:inset 0 0 0 4px #fff}
.draft-company-check-wrap input:indeterminate+.draft-recipient-check{border-color:#1167d8;background:#e5f0ff;box-shadow:inset 0 0 0 5px #1167d8}
.draft-company-info{display:grid;gap:2px;min-width:0;flex:1}
.draft-company-info b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1b3254;font-size:13.5px}
.draft-company-info small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#62748f;font-size:11.5px}
.draft-company-count{flex:0 0 auto;padding:4px 9px;border-radius:999px;background:#e8f2ff;color:#0d56c2;font-size:11px;font-weight:800}
.draft-company-count.is-partial{background:#f1f5f9;color:#64748b}
.draft-company-chevron{flex:0 0 auto;color:#4a6388;font-size:13px;transition:transform .16s ease}
.draft-company-group[open] .draft-company-chevron{transform:rotate(180deg);color:#0d56c2}
.draft-company-emails{display:grid;gap:6px;padding:9px 11px 11px 28px;background:#fafcff}
.draft-recipient-nested{padding:8px 11px;border-radius:10px;background:#ffffff;border-color:#e3ebf7}
.draft-recipient-nested .draft-recipient-details b{font-size:12.5px;color:#1e3a63}

/* Tarjetas de Usuarios: distribución armónica y botones separados con jerarquía clara */
.user-cards{align-items:stretch}
.user-card{display:flex;flex-direction:column;justify-content:space-between;gap:8px;padding:20px 22px}
.user-card>b{font-size:16px;color:#14284b}
.user-card>p{margin:4px 0;color:#475874;line-height:1.5;overflow-wrap:anywhere}
.user-card .user-seller-code{margin:2px 0 4px;padding:6px 10px;border-radius:8px;background:#f2f7ff;border:1px solid #dbe7fb;color:#1b4688;font-size:12.5px}
.user-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #e6edf7}
.user-card-actions .user-action-btn{flex:1 1 auto;margin:0;padding:8px 12px;border-radius:10px;font-size:12.5px;font-weight:750;text-align:center}
.user-card-actions .user-action-btn.is-sign{background:#eef5ff;color:#084da8;border:1px solid #c7dbfa;box-shadow:none}
.user-card-actions .user-action-btn.is-sign:hover{background:#dfecff;color:#053b85}
.user-card-actions .user-action-btn.is-delete{background:#fff1f2;color:#be123c;border:1px solid #fecdd3;box-shadow:none}
.user-card-actions .user-action-btn.is-delete:hover{background:#ffe4e6;color:#9f1239}

/* Constructor de contenedores FCL (misma estética que Packages) */
.container-builder{grid-column:1/-1}
.container-row-fields{grid-template-columns:repeat(2,minmax(160px,1fr))!important}
@media(max-width:480px){.container-row-fields{grid-template-columns:1fr!important}}

/* Historial del expediente agrupado en tarjetas por etapa */
.history-categories-wrap{display:grid;gap:18px}
.history-category-group{padding:16px 18px;border:1px solid #dce7f7;border-radius:16px;background:rgba(248,251,255,.88)}
.history-category-group[data-tone="green"]{border-left:5px solid #16a34a;background:linear-gradient(135deg,#f3fcf6,#ffffff)}
.history-category-group[data-tone="blue"]{border-left:5px solid #2563eb;background:linear-gradient(135deg,#f2f7ff,#ffffff)}
.history-category-group[data-tone="amber"]{border-left:5px solid #d97706;background:linear-gradient(135deg,#fffaf0,#ffffff)}
.history-category-group[data-tone="red"]{border-left:5px solid #dc2626;background:linear-gradient(135deg,#fff5f5,#ffffff)}
.history-category-group[data-tone="indigo"]{border-left:5px solid #4f46e5;background:linear-gradient(135deg,#f5f3ff,#ffffff)}
.history-category-group[data-tone="slate"]{border-left:5px solid #64748b}
.history-category-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #e2ecf8;background:transparent;box-shadow:none;height:auto;min-height:0}
.history-category-header::after{display:none}
.history-category-header h4{margin:0;font-size:15px;font-weight:800;color:#152c52}
.history-category-count{padding:4px 10px;border-radius:999px;background:#e8f1fe;color:#0c54b8;font-size:11px;font-weight:800}
.history-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(275px,1fr));gap:12px}
.history-item.history-card{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border-radius:14px;border:1px solid #dde7f6;background:#ffffff;box-shadow:0 4px 12px rgba(20,44,84,.05);transition:transform .16s ease,box-shadow .16s ease}
.history-item.history-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(20,44,84,.09)}
.history-step-pill{display:inline-flex;align-items:center;justify-content:center;padding:2px 8px;border-radius:999px;background:#edf3fc;color:#1e40af;font-size:11px;font-weight:800}

/* Dashboard unificado: Dashboard Pricing + Dashboard Posventa + Historial en tarjetas agrupadas */
.dashboard-dual-sections{display:grid;gap:20px;margin-bottom:22px}
.dashboard-role-section{padding:22px 24px;border-radius:22px;border:1px solid rgba(196,214,240,.92);background:rgba(255,255,255,.86);box-shadow:0 12px 28px rgba(25,52,94,.07);backdrop-filter:blur(14px)}
.dashboard-role-section.is-pricing-section{border-left:6px solid #0a5fd4;background:linear-gradient(135deg,rgba(243,248,255,.95),rgba(255,255,255,.9))}
.dashboard-role-section.is-postsale-section{border-left:6px solid #129460;background:linear-gradient(135deg,rgba(241,252,246,.95),rgba(255,255,255,.9))}
.dashboard-role-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 16px;padding:0 0 14px;border-bottom:1px solid #e1ebf7;background:transparent;box-shadow:none;height:auto;min-height:0;color:inherit}
.dashboard-role-header::after{display:none}
.dashboard-role-header h3{margin:6px 0 4px;font-size:22px;color:#132a4e}
.dashboard-role-header p{margin:0;color:#586a86;font-size:13.5px}
.dashboard-role-pill{display:inline-block;padding:4px 10px;border-radius:999px;font-size:10.5px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.dashboard-role-pill.is-pricing{background:#e1edff;color:#084da8}
.dashboard-role-pill.is-postsale{background:#dcfce7;color:#0f764a}
.dashboard-role-badge{padding:7px 13px;border-radius:999px;background:#edf4ff;border:1px solid #cde0fb;color:#084ea9;font-size:12.5px;font-weight:800;white-space:nowrap}
.dashboard-postsale-rate{display:grid;justify-items:end;padding:8px 14px;border-radius:14px;background:#ecfdf3;border:1px solid #bbf7d0;color:#0f764a}
.dashboard-postsale-rate strong{font-size:22px;line-height:1;font-weight:850}
.dashboard-postsale-rate span{font-size:11.5px;font-weight:700;color:#166534}
.dashboard-stats.dashboard-stats-5{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:0}
.dashboard-role-section .dashboard-stats{margin-bottom:0}
@media(max-width:1100px){.dashboard-stats.dashboard-stats-5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.dashboard-stats.dashboard-stats-5{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-role-header{flex-direction:column;align-items:flex-start}.dashboard-postsale-rate{justify-items:start}}
@media(max-width:480px){.dashboard-stats.dashboard-stats-5{grid-template-columns:1fr}}

/* Tarjetas agrupadas del historial de procesos en el Dashboard */
.dashboard-process-groups{display:grid;gap:20px}
.dashboard-process-group{padding:18px 20px;border-radius:18px;border:1px solid #dbe6f5;background:rgba(249,252,255,.92)}
.dashboard-process-group[data-tone="red"]{border-left:5px solid #dc2626;background:linear-gradient(135deg,#fff8f8,#ffffff)}
.dashboard-process-group[data-tone="blue"]{border-left:5px solid #1d6fe8;background:linear-gradient(135deg,#f4f9ff,#ffffff)}
.dashboard-process-group[data-tone="orange"]{border-left:5px solid #ea880c;background:linear-gradient(135deg,#fffaf2,#ffffff)}
.dashboard-process-group[data-tone="green"]{border-left:5px solid #15965f;background:linear-gradient(135deg,#f3fcf7,#ffffff)}
.dashboard-process-group-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px;padding:0 0 12px;border-bottom:1px solid #e3ecf8;background:transparent;box-shadow:none;height:auto;min-height:0;color:inherit}
.dashboard-process-group-header::after{display:none}
.dashboard-process-group-header h4{margin:0 0 3px;font-size:16.5px;color:#142b50}
.dashboard-process-group-header p{margin:0;font-size:12.5px;color:#5e708c}
.dashboard-process-group-count{flex:0 0 auto;padding:5px 11px;border-radius:999px;background:#eaf2ff;color:#0a52b5;font-size:11.5px;font-weight:800}
.dashboard-process-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:14px}
.dashboard-process-card{display:flex;flex-direction:column;justify-content:space-between;gap:10px;width:100%;margin:0;padding:16px 17px;border-radius:16px;border:1px solid #dbe5f3;background:#ffffff;color:#1d3050;text-align:left;box-shadow:0 4px 14px rgba(21,45,84,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.dashboard-process-card:hover{background:#ffffff;border-color:#96bef7;transform:translateY(-3px);box-shadow:0 12px 24px rgba(18,56,114,.12)}
.dashboard-process-card.is-unattended-pricing{border-color:#fca5a5;box-shadow:inset 4px 0 0 #dc2626,0 4px 14px rgba(220,38,38,.07)}
.dashboard-process-card.is-new-pricing-approval{border-color:#f5c26b;box-shadow:inset 4px 0 0 #f59e0b,0 4px 14px rgba(245,158,11,.08)}
.process-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}
.process-card-code{font-size:13.5px;font-weight:850;color:#0d3c84;letter-spacing:.01em}
.process-card-badge{padding:4px 9px;border-radius:999px;background:#eaf2ff;color:#145ec2;font-size:10.5px;font-style:normal;font-weight:800}
.process-card-badge[data-state*="aprobada"]{background:#dcfce7;color:#15803d}
.process-card-badge[data-state*="rechazada"],.process-card-badge[data-state*="no-aprobada"]{background:#fee2e2;color:#b91c1c}
.process-card-badge[data-state*="pendiente-pricing"]{background:#fee2e2;color:#b91c1c;border:1px solid #fca5a5}
.process-card-badge[data-state*="en-proceso"],.process-card-badge[data-state*="propuestas"]{background:#fef3c7;color:#b45309}
.process-card-route{display:grid;gap:2px}
.process-card-route strong{font-size:15.5px;color:#152847}
.process-card-route span{font-size:12px;font-weight:700;color:#4a6082}
.process-card-meta{display:grid;gap:4px;padding:9px 11px;border-radius:11px;background:#f7faff;border:1px solid #e5eef9;font-size:11.5px;color:#465a78}
.process-card-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.process-card-meta b{color:#1e365c}
.process-card-alert{display:grid;gap:2px;padding:8px 10px;border-radius:10px;font-size:11px;line-height:1.35}
.process-card-alert.is-unattended{background:#fee2e2;border:1px solid #fecaca;color:#991b1b}
.process-card-alert.is-postsale{background:#fef3c7;border:1px solid #fde68a;color:#92400e}
.process-card-history{padding-top:9px;border-top:1px dashed #d8e4f3;display:grid;gap:4px;width:100%}
.process-card-history-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.process-history-tag{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#1d63c8}
.process-card-history time{font-size:10.5px;color:#64748b;font-weight:600}
.process-card-history p{margin:0;font-size:12px;color:#2c3e5d;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Dashboard Gerencial (Gráficos, Donas, Barras apiladas y Filtros multicriterio) */
#executiveDashboard{background:linear-gradient(135deg,#0f766e,#0b4f6c);box-shadow:0 5px 14px rgba(11,79,108,.22)}
#executiveDashboard:hover{background:linear-gradient(135deg,#118a80,#083d54)}
.exec-hero{border-left:6px solid #0d9488}
.exec-filters-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:11px;align-items:end;margin:0 0 20px;padding:16px 18px;border:1px solid var(--ui-line);border-radius:18px;background:rgba(255,255,255,.86);box-shadow:0 8px 24px rgba(24,46,82,.06);backdrop-filter:blur(12px)}
.exec-filters-bar label{font-size:11.5px;font-weight:750;color:#3f5270;display:grid;gap:5px}
.exec-filters-bar input,.exec-filters-bar select{min-height:40px;margin:0;padding:8px 10px;font-size:12.5px;background:#fff}
.exec-reset-btn{min-height:40px;background:#eef5ff;color:#084da8;font-size:12.5px;font-weight:800;box-shadow:none}
.exec-reset-btn:hover{background:#dceaff;color:#05387e}
.exec-dynamic{display:grid;gap:20px}
.exec-kpi-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.exec-kpi-box{padding:18px 20px;border-radius:18px;border:1px solid #dbe6f5;background:rgba(255,255,255,.9);box-shadow:0 8px 22px rgba(24,46,82,.06);display:grid;gap:4px}
.exec-kpi-box span{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#546682}
.exec-kpi-box strong{font-size:32px;line-height:1.05;font-weight:850;color:#122b52}
.exec-kpi-box small{font-size:12px;color:#5c6f8c;font-weight:650}
.exec-kpi-box.is-blue{border-left:5px solid #1d6fe8}
.exec-kpi-box.is-green{border-left:5px solid #16a34a}
.exec-kpi-box.is-emerald{border-left:5px solid #0d9488}
.exec-kpi-box.is-teal{border-left:5px solid #0284c7}
.exec-kpi-box.is-amber{border-left:5px solid #d97706}
.exec-kpi-strip.exec-kpi-strip-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.exec-sla-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.exec-sla-stat{padding:14px 16px;border-radius:14px;border:1px solid #d7ece8;background:linear-gradient(135deg,#f0fdf9,#ffffff);display:grid;gap:4px}
.exec-sla-stat.is-amber{border-color:#fde68a;background:linear-gradient(135deg,#fffbeb,#ffffff)}
.exec-sla-stat.is-blue{border-color:#cfe0fc;background:linear-gradient(135deg,#f2f7ff,#ffffff)}
.exec-sla-stat span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#475a77}
.exec-sla-stat strong{font-size:25px;font-weight:850;color:#0f294d}
.exec-sla-stat small{font-size:11.5px;color:#5c6f8c;font-weight:650}
.exec-sla-columns{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;padding-top:6px}
.exec-subhead{margin:0 0 10px;font-size:13.5px;font-weight:800;color:#17325c}
.exec-sla-list{display:grid;gap:8px}
.exec-sla-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:12px;border:1px solid #e2ebf7;background:#f9fbff}
.exec-sla-item>div{display:grid;gap:2px;min-width:0}
.exec-sla-item b{font-size:12.5px;color:#142b50;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.exec-sla-item small{font-size:11px;color:#5c6f8c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1100px){.exec-kpi-strip.exec-kpi-strip-5{grid-template-columns:repeat(2,minmax(0,1fr))}.exec-sla-columns,.exec-sla-summary-grid{grid-template-columns:1fr}}
.exec-charts-grid{display:grid;gap:18px}
.exec-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.exec-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.exec-chart-card{padding:22px;border-radius:20px;border:1px solid rgba(201,216,238,.92);background:rgba(255,255,255,.9);box-shadow:0 10px 26px rgba(24,46,82,.07);backdrop-filter:blur(14px);display:flex;flex-direction:column;gap:16px}
.exec-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0;padding:0 0 12px;border-bottom:1px solid #e4edf8;background:transparent;box-shadow:none;height:auto;min-height:0;color:inherit}
.exec-card-header::after{display:none}
.exec-card-eyebrow{display:block;font-size:10px;font-weight:850;letter-spacing:.12em;color:#0e7490;text-transform:uppercase}
.exec-card-header h3{margin:3px 0 0;font-size:18px;color:#13294b}
.exec-card-header p{margin:4px 0 0;font-size:12.5px;color:#5d708d}
.exec-total-pill{flex:0 0 auto;padding:5px 11px;border-radius:999px;background:#eef5ff;color:#0b55b8;font-size:11.5px;font-weight:800}
.exec-donut-layout{display:grid;grid-template-columns:165px minmax(0,1fr);align-items:center;gap:22px;padding:6px 0}
.exec-donut-ring{width:156px;height:156px;margin:0 auto;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(15,35,66,.08),0 8px 20px rgba(18,45,88,.1)}
.exec-donut-hole{width:102px;height:102px;border-radius:50%;background:#ffffff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(15,35,66,.08)}
.exec-donut-hole strong{font-size:24px;line-height:1;font-weight:850;color:#11294d}
.exec-donut-hole span{margin-top:3px;font-size:11px;font-weight:750;color:#5b6e8a}
.exec-donut-legend{display:grid;gap:10px}
.exec-legend-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border-radius:12px;border:1px solid #e5edf8;background:#f9fbff}
.exec-legend-row .exec-dot{width:12px;height:12px;border-radius:50%;flex:0 0 12px}
.exec-legend-row.is-accepted .exec-dot{background:#16a34a}
.exec-legend-row.is-rejected .exec-dot{background:#dc2626}
.exec-legend-row.is-pending .exec-dot{background:#f59e0b}
.exec-legend-info{display:grid;flex:1;min-width:0}
.exec-legend-info b{font-size:13px;color:#172b4d}
.exec-legend-info small{font-size:11px;color:#64748b}
.exec-legend-row strong{font-size:18px;font-weight:850;color:#13294b}
.exec-bar-list{display:grid;gap:12px}
.exec-bar-row{display:grid;gap:6px}
.exec-bar-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.exec-bar-label{font-size:13px;font-weight:750;color:#192f54;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.exec-bar-badges{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}
.exec-mini-badge{padding:2px 7px;border-radius:999px;font-size:10.5px;font-weight:800}
.exec-mini-badge.is-total{background:#edf4ff;color:#0b53b5}
.exec-mini-badge.is-acc{background:#dcfce7;color:#15803d}
.exec-mini-badge.is-rej{background:#fee2e2;color:#b91c1c}
.exec-mini-badge.is-pen{background:#fef3c7;color:#b45309}
.exec-bar-track{height:11px;border-radius:999px;background:#e8effa;overflow:hidden}
.exec-bar-fill{display:flex;height:100%;border-radius:999px;overflow:hidden;min-width:6px;transition:width .4s ease}
.exec-bar-fill .seg-acc{display:block;height:100%;background:#16a34a}
.exec-bar-fill .seg-rej{display:block;height:100%;background:#dc2626}
.exec-bar-fill .seg-pen{display:block;height:100%;background:#f59e0b}
.exec-timeline-chart{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(44px,1fr);gap:10px;align-items:end;min-height:190px;padding:14px 10px 6px;border-radius:14px;background:#f8fbff;border:1px solid #e4edf8;overflow-x:auto}
.exec-time-col{display:flex;flex-direction:column;align-items:center;gap:6px;height:165px;justify-content:flex-end}
.exec-time-val{font-size:11.5px;font-weight:800;color:#173668}
.exec-time-bar-wrap{flex:1;width:100%;max-width:34px;display:flex;align-items:flex-end;justify-content:center;background:#eaf1fb;border-radius:8px;overflow:hidden;padding:0}
.exec-time-bar{width:100%;background:linear-gradient(180deg,#2563eb,#1d4ed8);border-radius:8px 8px 0 0;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;transition:height .35s ease}
.exec-time-bar .is-client-acc{display:block;width:100%;background:#16a34a}
.exec-time-date{font-size:10.5px;font-weight:700;color:#586b88;white-space:nowrap}
@media(max-width:1100px){.exec-grid-3{grid-template-columns:1fr 1fr}.exec-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.exec-grid-2,.exec-grid-3{grid-template-columns:1fr}.exec-donut-layout{grid-template-columns:1fr}}
