:root{--bg:#f4f7fb;--card:#fff;--text:#172033;--muted:#667085;--blue:#0d47a1;--blue2:#1565c0;--orange:#ff7a00;--line:#e7edf5;--danger:#dc3545;--green:#0f9d58;--shadow:0 18px 45px rgba(13,71,161,.10)}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;background:radial-gradient(circle at top right,#e4f0ff 0,#f7f9fd 38%,#eef3f9 100%);color:var(--text)}a{text-decoration:none;color:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:274px;background:linear-gradient(180deg,#07152c,#0b1d3a 55%,#111827);color:#fff;padding:22px 16px;box-shadow:12px 0 40px rgba(5,17,37,.18);z-index:10}.brand{display:flex;align-items:center;gap:12px;margin-bottom:26px}.brand-logo{width:46px;height:46px;border-radius:15px;background:linear-gradient(135deg,var(--orange),#ffb000);display:grid;place-items:center;font-weight:900;box-shadow:0 10px 25px rgba(255,122,0,.35)}.brand strong{font-size:20px}.brand span{display:block;color:#9fb7d8;font-weight:700;letter-spacing:.16em;font-size:11px;text-transform:uppercase}.sidebar nav a{display:flex;align-items:center;gap:11px;color:#cbd7ea;padding:12px 14px;border-radius:14px;margin:3px 0;font-weight:700}.sidebar nav a > span:not(.nav-icon):not(.nav-label){width:8px;height:8px;border-radius:50%;background:#365172}.sidebar nav a:hover,.sidebar nav a.active{background:rgba(255,255,255,.10);color:#fff}.sidebar nav a.active > span:not(.nav-icon):not(.nav-label){background:var(--orange)}.main{margin-left:274px;padding:24px 28px 40px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.topbar h1{margin:0;font-size:31px}.topbar p{margin:5px 0 0;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:10px}.pill{background:#fff;border:1px solid var(--line);padding:9px 13px;border-radius:999px;font-weight:800;color:var(--blue);box-shadow:var(--shadow)}.user{font-weight:800}.grid{display:grid;gap:18px}.grid.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:rgba(255,255,255,.86);backdrop-filter:blur(8px);border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:var(--shadow)}.metric{position:relative;overflow:hidden}.metric:after{content:"";position:absolute;right:-32px;top:-32px;width:100px;height:100px;border-radius:50%;background:rgba(255,122,0,.13)}.metric .label{color:var(--muted);font-weight:800}.metric .num{font-size:34px;font-weight:950;margin-top:8px}.metric .hint{color:#718096;margin-top:4px}.toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:0 0 16px}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;background:linear-gradient(135deg,var(--blue2),var(--blue));color:#fff;padding:11px 16px;border-radius:13px;font-weight:900;cursor:pointer;box-shadow:0 12px 24px rgba(13,71,161,.20)}.btn.orange{background:linear-gradient(135deg,var(--orange),#ff9d2d)}.btn.ghost{background:#fff;color:var(--blue);border:1px solid var(--line);box-shadow:none}.btn.small{padding:8px 11px;font-size:13px}.btn.danger{background:linear-gradient(135deg,#ef4444,#b91c1c)}.table{width:100%;border-collapse:separate;border-spacing:0 10px}.table th{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#748096;text-align:left;padding:4px 12px}.table td{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 12px}.table tr td:first-child{border-left:1px solid var(--line);border-radius:14px 0 0 14px}.table tr td:last-child{border-right:1px solid var(--line);border-radius:0 14px 14px 0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field label{display:block;font-weight:900;margin-bottom:7px;color:#334155}.field input,.field select,.field textarea{width:100%;border:1px solid #d9e2ee;border-radius:13px;padding:12px 13px;font:inherit;background:#fff;color:var(--text)}.field textarea{min-height:100px;resize:vertical}.field.full{grid-column:1/-1}.alert{padding:14px 16px;border-radius:15px;margin:0 0 15px;font-weight:800}.alert.ok{background:#e7f8ef;color:#087443;border:1px solid #b7ebcd}.alert.err{background:#fff0f0;color:#b91c1c;border:1px solid #ffd1d1}.status-badge{display:inline-flex;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:950}.status-badge.secondary{background:#eef2f7;color:#475569}.status-badge.info{background:#e0f2fe;color:#075985}.status-badge.primary{background:#e6efff;color:#0d47a1}.status-badge.warning{background:#fff7db;color:#9a5b00}.status-badge.success{background:#e7f8ef;color:#067647}.status-badge.danger{background:#ffe4e6;color:#be123c}.status-badge.dark{background:#111827;color:#fff}.status-badge.orange{background:#fff1e3;color:#c05600}.hero{display:grid;grid-template-columns:1.2fr .8fr;gap:20px;align-items:center}.hero h2{font-size:38px;margin:0 0 10px}.hero p{color:var(--muted);font-size:17px;line-height:1.55}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:22px;background:linear-gradient(135deg,#06142b,#0d47a1 52%,#ff7a00)}.login-card{width:100%;max-width:430px;background:#fff;border-radius:28px;padding:32px;box-shadow:0 40px 110px rgba(0,0,0,.28)}.login-card h1{margin:0;font-size:30px}.login-card p{color:var(--muted);margin-bottom:24px}.lockbox{position:fixed;z-index:99;inset:0 0 0 274px;background:rgba(244,247,251,.82);backdrop-filter:blur(8px);display:grid;place-items:center;text-align:center}.lockbox>div,.lockbox{padding:25px}.print-only{display:none}@media(max-width:900px){.sidebar{position:static;width:auto}.main{margin:0}.grid.cards{grid-template-columns:1fr 1fr}.form-grid,.hero{grid-template-columns:1fr}.topbar{display:block}.top-actions{margin-top:12px;flex-wrap:wrap}.lockbox{inset:0}}@media print{.sidebar,.topbar,.toolbar,.btn{display:none!important}.main{margin:0;padding:0}.card{box-shadow:none;border:0}.print-only{display:block}}
.quick-actions{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}.quick-actions h3{margin:0 0 10px}.quick-actions .btn{margin:0 6px 8px 0}.btn.wa{background:linear-gradient(135deg,#25D366,#128C7E)}.license-code{font-size:24px;font-weight:950;letter-spacing:.08em;background:#0b1d3a;color:#fff;border-radius:18px;padding:18px;text-align:center;margin:14px 0;box-shadow:var(--shadow)}.muted{color:var(--muted)}code{background:#eef3fb;border:1px solid var(--line);border-radius:8px;padding:2px 6px;color:#0d47a1;font-weight:800}


/* Ventas POS Pro */
.pos-shell{display:grid;grid-template-columns:minmax(0,1.45fr) 430px;gap:18px;align-items:start;margin-bottom:18px}.pos-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.pos-head h2{margin:0}.pos-head p{margin:4px 0 0}.pos-search-row{display:flex;gap:10px;margin-bottom:12px}.pos-search{width:100%;border:2px solid #d8e4f2;border-radius:16px;padding:15px 16px;font-size:17px;font-weight:800;background:#fff}.pos-search:focus{outline:none;border-color:var(--blue2);box-shadow:0 0 0 4px rgba(21,101,192,.10)}.pos-cats{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 12px;font-weight:900;color:#31506f;cursor:pointer}.chip.active,.chip:hover{background:var(--blue);border-color:var(--blue);color:#fff}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:12px;max-height:640px;overflow:auto;padding-right:4px}.product-tile{text-align:left;border:1px solid #dce6f2;background:linear-gradient(180deg,#fff,#f8fbff);border-radius:18px;padding:14px;cursor:pointer;box-shadow:0 8px 22px rgba(16,24,40,.06);transition:.15s transform,.15s box-shadow,.15s border}.product-tile:hover{transform:translateY(-2px);border-color:#9fc3ee;box-shadow:0 16px 32px rgba(13,71,161,.13)}.prod-title{display:block;font-weight:950;line-height:1.2;min-height:38px}.prod-meta{display:block;color:var(--muted);font-size:12px;margin-top:8px}.prod-price{display:block;font-size:20px;font-weight:950;color:var(--blue);margin-top:10px}.prod-stock{display:inline-flex;margin-top:8px;border-radius:999px;padding:4px 8px;background:#e7f8ef;color:#067647;font-size:12px;font-weight:950}.prod-stock.low{background:#fff1e3;color:#c05600}.pos-cart{position:sticky;top:16px}.pos-head.compact{align-items:center}.cart-list{border:1px dashed #cad6e4;border-radius:18px;min-height:160px;max-height:360px;overflow:auto;padding:10px;background:#f8fbff;margin:14px 0}.empty-cart{height:138px;display:grid;place-items:center;color:var(--muted);font-weight:800;text-align:center}.cart-item{display:grid;grid-template-columns:minmax(0,1fr) 104px 88px 82px 30px;gap:8px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px;margin-bottom:8px}.cart-info b{display:block;font-size:14px}.cart-info small{color:var(--muted);font-weight:800}.qty-controls{display:flex;border:1px solid #dbe5f0;border-radius:12px;overflow:hidden}.qty-controls button{width:28px;border:0;background:#eef4fb;font-weight:950;cursor:pointer}.qty-controls input{width:44px;border:0;text-align:center;font-weight:900}.price-edit{width:88px;border:1px solid #dbe5f0;border-radius:10px;padding:8px;font-weight:900}.line-total{font-size:13px;text-align:right}.remove-item{border:0;background:#fee2e2;color:#b91c1c;border-radius:10px;width:30px;height:30px;font-size:20px;font-weight:950;cursor:pointer}.totals-box{display:grid;gap:10px;background:#0b1d3a;color:#fff;border-radius:20px;padding:16px;margin-top:12px}.totals-box>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.totals-box span{color:#cbd7ea;font-weight:850}.totals-box input,.totals-box select{max-width:180px;border:0;border-radius:12px;padding:10px;font-weight:900}.totals-box .grand{font-size:23px;padding-top:10px;border-top:1px solid rgba(255,255,255,.15)}.totals-box .grand b{color:#ffb04c}.pos-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.btn.big{padding:15px 18px;font-size:16px}.recent-sales{margin-top:18px}.ticket-wrap{display:grid;place-items:start center}.ticket{width:360px;background:#fff;color:#111;border:1px solid #e5e7eb;border-radius:18px;padding:22px;font-family:Consolas,monospace}.ticket-head{text-align:center}.ticket-head h2{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif}.ticket-head p{margin:3px 0;color:#555}.ticket hr{border:0;border-top:1px dashed #aaa;margin:12px 0}.ticket-table{width:100%;border-collapse:collapse}.ticket-table th,.ticket-table td{text-align:left;padding:6px 0;border-bottom:1px dotted #ddd}.ticket-table th:nth-child(2),.ticket-table td:nth-child(2){text-align:center}.ticket-table th:nth-child(3),.ticket-table td:nth-child(3){text-align:right}.ticket-total{display:flex;justify-content:space-between;padding:4px 0}.ticket-total.grand{font-size:20px;font-weight:950}.ticket-thanks{text-align:center;font-weight:900}@media(max-width:1200px){.pos-shell{grid-template-columns:1fr}.pos-cart{position:static}.product-grid{max-height:none}}@media(max-width:700px){.cart-item{grid-template-columns:1fr;}.price-edit{width:100%}.line-total{text-align:left}.pos-actions{grid-template-columns:1fr}.pos-search-row{display:block}.pos-search-row .btn{margin-top:8px;width:100%}}@media print{.ticket-wrap.card{padding:0}.ticket{border:0;border-radius:0;width:80mm}.toolbar,.sidebar,.topbar,.recent-sales,.pos-shell{display:none!important}.main{padding:0}.card{box-shadow:none}}


/* Información legal y soporte */
.app-footer{margin-top:26px;padding:16px 4px;color:#667085;font-size:13px;text-align:center}.app-footer a{color:#0d47a1;font-weight:900}.legal-hero{display:grid;grid-template-columns:72px 1fr;gap:16px;align-items:center}.legal-logo{width:72px;height:72px;border-radius:22px;background:linear-gradient(135deg,var(--orange),#ffb000);display:grid;place-items:center;color:#fff;font-size:24px;font-weight:950;box-shadow:0 16px 34px rgba(255,122,0,.28)}.legal-list{display:grid;gap:10px;margin-top:14px}.legal-item{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px}.legal-item b{display:block;margin-bottom:4px}.contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.contact-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px}.contact-card span{display:block;color:var(--muted);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.contact-card strong{display:block;margin-top:7px;font-size:16px}@media(max-width:900px){.contact-grid{grid-template-columns:1fr}.legal-hero{grid-template-columns:1fr}.legal-logo{width:58px;height:58px}}

/* Menú lateral v1.3.3 */
.sidebar nav{display:flex;flex-direction:column;min-height:calc(100vh - 96px)}
.sidebar nav a{position:relative}
.sidebar nav a .nav-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.08);font-size:15px;flex:0 0 26px}
.sidebar nav a .nav-label{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar nav a:hover .nav-icon,.sidebar nav a.active .nav-icon{background:rgba(255,122,0,.18)}
.sidebar nav a.active .nav-icon{box-shadow:inset 0 0 0 1px rgba(255,122,0,.45)}
.sidebar nav a.nav-about{margin-top:auto;margin-bottom:2px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.035);color:#93a6bf;font-size:13px;opacity:.82}
.sidebar nav a.nav-about:hover,.sidebar nav a.nav-about.active{opacity:1;color:#dbe8fa;background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.20)}
.sidebar nav a.nav-about .nav-icon{background:rgba(255,255,255,.06);font-size:14px}
.sidebar nav a.nav-about:before{content:"";position:absolute;left:14px;right:14px;top:-10px;border-top:1px solid rgba(255,255,255,.10)}

/* v1.3.5 - Acerca de / Soporte removido del menú lateral; queda solo en pie de página */
.sidebar nav a{display:flex;align-items:center;gap:11px}
.sidebar nav a .nav-icon{width:26px!important;height:26px!important;display:grid!important;place-items:center!important;border-radius:10px!important;background:rgba(255,255,255,.08)!important;font-size:15px!important;flex:0 0 26px!important;line-height:1!important}
.sidebar nav a .nav-label{display:inline-block!important;width:auto!important;height:auto!important;min-width:0!important;background:transparent!important;border-radius:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.25!important;flex:1 1 auto!important}
.sidebar nav a.active .nav-label{background:transparent!important;color:inherit!important}
.sidebar nav a.nav-about .nav-label{background:transparent!important}

/* v1.3.6 - Entrega de equipos */
.notice{border:1px solid var(--line);border-radius:16px;padding:13px 15px;margin:12px 0;background:#f8fbff;color:#334155;font-weight:750}
.notice.success{background:#e7f8ef;border-color:#b7ebcd;color:#087443}
.btn.success{background:linear-gradient(135deg,#16a34a,#0f9d58)}
.soft-card{background:linear-gradient(180deg,#ffffff,#f8fbff)}
.delivery-form{margin-top:16px}
.delivery-ticket{width:210mm;max-width:100%;min-height:297mm;margin:auto;background:#fff;color:#111;border:1px solid #e5e7eb;border-radius:16px;padding:14mm 16mm;box-shadow:var(--shadow);font-size:11px;line-height:1.28}
.delivery-ticket h1{margin:0 0 2px;font-size:20px;line-height:1.12}.delivery-ticket .subtitle{color:#555;margin:0 0 8px;font-size:10.5px}.delivery-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}.delivery-box{border:1px solid #e5e7eb;border-radius:8px;padding:6px 7px;background:#fafafa;break-inside:avoid}.delivery-box b{display:block;margin-bottom:2px;font-size:9.5px;text-transform:uppercase;color:#475569;letter-spacing:.035em}.delivery-ticket .signature-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px;break-inside:avoid}.delivery-ticket .signature-line{border-top:1px solid #111;text-align:center;padding-top:5px;font-weight:800;font-size:10px}.delivery-legal{margin-top:10px;font-size:9.5px;color:#555;line-height:1.28}.delivery-ticket br+br{display:none}@media(max-width:700px){.delivery-grid,.signature-grid{grid-template-columns:1fr}.delivery-ticket{width:auto;min-height:auto;padding:16px}}@page{size:A4;margin:8mm}@media print{.delivery-ticket{box-shadow:none;border:0;border-radius:0;width:auto;min-height:auto;max-width:none;padding:0;font-size:10px}.delivery-ticket .no-print{display:none!important}.app-footer{display:none!important}.delivery-grid{gap:5px;margin:6px 0}.delivery-box{padding:5px 6px}.delivery-ticket .signature-grid{margin-top:14px}.delivery-legal{margin-top:7px}}

/* v1.3.7 - Cliente por documento como eje del flujo */
.inline-lookup{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.mini-history{display:grid;gap:6px;margin-top:8px}.mini-history>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px 10px;color:#334155}
@media(max-width:700px){.inline-lookup{grid-template-columns:1fr}.inline-lookup .btn{width:100%}}

.inline-manage{display:inline-block;margin-top:7px;font-size:12px;color:#2563eb;text-decoration:none;font-weight:700}
.inline-manage:hover{text-decoration:underline}
.badge.muted{background:#eef2f7;color:#64748b;border:1px solid #dbe3ee}
.btn.danger{background:#ef4444;color:#fff;border-color:#ef4444}
.inline-details{display:inline-block;position:relative}.inline-details summary{list-style:none}.inline-details summary::-webkit-details-marker{display:none}.mini-form{position:absolute;right:0;top:38px;z-index:30;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;box-shadow:var(--shadow);min-width:260px}.mini-form input{width:100%;margin-bottom:8px;border:1px solid #d9e2ee;border-radius:10px;padding:9px}.soft-card{background:#f8fbff}.report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.report-kpi{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px}.report-kpi b{display:block;font-size:28px;margin-top:6px}.chart-bar{height:12px;border-radius:99px;background:#e5edf8;overflow:hidden}.chart-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--orange))}.printable{max-width:860px;margin:auto}
@media(max-width:900px){.report-grid{grid-template-columns:1fr}.mini-form{position:static;margin-top:8px}}

/* v1.4.1 - Logo gráfico en encabezado del menú lateral */
.brand.brand-image{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 0 22px;
  padding:12px 10px;
  border-radius:18px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 14px 34px rgba(0,0,0,.18);
}
.brand.brand-image img{
  display:block;
  width:100%;
  max-width:222px;
  height:auto;
  object-fit:contain;
}
@media(max-width:900px){
  .brand.brand-image{max-width:280px;margin:0 auto 18px;}
}


/* v1.4.3 - Dashboard operativo discreto */
.dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#ffffff,#f4f8ff)}
.dashboard-hero h2{font-size:32px;margin:4px 0 8px}.dashboard-hero p{margin:0;color:var(--muted);line-height:1.55}.eyebrow{display:inline-flex;color:var(--blue);background:#e8f1ff;border:1px solid #d6e6ff;border-radius:999px;padding:6px 10px;font-weight:950;font-size:12px;text-transform:uppercase;letter-spacing:.08em}.quick-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.dashboard-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.metric.compact{display:flex;align-items:center;gap:14px;color:inherit;min-height:118px}.metric.compact:after{width:70px;height:70px;right:-24px;top:-24px}.metric-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:#eef5ff;font-size:21px;flex:0 0 48px}.metric.compact .num{font-size:30px;margin-top:4px}.metric.compact .small-num{font-size:24px}.cash-compact{background:linear-gradient(135deg,#fff,#f8fbff)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.55fr);gap:18px;align-items:start}.side-stack{display:grid;gap:18px}.dash-alert{display:block;border:1px solid var(--line);border-radius:14px;padding:12px 13px;margin:8px 0;font-weight:900;background:#fff}.dash-alert.success{border-color:#b7ebcd;background:#e7f8ef;color:#087443}.dash-alert.warning{border-color:#ffe29a;background:#fff8df;color:#945500}.dash-alert.danger{border-color:#ffc9cf;background:#fff0f1;color:#b91c1c}.dash-alert.info{border-color:#cfe0ff;background:#edf5ff;color:#0d47a1}.movement-list{display:grid;gap:8px}.movement-list>div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px}.movement-list span{display:inline-flex;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.06em;color:var(--blue);background:#edf5ff;border-radius:999px;padding:4px 7px}.movement-list b{display:block;margin-top:6px}.movement-list small{display:block;margin-top:4px;color:var(--muted)}.muted{color:var(--muted)}
@media(max-width:1150px){.dashboard-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.dashboard-hero{display:block}.quick-actions{justify-content:flex-start;margin-top:14px}}
@media(max-width:700px){.dashboard-cards{grid-template-columns:1fr}.metric.compact{min-height:auto}.dashboard-hero h2{font-size:26px}}
/* v1.4.3 */
.bulk-panel{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 14px;padding:12px;border:1px solid rgba(42,127,255,.18);background:#f8fbff;border-radius:14px}
.bulk-panel input[type=number]{max-width:130px}
.bulk-panel select{max-width:180px}
.quote-line{align-items:end;border:1px solid #eef1f6;border-radius:14px;padding:10px;margin-bottom:10px;background:#fbfcff}

/* v1.4.4 - Menú lateral en cascada con scroll interno */
.sidebar{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.sidebar .brand.brand-image{
  flex:0 0 auto;
}
.side-nav{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:4px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.28) transparent;
}
.side-nav::-webkit-scrollbar{width:8px}
.side-nav::-webkit-scrollbar-track{background:transparent}
.side-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:999px}
.side-nav::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.34)}
.nav-group{
  margin:0 0 8px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.025);
  overflow:hidden;
}
.nav-group[open]{background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.13)}
.nav-group summary{
  list-style:none;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  padding:12px 13px;
  color:#dbe8fa;
  font-weight:950;
  user-select:none;
}
.nav-group summary::-webkit-details-marker{display:none}
.nav-group-icon{
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:rgba(255,255,255,.08);
  flex:0 0 27px;
}
.nav-chevron{
  margin-left:auto;
  color:#91a6c3;
  transition:transform .18s ease;
}
.nav-group[open] .nav-chevron{transform:rotate(180deg)}
.nav-group-items{
  display:grid;
  gap:2px;
  padding:0 8px 10px 8px;
}
.sidebar .side-nav .nav-group-items a{
  margin:0;
  padding:10px 10px;
  border-radius:13px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#cbd7ea;
  font-weight:800;
}
.sidebar .side-nav .nav-group-items a:hover,
.sidebar .side-nav .nav-group-items a.active{
  background:rgba(255,255,255,.10);
  color:#fff;
}
.sidebar .side-nav .nav-group-items a .nav-icon{
  width:25px!important;
  height:25px!important;
  flex:0 0 25px!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.075)!important;
}
.sidebar .side-nav .nav-group-items a.active .nav-icon{
  background:rgba(255,122,0,.20)!important;
  box-shadow:inset 0 0 0 1px rgba(255,122,0,.42);
}
.sidebar .side-nav .nav-group-items a .nav-label{
  display:inline-block!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  min-width:0!important;
}
@media(max-width:900px){
  .sidebar{position:static;width:auto;max-height:none;overflow:visible}
  .side-nav{max-height:70vh;overflow-y:auto;padding-right:2px}
  .nav-group summary{padding:12px}
}
.receipt-a4{width:210mm;max-width:100%;min-height:280mm;background:#fff;color:#111;border:1px solid #e5e7eb;border-radius:18px;padding:22mm;font-family:Inter,Segoe UI,Arial,sans-serif}.receipt-a4 .ticket-table th,.receipt-a4 .ticket-table td{padding:10px;border-bottom:1px solid #e5e7eb}.receipt-a4 .ticket-total{max-width:360px;margin-left:auto}.notice.danger{background:#fff1f2;border-color:#fecdd3;color:#9f1239}@media print{.receipt-a4{width:auto;min-height:auto;border:0;border-radius:0;padding:12mm}.receipt-a4.ticket{width:auto}.receipt-a4 .ticket-head{text-align:left}.receipt-a4 .ticket-table th:nth-child(3),.receipt-a4 .ticket-table td:nth-child(3){text-align:right}}

/* Ordenes: barra de acciones profesional agrupada */
.order-action-panel{margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff)}
.order-action-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.order-action-head h3{margin:0;font-size:18px}
.order-action-head p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.35}
.order-action-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.order-action-bar .action-main{box-shadow:0 12px 24px rgba(255,122,0,.18)}
.btn.success{background:linear-gradient(135deg,#16a34a,#087443)}
.action-dropdown{position:relative;display:inline-block}
.action-dropdown summary{list-style:none;cursor:pointer}
.action-dropdown summary::-webkit-details-marker{display:none}
.action-dropdown[open] summary{filter:brightness(.98)}
.action-dropdown-menu{position:absolute;right:0;top:42px;z-index:60;min-width:245px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:8px;box-shadow:0 22px 55px rgba(15,23,42,.16)}
.action-dropdown-menu .action-option{display:flex;width:100%;align-items:center;justify-content:flex-start;gap:8px;border:0;background:#fff;color:#172033;text-align:left;padding:10px 11px;border-radius:12px;font:inherit;font-weight:850;cursor:pointer;box-shadow:none}
.action-dropdown-menu .action-option:hover{background:#f0f6ff;color:var(--blue)}
.action-divider{height:1px;background:var(--line);margin:7px 0}
.action-delete-form{display:grid;gap:8px;padding:7px}
.action-delete-form label{font-weight:950;color:#b91c1c;font-size:13px}
.action-delete-form input{width:100%;border:1px solid #ffd1d1;border-radius:10px;padding:9px;font:inherit}
@media(max-width:760px){.order-action-bar{display:grid;grid-template-columns:1fr 1fr}.order-action-bar>.btn,.order-action-bar>details{width:100%}.action-dropdown summary{width:100%;justify-content:center}.action-dropdown-menu{left:0;right:auto;min-width:100%}}
@media print{.order-action-panel{display:none!important}}

/* Corrección v2.0: desplegables de acciones por encima de secciones inferiores */
.order-detail-card{
  position:relative;
  z-index:120;
  overflow:visible!important;
}
.order-action-panel{
  position:relative;
  z-index:130;
  overflow:visible!important;
}
.action-dropdown{
  position:relative;
  z-index:140;
}
.action-dropdown[open]{
  z-index:9999;
}
.action-dropdown-menu{
  z-index:10000!important;
}
.card.order-detail-card + .card,
.order-detail-card ~ .card{
  position:relative;
  z-index:1;
}

/* Login con logo gráfico FixManager Pro */
.login-logo-box{
  display:flex;
  justify-content:center;
  align-items:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:14px 16px;
  margin:0 0 24px;
  box-shadow:0 14px 34px rgba(13,71,161,.10);
}
.login-logo-box img{
  display:block;
  width:100%;
  max-width:330px;
  height:auto;
  object-fit:contain;
}
@media(max-width:480px){.login-logo-box{padding:12px}.login-logo-box img{max-width:280px}}


/* Fotos documentadas en órdenes */
.order-photo-upload-box{border:1px solid #dbeafe;background:#f8fbff;border-radius:16px;padding:14px;margin-top:4px}
.order-photo-upload-box h3{margin:0 0 4px;color:#0f3b66}
.order-photo-upload-box p{margin:0 0 12px;color:#64748b;font-weight:700}
.order-photo-upload-box small{display:block;color:#64748b;font-weight:700;margin-top:8px}
.order-photos-card{margin-top:14px}
.order-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin:12px 0}
.order-photo-item{border:1px solid #dbe4ee;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.07)}
.order-photo-item img{width:100%;height:145px;object-fit:cover;display:block;background:#e2e8f0}
.order-photo-meta{padding:10px}
.order-photo-meta b{display:block;color:#172033}
.order-photo-meta small{display:block;color:#64748b;font-weight:700;margin-top:2px}
.order-photo-meta p{margin:8px 0;color:#475569;font-size:13px;line-height:1.35}
.order-photo-meta form{margin-top:8px}
.order-photo-add{margin-top:12px}
.order-photo-add summary{list-style:none;cursor:pointer;display:inline-flex}
.order-photo-add summary::-webkit-details-marker{display:none}
.order-photo-add form{margin-top:12px;border-top:1px solid #e2e8f0;padding-top:12px}
@media(max-width:640px){.order-photo-grid{grid-template-columns:1fr 1fr}.order-photo-item img{height:120px}}





/* Órdenes: división visible entre recepción y etapa posterior */
.order-stage-divider{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:14px;
    margin:16px 0 14px;
}
.order-stage-line{
    height:3px;
    border-radius:999px;
    background:linear-gradient(90deg,transparent,#f97316,#0f3b66);
    opacity:.95;
}
.order-stage-divider .order-stage-line:last-child{
    background:linear-gradient(90deg,#0f3b66,#f97316,transparent);
}
.order-stage-content{
    text-align:center;
    padding:10px 18px;
    border:2px solid #f97316;
    border-radius:999px;
    background:#fff7ed;
    box-shadow:0 8px 22px rgba(249,115,22,.16);
}
.order-stage-content strong{
    display:block;
    color:#9a3412;
    font-size:13px;
    font-weight:950;
    letter-spacing:.045em;
}
.order-stage-content p{
    margin:3px 0 0;
    color:#475569;
    font-size:12.5px;
    font-weight:800;
    line-height:1.25;
    max-width:760px;
}
@media(max-width:760px){
    .order-stage-divider{
        grid-template-columns:1fr;
        gap:8px;
    }
    .order-stage-line{
        height:2px;
        background:linear-gradient(90deg,transparent,#f97316,transparent)!important;
    }
    .order-stage-content{
        border-radius:16px;
        padding:10px 12px;
    }
}



/* Prioridad urgente en órdenes y dashboard */
.priority-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:4px 9px;
    border-radius:999px;
    font-size:11px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.035em;
    white-space:nowrap;
}
.priority-badge.urgent{
    background:#dc2626;
    color:#fff;
    box-shadow:0 4px 12px rgba(220,38,38,.22);
}
.priority-badge.normal{
    background:#e2e8f0;
    color:#475569;
}
.priority-mini{
    display:inline-block;
    margin-top:4px;
    padding:2px 7px;
    border-radius:999px;
    background:#dc2626;
    color:#fff;
    font-size:10px;
    font-weight:950;
    letter-spacing:.04em;
}
.table tr.order-row-urgent td{
    background:#fff1f2!important;
    border-top:2px solid #dc2626!important;
    border-bottom:2px solid #fecdd3!important;
}
.table tr.order-row-urgent td:first-child{
    border-left:4px solid #dc2626!important;
}
.urgent-dashboard-card{
    border:2px solid #fecaca!important;
    background:linear-gradient(180deg,#fff7f7,#ffffff)!important;
}
.urgent-list{
    display:grid;
    gap:8px;
}
.urgent-item{
    display:block;
    padding:10px 12px;
    border-radius:14px;
    border:1px solid #fecaca;
    background:#fff;
    text-decoration:none;
    color:inherit;
}
.urgent-item:hover{
    border-color:#dc2626;
    box-shadow:0 8px 20px rgba(220,38,38,.12);
}
.urgent-item b{
    display:block;
    color:#991b1b;
    font-size:13.5px;
}
.urgent-item span{
    display:block;
    color:#334155;
    font-size:12.5px;
    font-weight:700;
    margin-top:2px;
}
.urgent-item small{
    display:block;
    color:#64748b;
    margin-top:4px;
}



/* Órdenes prometidas para hoy / vencidas */
.due-title-badge{
    display:inline-flex;
    vertical-align:middle;
    margin-left:8px;
    padding:4px 9px;
    border-radius:999px;
    background:#f59e0b;
    color:#111827;
    font-size:11px;
    font-weight:950;
    text-transform:uppercase;
}
.due-mini{
    display:inline-block;
    margin-top:4px;
    padding:2px 7px;
    border-radius:999px;
    background:#f59e0b;
    color:#111827;
    font-size:10px;
    font-weight:950;
    letter-spacing:.04em;
}
.due-date-badge{
    display:inline-flex;
    padding:4px 8px;
    border-radius:999px;
    background:#e2e8f0;
    color:#475569;
    font-size:11px;
    font-weight:900;
}
.due-date-badge.alert{
    background:#f59e0b;
    color:#111827;
    box-shadow:0 4px 12px rgba(245,158,11,.2);
}
.table tr.order-row-due td{
    background:#fffbeb!important;
    border-top:2px solid #f59e0b!important;
    border-bottom:2px solid #fde68a!important;
}
.table tr.order-row-due td:first-child{
    border-left:4px solid #f59e0b!important;
}
.table tr.order-row-urgent.order-row-due td{
    background:linear-gradient(90deg,#fff1f2,#fffbeb)!important;
}
.btn.warning{
    background:#f59e0b!important;
    border-color:#f59e0b!important;
    color:#111827!important;
}



/* Dashboard sin últimas órdenes: paneles reorganizados */
.dashboard-panels{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:18px;
    align-items:start;
}
.dashboard-panels > .card{
    min-height:100%;
}
.dashboard-panels > .card:nth-child(3){
    grid-column:1/-1;
}
.dashboard-wide-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:10px;
}
@media(max-width:980px){
    .dashboard-panels{
        grid-template-columns:1fr;
    }
    .dashboard-panels > .card:nth-child(3){
        grid-column:1;
    }
}



/* Ordenes: historial de notificaciones */



.check-line{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 12px;
    border:1px solid #dbe4f0;
    border-radius:12px;
    background:#f8fafc;
    font-weight:800;
    color:#334155;
}
.check-line input{
    width:auto!important;
}









.action-option-form{
    margin:0;
}
.action-option-button{
    width:100%;
    text-align:left;
    border:0;
    background:transparent;
    cursor:pointer;
    font:inherit;
}





/* WhatsApp: botón directo sin POST/redirect */
.wa-send-btn{
    width:100%;
    text-align:left;
    border:0;
    background:transparent;
    cursor:pointer;
    font:inherit;
}
.wa-send-btn:hover{
    background:#f1f5f9;
}



/* WhatsApp: enlace directo con target fijo */
.wa-direct-link{
    cursor:pointer;
}


/* Visor interno y miniaturas de fotos de órdenes */
.order-photo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  gap:14px;
  margin:12px 0;
  align-items:start;
}
.order-photo-item{
  border:1px solid #dbe4ee;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.07);
  max-width:100%;
}
.order-photo-link{
  display:block;
  width:100%;
  height:150px;
  overflow:hidden;
  background:#e2e8f0;
  cursor:zoom-in;
}
.order-photo-item img{
  width:100%!important;
  height:150px!important;
  max-width:100%!important;
  object-fit:cover!important;
  display:block!important;
  background:#e2e8f0;
}
.fmp-lightbox{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(2,6,23,.92);
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
}
.fmp-lightbox.open{display:flex}
.fmp-lightbox-panel{
  width:min(1180px,100%);
  height:min(88vh,900px);
  display:grid;
  grid-template-rows:auto 1fr auto;
  gap:12px;
}
.fmp-lightbox-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color:#fff;
}
.fmp-lightbox-title{font-weight:800}
.fmp-lightbox-close,.fmp-lightbox-prev,.fmp-lightbox-next{
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  cursor:pointer;
  font-size:24px;
  line-height:1;
  min-width:44px;
  height:44px;
}
.fmp-lightbox-body{
  position:relative;
  border-radius:22px;
  background:rgba(15,23,42,.7);
  border:1px solid rgba(255,255,255,.12);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.fmp-lightbox-img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}
.fmp-lightbox-prev,.fmp-lightbox-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(15,23,42,.68);
}
.fmp-lightbox-prev{left:14px}
.fmp-lightbox-next{right:14px}
.fmp-lightbox-caption{
  color:#e2e8f0;
  font-size:14px;
  text-align:center;
  min-height:20px;
}
body.fmp-lightbox-lock{overflow:hidden}
@media(max-width:700px){
  .order-photo-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
  .order-photo-link,.order-photo-item img{height:125px!important}
  .fmp-lightbox{padding:10px}
  .fmp-lightbox-panel{height:92vh}
  .fmp-lightbox-prev,.fmp-lightbox-next{min-width:38px;height:38px;font-size:20px}
}


/* Mejoras pagos múltiples y comprobantes */
.multi-payments{display:flex;flex-direction:column;gap:8px}
.payment-row{display:grid;grid-template-columns:1fr 150px;gap:8px;align-items:center}
.payment-row select,.payment-row input{width:100%}
.quote-print-number{font-size:18px;font-weight:900;margin:8px 0 12px;padding:10px 12px;border:1px solid #dbe4ee;border-radius:12px;background:#f8fbff}
.receipt-block{border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;margin:12px 0}
.receipt-table{width:100%;border-collapse:collapse;margin:12px 0}
.receipt-table th,.receipt-table td{border-bottom:1px solid #e5e7eb;padding:8px;text-align:left}
.receipt-table th{background:#f8fafc}
.receipt-table .right{text-align:right}
.receipt-totals{margin-left:auto;max-width:360px;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}
.receipt-totals div{display:flex;justify-content:space-between;gap:10px;padding:9px 12px;border-bottom:1px solid #e5e7eb}
.receipt-totals div:last-child{border-bottom:0;background:#f8fafc;font-size:16px}
.receipt-note{margin-top:14px;color:#475569}
.receipt-signatures{display:flex;justify-content:space-between;gap:20px;margin-top:42px;font-size:13px}
.ticket-section-title{margin:10px 0 5px;font-weight:900;color:#111}
@media(max-width:700px){.payment-row{grid-template-columns:1fr}.receipt-signatures{flex-direction:column}}



/* Corrección POS: zona de cobro más ancha y medios de pago legibles */
@media(min-width:1201px){
  .pos-shell{
    grid-template-columns:minmax(360px,.95fr) minmax(520px,1.35fr)!important;
    gap:20px!important;
  }
  .product-grid{
    grid-template-columns:repeat(auto-fill,minmax(155px,1fr))!important;
  }
}
.pos-cart{
  min-width:0;
}
.pos-cart .totals-box{
  gap:12px!important;
}
.pos-cart .totals-box>div{
  display:grid!important;
  grid-template-columns:135px minmax(0,1fr)!important;
  align-items:center!important;
  gap:12px!important;
}
.pos-cart .totals-box .grand{
  grid-template-columns:135px minmax(0,1fr)!important;
}
.pos-cart .totals-box .grand b,
.pos-cart .totals-box>div>b{
  text-align:right;
}
.pos-cart .multi-payments{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
}
.pos-cart .payment-row{
  width:100%!important;
  display:grid!important;
  grid-template-columns:minmax(190px,1fr) minmax(120px,160px)!important;
  gap:8px!important;
  align-items:center!important;
}
.pos-cart .payment-row select,
.pos-cart .payment-row input{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:42px!important;
  border:0!important;
  border-radius:12px!important;
  padding:9px 11px!important;
  font-weight:900!important;
  font-size:14px!important;
}
.pos-cart #addPaymentMethod{
  margin-top:8px!important;
  width:100%!important;
  min-height:38px!important;
  white-space:normal!important;
}
.pos-cart .pos-actions{
  grid-template-columns:1fr 1fr!important;
}
@media(max-width:1200px){
  .pos-cart .totals-box>div,
  .pos-cart .totals-box .grand{
    grid-template-columns:150px minmax(0,1fr)!important;
  }
  .pos-cart .payment-row{
    grid-template-columns:minmax(220px,1fr) minmax(130px,170px)!important;
  }
}
@media(max-width:700px){
  .pos-cart .totals-box>div,
  .pos-cart .totals-box .grand{
    grid-template-columns:1fr!important;
    gap:6px!important;
  }
  .pos-cart .totals-box .grand b,
  .pos-cart .totals-box>div>b{
    text-align:left!important;
  }
  .pos-cart .payment-row{
    grid-template-columns:1fr!important;
  }
  .pos-cart .pos-actions{
    grid-template-columns:1fr!important;
  }
}


/* POS: productos contenidos con scroll interno */
@media(min-width:1201px){
  .pos-shell{
    align-items:start!important;
  }
  .pos-products{
    max-height:calc(100vh - 118px)!important;
    min-height:0!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
  }
  .pos-products .pos-head,
  .pos-products .pos-search-row,
  .pos-products .pos-cats{
    flex:0 0 auto!important;
  }
  .pos-products .product-grid{
    flex:1 1 auto!important;
    min-height:260px!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-right:8px!important;
    overscroll-behavior:contain!important;
  }
  .pos-cart{
    max-height:calc(100vh - 118px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
  }
}
@media(max-width:1200px){
  .pos-products .product-grid{
    max-height:520px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-right:8px!important;
  }
}
.pos-products .product-grid::-webkit-scrollbar,
.pos-cart::-webkit-scrollbar{
  width:9px;
}
.pos-products .product-grid::-webkit-scrollbar-track,
.pos-cart::-webkit-scrollbar-track{
  background:#eef3fb;
  border-radius:999px;
}
.pos-products .product-grid::-webkit-scrollbar-thumb,
.pos-cart::-webkit-scrollbar-thumb{
  background:#b9c7d8;
  border-radius:999px;
}
.pos-products .product-grid::-webkit-scrollbar-thumb:hover,
.pos-cart::-webkit-scrollbar-thumb:hover{
  background:#8fa4bc;
}


/* Ventas: tabla contenida */
.table-scroll{
  width:100%;
  overflow:auto;
  max-height:68vh;
  border-radius:14px;
}
.table-scroll .table{
  min-width:980px;
}


/* Paginación de ventas */
.pagination-bar{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 14px;
}
.pagination-info{
  font-weight:900;
  color:#334155;
  padding:6px 10px;
}
.btn.disabled{
  opacity:.45;
  pointer-events:none;
}


/* POS: búsqueda de cliente por DNI */
.pos-client-box select,
.pos-client-box input{
  width:100%;
}
.client-dni-lookup{
  margin-top:8px;
}
.client-dni-lookup .inline-lookup{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
}
.client-lookup-status{
  margin-top:8px;
  font-size:13px;
  color:#64748b;
  font-weight:700;
  line-height:1.35;
}
.text-danger{
  color:#b91c1c;
}
@media(max-width:700px){
  .client-dni-lookup .inline-lookup{
    grid-template-columns:1fr;
  }
}


/* POS: sin categorías visibles y sin autoagregado por escaneo */
.pos-cats{
  display:none!important;
}
.pos-products .pos-search-row{
  margin-bottom:14px!important;
}
.pos-products .product-grid{
  border-top:1px solid #e2e8f0;
  padding-top:14px;
}
.product-tile{
  position:relative;
}
.product-tile::after{
  content:"Agregar";
  position:absolute;
  right:10px;
  bottom:10px;
  font-size:11px;
  font-weight:950;
  background:#eaf3ff;
  color:#0d47a1;
  border-radius:999px;
  padding:4px 8px;
}


/* Rendimiento: barras de paginación reutilizables */
.pagination-bar{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0;
}
.pagination-info{
  font-weight:900;
  color:#334155;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:999px;
  padding:7px 11px;
}


/* Inicio más operativo */
.dashboard-main-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(300px,.65fr);
  gap:18px;
  align-items:start;
}
.dashboard-action-list{
  display:grid;
  gap:10px;
}
.dashboard-action{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:3px 10px;
  align-items:center;
  text-decoration:none;
  color:inherit;
  border:1px solid var(--line);
  background:#f8fbff;
  border-radius:16px;
  padding:12px;
  transition:.16s ease;
}
.dashboard-action:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(15,23,42,.08);
}
.dashboard-action span{
  grid-row:1/3;
  width:38px;
  height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#eaf3ff;
}
.dashboard-action b{
  font-size:14px;
}
.dashboard-action small{
  color:var(--muted);
}
@media(max-width:980px){
  .dashboard-main-grid{grid-template-columns:1fr}
}


/* POS: saldo a cubrir y notas de crédito */
.pos-cart .coverage-row{
  border-top:1px solid rgba(255,255,255,.14);
  padding-top:10px;
}
.pos-cart .coverage-row b{
  color:#ffb020!important;
}
.pos-cart .coverage-row.covered b{
  color:#22c55e!important;
}
.pos-cart .payment-row{
  grid-template-columns:minmax(190px,1fr) minmax(120px,150px)!important;
}
.pos-cart .payment-row .paymentRef{
  grid-column:1 / -1;
  min-height:38px!important;
  border:0!important;
  border-radius:12px!important;
  padding:9px 11px!important;
  font-weight:800!important;
}
@media(max-width:700px){
  .pos-cart .payment-row{grid-template-columns:1fr!important}
  .pos-cart .payment-row .paymentRef{grid-column:auto}
}


/* Notas de crédito visibles y comprobante A4 */
.client-credit-notice{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid #bbf7d0;
  background:#f0fdf4;
  color:#14532d;
  border-radius:14px;
  font-size:13px;
  line-height:1.35;
}
.a4-stage{
  background:#eef2f7;
  padding:14px;
  overflow:auto;
}
.a4-credit-note{
  width:210mm;
  min-height:297mm;
  margin:0 auto;
  background:#fff;
  color:#111827;
  padding:10mm 12mm;
  box-shadow:0 10px 28px rgba(15,23,42,.16);
  font-family:Arial,Helvetica,sans-serif;
  font-size:11px;
  line-height:1.25;
}
.a4-cn-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid #111827;
  padding-bottom:8px;
  margin-bottom:10px;
}
.a4-cn-head img{
  max-width:42mm;
  max-height:16mm;
  object-fit:contain;
  display:block;
  margin-bottom:4px;
}
.a4-cn-head h1{
  margin:0 0 2px;
  font-size:18px;
  line-height:1.12;
}
.a4-cn-head p{
  margin:1px 0;
  color:#4b5563;
  font-size:10px;
}
.a4-cn-number{
  min-width:58mm;
  text-align:right;
  border:1px solid #111827;
  padding:7px 9px;
  align-self:flex-start;
}
.a4-cn-number b{
  display:block;
  font-size:14px;
  margin-bottom:4px;
}
.a4-cn-number span{
  display:block;
  font-size:19px;
  font-weight:900;
  color:#f97316;
}
.a4-cn-number small{
  display:block;
  margin-top:4px;
  color:#4b5563;
}
.a4-cn-info{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid #d1d5db;
  margin-bottom:8px;
}
.a4-cn-info div{
  padding:5px 6px;
  border-right:1px solid #d1d5db;
}
.a4-cn-info div:last-child{border-right:0}
.a4-cn-info b{
  display:block;
  font-size:8.5px;
  text-transform:uppercase;
  color:#6b7280;
  margin-bottom:2px;
}
.a4-cn-info span{
  font-weight:800;
}
.a4-cn-creditbox{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  margin:8px 0 10px;
}
.a4-cn-creditbox div{
  border:1px solid #fed7aa;
  background:#fff7ed;
  border-radius:8px;
  padding:7px 8px;
}
.a4-cn-creditbox span{
  display:block;
  font-size:8.5px;
  color:#9a3412;
  text-transform:uppercase;
  font-weight:900;
  margin-bottom:3px;
}
.a4-cn-creditbox b{
  font-size:15px;
}
.a4-cn-table{
  width:100%;
  border-collapse:collapse;
  margin-top:6px;
}
.a4-cn-table th{
  background:#111827;
  color:#fff;
  padding:5px 6px;
  font-size:9px;
  text-align:left;
}
.a4-cn-table td{
  border-bottom:1px solid #e5e7eb;
  padding:5px 6px;
  vertical-align:top;
}
.a4-cn-table th:nth-child(2),.a4-cn-table td:nth-child(2){text-align:center}
.a4-cn-table th:nth-child(3),.a4-cn-table td:nth-child(3),
.a4-cn-table th:nth-child(4),.a4-cn-table td:nth-child(4){text-align:right}
.a4-cn-total{
  margin:8px 0 8px auto;
  max-width:70mm;
  display:flex;
  justify-content:space-between;
  gap:14px;
  border-top:2px solid #111827;
  padding-top:5px;
  font-size:15px;
  font-weight:900;
}
.a4-cn-total b{color:#f97316}
.a4-cn-reason{
  border:1px solid #e5e7eb;
  background:#f9fafb;
  border-radius:8px;
  padding:7px 8px;
  min-height:18mm;
}
.a4-cn-footer{
  margin-top:14mm;
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:#4b5563;
  font-size:10px;
}
.a4-cn-footer p{
  max-width:110mm;
  margin:0;
}
@media print{
  @page{size:A4;margin:8mm}
  body{background:#fff!important}
  .no-print,.sidebar,.topbar,.toolbar{display:none!important}
  .main{margin:0!important;padding:0!important}
  .a4-stage{background:#fff;padding:0}
  .a4-credit-note{box-shadow:none;margin:0;width:auto;min-height:auto;padding:0}
}


/* POS: aplicación automática de notas de crédito */
.pos-cart .payment-row .credit-note-hint{
  grid-column:1 / -1;
  font-size:12px;
  line-height:1.35;
  color:#dbeafe;
  background:rgba(37,99,235,.16);
  border:1px solid rgba(147,197,253,.35);
  border-radius:12px;
  padding:8px 10px;
}
.pos-cart .payment-row .credit-note-hint b{
  color:#fff;
}


/* Flujo profesional de órdenes de reparación */
.workflow-hero{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  background:linear-gradient(135deg,#ffffff,#f8fbff);
  border:1px solid #dce7f2;
}
.workflow-hero h2{margin:4px 0 8px}
.workflow-hero p{margin:0;color:#64748b;line-height:1.5}
.workflow-card .workflow-context,
.workflow-status-card .workflow-current,
.workflow-context{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.workflow-context div{
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:12px;
  background:#f8fafc;
}
.workflow-context b{
  display:block;
  color:#64748b;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:5px;
}
.workflow-context span{font-weight:900;color:#0f172a}
.workflow-form textarea{min-height:130px}
.workflow-status-card{
  border:1px solid #dbe7f2;
  background:#f8fbff;
  border-radius:20px;
  padding:14px;
  margin:14px 0;
}
.workflow-steps{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.workflow-steps span{
  border:1px solid #dbe7f2;
  background:#fff;
  color:#64748b;
  border-radius:999px;
  padding:7px 11px;
  font-size:12px;
  font-weight:900;
}
.workflow-steps span.active{
  background:#fff7ed;
  color:#c2410c;
  border-color:#fed7aa;
}
.workflow-current{
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  margin:0!important;
}
.workflow-current b{font-size:15px}
.workflow-current p{margin:3px 0 0;color:#64748b}
.workflow-current-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.workflow-decision-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
@media(max-width:900px){
  .workflow-hero,.workflow-current{display:block!important}
  .workflow-context{grid-template-columns:1fr!important}
  .workflow-current-actions{justify-content:flex-start;margin-top:12px}
}


/* Acciones prolijas en listado de órdenes */
.order-actions-cell{
  min-width:150px;
  position:relative;
}
.row-action-dropdown{
  position:relative;
  display:inline-block;
}
.row-action-dropdown summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
}
.row-action-dropdown summary::-webkit-details-marker{
  display:none;
}
.row-action-menu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  width:230px;
  background:#fff;
  border:1px solid #dbe5f0;
  border-radius:16px;
  box-shadow:0 22px 48px rgba(15,23,42,.18);
  padding:8px;
  z-index:50;
}
.row-action-menu a,
.row-action-menu button{
  width:100%;
  display:block;
  text-align:left;
  border:0;
  background:transparent;
  color:#172033;
  font-weight:850;
  font-size:13px;
  padding:10px 11px;
  border-radius:11px;
  cursor:pointer;
  font-family:inherit;
}
.row-action-menu a:hover,
.row-action-menu button:hover{
  background:#f1f5f9;
}
.row-action-menu a.primary{
  background:#fff7ed;
  color:#c2410c;
}
.row-action-menu a.primary:hover{
  background:#ffedd5;
}
.row-action-separator{
  height:1px;
  background:#e5eaf1;
  margin:7px 4px;
}
.row-action-delete input{
  width:100%;
  border:1px solid #f3c2c7;
  border-radius:10px;
  padding:8px 9px;
  margin:3px 0 7px;
  font-size:12px;
}
.row-action-delete button.danger{
  color:#b91c1c;
  background:#fff1f2;
}
.row-action-delete button.danger:hover{
  background:#ffe4e6;
}
@media(max-width:900px){
  .row-action-menu{
    right:auto;
    left:0;
  }
}


/* Fix acciones: desplegable controlado, sin submit automático */
.row-action-dropdown{
  position:relative;
  display:inline-block;
}
.row-action-toggle{
  cursor:pointer;
}
.row-action-menu[hidden]{
  display:none!important;
}
.row-action-dropdown.is-open .row-action-menu{
  display:block;
}
.row-action-delete-trigger{
  color:#b91c1c!important;
  background:#fff1f2!important;
}
.row-action-delete[hidden]{
  display:none!important;
}


/* Acciones de órdenes como select claro */
.order-actions-cell{
  min-width:190px;
}
.order-action-select{
  width:100%;
  max-width:210px;
  border:1px solid #cfd9e6;
  background:#ffffff;
  color:#0f172a;
  border-radius:13px;
  padding:9px 12px;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(15,23,42,.05);
}
.order-action-select:focus{
  outline:none;
  border-color:#ff8500;
  box-shadow:0 0 0 4px rgba(255,133,0,.13);
}


/* Select de acciones reutilizable para tablas */
.row-select-actions-cell{
  min-width:190px;
}
.row-action-select{
  width:100%;
  max-width:215px;
  border:1px solid #cfd9e6;
  background:#ffffff;
  color:#0f172a;
  border-radius:13px;
  padding:9px 12px;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(15,23,42,.05);
}
.row-action-select:focus{
  outline:none;
  border-color:#ff8500;
  box-shadow:0 0 0 4px rgba(255,133,0,.13);
}


/* Visitas a domicilio - diseño productivo */
.visits-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  border:1px solid #dce7f2;
}
.visits-hero h2{
  margin:4px 0 8px;
  font-size:28px;
}
.visits-hero p{
  color:#64748b;
  max-width:760px;
  line-height:1.5;
  margin:0;
}
.visits-hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.visit-metrics .metric.compact{
  min-height:120px;
}
.visits-today-card{
  border:1px solid #dbeafe;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.visit-route-list{
  display:grid;
  gap:12px;
}
.visit-route-item{
  display:grid;
  grid-template-columns:82px minmax(0,1fr) 190px;
  gap:14px;
  align-items:center;
  border:1px solid #e2e8f0;
  background:#fff;
  border-radius:18px;
  padding:13px;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}
.visit-hour{
  background:#fff7ed;
  color:#c2410c;
  border:1px solid #fed7aa;
  border-radius:15px;
  padding:10px;
  text-align:center;
  font-weight:950;
  font-size:18px;
}
.visit-main b{
  display:block;
  font-size:15px;
  color:#0f172a;
}
.visit-main span{
  display:block;
  margin-top:4px;
  color:#334155;
  font-weight:750;
}
.visit-main small{
  display:block;
  margin-top:4px;
  color:#64748b;
}
.visit-side{
  display:grid;
  justify-items:end;
  gap:5px;
}
.visit-side small{
  color:#64748b;
  font-weight:800;
}
.visit-balance{
  color:#b45309!important;
}
.visit-create{
  border:1px solid #e2e8f0;
  border-radius:18px;
  padding:14px;
  background:#fbfdff;
}
.visit-create summary{
  list-style:none;
  display:inline-flex;
  cursor:pointer;
}
.visit-create summary::-webkit-details-marker{
  display:none;
}
.visit-create[open] summary{
  margin-bottom:16px;
}
.visit-filters{
  margin-bottom:14px;
}
.visits-table td{
  vertical-align:top;
}
.visit-late-row{
  background:#fff7ed;
}
.visit-action-select{
  width:100%;
  min-width:155px;
  border:1px solid #cfd9e6;
  background:#ffffff;
  color:#0f172a;
  border-radius:13px;
  padding:9px 12px;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(15,23,42,.05);
}
.visit-action-select:focus{
  outline:none;
  border-color:#ff8500;
  box-shadow:0 0 0 4px rgba(255,133,0,.13);
}
@media(max-width:900px){
  .visits-hero{display:block}
  .visits-hero-actions{justify-content:flex-start;margin-top:14px}
  .visit-route-item{grid-template-columns:1fr}
  .visit-side{justify-items:start}
}





/* Visitas: alta por DNI y cliente opcional */
.visit-dni-form{
  margin-top:6px;
}
.visit-client-result{
  border:1px dashed #cbd5e1;
  background:#f8fafc;
  border-radius:14px;
  padding:12px 14px;
  color:#475569;
  font-weight:750;
}
.visit-client-result.found{
  border-color:#bbf7d0;
  background:#f0fdf4;
  color:#166534;
}
.visit-client-result.warning{
  border-color:#fed7aa;
  background:#fff7ed;
  color:#9a3412;
}
.visit-client-mode-box{
  border:1px solid #dbeafe;
  background:#eff6ff;
  border-radius:16px;
  padding:12px 14px;
}
.visit-mode-options{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:8px;
}
.visit-mode-options label{
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid #dbeafe;
  border-radius:999px;
  padding:8px 12px;
  font-weight:850;
  color:#1e3a8a;
}
.visit-mode-options input{
  width:auto!important;
}


/* Garantías de órdenes */
.warranty-card,.warranty-result-card{
  border-left:5px solid #2563eb;
}
.warranty-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:7px 11px;
  font-weight:950;
  font-size:12px;
  background:#e2e8f0;
  color:#334155;
  white-space:nowrap;
}
.warranty-badge.active{background:#dcfce7;color:#166534}
.warranty-badge.expired{background:#fee2e2;color:#991b1b}
.warranty-badge.warning{background:#fef3c7;color:#92400e}
.warranty-badge.neutral{background:#e2e8f0;color:#334155}
.warranty-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:10px;
  margin:12px 0;
}
.warranty-grid>div{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:11px;
}
.warranty-grid b{
  display:block;
  font-size:12px;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.warranty-grid span{
  display:block;
  font-weight:900;
  margin-top:4px;
}
.warranty-mini{
  display:block;
  margin-top:5px;
  font-weight:900;
  font-size:12px;
}
.warranty-mini.active{color:#166534}
.warranty-mini.expired{color:#991b1b}
.warranty-mini.warning{color:#92400e}
.warranty-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.warranty-results{
  display:grid;
  gap:14px;
  margin-top:14px;
}


/* Ficha profesional de orden */
.order-view-page{
  display:grid;
  gap:18px;
}
.order-view-hero{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  padding:26px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
}
.order-view-title h2{
  margin:4px 0 10px;
  font-size:30px;
}
.order-view-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.order-view-top-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.order-view-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(340px,.65fr);
  gap:18px;
  align-items:start;
}
.order-view-main,
.order-view-side{
  display:grid;
  gap:18px;
}
.order-view-side{
  position:sticky;
  top:18px;
}
.order-section-card{
  padding:20px;
}
.info-grid-pro{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:10px;
}
.info-grid-pro>div{
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:14px;
  padding:12px;
}
.info-grid-pro b,
.money-summary-pro span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.035em;
}
.info-grid-pro span{
  display:block;
  color:#111827;
  font-weight:850;
  margin-top:4px;
  word-break:break-word;
}
.order-text-blocks{
  display:grid;
  gap:12px;
}
.order-text-blocks>div{
  border:1px solid #e2e8f0;
  background:#fff;
  border-radius:14px;
  padding:14px;
}
.order-text-blocks b{
  display:block;
  color:#1e293b;
  margin-bottom:6px;
}
.order-text-blocks p{
  margin:0;
  line-height:1.55;
  color:#475569;
}
.workflow-card-clean .workflow-current{
  margin-top:14px;
  border-top:1px solid #e2e8f0;
  padding-top:14px;
}
.compact-warranty-grid{
  grid-template-columns:1fr;
}
.compact-warranty-grid>div{
  padding:12px!important;
}
.money-summary-pro{
  display:grid;
  gap:10px;
  margin-bottom:14px;
}
.money-summary-pro>div{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:14px;
  padding:12px;
}
.money-summary-pro b{
  font-size:16px;
  color:#111827;
}
.clean-action-bar{
  display:flex;
  flex-direction:column;
  align-items:stretch;
}
.clean-action-bar .btn,
.clean-action-bar details{
  width:100%;
}
.clean-action-bar summary.btn{
  width:100%;
  box-sizing:border-box;
}
.danger-zone{
  margin-top:12px;
}
@media(max-width:1100px){
  .order-view-grid{
    grid-template-columns:1fr;
  }
  .order-view-side{
    position:static;
  }
}
@media(max-width:720px){
  .order-view-hero{
    flex-direction:column;
  }
  .order-view-top-actions{
    justify-content:flex-start;
  }
}


/* Inicio profesional definitivo */
.dashboard-pro-hero{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:22px;
  padding:28px;
  background:
    radial-gradient(circle at right top,rgba(255,122,0,.13),transparent 30%),
    linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
}
.dashboard-pro-hero h2{
  margin:6px 0 8px;
  font-size:34px;
}
.dashboard-pro-hero p{
  margin:0;
  color:#64748b;
  font-size:16px;
}
.dashboard-date-card{
  min-width:230px;
  border:1px solid #dbe7f5;
  background:#fff;
  border-radius:22px;
  padding:18px;
  box-shadow:0 15px 35px rgba(13,71,161,.08);
  text-align:right;
}
.dashboard-date-card span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.dashboard-date-card b{
  display:block;
  margin-top:4px;
  color:#172033;
}
.dashboard-date-card strong{
  display:block;
  margin-top:8px;
  font-size:34px;
  line-height:1;
  color:#0d47a1;
}
.dashboard-metric-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.dashboard-pro-metric{
  min-height:118px;
  display:flex;
  align-items:center;
  gap:14px;
}
.dashboard-pro-metric .metric-icon{
  flex:0 0 48px;
}
.dashboard-pro-metric .num{
  font-size:30px;
  margin-top:3px;
}
.dashboard-pro-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  align-items:start;
}
.dashboard-panel-pro{
  min-height:0;
}
.dashboard-list-pro{
  display:grid;
  gap:10px;
}
.dashboard-row-pro{
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  border:1px solid #dfe8f4;
  background:#f8fbff;
  border-radius:16px;
  padding:13px;
  color:inherit;
  transition:.16s ease;
}
.dashboard-row-pro:hover{
  transform:translateY(-1px);
  background:#fff;
  box-shadow:0 12px 26px rgba(15,23,42,.08);
}
.dashboard-row-pro .row-icon{
  width:46px;
  height:46px;
  border-radius:15px;
  display:grid;
  place-items:center;
  background:#eaf3ff;
  font-size:20px;
}
.dashboard-row-pro b{
  display:block;
  color:#172033;
  margin-bottom:3px;
}
.dashboard-row-pro small{
  display:block;
  color:#64748b;
  line-height:1.35;
}
.dashboard-row-pro em{
  font-style:normal;
  font-weight:950;
  font-size:12px;
  color:#0d47a1;
  background:#eaf3ff;
  border-radius:999px;
  padding:6px 9px;
  white-space:nowrap;
}
.visits-dashboard-list .dashboard-row-pro em{
  color:#166534;
  background:#dcfce7;
}
@media(max-width:1200px){
  .dashboard-metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .dashboard-pro-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .dashboard-pro-hero{
    flex-direction:column;
    align-items:stretch;
  }
  .dashboard-date-card{
    text-align:left;
    min-width:0;
  }
  .dashboard-metric-grid{
    grid-template-columns:1fr;
  }
  .dashboard-row-pro{
    grid-template-columns:40px minmax(0,1fr);
  }
  .dashboard-row-pro em{
    grid-column:2;
    justify-self:start;
  }
}


/* POS profesional */
.pos-pro-shell{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(420px,.75fr);
  gap:20px;
  align-items:start;
}
.pos-pro-products,
.pos-pro-cart{
  padding:22px;
}
.pos-pro-head{
  align-items:flex-start;
  gap:18px;
}
.pos-pro-head h2,
.pos-cart-header h2{
  margin:4px 0 4px;
  font-size:28px;
}
.pos-pro-tools{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.pos-pro-search{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  margin:18px 0 16px!important;
}
.pos-search-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid #dbe7f5;
  background:#fff;
  border-radius:17px;
  padding:0 14px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.pos-search-wrap span{
  opacity:.75;
}
.pos-search-wrap .pos-search{
  border:0!important;
  box-shadow:none!important;
  padding:15px 0!important;
  background:transparent!important;
}
.pos-pro-product-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:12px!important;
  max-height:calc(100vh - 285px);
  overflow:auto;
  padding:4px 4px 10px;
}
.pos-pro-product{
  text-align:left;
  min-height:145px;
  border:1px solid #dfe8f4!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;
  border-radius:18px!important;
  padding:15px!important;
  display:grid!important;
  grid-template-rows:auto auto 1fr auto;
  gap:7px;
  position:relative;
  box-shadow:none!important;
  transition:.16s ease;
}
.pos-pro-product:hover{
  transform:translateY(-2px);
  border-color:#b9d2f2!important;
  box-shadow:0 14px 32px rgba(13,71,161,.10)!important;
}
.pos-pro-product .prod-title{
  font-size:15px;
  font-weight:950;
  color:#172033;
  line-height:1.25;
}
.pos-pro-product .prod-meta{
  color:#64748b;
  font-size:12px;
  line-height:1.35;
}
.pos-pro-product .prod-price{
  align-self:end;
  font-size:20px;
  font-weight:950;
  color:#0d47a1;
}
.pos-pro-product .prod-stock{
  justify-self:start;
  font-size:12px;
  font-weight:900;
  color:#166534;
  background:#dcfce7;
  border-radius:999px;
  padding:5px 8px;
}
.pos-pro-product .prod-stock.low{
  color:#991b1b;
  background:#fee2e2;
}
.pos-pro-cart{
  position:sticky;
  top:18px;
}
.pos-cart-header{
  margin-bottom:14px!important;
}
.pos-pro-client{
  background:#f8fbff;
  border:1px solid #dfe8f4;
  border-radius:17px;
  padding:14px;
  margin-bottom:14px;
}
.pos-pro-client select,
.pos-pro-client input{
  border-radius:13px!important;
}
.pos-pro-cart-list{
  max-height:31vh;
  min-height:150px;
  overflow:auto;
  border:1px dashed #d7e3f2;
  border-radius:18px;
  background:#fbfdff;
  padding:10px;
  margin-bottom:14px;
}
.pos-pro-cart-list .cart-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) 104px 94px 92px 32px;
  gap:8px;
  align-items:center;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:15px;
  padding:10px;
  margin-bottom:8px;
}
.pos-pro-cart-list .cart-info b{
  display:block;
  font-size:13px;
  line-height:1.25;
}
.pos-pro-cart-list .cart-info small{
  color:#64748b;
}
.pos-pro-cart-list .qty-controls{
  display:flex;
  align-items:center;
  gap:4px;
}
.pos-pro-cart-list .qty-controls button{
  width:28px;
  height:28px;
  border:0;
  border-radius:9px;
  background:#eaf3ff;
  color:#0d47a1;
  font-weight:950;
}
.pos-pro-cart-list .qty-controls input{
  width:38px;
  padding:7px 4px;
  border:1px solid #dbe7f5;
  border-radius:9px;
  text-align:center;
}
.pos-pro-cart-list .price-edit{
  width:94px;
  padding:8px;
  border:1px solid #dbe7f5;
  border-radius:10px;
  text-align:right;
}
.pos-pro-cart-list .line-total{
  text-align:right;
  color:#0d47a1;
}
.pos-pro-cart-list .remove-item{
  width:30px;
  height:30px;
  border:0;
  border-radius:10px;
  background:#fee2e2;
  color:#991b1b;
  font-weight:950;
}
.pos-pro-totals{
  border:1px solid #dfe8f4;
  background:#fff;
  border-radius:20px;
  padding:14px;
}
.pos-pro-totals .total-line,
.payment-summary-grid>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 0;
  border-bottom:1px solid #edf2f7;
}
.pos-pro-totals .total-line span,
.payment-summary-grid span{
  color:#64748b;
  font-weight:900;
}
.pos-pro-totals .total-line b,
.payment-summary-grid b{
  color:#172033;
  font-size:16px;
}
.pos-pro-totals .grand{
  margin:4px -4px 12px;
  padding:13px 12px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,#0d47a1,#1565c0);
  color:#fff;
}
.pos-pro-totals .grand span,
.pos-pro-totals .grand b{
  color:#fff;
}
.pos-pro-totals .grand b{
  font-size:27px;
}
.discount-line input{
  max-width:150px;
  text-align:right;
}
.payments-panel{
  border:1px solid #e2e8f0;
  border-radius:17px;
  background:#f8fbff;
  padding:12px;
  margin:10px 0;
}
.payments-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}
.payments-title span{
  color:#172033;
  font-weight:950;
}
.pos-pro-payments{
  display:grid;
  gap:8px;
}
.pos-pro-payment-row{
  display:grid!important;
  grid-template-columns:150px minmax(145px,1fr);
  gap:8px;
  align-items:start;
}
.pos-pro-payment-row select,
.pos-pro-payment-row input{
  width:100%;
  border:1px solid #dbe7f5;
  border-radius:12px;
  padding:11px 10px;
  background:#fff;
  font:inherit;
}
.pos-pro-payment-row .paymentAmount{
  text-align:right;
  font-weight:950;
  font-size:16px;
}
.pos-pro-payment-row .paymentRef{
  grid-column:1/-1;
}
.pos-pro-payment-row .credit-note-hint{
  grid-column:1/-1;
  color:#64748b;
  font-size:12px;
  line-height:1.35;
  background:#fff;
  border-radius:10px;
  padding:8px;
}
.payment-summary-grid{
  display:grid;
  grid-template-columns:1fr;
}
.payment-summary-grid>div:last-child,
.pos-pro-totals .total-line:last-child{
  border-bottom:0;
}
.coverage-row.covered b{
  color:#166534;
}
.pos-pro-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px;
}
.pos-pro-actions .btn.big{
  width:100%;
  min-height:54px;
  font-size:16px;
}
@media(max-width:1250px){
  .pos-pro-shell{
    grid-template-columns:1fr;
  }
  .pos-pro-cart{
    position:static;
  }
  .pos-pro-product-grid{
    max-height:none;
  }
}
@media(max-width:760px){
  .pos-pro-tools{
    justify-content:flex-start;
  }
  .pos-pro-search{
    grid-template-columns:1fr;
  }
  .pos-pro-cart-list .cart-item{
    grid-template-columns:1fr;
  }
  .pos-pro-cart-list .line-total,
  .pos-pro-cart-list .price-edit{
    text-align:left;
    width:100%;
  }
  .pos-pro-payment-row{
    grid-template-columns:1fr;
  }
  .pos-pro-actions{
    grid-template-columns:1fr;
  }
}


/* POS corrección final: caja sobria, legible y proporcional */
.pos-pro-shell{
  display:grid!important;
  grid-template-columns:minmax(620px,1fr) 460px!important;
  gap:18px!important;
  align-items:start!important;
}
.pos-pro-products,
.pos-pro-cart{
  background:#fff!important;
  border:1px solid #dfe8f4!important;
  border-radius:20px!important;
  box-shadow:0 14px 34px rgba(15,23,42,.07)!important;
  padding:18px!important;
}
.pos-pro-head,
.pos-cart-header{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-bottom:12px!important;
}
.pos-pro-head h2,
.pos-cart-header h2{
  font-size:24px!important;
  line-height:1.15!important;
  margin:2px 0 4px!important;
}
.pos-pro-head p,
.pos-cart-header p{
  font-size:14px!important;
  line-height:1.35!important;
  margin:0!important;
}
.pos-pro-tools{
  display:flex!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
}
.pos-pro-tools .btn{
  padding:8px 10px!important;
  font-size:12px!important;
  border-radius:11px!important;
}
.pos-pro-search{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 86px!important;
  gap:10px!important;
  margin:14px 0!important;
}
.pos-search-wrap{
  height:48px!important;
  border:1px solid #cfdbea!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.pos-search-wrap .pos-search{
  height:46px!important;
  font-size:15px!important;
  padding:0!important;
}
.pos-pro-product-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;
  gap:10px!important;
  max-height:calc(100vh - 270px)!important;
  overflow:auto!important;
  padding:2px 2px 8px!important;
}
.pos-pro-product{
  min-height:118px!important;
  border:1px solid #dfe8f4!important;
  border-radius:14px!important;
  background:#fff!important;
  padding:12px!important;
  gap:5px!important;
  box-shadow:none!important;
}
.pos-pro-product:hover{
  transform:none!important;
  border-color:#1565c0!important;
  box-shadow:0 8px 18px rgba(13,71,161,.10)!important;
}
.pos-pro-product .prod-title{
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:900!important;
}
.pos-pro-product .prod-meta{
  font-size:12px!important;
  line-height:1.25!important;
}
.pos-pro-product .prod-price{
  font-size:18px!important;
  font-weight:950!important;
}
.pos-pro-product .prod-stock{
  font-size:11px!important;
  padding:4px 7px!important;
}
.pos-pro-cart{
  position:sticky!important;
  top:16px!important;
}
.pos-pro-client{
  border:1px solid #dfe8f4!important;
  border-radius:14px!important;
  background:#f8fafc!important;
  padding:12px!important;
  margin-bottom:12px!important;
}
.pos-pro-client label,
.payments-title span{
  font-size:14px!important;
  line-height:1.25!important;
  margin-bottom:7px!important;
}
.pos-pro-client select,
.pos-pro-client input,
.pos-pro-payment-row select,
.pos-pro-payment-row input,
.discount-line input{
  height:44px!important;
  min-height:44px!important;
  font-size:15px!important;
  line-height:1.2!important;
  padding:9px 11px!important;
  border:1px solid #cfdbea!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#172033!important;
  box-shadow:none!important;
}
.pos-pro-cart-list{
  min-height:130px!important;
  max-height:270px!important;
  border:1px solid #dfe8f4!important;
  border-radius:14px!important;
  background:#fbfdff!important;
  padding:8px!important;
  margin-bottom:12px!important;
}
.pos-pro-cart-list .empty-cart{
  padding:28px 12px!important;
  text-align:center!important;
  color:#64748b!important;
  font-size:14px!important;
}
.pos-pro-cart-list .cart-item{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 94px 104px 86px 30px!important;
  gap:7px!important;
  align-items:center!important;
  background:#fff!important;
  border:1px solid #e2e8f0!important;
  border-radius:12px!important;
  padding:9px!important;
  margin-bottom:7px!important;
}
.pos-pro-cart-list .cart-info b{
  font-size:13px!important;
  line-height:1.2!important;
}
.pos-pro-cart-list .cart-info small{
  font-size:11px!important;
}
.pos-pro-cart-list .qty-controls button{
  width:26px!important;
  height:26px!important;
  border-radius:8px!important;
}
.pos-pro-cart-list .qty-controls input{
  width:34px!important;
  height:30px!important;
  padding:4px!important;
}
.pos-pro-cart-list .price-edit{
  width:104px!important;
  height:34px!important;
  padding:6px!important;
  font-size:13px!important;
}
.pos-pro-cart-list .line-total{
  font-size:13px!important;
}
.pos-pro-totals{
  border:1px solid #dfe8f4!important;
  border-radius:16px!important;
  background:#fff!important;
  padding:12px!important;
}
.pos-pro-totals .total-line,
.payment-summary-grid>div{
  min-height:42px!important;
  padding:8px 0!important;
}
.pos-pro-totals .total-line span,
.payment-summary-grid span{
  font-size:14px!important;
  line-height:1.2!important;
}
.pos-pro-totals .total-line b,
.payment-summary-grid b{
  font-size:16px!important;
}
.pos-pro-totals .grand{
  margin:4px 0 10px!important;
  padding:13px!important;
  border-radius:14px!important;
  background:#0d47a1!important;
}
.pos-pro-totals .grand b{
  font-size:30px!important;
}
.discount-line input{
  width:170px!important;
  max-width:170px!important;
  text-align:right!important;
  font-weight:800!important;
}
.payments-panel{
  border:1px solid #dfe8f4!important;
  border-radius:14px!important;
  background:#f8fafc!important;
  padding:11px!important;
  margin:8px 0 10px!important;
}
.payments-title{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:10px!important;
  margin-bottom:9px!important;
}
.payments-title .btn{
  padding:7px 10px!important;
  font-size:12px!important;
}
.pos-pro-payments{
  display:grid!important;
  gap:8px!important;
}
.pos-pro-payment-row{
  display:grid!important;
  grid-template-columns:136px minmax(190px,1fr)!important;
  gap:8px!important;
  align-items:start!important;
  width:100%!important;
}
.pos-pro-payment-row select{
  width:136px!important;
  min-width:136px!important;
  max-width:136px!important;
  font-size:14px!important;
}
.pos-pro-payment-row .paymentAmount{
  width:100%!important;
  min-width:190px!important;
  text-align:right!important;
  font-size:18px!important;
  font-weight:950!important;
}
.pos-pro-payment-row .paymentRef{
  grid-column:1/-1!important;
  width:100%!important;
}
.pos-pro-payment-row .credit-note-hint{
  grid-column:1/-1!important;
  font-size:12px!important;
}
.payment-summary-grid{
  display:grid!important;
  gap:0!important;
}
.pos-pro-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  margin-top:12px!important;
}
.pos-pro-actions .btn.big{
  min-height:50px!important;
  font-size:15px!important;
  border-radius:13px!important;
}
@media(max-width:1280px){
  .pos-pro-shell{
    grid-template-columns:1fr!important;
  }
  .pos-pro-cart{
    position:static!important;
  }
  .pos-pro-product-grid{
    max-height:none!important;
  }
}
@media(max-width:720px){
  .pos-pro-head,
  .pos-cart-header{
    flex-direction:column!important;
  }
  .pos-pro-tools{
    justify-content:flex-start!important;
  }
  .pos-pro-search{
    grid-template-columns:1fr!important;
  }
  .pos-pro-payment-row{
    grid-template-columns:125px minmax(160px,1fr)!important;
  }
  .pos-pro-payment-row select{
    width:125px!important;
    min-width:125px!important;
    max-width:125px!important;
  }
  .pos-pro-actions{
    grid-template-columns:1fr!important;
  }
}


/* Inicio: accesos directos en cabecera, sin reloj */
.dashboard-start-actions{
  min-width:260px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
}
.dashboard-start-actions .btn{
  min-height:46px;
  padding:12px 18px;
}
@media(max-width:760px){
  .dashboard-start-actions{
    justify-content:flex-start;
    min-width:0;
  }
}


/* POS ajuste fino de ancho y cifras */
.pos-pro-shell{
  grid-template-columns:minmax(620px,1fr) 552px!important;
}
.pos-pro-cart{
  max-width:552px!important;
  width:100%!important;
}
.pos-pro-totals .total-line,
.payment-summary-grid>div{
  gap:18px!important;
}
.pos-pro-totals .total-line b,
.payment-summary-grid b{
  min-width:170px!important;
  text-align:right!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
.pos-pro-totals .grand b{
  min-width:210px!important;
  font-size:30px!important;
}
.payment-summary-grid span,
.pos-pro-totals .total-line span{
  white-space:nowrap!important;
}
.pos-pro-payment-row{
  grid-template-columns:138px minmax(250px,1fr)!important;
}
.pos-pro-payment-row .paymentAmount{
  min-width:250px!important;
}
.discount-line input{
  width:190px!important;
  max-width:190px!important;
}
@media(max-width:1280px){
  .pos-pro-shell{
    grid-template-columns:1fr!important;
  }
  .pos-pro-cart{
    max-width:none!important;
  }
}

/* Órdenes: listado compacto y más responsive */
.orders-compact-table{
  table-layout:fixed;
  width:100%;
}
.orders-compact-table th,
.orders-compact-table td{
  vertical-align:middle;
}
.orders-compact-table th:nth-child(1),
.orders-compact-table td.order-code-cell{width:130px}
.orders-compact-table th:nth-child(2),
.orders-compact-table td.order-client-cell{width:170px}
.orders-compact-table th:nth-child(3),
.orders-compact-table td.order-doc-cell{width:120px}
.orders-compact-table th:nth-child(4),
.orders-compact-table td.order-device-cell{width:auto}
.orders-compact-table th:nth-child(5),
.orders-compact-table td.order-priority-cell{width:118px;text-align:left}
.orders-compact-table th:nth-child(6),
.orders-compact-table td.order-status-cell{width:145px}
.orders-compact-table th:nth-child(7),
.orders-compact-table td.order-actions-cell{width:210px}
.orders-compact-table .order-code-cell b{
  font-size:14px;
  white-space:nowrap;
}
.orders-compact-table .order-device-cell,
.orders-compact-table .order-client-cell{
  overflow:hidden;
  text-overflow:ellipsis;
}
.orders-compact-table .order-action-select{
  max-width:100%;
}

@media(max-width:1250px){
  .orders-compact-table th:nth-child(2),
  .orders-compact-table td.order-client-cell{width:145px}
  .orders-compact-table th:nth-child(3),
  .orders-compact-table td.order-doc-cell{width:105px}
  .orders-compact-table th:nth-child(5),
  .orders-compact-table td.order-priority-cell{width:100px}
  .orders-compact-table th:nth-child(6),
  .orders-compact-table td.order-status-cell{width:130px}
  .orders-compact-table th:nth-child(7),
  .orders-compact-table td.order-actions-cell{width:185px}
  .orders-compact-table th,
  .orders-compact-table td{padding-left:10px!important;padding-right:10px!important}
  .orders-compact-table .order-code-cell b{font-size:13px}
}

@media(max-width:980px){
  .orders-compact-table{
    min-width:820px;
  }
}

/* Inventario: listado compacto, buscador y responsive */
.inventory-toolbar{
  align-items:flex-start;
  gap:14px;
}
.inventory-toolbar .toolbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.inventory-search-form{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.inventory-search-form input[type="search"]{
  min-width:330px;
  max-width:460px;
  border:1px solid #cfd9e6;
  border-radius:12px;
  padding:10px 12px;
  font-weight:700;
}
.inventory-table-wrap{
  overflow-x:auto;
}
.inventory-compact-table{
  table-layout:fixed;
  width:100%;
}
.inventory-compact-table th,
.inventory-compact-table td{
  vertical-align:middle;
}
.inventory-compact-table th:nth-child(1),
.inventory-compact-table td.inventory-code-cell{width:130px}
.inventory-compact-table th:nth-child(2),
.inventory-compact-table td.inventory-client-cell{width:165px}
.inventory-compact-table th:nth-child(3),
.inventory-compact-table td.inventory-doc-cell{width:115px}
.inventory-compact-table th:nth-child(4),
.inventory-compact-table td.inventory-device-cell{width:210px}
.inventory-compact-table th:nth-child(5),
.inventory-compact-table td.inventory-fault-cell{width:auto}
.inventory-compact-table th:nth-child(6){width:110px}
.inventory-compact-table th:nth-child(7){width:135px}
.inventory-compact-table th:nth-child(8),
.inventory-compact-table td.row-select-actions-cell{width:200px}
.inventory-compact-table .inventory-code-cell b{
  font-size:14px;
  white-space:nowrap;
}
.inventory-compact-table .inventory-device-cell,
.inventory-compact-table .inventory-fault-cell,
.inventory-compact-table .inventory-client-cell{
  overflow:hidden;
  text-overflow:ellipsis;
}
.inventory-compact-table .row-action-select{
  max-width:100%;
}
.inventory-row-urgent td{
  background:#fff1f2!important;
  border-top:2px solid #dc2626!important;
  border-bottom:2px solid #fecdd3!important;
}
.inventory-row-urgent td:first-child{
  border-left:4px solid #dc2626!important;
}

@media(max-width:1250px){
  .inventory-search-form input[type="search"]{
    min-width:240px;
  }
  .inventory-compact-table th:nth-child(2),
  .inventory-compact-table td.inventory-client-cell{width:145px}
  .inventory-compact-table th:nth-child(4),
  .inventory-compact-table td.inventory-device-cell{width:180px}
  .inventory-compact-table th:nth-child(8),
  .inventory-compact-table td.row-select-actions-cell{width:180px}
  .inventory-compact-table th,
  .inventory-compact-table td{padding-left:10px!important;padding-right:10px!important}
}
@media(max-width:980px){
  .inventory-toolbar,
  .inventory-toolbar .toolbar-actions,
  .inventory-search-form{
    display:block;
  }
  .inventory-search-form input[type="search"],
  .inventory-search-form .btn,
  .inventory-toolbar .toolbar-actions .btn{
    width:100%;
    max-width:none;
    margin:5px 0;
  }
  .inventory-compact-table{
    min-width:920px;
  }
}

/* Órdenes: listo para retirar en verde y sin alerta urgente */
.table tr.order-row-ready td{
  background:#ecfdf3!important;
  border-top:2px solid #22c55e!important;
  border-bottom:2px solid #bbf7d0!important;
}
.table tr.order-row-ready td:first-child{
  border-left:4px solid #22c55e!important;
}
.table tr.order-row-ready .priority-mini,
.table tr.order-row-ready .due-mini{
  display:none!important;
}

/* Fecha de ingreso visible en órdenes e inventario */
.orders-compact-table th:nth-child(2),
.orders-compact-table td.order-date-cell{width:92px}
.orders-compact-table td.order-date-cell b,
.inventory-compact-table td.inventory-date-cell b{
  font-size:13px;
  white-space:nowrap;
}
.orders-compact-table td.order-date-cell small,
.inventory-compact-table td.inventory-date-cell small{
  color:#64748b;
  font-weight:800;
}
.inventory-compact-table th:nth-child(2),
.inventory-compact-table td.inventory-date-cell{width:92px}

@media(max-width:1250px){
  .orders-compact-table th:nth-child(2),
  .orders-compact-table td.order-date-cell,
  .inventory-compact-table th:nth-child(2),
  .inventory-compact-table td.inventory-date-cell{width:82px}
}

/* Inventario v2.1.2: sin columna Falla, más limpio */
.inventory-compact-table th:nth-child(1),
.inventory-compact-table td.inventory-code-cell{width:130px}
.inventory-compact-table th:nth-child(2),
.inventory-compact-table td.inventory-date-cell{width:92px}
.inventory-compact-table th:nth-child(3),
.inventory-compact-table td.inventory-client-cell{width:170px}
.inventory-compact-table th:nth-child(4),
.inventory-compact-table td.inventory-doc-cell{width:115px}
.inventory-compact-table th:nth-child(5),
.inventory-compact-table td.inventory-device-cell{width:auto}
.inventory-compact-table th:nth-child(6){width:112px}
.inventory-compact-table th:nth-child(7){width:140px}
.inventory-compact-table th:nth-child(8),
.inventory-compact-table td.row-select-actions-cell{width:200px}
.inventory-compact-table .inventory-device-cell,
.inventory-compact-table .inventory-client-cell{
  overflow:hidden;
  text-overflow:ellipsis;
}
@media(max-width:1250px){
  .inventory-compact-table th:nth-child(3),
  .inventory-compact-table td.inventory-client-cell{width:150px}
  .inventory-compact-table th:nth-child(4),
  .inventory-compact-table td.inventory-doc-cell{width:105px}
  .inventory-compact-table th:nth-child(8),
  .inventory-compact-table td.row-select-actions-cell{width:180px}
}
@media(max-width:980px){
  .inventory-compact-table{min-width:820px}
}

/* Diagnóstico: selector productivo de repuestos */
.parts-builder{
  display:grid;
  gap:12px;
}
.parts-builder-help{
  margin:0!important;
}
.parts-builder-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:2px;
}
.parts-builder-head h4{
  margin:0;
  font-size:15px;
  color:#10213d;
}
.parts-rows{
  display:grid;
  gap:8px;
}
.part-row{
  display:grid;
  grid-template-columns:minmax(220px,1fr) 88px 120px 120px auto;
  gap:8px;
  align-items:center;
  padding:10px;
  border:1px solid #dbe5f2;
  border-radius:14px;
  background:#f8fafc;
}
.part-row input,
.part-row select{
  width:100%;
  border:1px solid #cfd9e6;
  border-radius:11px;
  padding:9px 10px;
  background:#fff;
  font-weight:750;
}
.part-subtotal{
  background:#eef6ff!important;
  color:#0d47a1;
  font-weight:950!important;
}
.mini-label{
  font-size:12px;
  font-weight:950;
  color:#475569;
  text-transform:uppercase;
  letter-spacing:.04em;
}
@media(max-width:980px){
  .part-row{
    grid-template-columns:1fr 1fr;
  }
  .part-row .part-product,
  .part-row .manual-name{
    grid-column:1 / -1;
  }
}
@media(max-width:620px){
  .parts-builder-head{
    display:block;
  }
  .parts-builder-head .btn{
    width:100%;
    margin-top:6px;
  }
  .part-row{
    grid-template-columns:1fr;
  }
  .part-row .btn{
    width:100%;
  }
}

/* Diagnóstico v2.1.7: buscador dinámico de repuestos */
.product-search-wrap{
  position:relative;
  min-width:0;
}
.product-search-wrap .part-product-search{
  width:100%;
}
.product-results{
  position:absolute;
  z-index:80;
  top:calc(100% + 4px);
  left:0;
  right:0;
  max-height:260px;
  overflow:auto;
  background:#ffffff;
  border:1px solid #cfd9e6;
  border-radius:14px;
  box-shadow:0 18px 45px rgba(15,23,42,.18);
}
.product-results:empty{
  display:none;
}
.product-result-item{
  display:block;
  width:100%;
  text-align:left;
  border:0;
  border-bottom:1px solid #eef2f7;
  background:#fff;
  color:#172033;
  padding:10px 12px;
  cursor:pointer;
}
.product-result-item:hover,
.product-result-item:focus{
  background:#eef6ff;
  outline:none;
}
.product-result-item b{
  display:block;
  font-size:13px;
  color:#10213d;
}
.product-result-item span{
  display:block;
  margin-top:3px;
  font-size:12px;
  font-weight:800;
  color:#64748b;
}
.product-result-empty{
  padding:10px 12px;
  color:#64748b;
  font-weight:800;
  font-size:13px;
}
.part-row .product-search-wrap{
  grid-column:auto;
}
@media(max-width:980px){
  .part-row .product-search-wrap{
    grid-column:1 / -1;
  }
}

/* Ficha de orden v2.1.8: información técnica más completa */
.technical-order-card .toolbar{
  align-items:flex-start;
}
.tech-meta-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:12px 0 14px;
}
.tech-meta-grid div{
  background:#f8fafc;
  border:1px solid #dbe5f2;
  border-radius:14px;
  padding:11px 12px;
}
.tech-meta-grid b{
  display:block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#64748b;
  margin-bottom:5px;
}
.tech-meta-grid span{
  display:block;
  font-weight:900;
  color:#10213d;
}
.tech-budget-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:0 0 14px;
}
.tech-budget-strip div{
  background:#ecfdf3;
  border:1px solid #bbf7d0;
  border-radius:14px;
  padding:12px;
}
.tech-budget-strip span{
  display:block;
  font-size:12px;
  font-weight:900;
  color:#166534;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.tech-budget-strip b{
  display:block;
  margin-top:4px;
  font-size:18px;
  color:#14532d;
}
.order-text-blocks .important-tech-block{
  background:#fff7ed;
  border-color:#fed7aa;
}
.order-text-blocks .important-tech-block b{
  color:#9a3412;
}
@media(max-width:980px){
  .tech-meta-grid,
  .tech-budget-strip{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:620px){
  .tech-meta-grid,
  .tech-budget-strip{
    grid-template-columns:1fr;
  }
}


/* v2.1 - Menú superior tipo aplicación de escritorio + formularios compactos */
.app-header{
  position:sticky;
  top:0;
  z-index:500;
  background:linear-gradient(135deg,#07152c,#0d47a1 70%,#12315d);
  color:#fff;
  box-shadow:0 16px 42px rgba(5,17,37,.18);
  border-bottom:1px solid rgba(255,255,255,.14);
}
.app-header-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  gap:16px;
  padding:10px 18px;
}
.top-brand{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width:210px;
  min-height:52px;
  padding:8px 12px;
  border-radius:17px;
  background:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,.18);
}
.top-brand img{display:block;max-width:100%;height:auto;max-height:42px;object-fit:contain}
.app-menu{
  flex:1 1 auto;
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.top-menu-group{position:relative;flex:0 0 auto}
.top-menu-group summary{
  list-style:none;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:9px 12px;
  border-radius:13px;
  cursor:pointer;
  user-select:none;
  color:#dbe8fa;
  font-weight:950;
  white-space:nowrap;
}
.top-menu-group summary::-webkit-details-marker{display:none}
.top-menu-group summary:hover,
.top-menu-group[open] summary,
.top-menu-group.active-group summary{background:rgba(255,255,255,.12);color:#fff}
.menu-group-icon{width:25px;height:25px;display:grid;place-items:center;border-radius:9px;background:rgba(255,255,255,.10)}
.menu-chevron{font-size:12px;color:#aec4e3;transition:transform .18s ease}.top-menu-group[open] .menu-chevron{transform:rotate(180deg)}
.top-menu-dropdown{
  position:absolute;
  left:0;
  top:calc(100% + 10px);
  min-width:270px;
  max-height:calc(100vh - 96px);
  overflow:auto;
  padding:8px;
  border-radius:18px;
  background:#fff;
  color:var(--text);
  border:1px solid var(--line);
  box-shadow:0 24px 70px rgba(15,23,42,.22);
}
.top-menu-dropdown a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-radius:13px;
  color:#172033;
  font-weight:900;
}
.top-menu-dropdown a:hover,
.top-menu-dropdown a.active{background:#edf5ff;color:var(--blue)}
.top-menu-dropdown .nav-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:10px;background:#f1f5fb;flex:0 0 28px}
.top-account{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto;white-space:nowrap}
.app-header .pill{box-shadow:none;background:rgba(255,255,255,.96)}
.app-header .user{max-width:160px;overflow:hidden;text-overflow:ellipsis;color:#fff}
.app-header .btn.ghost{background:rgba(255,255,255,.10);color:#fff;border-color:rgba(255,255,255,.25)}
.menu-toggle{display:none;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.10);color:#fff;border-radius:12px;padding:9px 12px;font-weight:950;cursor:pointer}
body{padding-top:0}
.main{margin-left:0;padding:24px 28px 40px;max-width:none;width:100%}
.topbar{margin-bottom:18px;padding:4px 0 2px}.topbar h1{font-size:28px}.topbar p{font-size:14px}
.sidebar{display:none!important}.lockbox{inset:72px 0 0 0}
.form-grid{grid-template-columns:repeat(3,minmax(180px,1fr));gap:13px 14px;align-items:start}
.field input,.field select{min-height:42px;padding:10px 12px}.field textarea{min-height:82px;padding:10px 12px}.field label{font-size:13px;margin-bottom:6px}
.field.full{grid-column:1/-1}.field.compact{max-width:220px}.field.medium{grid-column:span 2}.field.actions{grid-column:1/-1;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.inline-lookup{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.card{padding:18px}.toolbar{flex-wrap:wrap}.table-wrap{width:100%;overflow-x:auto}
@media(max-width:1240px){.app-header-inner{align-items:flex-start;flex-wrap:wrap}.top-account{margin-left:0;width:100%;justify-content:flex-end}.app-menu{order:3;width:100%;overflow-x:auto;padding-bottom:4px}.top-menu-dropdown{position:fixed;top:76px;left:18px;right:18px;min-width:0}.form-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}
@media(max-width:760px){.app-header-inner{display:grid;grid-template-columns:1fr auto;gap:10px}.top-brand{width:auto;max-width:230px}.menu-toggle{display:inline-flex;align-items:center;justify-content:center}.app-menu{display:none;grid-column:1/-1;overflow:visible;flex-direction:column;align-items:stretch;padding:4px 0}.app-menu.open{display:flex}.top-menu-group{width:100%}.top-menu-group summary{justify-content:space-between;background:rgba(255,255,255,.08)}.top-menu-dropdown{position:static;margin-top:6px;max-height:55vh}.top-account{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap}.main{padding:18px 14px 34px}.form-grid{grid-template-columns:1fr}.field.medium{grid-column:1/-1}.lockbox{inset:0}.grid.cards{grid-template-columns:1fr}}
@media print{.app-header{display:none!important}.main{padding:0}.lockbox{display:none!important}}
/* Compactación extra de formularios largos: los textos largos no ocupan toda la pantalla salvo avisos/acciones */
@supports selector(:has(*)){
  .form-grid > .field.full:has(textarea):not(:has(button)){grid-column:span 2}
  .form-grid > .field.full:has(input):not(:has(button)):not(:has(.notice)){grid-column:span 2}
  .form-grid > .field.full:has(.notice){grid-column:1/-1}
}
@media(max-width:760px){@supports selector(:has(*)){.form-grid > .field.full:has(textarea):not(:has(button)),.form-grid > .field.full:has(input):not(:has(button)):not(:has(.notice)){grid-column:1/-1}}}

/* v2.2 - Rediseño profesional + temas visuales */
body.theme-tema-atlantico{
  --bg:#eef4fb;--card:#ffffff;--card2:#f8fbff;--text:#142033;--muted:#64748b;--blue:#174ea6;--blue2:#2563eb;--orange:#f97316;--line:#dbe5f1;--field:#ffffff;--field-line:#cbd8e8;--header1:#07182f;--header2:#0b3b78;--header3:#2563eb;--shadow:0 18px 48px rgba(15,43,85,.12);--shadow-soft:0 9px 24px rgba(15,43,85,.08);--focus:rgba(37,99,235,.18);--table:#ffffff;--table-hover:#f5f9ff;
  background:linear-gradient(180deg,#dbeafe 0,#eef4fb 190px,#f7fafc 100%);
}
body.theme-tema-aurora-studio{
  --bg:#eef9fb;--card:#ffffff;--card2:#f4fbfd;--text:#10242a;--muted:#5b7780;--blue:#0f766e;--blue2:#0891b2;--orange:#fb7185;--line:#cce5ec;--field:#ffffff;--field-line:#b9d9e2;--header1:#062d34;--header2:#0f766e;--header3:#fb7185;--shadow:0 22px 58px rgba(8,145,178,.13),0 10px 28px rgba(15,118,110,.08);--shadow-soft:0 10px 26px rgba(8,145,178,.09);--focus:rgba(251,113,133,.22);--table:#ffffff;--table-hover:#eefbfc;
  background:
    radial-gradient(circle at 86% -8%,rgba(251,113,133,.24),transparent 34%),
    radial-gradient(circle at 8% 8%,rgba(8,145,178,.22),transparent 30%),
    linear-gradient(180deg,#e9fbff 0,#f7fcfd 240px,#ffffff 100%);
}
body.theme-tema-grafito{
  --bg:#f2f3f5;--card:#ffffff;--card2:#f7f7f8;--text:#16181d;--muted:#626a76;--blue:#334155;--blue2:#475569;--orange:#d97706;--line:#d9dde5;--field:#ffffff;--field-line:#c7ced8;--header1:#111827;--header2:#1f2937;--header3:#4b5563;--shadow:0 18px 46px rgba(17,24,39,.13);--shadow-soft:0 8px 22px rgba(17,24,39,.08);--focus:rgba(71,85,105,.18);--table:#ffffff;--table-hover:#f4f5f7;
  background:linear-gradient(180deg,#e5e7eb 0,#f4f5f7 210px,#fbfbfc 100%);
}
body.theme-tema-esmeralda{
  --bg:#eefaf6;--card:#ffffff;--card2:#f3fbf8;--text:#10251f;--muted:#5f756f;--blue:#047857;--blue2:#10b981;--orange:#f59e0b;--line:#cfebe1;--field:#ffffff;--field-line:#b9dbcf;--header1:#052e2b;--header2:#065f46;--header3:#10b981;--shadow:0 18px 46px rgba(4,120,87,.13);--shadow-soft:0 8px 22px rgba(4,120,87,.08);--focus:rgba(16,185,129,.20);--table:#ffffff;--table-hover:#f0fdf8;
  background:radial-gradient(circle at top right,rgba(16,185,129,.22),transparent 32%),linear-gradient(180deg,#d9f7ed 0,#f3fbf8 210px,#ffffff 100%);
}
body.theme-tema-ambar{
  --bg:#fff7ed;--card:#fffdf9;--card2:#fff8eb;--text:#23180d;--muted:#7a6754;--blue:#9a3412;--blue2:#ea580c;--orange:#f59e0b;--line:#f0dcc6;--field:#ffffff;--field-line:#e5c8a9;--header1:#271306;--header2:#7c2d12;--header3:#ea580c;--shadow:0 18px 46px rgba(154,52,18,.13);--shadow-soft:0 8px 22px rgba(154,52,18,.08);--focus:rgba(234,88,12,.18);--table:#fffefb;--table-hover:#fff7ed;
  background:radial-gradient(circle at top right,rgba(245,158,11,.24),transparent 34%),linear-gradient(180deg,#ffedd5 0,#fff7ed 220px,#fffdf8 100%);
}

body[class*="theme-"]{color:var(--text);font-size:14px;line-height:1.42;}
body[class*="theme-"] .app-header{background:linear-gradient(135deg,var(--header1),var(--header2) 60%,var(--header3));box-shadow:0 18px 45px rgba(2,8,23,.22);border-bottom:1px solid rgba(255,255,255,.12)}
body[class*="theme-"] .app-header-inner{min-height:66px;padding:8px 18px;gap:12px}
body[class*="theme-"] .top-brand{width:198px;min-height:48px;border-radius:14px;padding:7px 11px;box-shadow:0 12px 26px rgba(0,0,0,.18)}
body[class*="theme-"] .top-brand img{max-height:38px}
body[class*="theme-"] .top-menu-group summary{min-height:38px;padding:8px 11px;border-radius:11px;font-size:13px;letter-spacing:.01em}
body[class*="theme-"] .menu-group-icon{width:23px;height:23px;border-radius:8px;background:rgba(255,255,255,.12)}
body[class*="theme-"] .top-menu-group summary:hover,body[class*="theme-"] .top-menu-group[open] summary,body[class*="theme-"] .top-menu-group.active-group summary{background:rgba(255,255,255,.15);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
body[class*="theme-"] .top-menu-dropdown{background:var(--card);color:var(--text);border-color:var(--line);box-shadow:0 26px 75px rgba(0,0,0,.26)}
body[class*="theme-"] .top-menu-dropdown a{color:var(--text);font-weight:850}
body[class*="theme-"] .top-menu-dropdown .nav-icon{background:var(--card2)}
body[class*="theme-"] .top-menu-dropdown a:hover,body[class*="theme-"] .top-menu-dropdown a.active{background:var(--table-hover);color:var(--blue)}
body[class*="theme-"] .app-header .pill{background:rgba(255,255,255,.13);color:#fff;border-color:rgba(255,255,255,.18);box-shadow:none}
body[class*="theme-"] .app-header .btn.ghost{background:rgba(255,255,255,.10);color:#fff;border-color:rgba(255,255,255,.24)}
body[class*="theme-"] .main{padding:22px 24px 38px;background:transparent}
body[class*="theme-"] .topbar{display:flex;align-items:flex-end;justify-content:space-between;margin:0 0 18px;padding:0 2px 2px}
body[class*="theme-"] .topbar h1{font-size:27px;line-height:1.1;letter-spacing:-.03em;font-weight:950;color:var(--text)}
body[class*="theme-"] .topbar p{font-size:13px;color:var(--muted);font-weight:700;margin-top:5px}
body[class*="theme-"] .card{position:relative;background:linear-gradient(180deg,color-mix(in srgb,var(--card) 96%,transparent),var(--card));border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow);backdrop-filter:none;overflow:visible}
body[class*="theme-"] .card h2,body[class*="theme-"] .card h3{letter-spacing:-.02em;color:var(--text)}
body[class*="theme-"] .toolbar{padding:10px 12px;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-soft)}
body[class*="theme-"] .btn{border-radius:11px;padding:10px 14px;font-weight:950;background:linear-gradient(135deg,var(--blue2),var(--blue));box-shadow:0 10px 22px color-mix(in srgb,var(--blue) 22%,transparent);letter-spacing:-.01em}
body[class*="theme-"] .btn:hover{transform:translateY(-1px);filter:saturate(1.05)}
body[class*="theme-"] .btn.ghost{background:var(--card);color:var(--blue);border:1px solid var(--line);box-shadow:none}
body[class*="theme-"] .btn.orange{background:linear-gradient(135deg,var(--orange),color-mix(in srgb,var(--orange) 78%,#fff 22%))}
body[class*="theme-"] .pill{background:var(--card);border-color:var(--line);color:var(--blue);box-shadow:var(--shadow-soft)}
body[class*="theme-"] .form-grid{grid-template-columns:repeat(3,minmax(210px,1fr));gap:12px 14px;align-items:start}
body[class*="theme-"] .field{min-width:0}
body[class*="theme-"] .field label{font-size:12px;text-transform:none;letter-spacing:-.01em;font-weight:950;color:var(--text);margin:0 0 5px}
body[class*="theme-"] .field small{display:block;margin-top:6px;color:var(--muted);font-weight:700;line-height:1.35}
body[class*="theme-"] .field input,body[class*="theme-"] .field select,body[class*="theme-"] .field textarea,
body[class*="theme-"] input[type="text"],body[class*="theme-"] input[type="number"],body[class*="theme-"] input[type="date"],body[class*="theme-"] input[type="email"],body[class*="theme-"] input[type="password"],body[class*="theme-"] select,body[class*="theme-"] textarea{
  background:var(--field);color:var(--text);border:1px solid var(--field-line);border-radius:11px;min-height:39px;padding:9px 11px;font-size:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 1px 0 rgba(15,23,42,.02);outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
body[class*="theme-"] .field textarea,body[class*="theme-"] textarea{min-height:76px;line-height:1.45}
body[class*="theme-"] .field input:focus,body[class*="theme-"] .field select:focus,body[class*="theme-"] .field textarea:focus,
body[class*="theme-"] input:focus,body[class*="theme-"] select:focus,body[class*="theme-"] textarea:focus{border-color:var(--blue2);box-shadow:0 0 0 4px var(--focus)}
body[class*="theme-"] .field input[readonly]{background:var(--card2);color:var(--muted)}
body[class*="theme-"] .field.full{grid-column:1/-1}
body[class*="theme-"] .field.medium{grid-column:span 2}
body[class*="theme-"] .alert,body[class*="theme-"] .notice{border-radius:13px;border-color:var(--line);box-shadow:var(--shadow-soft)}
body[class*="theme-"] .table{border-spacing:0 8px}
body[class*="theme-"] .table th{color:var(--muted);font-size:11px;font-weight:950;padding:4px 10px}
body[class*="theme-"] .table td{background:var(--table);border-color:var(--line);padding:11px 10px;color:var(--text)}
body[class*="theme-"] .table tr:hover td{background:var(--table-hover)}
body[class*="theme-"] .metric{background:linear-gradient(180deg,var(--card),var(--card2));border-radius:18px}
body[class*="theme-"] .metric .num{font-size:30px;letter-spacing:-.04em}
body[class*="theme-"] .metric .label{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.05em}
body[class*="theme-"] .status-badge{font-weight:950;border:1px solid color-mix(in srgb,currentColor 18%,transparent)}
body[class*="theme-"] .settings-tabs{top:66px!important;background:color-mix(in srgb,var(--bg) 84%,transparent)!important;border-bottom:1px solid var(--line);padding:10px 0!important;margin-bottom:16px!important}
body[class*="theme-"] .settings-tab{background:var(--card)!important;color:var(--text)!important;border-color:var(--line)!important;border-radius:12px!important;box-shadow:var(--shadow-soft)!important}
body[class*="theme-"] .settings-tab.active{background:linear-gradient(135deg,var(--blue2),var(--blue))!important;color:#fff!important;border-color:transparent!important}
body[class*="theme-"] .settings-hero{background:linear-gradient(135deg,var(--card),var(--card2))!important;border-color:var(--line)!important;box-shadow:var(--shadow)!important}
body[class*="theme-"] .settings-subtitle{background:var(--card2)!important;border-color:var(--line)!important;color:var(--text)!important}
body[class*="theme-"] .settings-savebar{background:color-mix(in srgb,var(--card) 92%,transparent)!important;border-color:var(--line)!important;box-shadow:var(--shadow)!important}

.appearance-selector-field{margin-bottom:14px}
.appearance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:13px;margin-top:12px}
.theme-card{appearance:none;text-align:left;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,var(--card),var(--card2));padding:14px;cursor:pointer;color:var(--text);box-shadow:var(--shadow-soft);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.theme-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.theme-card.active{border-color:var(--blue2);box-shadow:0 0 0 4px var(--focus),var(--shadow)}
.theme-card strong{display:block;margin:10px 0 4px;font-size:15px;font-weight:950;letter-spacing:-.02em}
.theme-card small{display:block;color:var(--muted);font-weight:700;line-height:1.35}
.theme-preview{display:grid;grid-template-columns:44px 1fr;grid-template-rows:18px 18px;gap:7px;height:56px;border-radius:14px;padding:8px;border:1px solid rgba(255,255,255,.28);overflow:hidden}
.theme-preview i{grid-row:1/3;border-radius:10px}.theme-preview b,.theme-preview em{border-radius:999px}.preview-atlantico{background:#dbeafe}.preview-atlantico i{background:#174ea6}.preview-atlantico b{background:#2563eb}.preview-atlantico em{background:#fff}.preview-aurora-studio{background:linear-gradient(135deg,#e6fbff,#fff1f4);border-color:#d4edf3}.preview-aurora-studio i{background:#0f766e}.preview-aurora-studio b{background:#0891b2}.preview-aurora-studio em{background:#fb7185}.preview-grafito{background:#e5e7eb}.preview-grafito i{background:#111827}.preview-grafito b{background:#4b5563}.preview-grafito em{background:#fff}.preview-esmeralda{background:#d1fae5}.preview-esmeralda i{background:#047857}.preview-esmeralda b{background:#10b981}.preview-esmeralda em{background:#fff}.preview-ambar{background:#ffedd5}.preview-ambar i{background:#7c2d12}.preview-ambar b{background:#ea580c}.preview-ambar em{background:#fff7ed}

/* Ordenes: sensación de aplicación, no formulario web genérico */
body[class*="theme-"] .order-stage-divider{margin:20px 0 16px}
body[class*="theme-"] .order-stage-content{background:var(--card2);border-color:var(--orange);box-shadow:var(--shadow-soft)}
body[class*="theme-"] .order-stage-content strong{color:var(--blue)}
body[class*="theme-"] .order-photo-upload-box{background:var(--card2);border-color:var(--line)}
body[class*="theme-"] .order-photo-item{background:var(--card);border-color:var(--line);box-shadow:var(--shadow-soft)}

@media(max-width:1240px){body[class*="theme-"] .form-grid{grid-template-columns:repeat(2,minmax(210px,1fr))}body[class*="theme-"] .settings-tabs{top:0!important}}
@media(max-width:760px){body[class*="theme-"] .app-header-inner{min-height:auto}body[class*="theme-"] .form-grid{grid-template-columns:1fr}body[class*="theme-"] .field.medium{grid-column:1/-1}body[class*="theme-"] .main{padding:16px 12px 34px}.appearance-grid{grid-template-columns:1fr}body[class*="theme-"] .topbar{display:block}body[class*="theme-"] .topbar h1{font-size:23px}}

/* v2.3 - Corrección de overflow horizontal y limpieza visual de métricas
   Se eliminan los círculos decorativos que se escapaban de las tarjetas y generaban
   desplazamiento horizontal mínimo en algunas resoluciones. */
html,
body{
  max-width:100%;
  overflow-x:hidden;
}
.app-header,
.app-header-inner,
.main{
  max-width:100%;
}
.app-header-inner,
.dashboard-metric-grid,
.dashboard-pro-grid,
.grid,
.form-grid{
  min-width:0;
}
.dashboard-metric-grid > *,
.dashboard-pro-grid > *,
.grid > *,
.form-grid > *{
  min-width:0;
}
.metric::after,
.metric:after,
.metric.compact::after,
.metric.compact:after,
body[class*="theme-"] .metric::after,
body[class*="theme-"] .metric:after{
  content:none!important;
  display:none!important;
}
.metric,
body[class*="theme-"] .metric,
.dashboard-pro-metric{
  overflow:hidden!important;
}
.dashboard-pro-hero{
  overflow:hidden!important;
  background:linear-gradient(135deg,var(--card,#ffffff),var(--card2,#f8fbff))!important;
}
.dashboard-start-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
@media(max-width:760px){
  .dashboard-start-actions{justify-content:flex-start;}
}

/* Edición de ficha profesional por etapa */
.order-edit-card{padding:0;overflow:hidden}
.section-kicker{display:inline-flex;align-items:center;border:1px solid rgba(37,99,235,.22);background:rgba(37,99,235,.08);color:var(--primary);border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900;letter-spacing:.08em}
.order-edit-state{display:flex;flex-direction:column;align-items:flex-end;gap:8px;white-space:nowrap}
.order-edit-state small{color:var(--muted);font-weight:800}
.order-edit-form{padding:14px;display:flex;flex-direction:column;gap:12px}
.form-section{border:1px solid var(--line,var(--border,#dbe5f1));border-radius:22px;background:var(--card,#ffffff);box-shadow:var(--shadow-soft,0 14px 32px rgba(15,23,42,.06));padding:20px}
.form-section-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px}
.form-section-title>span{width:34px;height:34px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--blue2,var(--blue,#2563eb)),var(--orange,#f97316));color:#fff!important;font-weight:950;box-shadow:0 10px 22px color-mix(in srgb,var(--blue2,#2563eb) 22%,transparent);border:1px solid color-mix(in srgb,#fff 18%,transparent);text-shadow:0 1px 2px rgba(0,0,0,.32)}
.form-section-title h3{margin:0;font-size:18px;letter-spacing:-.02em;color:var(--text,#142033)}
.form-section-title p{margin:4px 0 0;color:var(--muted,#64748b);font-weight:600;font-size:13px}
.compact-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;align-items:start}
.compact-grid .field.span-2{grid-column:span 2}
.compact-grid .field.full{grid-column:1/-1}
.compact-grid textarea{min-height:86px;resize:vertical}
.stage-section{background:linear-gradient(180deg,var(--card,#ffffff),var(--card2,#f8fbff));border-left:4px solid var(--blue2,var(--blue,#2563eb))}
.repair-section{border-left-color:var(--orange,#f97316)}
.notes-section{background:var(--card2,#f8fbff)}
.photos-section{background:color-mix(in srgb,var(--blue2,#2563eb) 4%,var(--card,#ffffff))}
.sticky-actions{position:sticky;bottom:0;z-index:5;margin:4px -28px -28px;padding:16px 28px;background:color-mix(in srgb,var(--card,#ffffff) 94%,transparent);backdrop-filter:blur(12px);border-top:1px solid var(--line,var(--border,#dbe5f1))}

/* Corrección contraste edición de ficha: ningún indicador puede quedar blanco sobre blanco */
body[class*="theme-"] .form-section{background:var(--card)!important;border-color:var(--line)!important;color:var(--text)!important}
body[class*="theme-"] .form-section-title>span{background:linear-gradient(135deg,var(--blue2),var(--orange))!important;color:#fff!important;border-color:color-mix(in srgb,#fff 18%,transparent)!important;text-shadow:0 1px 2px rgba(0,0,0,.36)!important}
body[class*="theme-"] .form-section-title h3{color:var(--text)!important}
body[class*="theme-"] .form-section-title p{color:var(--muted)!important}
body[class*="theme-"] .stage-section{background:linear-gradient(180deg,var(--card),var(--card2))!important;border-left-color:var(--blue2)!important}
body[class*="theme-"] .repair-section{border-left-color:var(--orange)!important}
body[class*="theme-"] .notes-section{background:var(--card2)!important}
body[class*="theme-"] .photos-section{background:color-mix(in srgb,var(--blue2) 4%,var(--card))!important}
body[class*="theme-"] .sticky-actions{background:color-mix(in srgb,var(--card) 94%,transparent)!important;border-top-color:var(--line)!important}
@media(max-width:1100px){.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-grid .field.span-2{grid-column:1/-1}.order-edit-state{align-items:flex-start}}
@media(max-width:680px){.compact-grid{grid-template-columns:1fr}.order-edit-form{padding-left:12px;padding-right:12px}.sticky-actions{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}.form-section{padding:14px}}

/* v2.4 - Corrección estructural de responsive y desfases generales
   Objetivo: que ningún módulo quede cortado al 100% de zoom ni dependa de scroll horizontal. */
html{
  width:100%;
  max-width:100%;
  overflow-x:hidden!important;
}
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden!important;
}
*,*::before,*::after{
  box-sizing:border-box;
}
img,svg,video,canvas,iframe{
  max-width:100%;
}
.main{
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:hidden!important;
}
.app-header,
.app-header-inner,
.topbar,
.card,
.toolbar,
.table-wrap,
.order-view-page,
.order-view-hero,
.order-view-grid,
.order-view-main,
.order-view-side,
.order-section-card,
.info-grid-pro,
.money-summary-pro,
.form-grid,
.compact-grid,
.dashboard-pro-hero,
.dashboard-metric-grid,
.dashboard-pro-grid,
.pos-shell,
.pos-pro-layout,
.pos-pro-main,
.pos-pro-cart{
  max-width:100%!important;
  min-width:0!important;
}
.card,
.order-section-card,
.order-view-hero,
.order-view-main,
.order-view-side,
.dashboard-pro-hero{
  overflow-wrap:anywhere;
}

/* Ficha de orden / Ver orden: columna lateral controlada y adaptable */
.order-view-page{
  width:100%!important;
}
.order-view-hero{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-start!important;
}
.order-view-title{
  flex:1 1 360px!important;
  min-width:0!important;
}
.order-view-top-actions{
  flex:0 1 auto!important;
  max-width:100%!important;
}
.order-view-grid{
  width:100%!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) clamp(320px,27vw,420px)!important;
  gap:18px!important;
  align-items:start!important;
}
.order-view-grid > *,
.order-view-main > *,
.order-view-side > *{
  min-width:0!important;
  max-width:100%!important;
}
.order-view-side{
  width:100%!important;
  justify-self:stretch!important;
  position:sticky;
  top:84px;
}
.order-view-side .card,
.order-view-side .toolbar,
.order-view-side form,
.order-view-side .field,
.order-view-side input,
.order-view-side select,
.order-view-side textarea,
.order-view-side button,
.order-view-side .btn,
.order-view-side details{
  max-width:100%!important;
  min-width:0!important;
}
.order-view-side .toolbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
.order-view-side .form-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
}
.order-view-side .field.full{
  grid-column:1/-1!important;
}
.order-view-side .payment-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(90px,120px)!important;
  gap:8px!important;
}
.order-view-side .payment-row input,
.order-view-side .payment-row select{
  width:100%!important;
}
.clean-action-bar{
  width:100%!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:9px!important;
}
.clean-action-bar .btn,
.clean-action-bar details,
.clean-action-bar summary.btn{
  width:100%!important;
  justify-content:center!important;
}
.action-dropdown-menu{
  max-width:min(320px,calc(100vw - 32px))!important;
  min-width:min(245px,calc(100vw - 32px))!important;
}
.order-view-side .action-dropdown-menu{
  right:0!important;
  left:auto!important;
}
.info-grid-pro{
  grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr))!important;
}
.tech-meta-grid,
.tech-budget-strip{
  max-width:100%!important;
  min-width:0!important;
}

/* Breakpoints más seguros: cuando no hay ancho real, la columna derecha baja abajo */
@media(max-width:1280px){
  .order-view-grid{
    grid-template-columns:1fr!important;
  }
  .order-view-side{
    position:static!important;
    top:auto!important;
  }
  .order-view-side .card{
    width:100%!important;
  }
}
@media(max-width:760px){
  .main{
    padding-left:12px!important;
    padding-right:12px!important;
  }
  .order-view-hero,
  .order-section-card,
  .card{
    border-radius:16px!important;
  }
  .order-view-top-actions,
  .dashboard-start-actions,
  .top-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .order-view-top-actions .btn,
  .dashboard-start-actions .btn,
  .top-actions .btn{
    width:100%!important;
  }
  .order-view-side .payment-row{
    grid-template-columns:1fr!important;
  }
}

/* Tablas y listados: el único scroll horizontal permitido queda dentro de la tabla, nunca en toda la app */
.table-wrap,
.responsive-table,
.table-responsive{
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch;
}
.table-wrap .table,
.responsive-table .table,
.table-responsive .table{
  max-width:none;
}

/* Formularios: evitan columnas fijas que empujen el viewport */
body[class*="theme-"] .form-grid,
.form-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body[class*="theme-"] .compact-grid,
.compact-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
@media(max-width:1100px){
  body[class*="theme-"] .form-grid,
  .form-grid,
  body[class*="theme-"] .compact-grid,
  .compact-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:700px){
  body[class*="theme-"] .form-grid,
  .form-grid,
  body[class*="theme-"] .compact-grid,
  .compact-grid{
    grid-template-columns:1fr!important;
  }
  .field.medium,
  .compact-grid .field.span-2{
    grid-column:1/-1!important;
  }
}

/* v1.4.9 - POS rediseñado completo: flujo profesional, sin scroll interno bloqueante */
html, body{max-width:100%;overflow-x:hidden}
.main, .content, .card, .pos-pro-page, .pos-pro-layout, .pos-pro-products, .pos-pro-checkout{min-width:0}
.pos-pro-page{display:grid;gap:18px;margin-bottom:22px}
.pos-pro-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(239,246,255,.92));border-radius:26px;overflow:hidden}
body.theme-dark .pos-pro-hero, body[data-theme="dark"] .pos-pro-hero{background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(30,41,59,.92))}
.pos-pro-hero h2{margin:6px 0 6px;font-size:32px;letter-spacing:-.03em;color:var(--text)}
.pos-pro-hero p{margin:0;color:var(--muted);line-height:1.5;max-width:760px}
.pos-pro-hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:560px}
.pos-pro-layout{display:grid;grid-template-columns:minmax(480px,1fr) minmax(390px,470px);gap:18px;align-items:start;width:100%}
.pos-pro-products,.pos-pro-checkout{padding:18px;border-radius:26px;background:rgba(255,255,255,.90);overflow:visible}
.pos-pro-section-head,.pos-cart-header,.pos-pro-subhead{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.pos-pro-section-head h3,.pos-cart-header h3,.pos-pro-subhead h4{margin:0;color:var(--text);letter-spacing:-.02em}
.pos-pro-section-head p,.pos-cart-header p{margin:4px 0 0;color:var(--muted)}
.pos-pro-counter{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:rgba(21,101,192,.10);color:var(--blue);font-weight:950;padding:8px 12px;white-space:nowrap}
.pos-pro-searchbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;background:linear-gradient(180deg,rgba(248,251,255,.98),rgba(241,247,255,.98));border:1px solid var(--line);border-radius:20px;padding:10px;margin-bottom:14px}
.pos-pro-search-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,var(--blue2),var(--blue));color:#fff;font-weight:950;font-size:22px}
.pos-pro-searchbar .pos-search{border:0!important;box-shadow:none!important;background:transparent!important;border-radius:12px;padding:12px 6px;font-size:16px;color:var(--text)}
.pos-pro-searchbar .pos-search:focus{outline:none!important;box-shadow:none!important}
.pos-pro-categories{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.pos-category-chip{border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:999px;padding:8px 12px;font-weight:950;cursor:pointer;box-shadow:0 8px 18px rgba(15,23,42,.05);transition:.15s ease}
.pos-category-chip:hover,.pos-category-chip.active{background:linear-gradient(135deg,var(--blue2),var(--blue));border-color:transparent;color:#fff;transform:translateY(-1px)}
.pos-product-list-hint{margin:-4px 0 12px;color:var(--muted);font-size:12px;font-weight:850}
.pos-pro-product-grid.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;max-height:none!important;overflow:visible!important;padding:0!important}
.pos-pro-product-card.product-tile{display:flex;flex-direction:column;gap:8px;min-height:142px;min-width:0;border-radius:20px;border:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,255,.94));box-shadow:0 10px 24px rgba(15,23,42,.06);padding:15px;color:var(--text)}
.pos-pro-product-card.product-tile:hover{transform:translateY(-2px);border-color:rgba(21,101,192,.38);box-shadow:0 18px 38px rgba(13,71,161,.14)}
.pos-pro-product-card.product-tile::after{display:none!important;content:none!important}
.pos-pro-product-card .prod-title{min-height:auto;font-size:15px;line-height:1.25;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pos-pro-product-card .prod-meta{font-size:12px;color:var(--muted);margin:0;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pos-pro-product-bottom{display:grid;grid-template-columns:1fr;gap:7px;align-items:start;margin-top:auto;width:100%;min-width:0}
.pos-pro-product-bottom .prod-price{display:block;max-width:100%;min-width:0;margin:0;color:var(--blue);font-size:clamp(16px,1.05vw,18px);line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}
.pos-pro-product-bottom .prod-stock{width:max-content;margin:0;white-space:nowrap;flex:0 0 auto;align-self:start}
.pos-pro-checkout{position:static!important;top:auto!important}
.inventory-card{display:grid;gap:14px}
.inventory-toolbar{margin-bottom:0}
.inventory-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.inventory-filters{display:grid;grid-template-columns:minmax(260px,1.6fr) minmax(190px,1fr) minmax(150px,.8fr) minmax(130px,.7fr) auto;gap:10px;align-items:end;background:linear-gradient(180deg,rgba(248,251,255,.98),rgba(243,248,255,.94));border:1px solid var(--line);border-radius:20px;padding:14px}
.inventory-filters .field{margin:0}
.inventory-filters label{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:950}
.inventory-filters input,.inventory-filters select{width:100%;min-width:0}
.inventory-filter-buttons{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.inventory-filter-buttons .btn{white-space:nowrap}
.inventory-filters .search-field input{font-weight:850}
.inventory-action-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.inventory-pagination{margin:0}
.inventory-bulk-price.bulk-panel{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;width:auto;margin:0;padding:8px 10px;border-radius:18px;background:linear-gradient(180deg,rgba(248,251,255,.98),rgba(243,248,255,.94))}
.inventory-bulk-price b{white-space:nowrap}
.inventory-bulk-price input,.inventory-bulk-price select{height:38px;min-width:0;border:1px solid #d9e2ee;border-radius:12px;padding:8px 10px;background:var(--card);color:var(--text);font-weight:850}
.inventory-bulk-price select[name="direction"]{width:118px}
.inventory-bulk-price select[name="adjust_type"]{width:122px}
.inventory-bulk-price input[name="adjust_value"]{width:92px}
.inventory-bulk-price select[name="round_mode"]{width:145px}
.inventory-bulk-price .muted{white-space:nowrap;font-size:12px}
.pos-pro-client-panel{display:grid;gap:8px;background:linear-gradient(180deg,rgba(248,251,255,.98),rgba(243,248,255,.94));border:1px solid var(--line);border-radius:20px;padding:14px;margin-bottom:14px}
.pos-pro-client-panel label{font-weight:950;color:var(--text)}
.pos-pro-client-panel select,.pos-pro-client-panel input{width:100%;border:1px solid #d9e2ee;border-radius:13px;padding:11px 12px;background:var(--card);color:var(--text);font-weight:800}
.pos-pro-client-panel .inline-lookup{grid-template-columns:minmax(0,1fr) auto;margin-top:8px}
.pos-pro-cart-list.cart-list{display:grid;gap:8px;min-height:110px;max-height:none!important;overflow:visible!important;background:transparent;border:0;border-radius:0;padding:0;margin:14px 0}
.pos-pro-cart-list .empty-cart{height:118px;border:1px dashed #b9c8dc;border-radius:20px;background:rgba(248,251,255,.8);padding:18px}
.pos-pro-cart-list .cart-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto 34px;gap:9px;align-items:center;margin:0;border-radius:18px;background:var(--card);border:1px solid var(--line);box-shadow:0 8px 18px rgba(15,23,42,.04)}
.pos-pro-cart-list .cart-info b{color:var(--text)}
.pos-pro-cart-list .qty-controls{height:36px;background:var(--card)}
.pos-pro-cart-list .qty-controls button{background:rgba(21,101,192,.10);color:var(--blue)}
.pos-pro-cart-list .qty-controls input{background:var(--card);color:var(--text)}
.pos-pro-cart-list .price-edit{height:36px;background:var(--card);color:var(--text)}
.pos-pro-cart-list .line-total{min-width:78px;color:var(--text);font-size:13px}
.pos-pro-summary{display:grid;gap:8px;background:linear-gradient(135deg,#0b1d3a,#123b73);border-radius:22px;padding:16px;color:#fff;margin-top:14px}
.pos-pro-summary .summary-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pos-pro-summary span{font-weight:900;color:#cbd7ea}
.pos-pro-summary b{font-size:17px;color:#fff}
.pos-pro-summary .grand{border-top:1px solid rgba(255,255,255,.18);padding-top:12px;margin-top:4px}
.pos-pro-summary .grand b{font-size:30px;color:#ffb04c;letter-spacing:-.03em}
.pos-pro-summary input{width:150px;max-width:45vw;border:0;border-radius:12px;padding:10px 11px;text-align:right;font-weight:950;background:#fff;color:#0b1d3a}
.pos-pro-payments{margin-top:14px;border:1px solid var(--line);border-radius:22px;padding:14px;background:rgba(248,251,255,.72)}
.pos-pro-payments .multi-payments{display:grid;gap:8px}
.pos-pro-payments .payment-row{display:grid!important;grid-template-columns:minmax(150px,1fr) 130px;gap:8px;align-items:start}
.pos-pro-payments .payment-row select,.pos-pro-payments .payment-row input{min-width:0;width:100%;border:1px solid #d9e2ee;border-radius:13px;padding:10px 11px;background:var(--card);color:var(--text);font-weight:850}
.pos-pro-payments .payment-row .paymentRef{grid-column:1/-1}
.pos-pro-payments .payment-row .credit-note-hint{grid-column:1/-1;margin-top:0;background:rgba(21,101,192,.08);border:1px solid rgba(21,101,192,.16);border-radius:12px;padding:8px 10px;color:var(--text)}
.pos-pro-coverage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
.pos-pro-coverage>div{border:1px solid var(--line);border-radius:16px;background:var(--card);padding:12px;display:grid;gap:5px;min-width:0}
.pos-pro-coverage span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:950;color:var(--muted)}
.pos-pro-coverage b{font-size:17px;color:var(--text);word-break:break-word}
.pos-pro-coverage .coverage-row b{color:#b91c1c}
.pos-pro-coverage .coverage-row.covered b{color:var(--green)}
.pos-pro-actions{grid-template-columns:1.15fr .85fr;margin-top:14px;position:static!important}
.pos-pro-actions .btn{width:100%;min-height:52px}
body.theme-dark .pos-pro-products, body.theme-dark .pos-pro-checkout,
body[data-theme="dark"] .pos-pro-products, body[data-theme="dark"] .pos-pro-checkout{background:rgba(15,23,42,.90)}
body.theme-dark .pos-pro-searchbar, body.theme-dark .pos-pro-client-panel, body.theme-dark .pos-pro-payments,
body[data-theme="dark"] .pos-pro-searchbar, body[data-theme="dark"] .pos-pro-client-panel, body[data-theme="dark"] .pos-pro-payments{background:rgba(15,23,42,.72)}
@media(max-width:1280px){
  .pos-pro-layout{grid-template-columns:1fr}
  .pos-pro-checkout{position:static!important}
  .pos-pro-product-grid.product-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
  .inventory-filters{grid-template-columns:1fr 1fr}
  .inventory-action-row{display:grid;grid-template-columns:1fr}
  .inventory-bulk-price.bulk-panel{justify-content:flex-start;width:100%}
  .inventory-filter-buttons{justify-content:flex-start}
}
@media(max-width:760px){
  .pos-pro-hero,.pos-pro-section-head,.pos-cart-header,.pos-pro-subhead{display:block}
  .pos-pro-hero-actions{justify-content:flex-start;margin-top:12px}
  .pos-pro-searchbar{grid-template-columns:1fr}
  .pos-pro-search-icon{display:none}
  .pos-pro-product-grid.product-grid{grid-template-columns:1fr}
  .pos-pro-cart-list .cart-item{grid-template-columns:1fr 1fr;align-items:stretch}
  .pos-pro-cart-list .cart-info{grid-column:1/-1}
  .pos-pro-cart-list .price-edit,.pos-pro-cart-list .line-total{width:100%;min-width:0;text-align:left}
  .pos-pro-coverage{grid-template-columns:1fr}
  .pos-pro-payments .payment-row{grid-template-columns:1fr!important}
  .pos-pro-actions{grid-template-columns:1fr}
  .inventory-filters{grid-template-columns:1fr}
  .inventory-actions,.inventory-filter-buttons{justify-content:stretch}
  .inventory-actions .btn,.inventory-filter-buttons .btn{width:100%}
  .inventory-bulk-price.bulk-panel{display:grid;grid-template-columns:1fr}
  .inventory-bulk-price input,.inventory-bulk-price select,.inventory-bulk-price select[name="direction"],.inventory-bulk-price select[name="adjust_type"],.inventory-bulk-price input[name="adjust_value"],.inventory-bulk-price select[name="round_mode"]{width:100%}
}

/* POS compacto: se elimina el encabezado grande y se dejan accesos rápidos livianos */
.pos-pro-quickbar{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin:0 0 10px 0;
    padding:0;
    max-width:100%;
}
.pos-pro-page{gap:10px;}
@media (max-width:760px){
    .pos-pro-quickbar{justify-content:flex-start;}
    .pos-pro-quickbar .btn{flex:1 1 auto;}
}

/* v1.5.0 - Limpieza global de encabezados redundantes
   El título grande de cada página se elimina desde layout.php. Estas reglas compactan
   el área superior para que el contenido útil empiece inmediatamente debajo del menú. */
.main,
body[class*="theme-"] .main{
  padding-top:14px!important;
}
.topbar,
body[class*="theme-"] .topbar{
  display:none!important;
  margin:0!important;
  padding:0!important;
  height:0!important;
  min-height:0!important;
  overflow:hidden!important;
}
.alert:first-child,
.lockbox + .alert{
  margin-top:0!important;
}
/* POS: los accesos rápidos quedan pegados al inicio real del área, sin banda vacía. */
.pos-pro-page{
  gap:12px!important;
  margin-top:0!important;
}
.pos-pro-quickbar{
  margin-top:0!important;
  margin-bottom:12px!important;
}
@media(max-width:760px){
  .main,
  body[class*="theme-"] .main{
    padding-top:10px!important;
  }
}


/* Tema Aurora Studio: interfaz clara, premium y moderna */
body.theme-tema-aurora-studio{
  color-scheme:light;
}
body.theme-tema-aurora-studio .app-header{
  border-bottom-color:rgba(255,255,255,.36)!important;
  box-shadow:0 18px 46px rgba(15,118,110,.18)!important;
}
body.theme-tema-aurora-studio .top-brand{
  background:rgba(255,255,255,.94)!important;
  border:1px solid rgba(255,255,255,.68)!important;
  box-shadow:0 12px 30px rgba(5,48,56,.18)!important;
}
body.theme-tema-aurora-studio .card,
body.theme-tema-aurora-studio .toolbar,
body.theme-tema-aurora-studio .settings-panel,
body.theme-tema-aurora-studio .pos-pro-products,
body.theme-tema-aurora-studio .pos-pro-checkout,
body.theme-tema-aurora-studio .form-section,
body.theme-tema-aurora-studio .metric{
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(244,251,253,.94))!important;
  border:1px solid rgba(185,217,226,.92)!important;
  color:#10242a!important;
  box-shadow:0 18px 42px rgba(8,145,178,.10),0 1px 0 rgba(255,255,255,.9) inset!important;
}
body.theme-tema-aurora-studio .card h1,
body.theme-tema-aurora-studio .card h2,
body.theme-tema-aurora-studio .card h3,
body.theme-tema-aurora-studio .settings-section-head h2,
body.theme-tema-aurora-studio .field label,
body.theme-tema-aurora-studio label,
body.theme-tema-aurora-studio strong,
body.theme-tema-aurora-studio .table td,
body.theme-tema-aurora-studio .table th{
  color:#10242a!important;
  font-weight:920!important;
}
body.theme-tema-aurora-studio .muted,
body.theme-tema-aurora-studio small,
body.theme-tema-aurora-studio .field small,
body.theme-tema-aurora-studio .settings-section-head p,
body.theme-tema-aurora-studio .card p,
body.theme-tema-aurora-studio .metric .label{
  color:#5b7780!important;
  font-weight:760!important;
}
body.theme-tema-aurora-studio input,
body.theme-tema-aurora-studio select,
body.theme-tema-aurora-studio textarea,
body.theme-tema-aurora-studio .field input,
body.theme-tema-aurora-studio .field select,
body.theme-tema-aurora-studio .field textarea{
  background:rgba(255,255,255,.98)!important;
  color:#10242a!important;
  border:1px solid #b9d9e2!important;
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 8px 18px rgba(8,145,178,.04)!important;
  font-weight:760!important;
}
body.theme-tema-aurora-studio input::placeholder,
body.theme-tema-aurora-studio textarea::placeholder{
  color:#78919a!important;
  opacity:1!important;
}
body.theme-tema-aurora-studio input:focus,
body.theme-tema-aurora-studio select:focus,
body.theme-tema-aurora-studio textarea:focus{
  border-color:#fb7185!important;
  box-shadow:0 0 0 4px rgba(251,113,133,.20),0 12px 28px rgba(251,113,133,.10)!important;
}
body.theme-tema-aurora-studio .btn,
body.theme-tema-aurora-studio button.btn,
body.theme-tema-aurora-studio .settings-tab.active{
  background:linear-gradient(135deg,#0891b2,#0f766e)!important;
  color:#ffffff!important;
  border:1px solid rgba(255,255,255,.55)!important;
  text-shadow:none!important;
  font-weight:950!important;
  box-shadow:0 12px 26px rgba(8,145,178,.22)!important;
}
body.theme-tema-aurora-studio .btn.ghost,
body.theme-tema-aurora-studio .theme-card,
body.theme-tema-aurora-studio .settings-tab,
body.theme-tema-aurora-studio .pill,
body.theme-tema-aurora-studio .status-badge{
  background:rgba(255,255,255,.88)!important;
  color:#0f766e!important;
  border:1px solid #cce5ec!important;
  font-weight:900!important;
}
body.theme-tema-aurora-studio .btn.orange{
  background:linear-gradient(135deg,#fb7185,#f97388)!important;
  color:#ffffff!important;
  border-color:rgba(255,255,255,.55)!important;
  box-shadow:0 12px 26px rgba(251,113,133,.24)!important;
}
body.theme-tema-aurora-studio .top-menu-dropdown,
body.theme-tema-aurora-studio .top-menu-dropdown a,
body.theme-tema-aurora-studio .top-menu-dropdown .nav-label{
  background:#ffffff!important;
  color:#10242a!important;
  font-weight:880!important;
}
body.theme-tema-aurora-studio .top-menu-dropdown a:hover,
body.theme-tema-aurora-studio .top-menu-dropdown a.active{
  background:#eefbfc!important;
  color:#0f766e!important;
}
body.theme-tema-aurora-studio .table td,
body.theme-tema-aurora-studio .table th,
body.theme-tema-aurora-studio .table tr td{
  background:#ffffff!important;
  border-color:#d7ebf0!important;
  font-weight:780!important;
}
body.theme-tema-aurora-studio .table tr:hover td{
  background:#eefbfc!important;
}
body.theme-tema-aurora-studio .notice,
body.theme-tema-aurora-studio .alert{
  background:#f1fbfd!important;
  color:#10242a!important;
  border:1px solid #cce5ec!important;
  font-weight:820!important;
}
body.theme-tema-aurora-studio .alert.ok{
  background:#ecfdf5!important;
  color:#065f46!important;
  border-color:#b9f3d1!important;
}
body.theme-tema-aurora-studio .alert.err{
  background:#fff1f3!important;
  color:#be123c!important;
  border-color:#fecdd7!important;
}
body.theme-tema-aurora-studio a{
  color:#0f766e;
  font-weight:900;
}
body.theme-tema-aurora-studio .theme-card.active{
  box-shadow:0 0 0 4px rgba(251,113,133,.18),0 18px 42px rgba(8,145,178,.12)!important;
}

/* POS: descuento compacto por importe o porcentaje */
.discount-control{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}
.discount-mode{width:34px;height:34px;border:1px solid rgba(255,255,255,.22);border-radius:10px;background:rgba(255,255,255,.08);color:#dbeafe;font-weight:950;cursor:pointer;box-shadow:none}
.discount-mode:hover{background:rgba(255,255,255,.15)}
.discount-mode.active{background:#fff;color:#0b1d3a;border-color:#fff}
.pos-pro-summary .discount-control input[type=number]{width:104px;max-width:28vw}
.pos-pro-summary .discount-applied-row{font-size:12px;opacity:.92;margin-top:-2px}
.pos-pro-summary .discount-applied-row b{font-size:14px;color:#dbeafe}
body.theme-tema-aurora-studio .discount-mode{background:#ffffff;border:1px solid #b9d9e2;color:#0f766e;font-weight:950}
body.theme-tema-aurora-studio .discount-mode.active{background:#fb7185;color:#ffffff;border-color:#fb7185}
body.theme-tema-aurora-studio .pos-pro-summary .discount-applied-row b{color:#fb7185}
@media (max-width:620px){.compact-discount-row{align-items:flex-start}.discount-control{width:100%;justify-content:space-between}.pos-pro-summary .discount-control input[type=number]{width:100%;max-width:none;flex:1}}

/* POS: quitar medios de pago agregados sin ocupar espacio extra */
.pos-pro-payments .payment-row{
  grid-template-columns:minmax(130px,1fr) minmax(86px,120px) 34px!important;
  align-items:center!important;
}
.pos-pro-payments .payment-row .payment-remove{
  width:34px;
  height:34px;
  border-radius:11px;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--muted);
  font-size:19px;
  font-weight:950;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:none;
  transition:.16s ease;
}
.pos-pro-payments .payment-row .payment-remove:hover{
  color:#fff;
  border-color:#dc2626;
  background:#dc2626;
  transform:translateY(-1px);
}
.pos-pro-payments .payment-row .payment-remove:disabled{
  display:none!important;
}
.pos-pro-payments .payment-row .paymentRef,
.pos-pro-payments .payment-row .credit-note-hint{
  grid-column:1 / -1;
}
body.theme-tema-aurora-studio .pos-pro-payments .payment-row .payment-remove{
  background:#fff7f9;
  border-color:#fecdd7;
  color:#be123c;
  font-weight:950;
}
body.theme-tema-aurora-studio .pos-pro-payments .payment-row .payment-remove:hover{
  background:#fb7185;
  border-color:#fb7185;
  color:#ffffff;
}
@media(max-width:700px){
  .pos-pro-payments .payment-row{
    grid-template-columns:1fr 96px 34px!important;
  }
}

/* POS: carrito más cómodo sin quitarle prioridad al buscador/lista de productos */
.pos-pro-layout{
  grid-template-columns:minmax(500px,1fr) minmax(430px,520px)!important;
}
.pos-pro-checkout{
  padding:16px!important;
}
.pos-pro-cart-list.cart-list{
  margin:12px 0!important;
}
.pos-pro-cart-list .cart-item{
  grid-template-columns:minmax(94px,auto) minmax(96px,116px) minmax(92px,1fr) 34px!important;
  gap:8px 10px!important;
  align-items:center!important;
  padding:12px!important;
}
.pos-pro-cart-list .cart-info{
  grid-column:1 / -1;
  min-width:0;
}
.pos-pro-cart-list .cart-info b{
  font-size:14px!important;
  line-height:1.25!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
}
.pos-pro-cart-list .qty-controls{
  min-width:94px;
}
.pos-pro-cart-list .price-edit{
  width:100%!important;
  min-width:96px!important;
  text-align:center;
}
.pos-pro-cart-list .line-total{
  min-width:92px!important;
  text-align:right!important;
  font-weight:950;
  white-space:nowrap;
}
.pos-pro-client-panel,
.pos-pro-summary,
.pos-pro-payments,
.pos-pro-coverage{
  margin-top:12px!important;
}
@media(max-width:1280px){
  .pos-pro-layout{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:760px){
  .pos-pro-cart-list .cart-item{
    grid-template-columns:1fr 1fr 34px!important;
  }
  .pos-pro-cart-list .cart-info{
    grid-column:1 / -1;
  }
  .pos-pro-cart-list .qty-controls{
    width:100%;
  }
  .pos-pro-cart-list .price-edit{
    min-width:0!important;
  }
  .pos-pro-cart-list .line-total{
    grid-column:1 / 3;
    text-align:left!important;
  }
}

/* Plantillas técnicas reutilizables */
.template-tools{display:flex;align-items:center;gap:8px;margin:6px 0 8px 0;max-width:100%;}
.template-tools .template-select{min-height:34px;height:36px;max-width:360px;flex:1 1 230px;padding:6px 10px;font-size:13px;border-radius:10px;}
.template-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto;}
.btn.mini,.template-tools .btn.mini{min-height:34px;padding:7px 10px;border-radius:10px;font-size:12px;line-height:1;font-weight:800;}
.templates-page{display:flex;flex-direction:column;gap:16px;}
.templates-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;}
.templates-hero h2{margin:4px 0 6px;font-size:24px;}
.templates-hero p{margin:0;max-width:860px;}
.templates-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.6fr);gap:16px;align-items:start;}
.template-editor,.template-help,.templates-list-card{padding:18px;}
.template-help-grid{display:grid;grid-template-columns:1fr;gap:10px;margin:14px 0;}
.template-help-grid div{border:1px solid var(--line);background:var(--soft);border-radius:14px;padding:12px;}
.template-help-grid b{display:block;margin-bottom:4px;}
.template-help-grid span{display:block;color:var(--muted);font-size:13px;line-height:1.35;}
.templates-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px;}
.templates-tabs a{display:inline-flex;align-items:center;min-height:34px;padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:var(--card);text-decoration:none;font-weight:800;font-size:12px;color:var(--blue);}
.templates-tabs a.active{background:linear-gradient(135deg,var(--blue2),var(--blue));color:#fff;border-color:transparent;box-shadow:var(--shadow-soft);}
.technical-template-table .template-preview{max-width:520px;line-height:1.35;color:var(--text);}
.inline-form{display:inline-flex;margin:0 0 0 4px;vertical-align:middle;}
.actions-cell{white-space:nowrap;}
.checkline label{display:flex;align-items:center;gap:8px;font-weight:800;color:var(--text);}
.checkline input[type="checkbox"]{width:18px;height:18px;min-height:18px;}
body.theme-tema-aurora-studio .template-tools .template-select,
body.theme-tema-aurora-studio .templates-tabs a,
body.theme-tema-aurora-studio .template-help-grid div{background:#ffffff;color:#10242a;border-color:#cce5ec;}
body.theme-tema-aurora-studio .template-help-grid span,
body.theme-tema-aurora-studio .templates-hero p{color:#5b7780;}
body.theme-tema-aurora-studio .templates-tabs a{color:#0f766e;}
body.theme-tema-aurora-studio .templates-tabs a.active{background:linear-gradient(135deg,#0891b2,#0f766e);color:#ffffff;text-shadow:none;}
body.theme-tema-aurora-studio .technical-template-table .template-preview{color:#10242a;}
@media (max-width:1100px){.templates-layout{grid-template-columns:1fr}.templates-hero{align-items:flex-start;flex-direction:column}.actions-cell{white-space:normal}.template-tools{align-items:stretch;flex-direction:column}.template-tools .template-select{max-width:none;width:100%;}.template-actions{width:100%;}.template-actions .btn{flex:1;justify-content:center;}}

/* Flujo de trabajo: diagnóstico o trabajo directo */
.flow-mode-section{border-color:rgba(37,99,235,.22);}
.flow-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px;}
.flow-choice-card{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--line);background:var(--card);border-radius:16px;cursor:pointer;transition:.18s ease;min-width:0;}
.flow-choice-card:hover{border-color:var(--blue);box-shadow:var(--shadow-soft);transform:translateY(-1px);}
.flow-choice-card input{margin-top:3px;width:18px;height:18px;min-height:18px;accent-color:var(--blue);flex:0 0 auto;}
.flow-choice-card b{display:block;color:var(--text);font-size:14px;margin-bottom:3px;}
.flow-choice-card small{display:block;color:var(--muted);line-height:1.35;font-weight:700;}
.flow-choice-card:has(input:checked){border-color:var(--blue);background:linear-gradient(135deg,rgba(37,99,235,.10),rgba(249,115,22,.06));}
.direct-work-box{border:1px dashed var(--line);background:var(--soft);border-radius:16px;padding:14px;margin-top:10px;}
.order-view-badges .status-badge.info{background:rgba(37,99,235,.10);color:var(--blue);border:1px solid rgba(37,99,235,.22);}
.order-view-badges .status-badge.success{background:rgba(22,163,74,.12);color:var(--green);border:1px solid rgba(22,163,74,.24);}
body.theme-tema-aurora-studio .flow-choice-card{background:#ffffff;color:#10242a;border-color:#cce5ec;}
body.theme-tema-aurora-studio .flow-choice-card b{color:#10242a;}
body.theme-tema-aurora-studio .flow-choice-card small{color:#5b7780;}
body.theme-tema-aurora-studio .flow-choice-card:has(input:checked){background:linear-gradient(135deg,rgba(8,145,178,.12),rgba(251,113,133,.10));border-color:#fb7185;box-shadow:0 0 0 4px rgba(251,113,133,.16);}
body.theme-tema-aurora-studio .direct-work-box{background:#f4fbfd;border-color:#b9d9e2;}
@media(max-width:760px){.flow-choice-grid{grid-template-columns:1fr}.flow-choice-card{padding:12px}.direct-work-box{padding:12px}}

/* v2.5 - Barra superior siempre visible */
body.has-app-header{
  padding-top:var(--app-header-height,72px)!important;
}
body.has-app-header .app-header{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  z-index:20000!important;
}
body.has-app-header .top-menu-dropdown{
  z-index:20010!important;
}
body.has-app-header .main,
body.has-app-header[class*="theme-"] .main{
  padding-top:14px!important;
}
@media(max-width:760px){
  body.has-app-header .main,
  body.has-app-header[class*="theme-"] .main{
    padding-top:10px!important;
  }
}
@media print{
  body.has-app-header{padding-top:0!important}
  body.has-app-header .app-header{position:static!important}
}

/* Avisos globales auto-ocultables */
.alert.fmp-flash{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  overflow:hidden!important;
  isolation:isolate!important;
  min-height:52px!important;
  padding:15px 48px 15px 18px!important;
  border:0!important;
  box-shadow:0 16px 42px rgba(15,23,42,.12)!important;
  animation:fmpFlashIn .34s ease-out both,fmpFlashPulse 1.4s ease-in-out 2!important;
}
.alert.fmp-flash::before{
  content:"";
  position:absolute;
  inset:-65%;
  z-index:-2;
  background:conic-gradient(from 0deg,transparent 0 18%,rgba(255,255,255,.25) 23%,var(--fmp-flash-accent) 34%,transparent 48% 100%);
  animation:fmpFlashBorder 1.35s linear infinite;
}
.alert.fmp-flash::after{
  content:"";
  position:absolute;
  inset:2px;
  z-index:-1;
  border-radius:13px;
  background:var(--fmp-flash-bg);
}
.alert.fmp-flash.ok{
  --fmp-flash-bg:#e7f8ef;
  --fmp-flash-accent:#00b868;
  color:#087443!important;
}
.alert.fmp-flash.err{
  --fmp-flash-bg:#fff0f0;
  --fmp-flash-accent:#ef4444;
  color:#b91c1c!important;
}
.fmp-flash-message{
  position:relative;
  z-index:1;
  line-height:1.35;
}
.fmp-flash-close{
  position:absolute;
  top:50%;
  right:12px;
  z-index:2;
  width:28px;
  height:28px;
  transform:translateY(-50%);
  border:0;
  border-radius:999px;
  background:rgba(15,23,42,.08);
  color:currentColor;
  font-size:20px;
  font-weight:950;
  line-height:1;
  cursor:pointer;
}
.fmp-flash-close:hover{
  background:rgba(15,23,42,.14);
}
.alert.fmp-flash .fmp-flash-timer{
  position:absolute;
  left:2px;
  right:2px;
  bottom:2px;
  z-index:2;
  height:4px;
  border-radius:0 0 13px 13px;
  background:var(--fmp-flash-accent);
  transform-origin:left center;
  animation:fmpFlashTimer var(--fmp-flash-life,5.5s) linear forwards;
}
.alert.fmp-flash.is-dismissing{
  pointer-events:none;
  animation:fmpFlashOut .34s ease-in forwards!important;
}
body.theme-tema-aurora-studio .alert.fmp-flash.ok{
  --fmp-flash-bg:#ecfdf5;
  --fmp-flash-accent:#0f766e;
  color:#065f46!important;
}
body.theme-tema-aurora-studio .alert.fmp-flash.err{
  --fmp-flash-bg:#fff1f3;
  --fmp-flash-accent:#fb7185;
  color:#be123c!important;
}
@keyframes fmpFlashIn{
  from{opacity:0;transform:translateY(-12px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes fmpFlashOut{
  to{opacity:0;transform:translateY(-10px) scale(.98);max-height:0;margin-top:0;margin-bottom:0;padding-top:0!important;padding-bottom:0!important}
}
@keyframes fmpFlashBorder{
  to{transform:rotate(360deg)}
}
@keyframes fmpFlashPulse{
  0%,100%{box-shadow:0 16px 42px rgba(15,23,42,.12)}
  50%{box-shadow:0 16px 42px rgba(15,23,42,.16),0 0 0 4px color-mix(in srgb,var(--fmp-flash-accent) 18%,transparent)}
}
@keyframes fmpFlashTimer{
  from{transform:scaleX(1)}
  to{transform:scaleX(0)}
}
@media (prefers-reduced-motion:reduce){
  .alert.fmp-flash,
  .alert.fmp-flash::before,
  .alert.fmp-flash .fmp-flash-timer{
    animation:none!important;
  }
}
@media print{
  .alert.fmp-flash{display:none!important}
}

/* V3 - Densidad profesional de formularios */
body[class*="theme-"] .form-grid,
.form-grid{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
  gap:10px 12px!important;
  align-items:start!important;
}
body[class*="theme-"] .field label,
.field label{
  font-size:12px!important;
  line-height:1.15!important;
  margin-bottom:4px!important;
}
body[class*="theme-"] .field input,
body[class*="theme-"] .field select,
.field input,
.field select{
  min-height:36px!important;
  height:36px!important;
  padding:7px 10px!important;
  border-radius:10px!important;
  font-size:13px!important;
}
body[class*="theme-"] .field textarea,
.field textarea{
  min-height:68px!important;
  padding:8px 10px!important;
  border-radius:10px!important;
  font-size:13px!important;
  line-height:1.34!important;
}
body[class*="theme-"] .field small,
.field small{
  font-size:11px!important;
  line-height:1.25!important;
  margin-top:4px!important;
}
body[class*="theme-"] .card:not(.order-edit-card):not(.order-view-hero):not(.dashboard-pro-hero),
.card:not(.order-edit-card):not(.order-view-hero):not(.dashboard-pro-hero){
  padding:14px!important;
  border-radius:16px!important;
}
body[class*="theme-"] .toolbar,
.toolbar{
  margin-bottom:10px!important;
  padding:8px 10px!important;
  border-radius:13px!important;
}
body[class*="theme-"] .btn,
.btn{
  min-height:36px!important;
  padding:8px 12px!important;
  border-radius:10px!important;
  font-size:13px!important;
}
body[class*="theme-"] .field.full,
.field.full{
  grid-column:span 2!important;
}
@supports selector(:has(*)){
  body[class*="theme-"] .form-grid > .field.full:has(.notice),
  .form-grid > .field.full:has(.notice),
  body[class*="theme-"] .form-grid > .field.full:has(button),
  .form-grid > .field.full:has(button){
    grid-column:1/-1!important;
  }
}
@media(max-width:760px){
  body[class*="theme-"] .form-grid,
  .form-grid{
    grid-template-columns:1fr!important;
  }
  body[class*="theme-"] .field.full,
  .field.full{
    grid-column:1/-1!important;
  }
}

/* V3 - Nueva orden en módulos laterales */
body[class*="theme-"] .order-edit-form,
.order-edit-form{
  display:grid!important;
  grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr)!important;
  gap:12px!important;
  align-items:start!important;
}
body[class*="theme-"] .order-edit-form > .client-section,
.order-edit-form > .client-section{
  grid-column:1!important;
}
body[class*="theme-"] .order-edit-form > .flow-mode-section,
.order-edit-form > .flow-mode-section{
  grid-column:2!important;
}
body[class*="theme-"] .order-edit-form > .equipment-section,
.order-edit-form > .equipment-section,
body[class*="theme-"] .order-edit-form > .warranty-reentry-section,
.order-edit-form > .warranty-reentry-section,
body[class*="theme-"] .order-edit-form > .notes-section,
.order-edit-form > .notes-section,
body[class*="theme-"] .order-edit-form > .photos-section,
.order-edit-form > .photos-section,
body[class*="theme-"] .order-edit-form > .form-actions,
.order-edit-form > .form-actions{
  grid-column:1/-1!important;
}
body[class*="theme-"] .order-edit-form .form-section,
.order-edit-form .form-section{
  min-width:0!important;
}
body[class*="theme-"] .order-edit-form .client-section .compact-grid,
.order-edit-form .client-section .compact-grid,
body[class*="theme-"] .order-edit-form .flow-mode-section .compact-grid,
.order-edit-form .flow-mode-section .compact-grid{
  grid-template-columns:repeat(2,minmax(180px,1fr))!important;
}
body[class*="theme-"] .order-edit-form .flow-choice-grid,
.order-edit-form .flow-choice-grid{
  grid-template-columns:1fr!important;
  gap:10px!important;
}
body[class*="theme-"] .order-edit-form .flow-choice-card,
.order-edit-form .flow-choice-card{
  min-height:58px!important;
}
@media(min-width:1181px){
  body[class*="theme-"] .order-edit-form > .stage-section,
  .order-edit-form > .stage-section{
    grid-column:auto!important;
  }
}
@media(max-width:1180px){
  body[class*="theme-"] .order-edit-form,
  .order-edit-form{
    grid-template-columns:1fr!important;
  }
  body[class*="theme-"] .order-edit-form > *,
  .order-edit-form > *{
    grid-column:1/-1!important;
  }
}
@media(max-width:760px){
  body[class*="theme-"] .order-edit-form .client-section .compact-grid,
  .order-edit-form .client-section .compact-grid,
  body[class*="theme-"] .order-edit-form .flow-mode-section .compact-grid,
  .order-edit-form .flow-mode-section .compact-grid{
    grid-template-columns:1fr!important;
  }
}

/* V3 - Asistente dinámico de nueva orden */
body[class*="theme-"] .order-wizard-form,
.order-wizard-form{
  display:block!important;
  padding:14px!important;
}
.order-wizard-shell{
  position:relative;
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 22%,var(--line,#dbe5f1));
  border-radius:18px;
  background:linear-gradient(135deg,#eef6ff 0%,#f8fbff 58%,#fff 100%);
  padding:16px;
  margin:0 0 18px;
  box-shadow:0 18px 40px rgba(37,99,235,.10);
  overflow:hidden;
}
.order-wizard-shell::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg,var(--blue2,#2563eb),var(--orange,#f97316));
  opacity:.95;
}
.order-wizard-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.order-wizard-title h2{
  margin:0;
  font-size:22px;
  color:var(--text,#142033);
}
.order-wizard-title p{
  margin:3px 0 0;
  color:var(--muted,#64748b);
  font-weight:700;
}
.order-wizard-progress{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  z-index:1;
}
.wizard-step-dot{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 16%,var(--line,#dbe5f1));
  border-radius:14px;
  background:rgba(255,255,255,.76);
  color:var(--muted,#64748b);
  padding:10px 12px;
  cursor:pointer;
  font-weight:900;
  text-align:left;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease,color .16s ease;
}
.wizard-step-dot b{
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:#eef4ff;
  color:var(--blue,#0d47a1);
  flex:0 0 auto;
}
.wizard-step-dot.active{
  border-color:transparent;
  background:linear-gradient(135deg,var(--blue2,#2563eb),var(--blue,#0d47a1));
  box-shadow:0 14px 30px rgba(37,99,235,.26),0 0 0 3px rgba(37,99,235,.12);
  color:#fff;
  transform:translateY(-1px);
}
.wizard-step-dot.active span{
  color:#fff;
}
.wizard-step-dot.active b,
.wizard-step-dot.done b{
  background:linear-gradient(135deg,var(--blue2,#2563eb),var(--orange,#f97316));
  color:#fff;
}
.wizard-step-dot.active b{
  background:#fff;
  color:var(--blue,#0d47a1);
  box-shadow:0 8px 18px rgba(0,0,0,.16);
}
.wizard-step-dot.done{
  border-color:color-mix(in srgb,var(--blue2,#2563eb) 26%,var(--line,#dbe5f1));
  background:rgba(255,255,255,.9);
  color:var(--text,#142033);
}
.order-wizard-form.wizard-ready [data-wizard-step]{
  display:none;
  opacity:0;
  transform:translateY(8px);
}
.order-wizard-form.wizard-ready [data-wizard-step].active{
  display:block;
  opacity:1;
  transform:translateY(0);
  animation:fmpWizardIn .22s ease-out;
}
@keyframes fmpWizardIn{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}
.wizard-actions{
  display:flex!important;
  align-items:center;
  gap:10px;
}
.wizard-actions-status{
  margin-right:auto;
  color:var(--muted,#64748b);
  font-weight:900;
}
.mobile-intake-panel{
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 18%,var(--line,#dbe5f1));
  border-radius:16px;
  padding:12px;
  background:linear-gradient(135deg,#f8fbff,#fff);
}
.mobile-intake-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:10px;
}
.mobile-intake-head h4{
  margin:0;
  font-size:15px;
  color:var(--text,#142033);
}
.mobile-intake-head p{
  margin:3px 0 0;
  color:var(--muted,#64748b);
  font-size:12px;
  font-weight:700;
}
.mobile-intake-head span{
  border-radius:999px;
  background:#e8f1ff;
  color:var(--blue,#0d47a1);
  font-weight:950;
  padding:6px 10px;
  font-size:12px;
}
.mobile-pattern-pad{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,58px);
  grid-template-rows:repeat(3,58px);
  gap:15px;
  align-items:center;
  justify-content:start;
  width:max-content;
  max-width:100%;
  margin-top:4px;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 16%,var(--line,#dbe5f1));
  border-radius:22px;
  background:radial-gradient(circle at 20% 12%,color-mix(in srgb,var(--blue2,#2563eb) 8%,transparent),transparent 34%),linear-gradient(135deg,var(--card,#ffffff),var(--card2,#f8fbff));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.82),0 12px 28px color-mix(in srgb,var(--blue,#0d47a1) 8%,transparent);
  touch-action:none;
  user-select:none;
}
.mobile-pattern-lines{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:1;
  overflow:visible;
}
.mobile-pattern-lines .pattern-line{
  stroke:var(--blue2,#2563eb);
  stroke-width:7;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.86;
  filter:drop-shadow(0 4px 7px color-mix(in srgb,var(--blue,#0d47a1) 18%,transparent));
}
.mobile-pattern-lines .pattern-line-ghost{
  stroke:var(--orange,#f97316);
  opacity:.34;
  stroke-dasharray:10 10;
}
.mobile-pattern-pad button{
  position:relative;
  z-index:2;
  width:58px;
  height:58px;
  border-radius:50%;
  border:2px solid color-mix(in srgb,var(--blue2,#2563eb) 18%,var(--line,#dbe5f1));
  background:linear-gradient(180deg,#ffffff,var(--card2,#f8fbff));
  color:var(--blue,#0d47a1);
  font-weight:950;
  cursor:pointer;
  box-shadow:0 9px 18px color-mix(in srgb,var(--blue,#0d47a1) 8%,transparent),inset 0 1px 0 rgba(255,255,255,.86);
  -webkit-tap-highlight-color:transparent;
}
.mobile-pattern-pad button span{
  position:relative;
  z-index:2;
}
.mobile-pattern-pad button::before{
  content:"";
  position:absolute;
  inset:13px;
  border-radius:50%;
  background:color-mix(in srgb,var(--blue2,#2563eb) 16%,#ffffff);
  transition:inset .14s ease,background .14s ease,box-shadow .14s ease;
}
.mobile-pattern-pad button.selected{
  background:linear-gradient(135deg,var(--blue2,#2563eb),var(--orange,#f97316));
  color:#fff;
  border-color:#fff;
  box-shadow:0 12px 24px color-mix(in srgb,var(--blue,#0d47a1) 18%,transparent),0 0 0 4px color-mix(in srgb,var(--blue2,#2563eb) 14%,transparent);
}
.mobile-pattern-pad button.selected::before{
  inset:6px;
  background:rgba(255,255,255,.16);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.36);
}
.mobile-pattern-pad button.selected::after{
  content:attr(data-order);
  position:absolute;
  right:-4px;
  top:-4px;
  z-index:3;
  min-width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#fff;
  color:var(--blue,#0d47a1);
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 28%,transparent);
  font-size:11px;
  font-weight:950;
}
.mobile-pattern-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
}
@media(max-width:900px){
  .order-wizard-progress{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-wizard-title{display:block}
}
@media(max-width:560px){
  .order-wizard-progress{grid-template-columns:1fr}
  .wizard-actions{flex-wrap:wrap}
  .wizard-actions-status{width:100%;order:-1}
}

/* V3 - Selector compacto de modalidad en nueva orden */
body[class*="theme-"] .order-wizard-form .flow-choice-grid,
.order-wizard-form .flow-choice-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(180px,240px))!important;
  justify-content:center!important;
  gap:10px!important;
  margin:8px auto 12px!important;
}
body[class*="theme-"] .order-wizard-form .flow-choice-card,
.order-wizard-form .flow-choice-card{
  position:relative!important;
  min-height:44px!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  padding:10px 16px!important;
  border-radius:12px!important;
  text-align:center!important;
  box-shadow:none!important;
}
body[class*="theme-"] .order-wizard-form .flow-choice-card input,
.order-wizard-form .flow-choice-card input{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
}
body[class*="theme-"] .order-wizard-form .flow-choice-card b,
.order-wizard-form .flow-choice-card b{
  margin:0!important;
  font-size:13px!important;
}
body[class*="theme-"] .order-wizard-form .flow-choice-card small,
.order-wizard-form .flow-choice-card small{
  display:none!important;
}
body[class*="theme-"] .order-wizard-form .flow-choice-card:has(input:checked),
.order-wizard-form .flow-choice-card:has(input:checked){
  background:linear-gradient(135deg,var(--blue2,#2563eb),var(--blue,#0d47a1))!important;
  border-color:transparent!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(37,99,235,.18)!important;
}
body[class*="theme-"] .order-wizard-form .flow-choice-card:has(input:checked) b,
.order-wizard-form .flow-choice-card:has(input:checked) b{
  color:#fff!important;
}
body[class*="theme-"] .order-wizard-form .flow-choice-card:hover,
.order-wizard-form .flow-choice-card:hover{
  transform:translateY(-1px)!important;
}
@media(max-width:640px){
  body[class*="theme-"] .order-wizard-form .flow-choice-grid,
  .order-wizard-form .flow-choice-grid{
    grid-template-columns:1fr!important;
  }
}

/* V3 - Armonia visual del escritorio con el Centro de diagnostico */
.dashboard-console{
  display:grid;
  gap:16px;
}
body[class*="theme-"] .dashboard-console{
  color:var(--text);
}
body[class*="theme-"] .eyebrow,
.eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 22%,var(--line,#dbe5f1));
  border-radius:999px;
  background:color-mix(in srgb,var(--blue2,#2563eb) 8%,var(--card,#ffffff));
  color:var(--blue,#0d47a1);
  padding:6px 10px;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.06em;
}
body[class*="theme-"] .dashboard-pro-hero,
.dashboard-pro-hero{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:22px!important;
  align-items:start!important;
  overflow:hidden!important;
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 24%,var(--line,#dbe5f1))!important;
  border-radius:22px!important;
  padding:24px!important;
  background:
    radial-gradient(circle at 86% 10%,color-mix(in srgb,var(--orange,#f97316) 20%,transparent),transparent 28%),
    radial-gradient(circle at 16% 0%,color-mix(in srgb,var(--blue2,#2563eb) 22%,transparent),transparent 32%),
    linear-gradient(135deg,color-mix(in srgb,var(--card2,#f8fbff) 84%,#fff 16%) 0%,var(--card,#ffffff) 50%,color-mix(in srgb,var(--orange,#f97316) 8%,var(--card,#ffffff)) 100%)!important;
  box-shadow:0 24px 60px color-mix(in srgb,var(--blue,#0d47a1) 12%,transparent)!important;
}
body[class*="theme-"] .dashboard-pro-hero::before,
.dashboard-pro-hero::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:5px;
  background:linear-gradient(90deg,var(--blue2,#2563eb),var(--orange,#f97316),var(--blue,#0d47a1));
  opacity:.96;
}
.dashboard-pro-hero > *{
  position:relative;
  z-index:1;
}
body[class*="theme-"] .dashboard-pro-hero h2,
.dashboard-pro-hero h2{
  margin:6px 0 8px!important;
  font-size:32px!important;
  line-height:1.05!important;
  letter-spacing:0!important;
  color:var(--text,#172033)!important;
}
body[class*="theme-"] .dashboard-pro-hero p,
.dashboard-pro-hero p{
  max-width:820px;
  margin:0!important;
  color:var(--muted,#667085)!important;
  font-size:15px!important;
  font-weight:760!important;
  line-height:1.55!important;
}
.dashboard-hero-pills{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}
.dashboard-hero-pills span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 16%,var(--line,#dbe5f1));
  border-radius:999px;
  background:color-mix(in srgb,var(--card,#ffffff) 82%,transparent);
  color:var(--blue,#0d47a1);
  padding:6px 10px;
  font-size:12px;
  font-weight:950;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}
.dashboard-start-actions{
  position:relative;
  z-index:1;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
body[class*="theme-"] .dashboard-metric-grid,
.dashboard-metric-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}
body[class*="theme-"] .dashboard-pro-metric,
.dashboard-pro-metric{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  min-height:118px!important;
  overflow:hidden!important;
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 14%,var(--line,#dbe5f1))!important;
  border-radius:18px!important;
  padding:15px!important;
  background:linear-gradient(180deg,var(--card,#ffffff),var(--card2,#f8fbff))!important;
  box-shadow:0 14px 32px color-mix(in srgb,var(--blue,#0d47a1) 8%,transparent)!important;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.dashboard-pro-metric:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb,var(--blue2,#2563eb) 34%,var(--line,#dbe5f1))!important;
  box-shadow:0 20px 44px color-mix(in srgb,var(--blue,#0d47a1) 13%,transparent)!important;
}
.dashboard-metric-accent{
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg,var(--blue2,#2563eb),var(--orange,#f97316));
}
.dashboard-pro-metric::before{
  content:"";
  position:absolute;
  right:-24px;
  top:-30px;
  width:86px;
  height:86px;
  border-radius:50%;
  background:linear-gradient(135deg,color-mix(in srgb,var(--blue2,#2563eb) 16%,transparent),color-mix(in srgb,var(--orange,#f97316) 14%,transparent));
}
body[class*="theme-"] .dashboard-pro-metric .metric-icon,
.dashboard-pro-metric .metric-icon{
  position:relative;
  width:48px!important;
  height:48px!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 48px!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--blue2,#2563eb) 13%,var(--card,#ffffff)),color-mix(in srgb,var(--orange,#f97316) 9%,var(--card,#ffffff)))!important;
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 14%,var(--line,#dbe5f1))!important;
  box-shadow:0 10px 20px color-mix(in srgb,var(--blue,#0d47a1) 8%,transparent)!important;
  font-size:21px!important;
}
.dashboard-metric-copy{
  position:relative;
  min-width:0;
}
body[class*="theme-"] .dashboard-pro-metric .label,
.dashboard-pro-metric .label{
  color:var(--muted,#667085)!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.045em!important;
  text-transform:uppercase!important;
}
body[class*="theme-"] .dashboard-pro-metric .num,
.dashboard-pro-metric .num{
  margin-top:4px!important;
  font-size:31px!important;
  line-height:1!important;
  letter-spacing:-.035em!important;
  color:var(--text,#172033)!important;
  font-weight:950!important;
}
body[class*="theme-"] .dashboard-pro-metric .small-num,
.dashboard-pro-metric .small-num{
  font-size:24px!important;
  letter-spacing:-.02em!important;
}
body[class*="theme-"] .dashboard-pro-metric .hint,
.dashboard-pro-metric .hint{
  margin-top:5px!important;
  color:var(--muted,#667085)!important;
  font-size:12px!important;
  font-weight:780!important;
  line-height:1.25!important;
}
body[class*="theme-"] .dashboard-pro-grid,
.dashboard-pro-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(360px,.72fr)!important;
  gap:16px!important;
  align-items:start!important;
}
body[class*="theme-"] .dashboard-panel-pro,
.dashboard-panel-pro{
  position:relative!important;
  overflow:hidden!important;
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 14%,var(--line,#dbe5f1))!important;
  border-radius:20px!important;
  padding:16px!important;
  background:linear-gradient(180deg,var(--card,#ffffff),var(--card2,#f8fbff))!important;
  box-shadow:0 16px 42px color-mix(in srgb,var(--blue,#0d47a1) 8%,transparent)!important;
}
.dashboard-panel-pro::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:4px;
  background:linear-gradient(90deg,var(--blue2,#2563eb),var(--orange,#f97316));
}
.dashboard-panel-pro > *{
  position:relative;
  z-index:1;
}
body[class*="theme-"] .dashboard-panel-pro .toolbar,
.dashboard-panel-pro .toolbar{
  margin-bottom:12px!important;
  padding:0 0 12px!important;
  border:0!important;
  border-bottom:1px solid color-mix(in srgb,var(--line,#dbe5f1) 82%,transparent)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.dashboard-panel-pro .toolbar h2{
  margin:0!important;
  color:var(--text,#172033)!important;
  font-size:20px!important;
}
.dashboard-panel-pro .toolbar p{
  margin:4px 0 0!important;
  color:var(--muted,#667085)!important;
  font-weight:740!important;
}
.dashboard-list-pro{
  display:grid;
  gap:9px;
}
body[class*="theme-"] .dashboard-row-pro,
.dashboard-row-pro{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  gap:11px!important;
  align-items:center!important;
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 12%,var(--line,#dbe5f1))!important;
  border-radius:16px!important;
  padding:11px 12px!important;
  background:var(--card,#ffffff)!important;
  color:var(--text,#172033)!important;
  box-shadow:0 8px 18px color-mix(in srgb,var(--blue,#0d47a1) 5%,transparent)!important;
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.dashboard-row-pro:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--blue2,#2563eb) 30%,var(--line,#dbe5f1))!important;
  box-shadow:0 14px 28px color-mix(in srgb,var(--blue,#0d47a1) 9%,transparent)!important;
}
.dashboard-row-pro .row-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--blue2,#2563eb) 12%,var(--card,#ffffff)),color-mix(in srgb,var(--orange,#f97316) 10%,var(--card,#ffffff)));
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 12%,var(--line,#dbe5f1));
}
.dashboard-row-pro b{
  display:block;
  color:var(--text,#172033);
  font-size:14px;
  line-height:1.25;
}
.dashboard-row-pro small{
  display:block;
  margin-top:3px;
  color:var(--muted,#667085);
  font-weight:740;
  line-height:1.28;
}
.dashboard-row-pro em{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:28px;
  border-radius:999px;
  padding:5px 9px;
  background:color-mix(in srgb,var(--orange,#f97316) 12%,var(--card,#ffffff));
  color:color-mix(in srgb,var(--orange,#f97316) 68%,var(--text,#172033));
  border:1px solid color-mix(in srgb,var(--orange,#f97316) 22%,var(--line,#dbe5f1));
  font-style:normal;
  font-size:12px;
  font-weight:950;
  white-space:nowrap;
}
body[class*="theme-"] .dashboard-panel-pro .notice,
.dashboard-panel-pro .notice{
  margin:0!important;
  border-radius:16px!important;
  background:color-mix(in srgb,var(--green,#0f9d58) 10%,var(--card,#ffffff))!important;
  border-color:color-mix(in srgb,var(--green,#0f9d58) 22%,var(--line,#dbe5f1))!important;
  color:color-mix(in srgb,var(--green,#0f9d58) 68%,var(--text,#172033))!important;
  font-weight:900!important;
}
body.theme-tema-aurora-studio .dashboard-pro-hero{
  background:
    radial-gradient(circle at 86% 10%,rgba(251,113,133,.20),transparent 28%),
    radial-gradient(circle at 16% 0%,rgba(8,145,178,.22),transparent 32%),
    linear-gradient(135deg,#f5fdff 0%,#ffffff 48%,#fff7f8 100%)!important;
  border-color:rgba(185,217,226,.92)!important;
  box-shadow:0 24px 60px rgba(8,145,178,.12)!important;
}
body.theme-tema-aurora-studio .dashboard-hero-pills span,
body.theme-tema-aurora-studio .dashboard-row-pro,
body.theme-tema-aurora-studio .dashboard-pro-metric{
  border-color:#cce5ec!important;
}
body.theme-tema-aurora-studio .dashboard-pro-metric,
body.theme-tema-aurora-studio .dashboard-panel-pro{
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(244,251,253,.94))!important;
  box-shadow:0 18px 42px rgba(8,145,178,.10),0 1px 0 rgba(255,255,255,.9) inset!important;
}
@media(max-width:1180px){
  body[class*="theme-"] .dashboard-metric-grid,
  .dashboard-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[class*="theme-"] .dashboard-pro-grid,
  .dashboard-pro-grid{grid-template-columns:1fr!important}
}
@media(max-width:760px){
  body[class*="theme-"] .dashboard-pro-hero,
  .dashboard-pro-hero{grid-template-columns:1fr!important;padding:18px!important}
  body[class*="theme-"] .dashboard-pro-hero h2,
  .dashboard-pro-hero h2{font-size:26px!important}
  .dashboard-start-actions{justify-content:flex-start}
}
@media(max-width:560px){
  body[class*="theme-"] .dashboard-metric-grid,
  .dashboard-metric-grid{grid-template-columns:1fr!important}
  body[class*="theme-"] .dashboard-row-pro,
  .dashboard-row-pro{grid-template-columns:auto minmax(0,1fr)!important}
  .dashboard-row-pro em{grid-column:2;justify-self:start}
}

/* V3 - Catalogo de equipos: marcas asociadas por rubro */
.equipment-type-checks{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.equipment-type-checks label{
  display:inline-flex!important;
  align-items:center;
  gap:6px;
  margin:0!important;
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 16%,var(--line,#dbe5f1));
  border-radius:999px;
  background:var(--card,#ffffff);
  color:var(--text,#172033);
  padding:7px 10px;
  font-size:12px;
  font-weight:900!important;
}
.equipment-type-checks input{
  width:auto!important;
  min-height:0!important;
  accent-color:var(--blue2,#2563eb);
}

/* V3 - Ficha técnica de orden rediseñada */
body[class*="theme-"] .order-dossier-card,
.order-dossier-card{
  position:relative!important;
  overflow:hidden!important;
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 18%,var(--line,#dbe5f1))!important;
  background:
    radial-gradient(circle at 92% 0%,color-mix(in srgb,var(--orange,#f97316) 14%,transparent),transparent 25%),
    radial-gradient(circle at 10% 0%,color-mix(in srgb,var(--blue2,#2563eb) 16%,transparent),transparent 30%),
    linear-gradient(180deg,var(--card,#fff),var(--card2,#f8fbff))!important;
  box-shadow:0 18px 44px color-mix(in srgb,var(--blue,#0d47a1) 10%,transparent)!important;
}
.order-dossier-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:4px;
  background:linear-gradient(90deg,var(--blue2,#2563eb),var(--orange,#f97316),var(--blue,#0d47a1));
}
.order-dossier-card > *{
  position:relative;
  z-index:1;
}
.dossier-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:start;
  margin-bottom:14px;
  padding-bottom:13px;
  border-bottom:1px solid color-mix(in srgb,var(--line,#dbe5f1) 82%,transparent);
}
.dossier-head h3{
  margin:7px 0 3px!important;
  color:var(--text,#172033)!important;
  font-size:25px!important;
  line-height:1.1!important;
}
.dossier-head p{
  margin:0!important;
  color:var(--muted,#667085)!important;
  font-weight:760!important;
}
.dossier-code{
  min-width:150px;
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 18%,var(--line,#dbe5f1));
  border-radius:16px;
  background:color-mix(in srgb,var(--card,#fff) 84%,transparent);
  padding:12px;
  text-align:right;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}
.dossier-code small{
  display:block;
  color:var(--muted,#667085);
  text-transform:uppercase;
  letter-spacing:.07em;
  font-size:11px;
  font-weight:950;
}
.dossier-code b{
  display:block;
  color:var(--blue,#0d47a1);
  font-size:22px;
  margin-top:3px;
}
.dossier-layout{
  display:grid;
  grid-template-columns:minmax(280px,.65fr) minmax(0,1fr);
  gap:12px;
  margin-bottom:12px;
}
.dossier-panel,
.dossier-note,
.mobile-dossier{
  border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 14%,var(--line,#dbe5f1));
  border-radius:16px;
  background:color-mix(in srgb,var(--card,#fff) 88%,transparent);
  box-shadow:0 10px 24px color-mix(in srgb,var(--blue,#0d47a1) 6%,transparent),inset 0 1px 0 rgba(255,255,255,.72);
}
.dossier-panel{
  padding:13px;
}
.dossier-panel h4,
.mobile-dossier h4,
.mobile-dossier-pattern h4{
  margin:0 0 10px!important;
  color:var(--text,#172033)!important;
  font-size:15px!important;
}
.dossier-list{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.dossier-list.two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.dossier-list div{
  min-width:0;
  border:1px solid color-mix(in srgb,var(--line,#dbe5f1) 86%,transparent);
  border-radius:12px;
  background:linear-gradient(180deg,var(--card,#fff),color-mix(in srgb,var(--card2,#f8fbff) 70%,var(--card,#fff)));
  padding:9px 10px;
}
.dossier-list .wide{
  grid-column:1/-1;
}
.dossier-list b,
.dossier-note b{
  display:block;
  color:var(--muted,#667085);
  font-size:11px;
  font-weight:950;
  letter-spacing:.045em;
  text-transform:uppercase;
  margin-bottom:4px;
}
.dossier-list span{
  display:block;
  color:var(--text,#172033);
  font-weight:880;
  word-break:break-word;
}
.dossier-reception-grid{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:12px;
  margin-bottom:12px;
}
.dossier-note{
  padding:13px;
}
.dossier-note p{
  margin:0!important;
  color:var(--text,#172033)!important;
  font-weight:760!important;
  line-height:1.45!important;
  white-space:pre-wrap;
}
.dossier-note.compact{
  margin-top:10px;
  box-shadow:none;
}
.mobile-dossier{
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  gap:14px;
  align-items:start;
  padding:14px;
}
.mobile-dossier-pattern{
  border:1px solid color-mix(in srgb,var(--orange,#f97316) 22%,var(--line,#dbe5f1));
  border-radius:18px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--orange,#f97316) 7%,var(--card,#fff)),var(--card,#fff));
  padding:12px;
  text-align:center;
}
.mobile-pattern-render svg{
  display:block;
  width:210px;
  max-width:100%;
  height:auto;
  margin:auto;
}
.mobile-pattern-render rect{
  fill:color-mix(in srgb,var(--blue2,#2563eb) 4%,var(--card,#fff));
  stroke:color-mix(in srgb,var(--blue2,#2563eb) 16%,var(--line,#dbe5f1));
  stroke-width:2;
}
.mobile-pattern-render .pattern-links line{
  stroke:var(--blue2,#2563eb);
  stroke-width:10;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.86;
  filter:drop-shadow(0 4px 7px color-mix(in srgb,var(--blue,#0d47a1) 16%,transparent));
}
.mobile-pattern-render .pattern-dots circle{
  fill:var(--card,#fff);
  stroke:color-mix(in srgb,var(--blue2,#2563eb) 16%,var(--line,#dbe5f1));
  stroke-width:4;
}
.mobile-pattern-render .pattern-dots .selected circle{
  fill:var(--blue2,#2563eb);
  stroke:var(--orange,#f97316);
  stroke-width:5;
}
.mobile-pattern-render .pattern-dots text{
  fill:var(--muted,#667085);
  font-size:17px;
  font-weight:950;
  font-family:Arial,Helvetica,sans-serif;
}
.mobile-pattern-render .pattern-dots .selected text{
  fill:#fff;
}
.mobile-pattern-render small{
  display:block;
  margin-top:8px;
  color:var(--muted,#667085);
  font-weight:900;
}
.mobile-pattern-empty{
  display:grid;
  place-items:center;
  min-height:126px;
  border:1px dashed color-mix(in srgb,var(--blue2,#2563eb) 24%,var(--line,#dbe5f1));
  border-radius:14px;
  color:var(--muted,#667085);
  font-weight:900;
}
@media(max-width:980px){
  .dossier-layout,
  .dossier-reception-grid,
  .mobile-dossier{
    grid-template-columns:1fr;
  }
  .mobile-dossier-pattern{
    text-align:left;
  }
}
@media(max-width:640px){
  .dossier-head{
    grid-template-columns:1fr;
  }
  .dossier-code{
    text-align:left;
  }
  .dossier-list.two{
    grid-template-columns:1fr;
  }
}

/* Pulido global de controles booleanos: los checkbox/radio no deben heredar el ancho completo de los inputs. */
input[type="checkbox"],input[type="radio"],
.field input[type="checkbox"],.field input[type="radio"],
table input[type="checkbox"],table input[type="radio"]{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  max-width:18px!important;
  padding:0!important;
  margin:0;
  flex:0 0 18px;
  accent-color:var(--blue2);
  vertical-align:middle;
}
.field.checkline{
  align-self:end;
}
.checkline label:last-child{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  margin:0;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(255,255,255,.72);
  color:var(--text);
  font-weight:900;
  line-height:1.2;
  white-space:nowrap;
}
.equipment-type-checks label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  margin:0 8px 8px 0;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  font-weight:850;
  white-space:nowrap;
}

/* Visitas a domicilio: ficha técnica y conversión a orden */
.visit-detail-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  border-top:4px solid transparent;
  border-image:linear-gradient(90deg,var(--blue2,#2563eb),#ff7a2f) 1;
}
.visit-detail-hero h2{margin:8px 0 4px}
.visit-detail-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.visit-detail-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:16px;
  align-items:start;
}
.visit-work-card,
.visit-side-panel{
  border-top:4px solid transparent;
  border-image:linear-gradient(90deg,var(--blue2,#2563eb),#ff7a2f) 1;
}
.section-title.compact{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:4px 0 14px;
}
.section-title.compact span{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--blue2,#2563eb),#ff7a2f);
  color:#fff;
  font-weight:950;
  flex:0 0 34px;
}
.section-title.compact h3{margin:0}
.section-title.compact p{margin:3px 0 0;color:var(--muted,#667085)}
.checkline.full{
  display:flex;
  align-items:center;
  gap:10px;
  grid-column:1/-1;
  padding:12px 14px;
  border:1px solid var(--line,#dbe5f1);
  border-radius:14px;
  background:rgba(248,251,255,.9);
  font-weight:850;
}
.visit-bottom-actions{margin-top:14px}
.visit-side-panel{
  position:sticky;
  top:92px;
}
.visit-side-panel h3{margin-top:0}
.visit-side-row{
  display:grid;
  gap:3px;
  padding:10px 0;
  border-bottom:1px solid var(--line,#dbe5f1);
}
.visit-side-row b{
  color:var(--muted,#667085);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.visit-side-row span{
  font-weight:900;
}
.full-btn{
  width:100%;
  margin-top:14px;
}
.small{font-size:12px}
@media(max-width:980px){
  .visit-detail-grid{grid-template-columns:1fr}
  .visit-side-panel{position:static}
  .visit-detail-hero{flex-direction:column}
}

/* Alta de visita: formulario ordenado por bloques lógicos */
.visit-create-layout{display:block!important;margin-top:6px}
.visit-form-section{padding:15px 0 17px;border-top:1px solid #e7edf5}
.visit-form-section:first-of-type{border-top:0;padding-top:2px}
.visit-form-section-last{padding-bottom:2px}
.visit-form-heading{display:flex;align-items:center;gap:11px;margin-bottom:12px}
.visit-form-heading>span{width:30px;height:30px;display:grid;place-items:center;flex:0 0 30px;border-radius:10px;background:#eaf2ff;color:#0d47a1;font-weight:950}
.visit-form-heading h3{margin:0;color:#172033;font-size:15px}
.visit-form-heading p{margin:2px 0 0;color:#718096;font-size:12px;font-weight:650}
.visit-section-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px 12px;align-items:start}
.visit-section-grid .field.full{grid-column:1/-1}
.visit-section-grid .field label{margin-bottom:5px;font-size:12px}
.visit-section-grid .field input,.visit-section-grid .field select,.visit-section-grid .field textarea{padding:10px 11px;border-radius:11px}
.visit-section-grid .field textarea{min-height:72px}
.visit-dni-field{grid-column:span 1}
.visit-search-action{max-width:170px}
.visit-search-action .btn{width:100%;padding:10px 12px}
.visit-result-field{grid-column:span 2}
.visit-client-result{min-height:41px;padding:10px 12px;border-radius:11px;font-size:12px;display:flex;align-items:center}
.client-grid>.field.full:last-child{grid-column:span 2}
.schedule-grid>.field.full{grid-column:span 1}
.schedule-grid textarea{min-height:41px!important;height:41px;resize:vertical}
.equipment-grid>.field.full{grid-column:span 2}
.closing-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}
.closing-grid .notes-field{grid-column:span 2}
.closing-grid .notes-field textarea{min-height:62px}
.visit-save-action{display:flex;justify-content:flex-end;align-items:flex-end}
.visit-save-action .btn{width:100%;min-height:42px}
@media(max-width:1240px){
  .visit-section-grid,.closing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .visit-result-field{grid-column:1/-1}
  .schedule-grid>.field.full,.equipment-grid>.field.full,.client-grid>.field.full:last-child{grid-column:1/-1}
}
@media(max-width:760px){
  .visit-section-grid,.closing-grid{grid-template-columns:1fr}
  .visit-section-grid>*{grid-column:1/-1!important}
  .visit-search-action{max-width:none}
  .visit-form-heading p{display:none}
}
.device-credentials-card{border-color:color-mix(in srgb,var(--blue2,#2563eb) 24%,var(--line,#dbe5f1));background:linear-gradient(145deg,color-mix(in srgb,var(--blue2,#2563eb) 4%,#fff),#fff)}
.credential-secret{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.credential-secret>div{border:1px solid var(--line,#dbe5f1);border-radius:14px;padding:13px;background:#fff}
.credential-secret b{display:block;color:var(--muted,#64748b);font-size:12px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.credential-secret span{font-size:18px;font-weight:950;overflow-wrap:anywhere;color:var(--text,#172033)}
.credential-pattern{grid-column:1/-1;text-align:center}.credential-pattern:empty{display:none}.credential-pattern svg{max-width:230px;height:auto}
.credential-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.credential-actions small{margin-left:auto;color:var(--muted,#64748b)}
.credential-audit-list{display:grid;gap:6px;margin-top:8px}.credential-audit-list>div{display:flex;justify-content:space-between;gap:12px;padding:8px 10px;border-radius:10px;background:var(--surface-soft,#f8fafc);font-size:13px}.credential-audit-list span{color:var(--muted,#64748b);text-align:right}
@media(max-width:700px){.credential-secret{grid-template-columns:1fr}.credential-actions small{width:100%;margin-left:0}}


/* Atajos de teclado globales */
.shortcut-help-button{border:1px solid color-mix(in srgb,var(--blue2,#2563eb) 25%,transparent);background:color-mix(in srgb,var(--blue2,#2563eb) 8%,#fff);color:var(--text,#172033);border-radius:999px;padding:7px 10px;font-weight:850;cursor:pointer;white-space:nowrap}.shortcut-help-button span,.shortcut-key{display:inline-grid;place-items:center;min-width:25px;height:20px;margin-left:7px;padding:0 6px;border:1px solid color-mix(in srgb,currentColor 25%,transparent);border-bottom-width:2px;border-radius:6px;background:rgba(255,255,255,.72);font-size:10px;font-weight:950;line-height:1}.shortcut-key{vertical-align:middle}.fmp-shortcut-help{position:fixed;inset:0;z-index:10050;display:none;place-items:center;padding:22px;background:rgba(15,23,42,.58);backdrop-filter:blur(4px)}.fmp-shortcut-help.open{display:grid}.fmp-shortcut-panel{width:min(620px,100%);border-radius:22px;background:var(--card,#fff);box-shadow:0 28px 80px rgba(15,23,42,.3);padding:22px}.fmp-shortcut-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.fmp-shortcut-head small{font-weight:950;letter-spacing:.09em;color:var(--blue2,#2563eb)}.fmp-shortcut-head h2{margin:3px 0 0}.fmp-shortcut-head button{border:0;background:var(--surface-soft,#f1f5f9);width:36px;height:36px;border-radius:10px;font-size:25px;cursor:pointer}.fmp-shortcut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:20px 0 14px}.fmp-shortcut-grid>div{display:flex;align-items:center;gap:12px;padding:11px 12px;border:1px solid var(--line,#dbe5f1);border-radius:12px;background:var(--surface-soft,#f8fafc);font-weight:800}.fmp-shortcut-grid kbd{min-width:42px;text-align:center;padding:5px 8px;border:1px solid #cbd5e1;border-bottom-width:3px;border-radius:7px;background:#fff;font:900 12px/1 system-ui;color:#172033}.fmp-shortcut-panel p{margin:0;color:var(--muted,#64748b);font-size:13px}.fmp-shortcut-toast{position:fixed;left:50%;bottom:28px;z-index:10060;transform:translate(-50%,18px);opacity:0;pointer-events:none;background:#172033;color:#fff;padding:10px 15px;border-radius:999px;font-weight:800;box-shadow:0 12px 35px rgba(15,23,42,.3);transition:.2s ease}.fmp-shortcut-toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:760px){.shortcut-help-button{display:none}.fmp-shortcut-grid{grid-template-columns:1fr}}
