@import url('base.css?v=34');
@import url('sidebar.css?v=34');
@import url('theme-light.css?v=34');
@import url('theme-dark.css?v=34');


/* V33 CRITICAL INLINE - NO CACHE FALLBACK */
body.theme-light .main{background:#f3f6fb!important;color:#101828!important}
body.theme-light .main .theme-toggle,
body.theme-light .main #themeToggle,
body .main .theme-toggle,
body .main #themeToggle{display:none!important;visibility:hidden!important;width:0!important;height:0!important;overflow:hidden!important;padding:0!important;margin:0!important}

body.theme-light .main .card,
body.theme-light .main .toolbar,
body.theme-light .main .ship-group,
body.theme-light .main .ship-card,
body.theme-light .main .group-title,
body.theme-light .main .check-item,
body.theme-light .main .day,
body.theme-light .main .share-card,
body.theme-light .main .export-option,
body.theme-light .main .form-card,
body.theme-light .main .panel,
body.theme-light .main .box{
  background:#fff!important;color:#101828!important;border-color:#d7e0ec!important;
}

body.theme-light .main input,
body.theme-light .main select,
body.theme-light .main textarea{
  background:#fff!important;color:#101828!important;border-color:#cfd9e7!important;
}

.toolbar-row{gap:12px!important}
.toolbar-row .btn,.toolbar-row button,.toolbar-row a{margin:0!important}
.print-preview,.print-view,.print-area,#printPreview,#printArea,#rotulosPreview,.vista-impresion,.print-inline,iframe.print-frame{display:none!important}
.print-modal .print-preview,.print-modal .print-view,.print-modal .print-area,.print-modal #printPreview,.print-modal #printArea,.print-modal iframe.print-frame{display:block!important}

.sidebar{height:100dvh!important;display:flex!important;flex-direction:column!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:none!important;-ms-overflow-style:none!important}
.sidebar::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.sidebar-bottom{margin-top:auto!important;position:sticky!important;bottom:0!important;background:#070d18!important;z-index:5!important}
.status-folder{max-height:245px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:none!important;-ms-overflow-style:none!important}
.status-folder::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

@media(max-height:760px){
 .sidebar{overflow-y:auto!important}
 .sidebar-bottom{position:static!important}
}


/* ============================================================
   V34 - MODALES ETIQUETAS / ESTADO / COMPARTIR
   ============================================================ */

/* Eliminar definitivamente la vista de impresión pegada */
.print-frame-modal,
#printFrameModal,
.print-frame-box,
.print-frame-top,
.print-preview,
.print-view,
.print-area,
#printPreview,
#printArea,
#rotulosPreview,
.vista-impresion,
.print-inline,
iframe.print-frame{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  width:0!important;
  height:0!important;
  overflow:hidden!important;
  position:absolute!important;
  left:-99999px!important;
}

/* Modal de formatos: limpio y profesional */
.print-modal,
.status-modal,
.export-modal{
  background:rgba(15,23,42,.52)!important;
  backdrop-filter:blur(8px)!important;
}
.print-modal-box,
.status-modal-box,
.export-modal-box{
  width:min(420px,92vw)!important;
  background:#fff!important;
  color:#101828!important;
  border:1px solid #d7e0ec!important;
  border-radius:18px!important;
  padding:22px!important;
  box-shadow:0 28px 70px rgba(16,24,40,.26)!important;
}
.print-modal-box{
  text-align:left!important;
}
.print-icon{
  width:42px!important;
  height:42px!important;
  border-radius:12px!important;
  background:#fff7ed!important;
  border:1px solid #fed7aa!important;
  color:#ff6a00!important;
  display:grid!important;
  place-items:center!important;
  margin-bottom:14px!important;
}
.print-modal-box h2,
.status-modal-box h2,
.export-modal-box h2{
  margin:0 0 8px!important;
  color:#101828!important;
  font-size:19px!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
}
.print-modal-box p,
.status-modal-box p,
.export-modal-box p{
  margin:0 0 16px!important;
  color:#667085!important;
  font-size:13px!important;
  font-weight:500!important;
}
.print-format-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  margin-top:12px!important;
}
.print-format-card{
  min-height:86px!important;
  background:#fff!important;
  border:1px solid #d7e0ec!important;
  color:#101828!important;
  border-radius:14px!important;
  padding:12px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:8px!important;
}
.print-format-card:hover{
  border-color:#ff6a00!important;
  box-shadow:0 0 0 4px rgba(255,106,0,.10)!important;
}
.format-preview{
  width:70px!important;
  height:28px!important;
  border-radius:6px!important;
  border:2px dashed #98a2b3!important;
  background:#f8fafc!important;
  display:flex!important;
  gap:4px!important;
  padding:4px!important;
}
.format-two i{
  flex:1!important;
  background:#d0d5dd!important;
  border-radius:3px!important;
}
.print-format-card b{
  font-size:13px!important;
  font-weight:800!important;
}
.print-modal-close{
  margin-top:12px!important;
  background:#f2f4f7!important;
  color:#101828!important;
  border:1px solid #eaecf0!important;
}

/* Modal estado: botones grandes y legibles */
.status-modal-box{
  position:relative!important;
}
.status-choice{
  width:100%!important;
  justify-content:flex-start!important;
  gap:10px!important;
  margin:8px 0!important;
  min-height:44px!important;
  border-radius:12px!important;
  font-size:13px!important;
  font-weight:750!important;
  background:#fff!important;
  color:#101828!important;
  border:1px solid #d7e0ec!important;
}
.status-choice.sent,
.status-choice.delivered{
  background:#ecfdf3!important;
  color:#067647!important;
  border-color:#abefc6!important;
}
.status-choice.pending{
  background:#fffaeb!important;
  color:#b54708!important;
  border-color:#fedf89!important;
}
.status-choice.canceled{
  background:#fef3f2!important;
  color:#b42318!important;
  border-color:#fecdca!important;
}
.status-choice svg{width:16px!important;height:16px!important}

/* Botones compartir separados */
.share-card .btn,
.share-card button,
.share-card a{
  margin:4px!important;
}
.share-card .share-actions,
.share-card .actions{
  display:flex!important;
  justify-content:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin-top:14px!important;
}
.share-card .btn-green,
.share-card a[href*="wa.me"]{
  background:#067647!important;
  color:#fff!important;
}
.share-card .btn-blue,
.share-card button:first-of-type,
.share-card a:first-of-type{
  background:#ff6a00!important;
  color:#fff!important;
  border-color:#ff6a00!important;
}

/* Botones toolbar separados */
.toolbar-row.actions{
  gap:10px!important;
}
.toolbar-row.actions .btn{
  min-width:auto!important;
  padding-left:15px!important;
  padding-right:15px!important;
}

/* En modo oscuro, modal sigue profesional oscuro */
body.theme-dark .print-modal-box,
body.theme-dark .status-modal-box,
body.theme-dark .export-modal-box{
  background:#0e1626!important;
  color:#fff!important;
  border-color:#253247!important;
}
body.theme-dark .print-modal-box h2,
body.theme-dark .status-modal-box h2,
body.theme-dark .export-modal-box h2{color:#fff!important}
body.theme-dark .print-modal-box p,
body.theme-dark .status-modal-box p,
body.theme-dark .export-modal-box p{color:#c5d0e0!important}
body.theme-dark .print-format-card,
body.theme-dark .export-option{
  background:#111b2e!important;
  color:#fff!important;
  border-color:#253247!important;
}

/* ============================================================
   V35 - Ajustes solicitados: icono, modales pro, impresión limpia
   ============================================================ */
.theme-float-btn{
  top:24px!important;
  right:28px!important;
  z-index:2600!important;
}

.modal-card-pro{
  border-radius:20px!important;
  padding:24px!important;
  position:relative!important;
  box-shadow:0 30px 80px rgba(16,24,40,.24)!important;
}
.orange-head{align-items:flex-start!important;margin-bottom:18px!important}
.modal-icon-orange{
  width:44px!important;height:44px!important;min-width:44px!important;
  border-radius:14px!important;display:grid!important;place-items:center!important;
  background:#fff7ed!important;border:1px solid #fed7aa!important;color:#ff6a00!important;
}
.modal-icon-orange svg{width:20px!important;height:20px!important}
.pro-grid{gap:12px!important;margin-top:8px!important}
.pro-option{
  min-height:64px!important;border-radius:14px!important;padding:14px!important;
  box-shadow:0 8px 20px rgba(16,24,40,.04)!important;
}
.pro-option:hover{border-color:#ff6a00!important;box-shadow:0 0 0 4px rgba(255,106,0,.10),0 12px 24px rgba(16,24,40,.08)!important}
.pill-orange{background:#fff7ed!important;color:#ff6a00!important;border:1px solid #fed7aa!important;border-radius:12px!important}
.option-download{color:#ff6a00!important;display:grid!important;place-items:center!important}
.print-modal-close{
  border-radius:12px!important;padding:10px 14px!important;font-weight:800!important;
}

/* Sucursales: centrar bloque de carga */
.upload-box{text-align:center!important}
.upload-box label,.upload-box .muted{text-align:center!important}
.upload-box input[type="file"]{
  max-width:520px!important;margin:0 auto!important;text-align:center!important;
}
.upload-box .btn{margin-left:auto!important;margin-right:auto!important}

/* Iframe oculto para imprimir sin navegar fuera del panel */
#printHiddenFrame{
  position:fixed!important;right:0!important;bottom:0!important;width:1px!important;height:1px!important;
  opacity:0!important;pointer-events:none!important;border:0!important;z-index:-1!important;
}

@media(max-width:760px){.theme-float-btn{top:14px!important;right:14px!important}}

/* V35 - FIX WhatsApp y checkbox envíos */
.ship-actions{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
.wa-mini,
.wa-mini:link,
.wa-mini:visited,
.wa-mini:hover,
.wa-mini:active{
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  min-height:26px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  border-radius:999px!important;
  color:#25D366!important;
  background:transparent!important;
  border:0!important;
  text-decoration:none!important;
  line-height:1!important;
  flex:0 0 26px!important;
}
.wa-mini svg,
.wa-mini .ico{
  width:18px!important;
  height:18px!important;
  max-width:18px!important;
  max-height:18px!important;
  flex:0 0 18px!important;
  stroke:#25D366!important;
  color:#25D366!important;
}
.row-check{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  min-height:16px!important;
  margin:0!important;
  padding:0!important;
  accent-color:#ff6a00!important;
  cursor:pointer!important;
  justify-self:center!important;
}
.ship-card{
  grid-template-columns:20px minmax(0,1fr) auto!important;
  gap:9px!important;
}

/* V36 - Botón PDF y rediseño profesional de Sucursales */
.btn-pdf{
  background:#ff6a00!important;
  color:#fff!important;
  border-color:#ff6a00!important;
  box-shadow:0 8px 18px rgba(255,106,0,.18)!important;
}
.btn-pdf:hover{filter:brightness(.97)!important;box-shadow:0 10px 22px rgba(255,106,0,.25)!important}
.btn-pdf .ico{width:16px!important;height:16px!important}

.upload-card-pro{
  padding:22px!important;
  border-radius:20px!important;
  overflow:hidden!important;
}
.upload-title-pro{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:10px!important;
  text-align:center!important;
  color:#ff6a00!important;
  letter-spacing:.08em!important;
  border-bottom:1px solid #d7e0ec!important;
  padding-bottom:14px!important;
  margin-bottom:18px!important;
}
.upload-title-pro .ico{width:18px!important;height:18px!important}
.upload-form-pro{
  max-width:760px!important;
  margin:0 auto!important;
}
.upload-field-pro{
  max-width:540px!important;
  margin:0 auto 16px!important;
  text-align:center!important;
}
.upload-field-pro label{
  display:block!important;
  text-align:center!important;
  margin-bottom:8px!important;
  font-weight:850!important;
  color:#344054!important;
}
.upload-field-pro select{
  width:100%!important;
  height:44px!important;
  text-align:center!important;
  border-radius:12px!important;
}
.upload-box-pro{
  max-width:620px!important;
  margin:0 auto!important;
  padding:24px 26px!important;
  border:1.5px dashed #ffb27a!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fffaf5 0%,#ffffff 100%)!important;
  color:#101828!important;
  text-align:center!important;
  box-shadow:0 12px 28px rgba(16,24,40,.06)!important;
}
.upload-cloud-icon{
  width:52px!important;
  height:52px!important;
  margin:0 auto 12px!important;
  border-radius:16px!important;
  background:#fff7ed!important;
  border:1px solid #fed7aa!important;
  color:#ff6a00!important;
  display:grid!important;
  place-items:center!important;
}
.upload-cloud-icon .ico{width:24px!important;height:24px!important}
.upload-label-main{
  display:block!important;
  text-align:center!important;
  color:#101828!important;
  font-size:14px!important;
  font-weight:900!important;
  margin:0 0 6px!important;
}
.upload-help,.upload-format{
  text-align:center!important;
  margin:0 auto 12px!important;
  color:#667085!important;
  font-size:12.5px!important;
  line-height:1.45!important;
}
.upload-box-pro input[type="file"]{
  display:block!important;
  width:min(100%,460px)!important;
  margin:14px auto!important;
  padding:10px!important;
  border:1px solid #d7e0ec!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#101828!important;
  text-align:center!important;
}
.upload-box-pro input[type="file"]::file-selector-button{
  border:0!important;
  border-radius:10px!important;
  background:#ff6a00!important;
  color:#fff!important;
  padding:9px 12px!important;
  font-weight:800!important;
  margin-right:12px!important;
  cursor:pointer!important;
}
.upload-submit-pro{
  margin:8px auto 0!important;
  min-width:170px!important;
  justify-content:center!important;
  background:#ff6a00!important;
  border-color:#ff6a00!important;
}

/* V37 - Descarga PDF con selector 1/2 columnas */
#pdfFormatModal .print-format-card small{
  display:block!important;
  color:#667085!important;
  font-size:11px!important;
  font-weight:700!important;
  margin-top:-4px!important;
}
#btnPdfLabels{
  white-space:nowrap!important;
}

/* ============================================================
   V23 - MOBILE SIDEBAR RESPONSIVE + OCULTAR PDF
   ============================================================ */
#btnPdfLabels,#pdfFormatModal{display:none!important;visibility:hidden!important}
.mobile-sidebar-backdrop{display:none;position:fixed;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(3px);z-index:3090}
body.sidebar-open .mobile-sidebar-backdrop{display:block}
@media(max-width:900px){
  .mobile-menu-btn{
    display:grid!important;position:fixed!important;left:14px!important;top:14px!important;
    z-index:3300!important;width:44px!important;height:44px!important;min-height:44px!important;
    padding:0!important;border-radius:14px!important;background:#ff6a00!important;color:#fff!important;
    border:1px solid rgba(255,255,255,.20)!important;box-shadow:0 14px 30px rgba(255,106,0,.28)!important;
  }
  .mobile-menu-btn svg{width:20px!important;height:20px!important;max-width:20px!important;max-height:20px!important;flex:0 0 20px!important}
  .sidebar{
    position:fixed!important;top:0!important;left:0!important;bottom:0!important;width:min(82vw,300px)!important;
    height:100vh!important;z-index:3200!important;transform:translateX(-110%)!important;transition:transform .24s ease!important;
    overflow-y:auto!important;overflow-x:hidden!important;box-shadow:22px 0 45px rgba(15,23,42,.35)!important;
  }
  body.sidebar-open .sidebar,.sidebar.open{transform:translateX(0)!important;left:0!important}
  .main{margin-left:0!important;width:100%!important;padding:74px 14px 22px!important}
  .app{display:block!important;min-height:100vh!important}
  .grid-2{grid-template-columns:1fr!important}
  .toolbar-row,.toolbar-filters{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  .toolbar-row input,.toolbar-row select,.toolbar-row .btn,.toolbar-row button{max-width:none!important;width:100%!important}
  .toolbar-row.actions{grid-template-columns:1fr 1fr!important}
  .toolbar-row.actions .btn{min-width:0!important;padding-left:10px!important;padding-right:10px!important}
  .ship-card{grid-template-columns:22px minmax(0,1fr)!important;align-items:flex-start!important}
  .ship-actions{grid-column:2!important;justify-content:flex-start!important;margin-top:6px!important}
  .ship-meta{gap:6px!important}
  .ship-meta .meta-item{display:inline-flex!important;margin-right:6px!important}
}
@media(max-width:480px){
  .toolbar-row.actions{grid-template-columns:1fr!important}
  .page-title,h1{font-size:22px!important}
  .card,.toolbar,.ship-group,.share-card,.form-card,.panel,.box{border-radius:14px!important}
}
@media(min-width:901px){
  body.sidebar-open .mobile-sidebar-backdrop{display:none!important}
}

/* ============================================================
   V2.4 - Módulo Agencias
   ============================================================ */
.page-subtitle{margin:4px 0 0;color:#667085;font-size:14px;font-weight:600}
.agencias-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.agency-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.agency-stat{background:#fff;border:1px solid #d7e0ec;border-radius:18px;padding:16px 18px;box-shadow:0 12px 28px rgba(16,24,40,.05)}
.agency-stat span{display:block;color:#667085;font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.agency-stat b{display:block;margin-top:6px;color:#101828;font-size:26px;line-height:1;font-weight:950}
.agency-stat.active{border-color:#abefc6;background:linear-gradient(180deg,#ecfdf3,#fff)}
.agency-stat.inactive{border-color:#fedf89;background:linear-gradient(180deg,#fffaeb,#fff)}
.agency-toolbar .toolbar-row{grid-template-columns:220px 180px minmax(220px,1fr) auto}
.agencies-table-wrap{background:#fff;border:1px solid #d7e0ec;border-radius:18px;overflow:auto;box-shadow:0 16px 34px rgba(16,24,40,.06)}
.agencies-table th{white-space:nowrap;color:#344054;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.agencies-table td{vertical-align:middle;line-height:1.35}
.agency-badge{display:inline-flex;align-items:center;justify-content:center;min-width:74px;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900}
.agency-active{background:#ecfdf3;color:#067647;border:1px solid #abefc6}
.agency-inactive{background:#fef3f2;color:#b42318;border:1px solid #fecdca}
.agency-actions{white-space:nowrap;display:flex;gap:6px;align-items:center}
.btn-icon{width:34px;height:34px;border-radius:11px;border:1px solid #d7e0ec;background:#fff;color:#344054;display:inline-grid;place-items:center;cursor:pointer}
.btn-icon svg{width:16px;height:16px}
.btn-icon:hover{border-color:#ff6a00;color:#ff6a00;box-shadow:0 0 0 4px rgba(255,106,0,.10)}
.btn-icon.danger{color:#d92d20;border-color:#fecdca;background:#fff5f5}
.btn-icon.success{color:#067647;border-color:#abefc6;background:#ecfdf3}
.agency-modal-box{width:min(760px,94vw)!important}
.agency-edit-form label{display:block;margin:10px 0 6px;font-size:12px;font-weight:900;color:#344054;text-transform:uppercase;letter-spacing:.03em}
.agency-edit-form input,.agency-edit-form select{width:100%}
.agency-save{margin-top:16px;background:#ff6a00!important;border-color:#ff6a00!important;color:#fff!important}
body.theme-dark .agency-stat,body.theme-dark .agencies-table-wrap{background:#0e1626;border-color:#253247;color:#fff}
body.theme-dark .agency-stat b{color:#fff}
body.theme-dark .page-subtitle{color:#c5d0e0}
@media(max-width:900px){.agency-stats{grid-template-columns:1fr}.agency-toolbar .toolbar-row{grid-template-columns:1fr!important}.agencias-head{display:block}.agencies-table{min-width:980px}}
/* V3.0 ADMIN SaaS */
.alert-ok,.alert-error{padding:14px 16px;border-radius:14px;margin:12px 0;font-weight:800}.alert-ok{background:#ecfdf3;color:#027a48;border:1px solid #abefc6}.alert-error{background:#fef3f2;color:#b42318;border:1px solid #fecdca}.admin-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin:18px 0}.admin-card,.table-card{background:#fff;border:1px solid #edf0f5;border-radius:18px;box-shadow:0 12px 35px rgba(16,24,40,.06);padding:18px}.admin-card h2{margin:0 0 6px;font-size:20px}.admin-card p{margin:0 0 16px;color:#667085}.form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.admin-card input,.admin-card select,.toolbar select{height:44px;border:1px solid #d0d5dd;border-radius:12px;padding:0 12px;background:#fff;font-weight:700}.btn-orange{background:linear-gradient(135deg,#ff6a00,#ff8a2a)!important;color:#fff!important;border:0!important}.stats-mini{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eef2f6;padding:11px 0}.stats-mini b{font-size:26px;color:#ff6a00}.admin-table{width:100%;border-collapse:separate;border-spacing:0 10px}.admin-table th{text-align:left;color:#667085;font-size:12px;text-transform:uppercase;padding:0 10px}.admin-table td{background:#fff;padding:14px 10px;border-top:1px solid #edf0f5;border-bottom:1px solid #edf0f5;vertical-align:middle}.admin-table td:first-child{border-left:1px solid #edf0f5;border-radius:14px 0 0 14px}.admin-table td:last-child{border-right:1px solid #edf0f5;border-radius:0 14px 14px 0}.admin-table small{display:block;color:#667085;margin-top:3px}.license-badge{display:inline-flex;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900}.license-badge.ok{background:#ecfdf3;color:#027a48}.license-badge.bad{background:#fff1f3;color:#c01048}.actions-cell{min-width:260px}.actions-cell form{display:inline-flex;gap:6px;margin:3px}.actions-cell select{height:34px;border:1px solid #d0d5dd;border-radius:9px}.mini-btn{height:34px;border:0;border-radius:9px;background:#101828;color:#fff;padding:0 10px;font-weight:800;cursor:pointer}.mini-btn.danger{background:#d92d20}.menu a span svg{width:19px;height:19px}@media(max-width:900px){.admin-grid,.form-grid-2{grid-template-columns:1fr}.table-card{overflow:auto}.admin-table{min-width:980px}.actions-cell form{display:flex}.sidebar .summary,.sidebar .status-folder{display:none}}
.frequent-badge{margin-left:8px;font-size:10px;vertical-align:middle;white-space:nowrap}

/* V34: filtros y selección masiva por agencia */
.filter-grid-pro{display:grid!important;grid-template-columns:repeat(3,minmax(160px,1fr)) repeat(2,minmax(145px,.8fr)) minmax(210px,1.2fr) auto auto;gap:10px;align-items:end;width:100%}
.filter-grid-pro select,.filter-grid-pro input{width:100%}
.date-filter-label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:800;text-transform:uppercase;opacity:.85}
.date-filter-label input{min-height:42px}
.filter-result-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 14px;border:1px solid var(--border,#d9dee8);border-radius:12px;background:var(--card,#fff);margin-top:12px}
.select-results{display:flex;align-items:center;gap:9px;cursor:pointer}.select-results input{width:18px;height:18px;accent-color:#f97316}.result-summary{font-size:13px;font-weight:800;opacity:.78}
.print-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.print-type-card{border:1px solid #e2e8f0;background:#fff;border-radius:14px;padding:16px;text-align:left;cursor:pointer;transition:.2s}.print-type-card:hover{border-color:#f97316;transform:translateY(-1px);box-shadow:0 8px 24px rgba(15,23,42,.08)}.print-type-card b{display:block;font-size:15px;color:#111827;margin-bottom:4px}.print-type-card small{color:#64748b;line-height:1.35}
@media(max-width:1200px){.filter-grid-pro{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.filter-grid-pro{grid-template-columns:1fr 1fr}.filter-grid-pro .search-input{grid-column:1/-1}.filter-result-bar{align-items:flex-start;flex-direction:column}.print-type-grid{grid-template-columns:1fr}}

/* =========================================================
   ENVÍOS: barra de selección y acciones — versión compacta PRO
   ========================================================= */
#enviosFilterForm.toolbar{
  padding:18px!important;
  border-radius:18px!important;
}

#enviosFilterForm .filter-result-bar{
  min-height:0!important;
  margin:14px 0 0!important;
  padding:10px 12px!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,var(--card,#fff),rgba(248,250,252,.72))!important;
  box-shadow:none!important;
}

#enviosFilterForm .select-results{
  display:inline-flex!important;
  align-items:center!important;
  gap:10px!important;
  min-height:34px!important;
  padding:0 2px!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
  white-space:nowrap!important;
}

#enviosFilterForm .select-results input,
#enviosFilterForm #selectAllResults{
  width:16px!important;
  height:16px!important;
  margin:0!important;
  flex:0 0 16px!important;
  cursor:pointer!important;
}

#enviosFilterForm .result-summary{
  display:inline-flex!important;
  align-items:center!important;
  min-height:30px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  background:rgba(15,23,42,.055)!important;
  font-size:12px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}

#enviosFilterForm .toolbar-row.actions{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin-top:10px!important;
  padding-top:0!important;
  min-height:38px!important;
}

#enviosFilterForm .toolbar-row.actions .btn{
  min-height:36px!important;
  height:36px!important;
  padding:0 14px!important;
  border-radius:9px!important;
  font-size:12px!important;
  line-height:1!important;
  box-shadow:none!important;
}

#enviosFilterForm .toolbar-row.actions .btn .ico{
  width:15px!important;
  height:15px!important;
}

@media (max-width:760px){
  #enviosFilterForm.toolbar{padding:12px!important}
  #enviosFilterForm .filter-result-bar{
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    padding:9px 10px!important;
  }
  #enviosFilterForm .select-results{
    white-space:normal!important;
    line-height:1.25!important;
  }
  #enviosFilterForm .result-summary{
    font-size:11px!important;
    padding:0 8px!important;
  }
  #enviosFilterForm .toolbar-row.actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  #enviosFilterForm .toolbar-row.actions .btn{
    width:100%!important;
    min-width:0!important;
  }
}

@media (max-width:440px){
  #enviosFilterForm .filter-result-bar{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
  #enviosFilterForm .toolbar-row.actions{
    grid-template-columns:1fr!important;
  }
}

/* V35 - Edición rápida de pedidos */
.edit-envio-btn{width:34px;height:34px;border-radius:10px;border:1px solid #d7e0ec;background:#fff;color:#344054;display:inline-grid;place-items:center;cursor:pointer;transition:.18s;vertical-align:middle}
.edit-envio-btn:hover{color:#f97316;border-color:#f97316;box-shadow:0 0 0 4px rgba(249,115,22,.11);transform:translateY(-1px)}
.edit-envio-btn .ico{width:16px;height:16px}.ship-actions{gap:8px!important}.edit-envio-box{width:min(820px,95vw)!important;max-height:92vh;overflow:auto}.edit-envio-form label{display:block;margin:10px 0 6px;font-size:11px;font-weight:900;color:#344054;text-transform:uppercase;letter-spacing:.035em}.edit-envio-form input,.edit-envio-form select{width:100%;height:44px;border:1px solid #d0d5dd;border-radius:11px;background:#fff;color:#101828;padding:0 12px;font-weight:700;outline:none}.edit-envio-form input:focus,.edit-envio-form select:focus{border-color:#f97316;box-shadow:0 0 0 4px rgba(249,115,22,.10)}.edit-grid-2,.edit-grid-3{display:grid;gap:12px}.edit-grid-2{grid-template-columns:1fr 1fr}.edit-grid-3{grid-template-columns:1fr 1fr 1fr}.edit-special-fields{display:none;margin-top:4px;padding:12px;border:1px solid #edf0f5;border-radius:14px;background:#f8fafc}.edit-modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}.edit-form-message{min-height:22px;margin-top:12px;font-size:13px;font-weight:800}.edit-form-message.ok{color:#067647}.edit-form-message.error{color:#b42318}.edit-envio-form .is-loading{opacity:.65;cursor:wait}
@media(max-width:700px){.edit-grid-2,.edit-grid-3{grid-template-columns:1fr}.edit-envio-box{width:96vw!important;padding:16px!important}.edit-modal-actions{display:grid;grid-template-columns:1fr 1fr}.edit-modal-actions .btn{width:100%}}
