/* ORDNT Negocio 13–16: compact management, no new authority or permissions.
   Reuses the real devices, providers, people, PIN and access backend. */

.ordnt-business-team-search{
    display:grid;gap:6px;max-width:100%;margin:14px 0 8px;
    padding:12px;border:1px solid #dae5f2;border-radius:12px;background:#f8fbff;
}
.ordnt-business-team-search label{font-size:12px;font-weight:800;color:#213f61;}
.ordnt-business-team-search input{
    box-sizing:border-box;width:100%;min-height:44px;
    padding:9px 13px;border:1px solid #cdddf0;border-radius:9px;
    background:#fff;color:#213c5d;font:inherit;font-size:13px;
}
.ordnt-business-team-search input:focus-visible{
    outline:3px solid #86b5f8;outline-offset:1px;
}
.ordnt-business-team-search small{font-size:10px;color:#70839b;}
.ordnt-business-team-no-results:not([hidden]){
    display:block;margin:6px 0 14px;padding:13px;
    color:#52708f;background:#f5f8fd;border:1px dashed #bed0e6;border-radius:10px;
    font-size:13px;
}
.ordnt-business-users-panel [data-business-user-card][hidden]{display:none!important;}
.ordnt-business-users-panel .ordnt-business-users-workspace{gap:12px!important;}
.ordnt-business-users-panel .ordnt-business-user-group{margin-bottom:8px!important;}
.ordnt-business-users-panel .ordnt-business-user-group>header{
    padding:5px 3px 8px!important;margin:0!important;
}
.ordnt-business-users-panel .ordnt-business-user-group>header h3{
    font-size:13px!important;line-height:1.22!important;
}
.ordnt-business-users-panel .ordnt-business-user-group>header p{
    font-size:10px!important;line-height:1.3!important;
}
.ordnt-business-users-panel .ordnt-business-user-card{
    border:1px solid #dce7f3!important;border-radius:12px!important;
    margin-bottom:7px!important;background:#fff!important;
}
.ordnt-business-users-panel .ordnt-business-user-card-summary{
    min-height:65px!important;
    padding:10px 12px!important;gap:10px!important;
    cursor:pointer!important;touch-action:manipulation!important;
}
.ordnt-business-users-panel .ordnt-business-user-avatar{
    flex:0 0 38px!important;width:38px!important;height:38px!important;
}
.ordnt-business-users-panel .ordnt-business-user-summary-identity strong{
    font-size:12px!important;font-weight:850!important;
}
.ordnt-business-users-panel .ordnt-business-user-summary-identity small,
.ordnt-business-users-panel .ordnt-business-user-pos-summary small{
    font-size:10px!important;
}
.ordnt-business-users-panel .ordnt-business-user-summary-primary strong,
.ordnt-business-users-panel .ordnt-business-user-pos-summary strong{
    font-size:11px!important;
}
.ordnt-business-users-panel .ordnt-business-user-card-body{
    padding:10px 12px 14px!important;
}
.ordnt-business-users-panel .ordnt-business-user-access-section{
    border-radius:11px!important;
}
.ordnt-business-users-panel .ordnt-business-user-access-section>summary{
    min-height:48px!important;cursor:pointer!important;
}
.ordnt-business-users-panel .ordnt-business-pos-pin-editor input[name="pin"]{
    min-height:44px!important;
}
/* Device authorization is different from operating a till. */
.ordnt-business-device-identity-stats{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:stretch;gap:7px;margin:12px 0 8px;
}
.ordnt-business-device-identity-stats>div{
    display:grid;justify-items:center;gap:3px;
    padding:11px 8px;border:1px solid #d9e5f3;border-radius:11px;
    background:#fff;
}
.ordnt-business-device-identity-stats strong{
    font-size:21px;line-height:1.15;font-weight:900;color:#1d4e92;
    font-variant-numeric:tabular-nums;
}
.ordnt-business-device-identity-stats span{
    font-size:10px;line-height:1.2;color:#6c829e;text-align:center;
}
.ordnt-business-devices-panel .ordnt-business-device-grid{
    gap:10px!important;
}
.ordnt-business-devices-panel .ordnt-business-device-card{
    padding:13px!important;border-radius:13px!important;
}
.ordnt-business-devices-panel .ordnt-business-device-filter{
    min-height:44px!important;cursor:pointer!important;touch-action:manipulation;
}
.ordnt-business-devices-panel .ordnt-business-device-actions{
    display:flex!important;gap:7px!important;flex-wrap:wrap!important;
    align-items:center!important;
}
.ordnt-business-devices-panel .ordnt-business-device-open-pos{
    min-height:44px!important;display:inline-flex!important;
    align-items:center!important;justify-content:center!important;
    text-decoration:none!important;
}
.ordnt-business-devices-panel .ordnt-business-device-editor>summary{
    min-height:44px!important;cursor:pointer!important;
}
.ordnt-business-devices-panel .ordnt-business-device-pending-actions button,
.ordnt-business-devices-panel .ordnt-business-device-pending-actions summary{
    min-height:44px!important;touch-action:manipulation;
}
/* Provider state communicates account readiness, not certified physical charge. */
.ordnt-business-integrations-panel .ordnt-business-provider-stage{
    max-width:235px!important;white-space:normal!important;
    font-size:10px!important;line-height:1.3!important;text-align:center!important;
}
.ordnt-business-integrations-panel .ordnt-business-provider-card{
    border-radius:13px!important;
}
.ordnt-business-integrations-panel .ordnt-business-provider-cta{
    min-height:44px!important;touch-action:manipulation;
}
@media(max-width:1050px){
    .ordnt-business-device-identity-stats{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
    .ordnt-business-users-panel .ordnt-business-user-card-summary{
        gap:8px!important;
    }
}
@media(max-width:700px){
    .ordnt-business-users-panel .ordnt-business-users-overview{gap:5px!important;}
    .ordnt-business-users-panel .ordnt-business-user-card-summary{
        padding:8px!important;min-height:58px!important;
    }
    .ordnt-business-device-identity-stats strong{font-size:17px;}
    .ordnt-business-device-identity-stats>div{padding:8px 4px;}
    .ordnt-business-devices-panel .ordnt-business-device-actions > *{
        flex:1 1 auto;
    }
}
@media(prefers-reduced-motion:reduce){
    .ordnt-business-users-panel .ordnt-business-user-card,
    .ordnt-business-device-identity-stats>div{transition:none!important;}
}

/* Distinguish linked account status from the separately certified terminal. */
.ordnt-business-integrations-readiness-note{
    margin:8px 0 0;font-size:11px;line-height:1.4;
    color:#667f9d;max-width:560px;
}

/* Aprobado ORDNT: permisos táctiles sin selects. Herencia se conserva
   en campo oculto; Restablecer elimina los overrides al guardar. */
.ordnt-business-pos-permission-row{
 display:grid;grid-template-columns:minmax(145px,1fr) auto auto;
 gap:12px;align-items:center;min-height:56px;
 padding:9px 12px;border-bottom:1px solid var(--ordnt-border,#e4e8f0);
}
.ordnt-business-pos-permission-title{font-size:14px;font-weight:600}
.ordnt-business-pos-permission-actions{display:flex;gap:6px}
.ordnt-business-pos-permission-actions button{
 min-width:82px;min-height:40px;border-radius:10px;padding:8px 12px;
 background:transparent;border:1px solid var(--ordnt-border,#d9e1ef);
 color:inherit;cursor:pointer;font:inherit;font-size:13px;font-weight:600;
}
.ordnt-business-pos-permission-actions button.active{
 color:#1462d5;background:rgba(28,103,226,.09);border-color:#2874e0;
}
.ordnt-business-pos-permission-actions button.active.inherited{border-style:dashed;background:#f0f5fb;color:#506989}
.ordnt-business-pos-permission-actions button:disabled{opacity:.55;cursor:not-allowed}
.ordnt-business-pos-permission-source{font-size:12px;color:#64748b;min-width:90px}
.ordnt-business-pos-permissions-reset{
 display:inline-flex;align-self:flex-start;align-items:center;justify-content:center;
 min-height:40px;margin:10px 0;padding:9px 14px;border-radius:10px;
 border:1px solid #c8d5e8;background:transparent;color:inherit;
 font:inherit;font-size:13px;cursor:pointer;
}
@media(max-width:800px){
 .ordnt-business-pos-permission-row{grid-template-columns:minmax(0,1fr) auto}
 .ordnt-business-pos-permission-source{grid-column:1/-1}
 .ordnt-business-pos-permission-actions button{min-width:72px}
}

/* Punto de venta: cuatro pestañas aprobadas; cada pestaña contiene
   los grupos ya existentes con su guardado automático. */
.ordnt-business-pos-tabs{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;
 border-bottom:1px solid #dce5ef;padding:0 0 12px;margin:0 0 12px;
}
.ordnt-business-pos-tabs button{
 min-height:53px;border:1px solid #d6e1ee;border-radius:13px;
 font:inherit;font-size:14px;font-weight:650;cursor:pointer;
 background:transparent;color:inherit;
}
.ordnt-business-pos-tabs button.active{
 color:#1766d9;background:rgba(33,105,227,.09);border-color:#377ee5;
}
.ordnt-business-sales-tabs-form .ordnt-business-pos-group-heading{display:none}
.ordnt-business-sales-tabs-form [data-business-sales-panel]{display:none}
.ordnt-business-sales-tabs-form[data-active-pos-tab="service"] [data-business-sales-panel="service"],
.ordnt-business-sales-tabs-form[data-active-pos-tab="service"] [data-business-sales-panel="tables"],
.ordnt-business-sales-tabs-form[data-active-pos-tab="checkout"] [data-business-sales-panel="checkout"],
.ordnt-business-sales-tabs-form[data-active-pos-tab="checkout"] [data-business-sales-panel="methods"],
.ordnt-business-sales-tabs-form[data-active-pos-tab="cash"] [data-business-sales-panel="currency"],
.ordnt-business-sales-tabs-form[data-active-pos-tab="permissions"] [data-business-sales-panel="permissions"]{display:block}
.ordnt-business-sales-tabs-form [data-business-sales-panel]>summary{display:none}
.ordnt-business-sales-tabs-form [data-business-sales-panel]{
 border-radius:12px;box-shadow:none;margin:0 0 13px;
}
@media(max-width:700px){
 .ordnt-business-pos-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ordnt-business-pos-tabs button{min-height:50px}
}

/* Equipo y permisos: lista táctil izquierda, editor de persona a la derecha.
   Los detalles no son ventanas flotantes: sólo se edita un usuario por vez. */
/* Equipo: lista y editor ocupan columnas reales. Sin overlay ni scroll anidado. */
@media(min-width:901px){
 html[data-ordnt-device-mode="desktop"] .ordnt-business-users-panel .ordnt-business-users-workspace{
   position:relative!important;
   display:grid!important;
   grid-template-columns:minmax(255px,0.92fr) minmax(0,1.38fr)!important;
   align-items:start;gap:18px!important;
   padding:0!important;min-height:0!important;
   width:100%;max-width:100%;box-sizing:border-box;overflow:visible!important;
 }
 html[data-ordnt-device-mode="desktop"] .ordnt-business-users-panel .ordnt-business-users-workspace>.ordnt-business-team-list-column {
   grid-column:1;grid-row:1;display:grid;align-content:start;gap:9px;
   min-width:0;width:100%;box-sizing:border-box;
 }
 html[data-ordnt-device-mode="desktop"] .ordnt-business-users-panel .ordnt-business-users-workspace>.ordnt-business-team-editor-slot {
   display:block!important;grid-column:2;grid-row:1;align-self:start;min-width:0;
   width:100%;max-width:100%;box-sizing:border-box;
 }
 html[data-ordnt-device-mode="desktop"] .ordnt-business-users-panel .ordnt-business-team-editor-slot[hidden] {
   display:none!important;
 }
 html[data-ordnt-device-mode="desktop"] .ordnt-business-users-panel .ordnt-business-team-editor-slot>.ordnt-business-user-card-body {
   display:grid!important;gap:12px!important;
   position:static!important;inset:auto!important;
   width:100%!important;max-width:100%!important;
   height:auto!important;max-height:none!important;min-height:0!important;
   overflow:visible!important;box-sizing:border-box!important;
   z-index:auto!important;background:#fff!important;
   border:1px solid #d7e3f1!important;border-radius:16px!important;
   box-shadow:none!important;padding:17px!important;
 }
 html[data-ordnt-device-mode="desktop"] .ordnt-business-users-panel .ordnt-business-user-card-summary{
   grid-template-columns:minmax(0,1fr) auto!important;
   align-items:center!important;
 }
 html[data-ordnt-device-mode="desktop"] .ordnt-business-users-panel .ordnt-business-user-summary-primary,
 html[data-ordnt-device-mode="desktop"] .ordnt-business-users-panel .ordnt-business-user-pos-summary{
   display:none!important;
 }
 html[data-ordnt-device-mode="desktop"] .ordnt-business-users-panel .ordnt-business-user-card[open]>.ordnt-business-user-card-summary{
   background:#eaf3ff!important;outline:1px solid #3181ea;outline-offset:-1px;
   border-radius:11px;
 }
 html[data-ordnt-device-mode="desktop"] .ordnt-business-users-panel .ordnt-business-user-card:not([open])>.ordnt-business-user-card-body{
   display:none!important;
 }
}
@media(max-width:900px){
 html[data-ordnt-device-mode="desktop"] .ordnt-business-users-panel .ordnt-business-team-editor-slot[hidden]{
   display:none!important;
 }
}

/* BLOQUE 1 APROBADO 2026-10-12: tres pantallas de Negocio, sin superposiciones. */
/* Dispositivos: las tarjetas y el editor comparten una grilla con espacio real. */
.ordnt-business-devices-panel .ordnt-business-device-workspace{
    display:grid;grid-template-columns:minmax(250px,1fr) minmax(310px,1.05fr);
    align-items:start;gap:16px;min-width:0;
}
.ordnt-business-device-workspace>.ordnt-business-device-grid.compact-grid{
    display:grid!important;grid-template-columns:repeat(auto-fit,minmax(225px,1fr))!important;
    gap:12px!important;min-width:0;
}
.ordnt-business-device-workspace .ordnt-business-device-card{
    min-width:0!important;align-content:start;
}
.ordnt-business-device-workspace .ordnt-business-device-actions{
    display:flex!important;justify-content:stretch!important;
}
.ordnt-business-device-workspace .ordnt-business-device-actions button{
    min-height:44px!important;flex:1!important;
}
.ordnt-business-device-side{
    min-width:0;position:relative;
    border:1px solid #d5e2f1;border-radius:16px;
    background:#fff;padding:18px;display:grid;gap:16px;
}
.ordnt-business-device-side-header{
    display:flex;justify-content:space-between;align-items:flex-start;gap:10px;
    padding-bottom:14px;border-bottom:1px solid #e5edf7;
}
.ordnt-business-device-side-header small{
    font-size:10px;font-weight:800;letter-spacing:.04em;color:#6b85a3;
}
.ordnt-business-device-side-header h3{margin:4px 0;font-size:19px;color:#15345f}
.ordnt-business-device-side-header p{margin:0;color:#73849b;font-size:12px;line-height:1.5}
.ordnt-business-device-close{
    flex:0 0 40px;width:40px;height:40px;border:1px solid #d7e3ef;
    border-radius:11px;background:#fff;color:#395b81;font-size:22px;cursor:pointer;
}
.ordnt-business-device-side-body{display:grid;gap:17px;min-width:0}
.ordnt-business-device-side form{
    display:grid;gap:14px;min-width:0;margin:0;
}
.ordnt-business-device-side form label{display:grid;gap:6px;font-size:12px;font-weight:750;color:#274264}
.ordnt-business-device-side form input,
.ordnt-business-device-side form select{
    width:100%;box-sizing:border-box;min-height:46px;border-radius:11px;
    border:1px solid #ccdced;background:white;color:#193657;
    padding:8px 12px;font:inherit;font-size:13px;
}
.ordnt-business-device-side form p{
    margin:0;padding:10px 12px;background:#f5f8fc;color:#6a7d94;
    border-radius:10px;font-size:11px;line-height:1.5;
}
.ordnt-business-device-side form button{min-height:46px;cursor:pointer}
.ordnt-business-device-side-danger{
    border-top:1px solid #e7eef6;padding-top:14px;
    display:flex;justify-content:space-between;align-items:center;gap:12px;
}
.ordnt-business-device-side-danger>div{display:grid;gap:2px}
.ordnt-business-device-side-danger strong{font-size:12px;color:#203b5f}
.ordnt-business-device-side-danger small{font-size:10px;color:#71859f}
.ordnt-business-device-side-danger button{min-height:44px;white-space:nowrap;cursor:pointer}
.ordnt-business-device-side-empty{
    min-height:225px;align-content:center;justify-items:center;color:#6b829a;text-align:center;
}
.ordnt-business-device-side-empty strong{color:#214062}
.ordnt-business-device-side-empty p{font-size:12px}
/* Equipo: búsqueda compacta únicamente en la columna de personas. */
.ordnt-business-users-panel .ordnt-business-team-search{
    max-width:37%!important;box-sizing:border-box;min-width:220px;
    margin:12px 0 8px!important;background:transparent!important;
    border:0!important;padding:0!important;gap:5px!important;
}
.ordnt-business-team-search input{min-height:44px!important}
.ordnt-business-team-search label{font-size:11px!important}
.ordnt-business-visually-hidden{
    position:absolute!important;width:1px!important;height:1px!important;
    padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;border:0!important;
}
.ordnt-business-users-panel .ordnt-business-user-selected-heading{
    display:grid;gap:3px;padding:0 0 10px;
    border-bottom:1px solid #e1eaf5;
}
.ordnt-business-user-selected-heading span{font-size:10px;letter-spacing:.04em;font-weight:800;color:#8293a9}
.ordnt-business-user-selected-heading h3{font-size:18px;margin:0;color:#163c69}
.ordnt-business-user-selected-heading p{font-size:11px;margin:0;color:#67809d}
.ordnt-business-users-panel .ordnt-business-pos-person-status,
.ordnt-business-users-panel .ordnt-business-pos-person-status.ready{
    padding:5px 9px!important;border-radius:999px!important;
    font-size:11px!important;line-height:1.3!important;
}
.ordnt-business-pos-permissions-disclosure{
    margin:8px 0 12px;border:1px solid #dce6f1;border-radius:12px;
    padding:0;background:#fbfdff;
}
.ordnt-business-pos-permissions-disclosure>summary{
    padding:14px;list-style:none;display:flex;align-items:center;
    justify-content:space-between;gap:9px;
    font-weight:750;font-size:13px;color:#214568;cursor:pointer;min-height:48px;box-sizing:border-box;
}
.ordnt-business-pos-permissions-disclosure>summary::-webkit-details-marker{display:none}
.ordnt-business-pos-permissions-disclosure>summary span{font-size:11px;font-weight:600;color:#627d9b}
.ordnt-business-pos-permissions-disclosure fieldset{
    margin:0 8px 8px!important;border:0!important;padding:8px!important;
}
.ordnt-business-pos-permissions-disclosure:not([open]) fieldset{display:none}
/* El editor no usa una altura fija ni un segundo scroll. */
/* Punto de venta: navegación principal siempre antes de la configuración. */
.ordnt-business-sales-panel .ordnt-business-sales-tabs-form{
    display:flex!important;flex-direction:column!important;gap:0!important;
}
.ordnt-business-sales-panel .ordnt-business-pos-tabs{
    order:-20!important;display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:9px!important;padding:0 0 14px!important;margin:0 0 15px!important;
    border-bottom:1px solid #e2eaf4;
}
.ordnt-business-pos-tabs button{
    display:flex;align-items:center;justify-content:center;gap:9px;
    min-height:50px!important;border-radius:12px!important;
    font-size:13px!important;
}
.ordnt-business-pos-tabs button svg{
    flex:0 0 18px;width:18px;height:18px;
}
/* iPad: tab buttons fit the actual right-side panel without icon overflow.
   Desktop and phone retain their existing five-tab layout. */
html[data-ordnt-device-mode="tablet"] .ordnt-business-sales-panel .ordnt-business-pos-tabs {
    grid-template-columns:repeat(auto-fit,minmax(min(120px,100%),1fr))!important;
    gap:8px!important;
}
html[data-ordnt-device-mode="tablet"] .ordnt-business-pos-tabs button {
    box-sizing:border-box;
    min-width:0;
    padding:8px 7px;
    gap:6px;
}
html[data-ordnt-device-mode="tablet"] .ordnt-business-pos-tabs button svg {
    flex:0 0 18px;
    width:18px!important;
    height:18px!important;
}
html[data-ordnt-device-mode="tablet"] .ordnt-business-pos-tabs button span {
    min-width:0;
    white-space:normal;
    overflow-wrap:normal;
}
.ordnt-business-sales-tabs-form .ordnt-business-pos-group-heading{display:none!important}
.ordnt-business-sales-tabs-form [data-business-sales-panel]{display:none!important;order:0}
.ordnt-business-sales-tabs-form[data-active-pos-tab="service"] [data-business-sales-panel="service"],
.ordnt-business-sales-tabs-form[data-active-pos-tab="tables"] [data-business-sales-panel="tables"],
.ordnt-business-sales-tabs-form[data-active-pos-tab="checkout"] [data-business-sales-panel="checkout"],
.ordnt-business-sales-tabs-form[data-active-pos-tab="checkout"] [data-business-sales-panel="methods"],
.ordnt-business-sales-tabs-form[data-active-pos-tab="cash"] [data-business-sales-panel="currency"],
.ordnt-business-sales-tabs-form[data-active-pos-tab="permissions"] [data-business-sales-panel="permissions"]{
    display:block!important;
}
.ordnt-business-sales-tabs-form [data-business-sales-panel]>summary{display:none!important}
.ordnt-business-sales-tabs-form [data-business-sales-panel]>.ordnt-business-sales-accordion-body{display:block!important}
.ordnt-business-sales-tabs-form .ordnt-business-sales-autosave{order:10}
/* Zonas separadas a la izquierda, configuración real de mesas a la derecha. */
.ordnt-business-sales-table-workspace{
    display:grid;grid-template-columns:minmax(190px,.8fr) minmax(0,2fr);
    gap:18px;align-items:start;
}
.ordnt-business-sales-zones-pane,
.ordnt-business-sales-tables-pane{min-width:0}
.ordnt-business-sales-zones-pane{display:grid;gap:12px}
.ordnt-business-sales-table-workspace .ordnt-business-sales-table-setup{
    display:grid!important;gap:11px!important;min-width:0;
}
.ordnt-business-sales-zones-create{display:flex;flex-wrap:wrap;gap:8px}
.ordnt-business-sales-zones-list{display:grid;gap:9px;align-content:start}
.ordnt-business-sales-zone-choice{
    text-align:left;display:grid;gap:4px;width:100%;
    min-height:58px;padding:12px 14px;cursor:pointer;
    border:1px solid #d5e2f0;border-radius:12px;background:#fff;color:#26476c;
}
.ordnt-business-sales-zone-choice strong{font-size:13px}
.ordnt-business-sales-zone-choice small{font-size:11px;color:#71859d}
.ordnt-business-sales-zone-choice.active{border-color:#4389ef;background:#eef5ff}
.ordnt-business-sales-table-workspace .ordnt-business-sales-tables-summary{margin:0 0 12px}
.ordnt-business-sales-table-workspace .ordnt-business-sales-table-groups{display:grid;gap:12px}
.ordnt-business-sales-table-workspace .ordnt-business-sales-zone-group{max-width:none!important}
.ordnt-business-sales-table-workspace .ordnt-business-sales-zone-create-fields,
.ordnt-business-sales-table-workspace .ordnt-business-sales-zones-input{
    display:flex;flex-wrap:wrap;gap:9px;padding:12px;border-radius:12px;
    border:1px solid #dce6f3;background:#f7faff;
}
.ordnt-business-sales-table-workspace .ordnt-business-sales-zone-create-fields input,
.ordnt-business-sales-table-workspace .ordnt-business-sales-zones-input input{
    min-height:44px;flex:1 1 150px;min-width:0;max-width:100%;
}
.ordnt-business-sales-table-workspace button{touch-action:manipulation}
.ordnt-business-sales-table-workspace button:focus-visible,
.ordnt-business-pos-tabs button:focus-visible,
.ordnt-business-device-side button:focus-visible{
    outline:3px solid #87baf9;outline-offset:2px;
}
@media(max-width:1060px){
    .ordnt-business-devices-panel .ordnt-business-device-workspace{
        grid-template-columns:minmax(215px,1fr) minmax(275px,1fr);
    }
    .ordnt-business-device-workspace>.ordnt-business-device-grid.compact-grid{
        grid-template-columns:1fr!important;
    }
}
@media(max-width:900px){
    .ordnt-business-devices-panel .ordnt-business-device-workspace{
        grid-template-columns:1fr;
    }
    .ordnt-business-device-workspace>.ordnt-business-device-grid.compact-grid{
        grid-template-columns:repeat(auto-fit,minmax(225px,1fr))!important;
    }
    .ordnt-business-users-panel .ordnt-business-team-search{max-width:100%!important}
    .ordnt-business-sales-table-workspace{grid-template-columns:1fr}
    .ordnt-business-sales-zones-list{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
}
@media(max-width:660px){
    .ordnt-business-sales-panel .ordnt-business-pos-tabs{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;
    }
    .ordnt-business-pos-tabs button{min-height:46px!important;font-size:12px!important;gap:5px!important}
    .ordnt-business-pos-tabs button svg{height:15px;width:15px;flex-basis:15px}
    .ordnt-business-device-side-danger{flex-wrap:wrap}
}

/* La selección vive en la tarjeta; nunca en un editor flotante. */
.ordnt-business-device-workspace .ordnt-business-device-card.is-selected{
    outline:2px solid #5998ed;outline-offset:0;background:#f6faff!important;
}
.ordnt-business-device-side .ordnt-business-management-button.danger{
    background:#fff!important;color:#9d4035!important;border:1px solid #e9b7b1!important;
}
@media(max-width:390px){
    .ordnt-business-sales-panel .ordnt-business-pos-tabs{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}

/* Corrección aprobada: dispositivos compactos en columna, editor sólo bajo demanda. */
.ordnt-business-devices-panel .ordnt-business-device-workspace{
    display:grid!important;
    grid-template-columns:minmax(0,320px)!important;
    max-width:960px;
    align-items:start;
    gap:16px;
}
.ordnt-business-devices-panel .ordnt-business-device-workspace.is-editing{
    grid-template-columns:minmax(0,320px) minmax(0,620px)!important;
}
.ordnt-business-device-workspace>.ordnt-business-device-grid.compact-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-content:start;
    gap:10px!important;
    width:100%;
    min-width:0;
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact{
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
    flex:none!important;
    box-sizing:border-box;
    padding:11px!important;
    gap:7px!important;
}
.ordnt-business-device-workspace .ordnt-business-device-card-head{
    gap:7px!important;
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact h3{
    margin-top:4px!important;
}
.ordnt-business-device-workspace .ordnt-business-device-presence-copy{
    padding:7px 9px!important;
    min-height:41px!important;
}
.ordnt-business-device-workspace .ordnt-business-device-actions{
    justify-content:flex-start!important;
}
.ordnt-business-device-workspace .ordnt-business-device-actions button{
    width:auto!important;
    min-width:112px;
    flex:0 0 auto!important;
    padding-inline:13px!important;
    min-height:44px!important;
    cursor:pointer!important;
}
.ordnt-business-devices-panel .ordnt-business-device-pending-actions button{
    min-height:44px!important;
    cursor:pointer!important;
}
.ordnt-business-device-workspace .ordnt-business-device-side{
    max-width:620px;
    width:100%;
    box-sizing:border-box;
}
@media(max-width:1100px) and (min-width:901px){
    .ordnt-business-devices-panel .ordnt-business-device-workspace.is-editing{
        grid-template-columns:minmax(0,240px) minmax(0,1fr)!important;
    }
}
@media(max-width:900px){
    .ordnt-business-devices-panel .ordnt-business-device-workspace,
    .ordnt-business-devices-panel .ordnt-business-device-workspace.is-editing{
        grid-template-columns:minmax(0,1fr)!important;
    }
    .ordnt-business-device-workspace>.ordnt-business-device-grid.compact-grid{
        max-width:320px!important;
    }
}


/* AJUSTE FINO 12-OCT — editor y lista POS. Exclusivo de Negocio > Dispositivos. */
/* La lista tiene altura acotada y scrollbar propia cuando hay muchos equipos. */
.ordnt-business-devices-panel .ordnt-business-device-workspace>.ordnt-business-device-grid.compact-grid{
    max-height:min(62vh,560px);
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior-y:contain;
    align-content:start;
    padding:2px 5px 2px 2px;
    scrollbar-width:thin;
    scrollbar-color:#c4d3e8 transparent;
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"heading heading" "location location" "activity action"!important;
    align-items:center!important;
    gap:4px 8px!important;
    padding:9px 10px!important;
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact .ordnt-business-device-card-head{
    grid-area:heading;
    min-width:0;
    gap:5px!important;
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact .ordnt-business-device-card-head h3{
    font-size:12.5px!important;
    line-height:1.2!important;
    margin:3px 0 0!important;
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact .ordnt-business-device-card-head p{
    display:none!important;
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact .ordnt-business-device-context-line{
    grid-area:location;
    font-size:10.5px!important;
    line-height:1.3!important;
    min-width:0;
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact .ordnt-business-device-presence-copy{
    grid-area:activity;
    display:flex!important;
    align-items:center;
    gap:3px;
    background:transparent!important;
    border:0!important;
    min-height:0!important;
    min-width:0;
    padding:0!important;
    color:#657a95;
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact .ordnt-business-device-presence-copy strong{
    font-size:10px!important;
    line-height:1.4!important;
    white-space:normal!important;
    overflow:visible;
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact .ordnt-business-device-presence-copy span{
    font-size:10px!important;
    line-height:1.3!important;
}
.ordnt-business-device-workspace .ordnt-business-device-card.offline .ordnt-business-device-presence-copy strong{
    display:none!important; /* El estado sin conexión ya está arriba: no repetir última actividad */
}
.ordnt-business-device-workspace .ordnt-business-device-card.in_use .ordnt-business-device-presence-copy span{
    display:none!important; /* Mantener claro quién está utilizando el POS */
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact .ordnt-business-device-actions{
    grid-area:action;
    padding:0!important;
    min-width:0;
    margin:0;
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact .ordnt-business-device-actions button{
    font-size:11px!important;
    min-width:96px!important;
    min-height:44px!important;
    padding:6px 10px!important;
    justify-content:center!important;
    text-align:center;
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact.pending{
    grid-template-areas:"heading heading" "activity action"!important;
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact.pending .ordnt-business-device-pending-actions{
    grid-area:action;
    display:flex;
    align-items:center;
    justify-content:flex-end;
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact.pending .ordnt-business-device-pending-actions button{
    min-height:44px!important;
    font-size:11px!important;
    padding:6px 10px!important;
}
.ordnt-business-device-workspace .ordnt-business-device-card.compact.pending .ordnt-business-device-request-code{
    display:block!important;
}
.ordnt-business-devices-panel .ordnt-business-device-side{
    padding:14px!important;
    gap:10px!important;
}
.ordnt-business-devices-panel .ordnt-business-device-side-header{
    display:flex;
    align-items:flex-start!important;
    justify-content:space-between;
    gap:12px!important;
    padding-bottom:10px!important;
}
.ordnt-business-devices-panel .ordnt-business-device-side-header h3{
    font-size:17px!important;
    margin:3px 0!important;
}
.ordnt-business-devices-panel .ordnt-business-device-side-header p{
    line-height:1.35!important;
    font-size:11px!important;
}
.ordnt-business-devices-panel .ordnt-business-device-close{
    display:grid!important;
    place-items:center!important;
    align-items:center!important;
    justify-items:center!important;
    box-sizing:border-box;
    padding:0!important;
    flex:0 0 42px!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    line-height:1!important;
    cursor:pointer!important;
}
.ordnt-business-devices-panel .ordnt-business-device-close svg{
    display:block;
    width:18px;
    height:18px;
    margin:0 auto;
}
.ordnt-business-devices-panel .ordnt-business-device-side-body{
    gap:11px!important;
}
.ordnt-business-devices-panel .ordnt-business-device-side form{
    gap:10px!important;
}
.ordnt-business-devices-panel .ordnt-business-device-side form label{
    gap:4px!important;
    font-size:11px!important;
}
.ordnt-business-devices-panel .ordnt-business-device-side form input,
.ordnt-business-devices-panel .ordnt-business-device-side form select{
    min-height:44px!important; /* Objetivo táctil, aunque se compacte el formulario */
    padding:7px 11px!important;
}
.ordnt-business-devices-panel .ordnt-business-device-side form p{
    padding:8px 10px!important;
    font-size:10px!important;
    line-height:1.45!important;
}
.ordnt-business-devices-panel .ordnt-business-device-side form button{
    min-height:44px!important;
}
.ordnt-business-devices-panel .ordnt-business-device-side-danger{
    padding-top:10px!important;
    gap:9px!important;
}
@media(max-width:500px){
    .ordnt-business-devices-panel .ordnt-business-device-workspace>.ordnt-business-device-grid.compact-grid{
        max-height:min(56vh,440px);
    }
}
