:root{
  --ui-bg:linear-gradient(180deg,#f8faff 0%, #eef3ff 48%, #e5edff 100%);
  --ui-bg-overlay:
    radial-gradient(1400px 420px at 0% 0%, rgba(91,108,255,.18) 0%, rgba(91,108,255,0) 58%),
    radial-gradient(980px 360px at 100% 10%, rgba(138,160,255,.18) 0%, rgba(138,160,255,0) 62%),
    radial-gradient(900px 320px at 50% 100%, rgba(120,146,255,.10) 0%, rgba(120,146,255,0) 66%);
  --ui-surface:linear-gradient(180deg,rgba(255,255,255,.95) 0%, rgba(246,249,255,.97) 48%, rgba(239,244,255,.98) 100%);
  --ui-surface-2:#eef4ff;
  --ui-surface-3:#e4ecff;
  --ui-surface-soft:linear-gradient(180deg,rgba(248,250,255,.9) 0%, rgba(236,242,255,.98) 100%);
  --ui-surface-strong:linear-gradient(180deg,rgba(255,255,255,.96) 0%, rgba(241,246,255,.99) 100%);
  --ui-text:#18233a;
  --ui-muted:#6c7a99;
  --ui-muted-strong:#53627f;
  --ui-primary:#5b6cff;
  --ui-primary-600:#4f63ff;
  --ui-accent:#8aa0ff;
  --ui-border:#d9e0ff;
  --ui-border-strong:#c6d2ff;
  --ui-shadow:0 18px 45px rgba(22, 34, 58, .12);
  --ui-shadow-soft:0 12px 30px rgba(22, 34, 58, .08);
  --ui-radius:18px;
  --brand-plate-bg:rgba(255,255,255,.94);
  --brand-plate-border:rgba(255,255,255,.24);
  --brand-plate-shadow:0 14px 28px rgba(0,0,0,.14);
  --brand-mark-bg:rgba(255,255,255,.94);
  --brand-mark-text:var(--ui-primary);
  --sidebar-bg:linear-gradient(180deg,#5b6cff 0%, #4f63ff 100%);
  --sidebar-shadow:0 22px 55px rgba(25,45,120,.22);
  --sidebar-text:rgba(255,255,255,.94);
  --sidebar-text-muted:rgba(255,255,255,.75);
  --sidebar-item-hover-bg:rgba(255,255,255,.14);
  --sidebar-item-active-bg:rgba(255,255,255,.92);
  --sidebar-item-active-text:#2139b8;
  --sidebar-parent-bg:rgba(255,255,255,.06);
  --sidebar-parent-hover-bg:rgba(255,255,255,.14);
  --sidebar-parent-active-bg:rgba(255,255,255,.14);
  --sidebar-sep:rgba(255,255,255,.16);
  --login-hero-bg:linear-gradient(135deg,#4f6ef7 0%, #3f5ef0 40%, #2d49d9 100%);
  --login-left-bg:radial-gradient(900px 500px at 10% 0%, rgba(79,110,247,.14) 0%, rgba(79,110,247,0) 60%);
}

html{color-scheme:light}
html[data-theme="dark"]{
  color-scheme:dark;
  --ui-bg:#0b1020;
  --ui-bg-overlay:
    radial-gradient(1200px 420px at 0% 0%, rgba(123,140,255,.14) 0%, rgba(123,140,255,0) 58%),
    radial-gradient(960px 360px at 100% 0%, rgba(79,110,247,.10) 0%, rgba(79,110,247,0) 62%),
    radial-gradient(900px 300px at 50% 100%, rgba(18,26,51,.3) 0%, rgba(18,26,51,0) 68%);
  --ui-surface:#0f162b;
  --ui-surface-2:#131c35;
  --ui-surface-3:#17213d;
  --ui-surface-soft:linear-gradient(180deg,rgba(19,28,53,.94) 0%, rgba(15,22,43,.98) 100%);
  --ui-surface-strong:linear-gradient(180deg,rgba(19,28,53,.98) 0%, rgba(15,22,43,.99) 100%);
  --ui-text:#e7ecff;
  --ui-muted:#a8b3d6;
  --ui-muted-strong:#c7d1f2;
  --ui-primary:#7b8cff;
  --ui-primary-600:#6f83ff;
  --ui-accent:#9fb0ff;
  --ui-border:#233055;
  --ui-border-strong:#334471;
  --ui-shadow:0 18px 45px rgba(0, 0, 0, .40);
  --ui-shadow-soft:0 12px 30px rgba(0, 0, 0, .24);
  --brand-plate-bg:rgba(255,255,255,.90);
  --brand-plate-border:rgba(255,255,255,.18);
  --brand-plate-shadow:0 16px 34px rgba(0,0,0,.38);
  --brand-mark-bg:rgba(255,255,255,.92);
  --brand-mark-text:#2139b8;
  --sidebar-bg:linear-gradient(180deg,#0f1730 0%, #0b1226 100%);
  --sidebar-shadow:0 22px 55px rgba(0,0,0,.55);
  --sidebar-item-hover-bg:rgba(255,255,255,.08);
  --sidebar-item-active-bg:rgba(255,255,255,.12);
  --sidebar-item-active-text:#ffffff;
  --sidebar-parent-bg:rgba(255,255,255,.06);
  --sidebar-parent-hover-bg:rgba(255,255,255,.10);
  --sidebar-parent-active-bg:rgba(255,255,255,.10);
  --sidebar-sep:rgba(255,255,255,.10);
  --login-hero-bg:linear-gradient(135deg,#121a33 0%, #0d142a 45%, #0a1022 100%);
  --login-left-bg:radial-gradient(900px 500px at 10% 0%, rgba(123,140,255,.16) 0%, rgba(123,140,255,0) 60%);
}

body{color:var(--ui-text);font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--ui-bg);background-attachment:fixed;position:relative;min-height:100vh;isolation:isolate}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--ui-bg-overlay),var(--ui-bg)}
body.no-scroll{overflow:hidden}
a{text-decoration:none}
a:hover{text-decoration:none}
.bg-surface{background:var(--ui-bg);}
.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}
.object-fit-cover{object-fit:cover;}
.text-secondary{color:var(--ui-muted)!important;}
.form-label{font-weight:700;letter-spacing:.01em}

.brand-mark{width:46px;height:46px;border-radius:16px;background:var(--brand-mark-bg);display:flex;align-items:center;justify-content:center;color:var(--brand-mark-text);font-weight:900;box-shadow:0 12px 24px rgba(0,0,0,.12)}
.brand-mark.small{width:38px;height:38px;border-radius:14px}
.brand-logo{width:200px;height:70px;border-radius:16px;background:var(--brand-plate-bg);border:1px solid var(--brand-plate-border);display:flex;align-items:center;justify-content:center;box-shadow:var(--brand-plate-shadow);overflow:hidden;padding:.35rem .6rem}
.brand-logo img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.layout:not(.collapsed) .sidebar .brand-logo{width:200px;height:70px}
.login-page .brand-logo{width:280px;height:96px;border-radius:18px}
.login-page .brand-logo img{max-height:92px}
.layout.collapsed .brand-logo{width:46px !important;height:46px !important;border-radius:16px}
.brand-icon{display:none}
.layout.collapsed .sidebar .brand-logo{display:none}
.layout.collapsed .sidebar .brand-icon{display:flex}
.card-elevated{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow)}
.chart-box{position:relative;height:220px}
.chart-box.chart-lg{height:180px}
.chart-box.chart-md{height:220px}
.chart-box canvas{width:100%!important;height:100%!important}

.layout{min-height:100vh;display:grid;grid-template-columns:260px 1fr;grid-template-rows:auto 1fr;background:transparent}
.layout.collapsed{grid-template-columns:84px 1fr}
.sidebar{grid-row:1 / span 2;grid-column:1;background:var(--sidebar-bg);color:var(--sidebar-text);position:fixed;top:0;left:0;bottom:0;width:260px;align-self:start;height:100vh;overflow:hidden;overflow-x:hidden;display:flex;flex-direction:column}
.layout.collapsed .sidebar{width:84px}
.sidebar{border-top-right-radius:26px;border-bottom-right-radius:26px;box-shadow:var(--sidebar-shadow)}
.sidebar .brand{display:flex;align-items:center;gap:.75rem;padding:1rem 1.25rem;justify-content:center;overflow:hidden}
.sidebar .brand .title{line-height:1}
.sidebar .brand .title .text-secondary{color:var(--sidebar-text-muted)!important}
.sidebar .menu{flex:1 1 auto;overflow:auto;overflow-x:hidden;scrollbar-gutter:stable}
.sidebar .menu{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.45) rgba(255,255,255,.14)}
.sidebar .menu::-webkit-scrollbar{width:10px}
.sidebar .menu::-webkit-scrollbar-track{background:rgba(255,255,255,.12);border-radius:999px;margin:10px 0}
.sidebar .menu::-webkit-scrollbar-thumb{background:rgba(255,255,255,.42);border-radius:999px;border:2px solid rgba(91,108,255,.55)}
.sidebar .menu::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.58)}
.layout.collapsed .menu .collapse.fp-flyout{scrollbar-width:thin;scrollbar-color:rgba(24,35,58,.35) rgba(24,35,58,.10)}
.layout.collapsed .menu .collapse.fp-flyout::-webkit-scrollbar{width:10px}
.layout.collapsed .menu .collapse.fp-flyout::-webkit-scrollbar-track{background:rgba(24,35,58,.08);border-radius:999px;margin:10px 0}
.layout.collapsed .menu .collapse.fp-flyout::-webkit-scrollbar-thumb{background:rgba(24,35,58,.26);border-radius:999px;border:2px solid rgba(255,255,255,.75)}
.layout.collapsed .menu .collapse.fp-flyout::-webkit-scrollbar-thumb:hover{background:rgba(24,35,58,.36)}
.menu .item{display:flex;align-items:center;gap:.75rem;padding:.65rem .9rem;border-radius:16px;color:var(--sidebar-text);text-decoration:none}
.menu .item span{font-weight:700}
.menu .item i{font-size:1.05rem}
.menu .item:hover{background:var(--sidebar-item-hover-bg);color:var(--sidebar-text)}
.menu .item.active{background:var(--sidebar-item-active-bg);color:var(--sidebar-item-active-text);box-shadow:0 10px 26px rgba(12,24,60,.18)}
.menu .item.active i{color:var(--sidebar-item-active-text)}
.menu-group{margin-top:.35rem}
.dataTables_wrapper #tablaClientes th:nth-child(1),.dataTables_wrapper #tablaClientes td:nth-child(1){text-align:left!important}
.dataTables_wrapper #tablaClientes td.dt-body-right,.dataTables_wrapper #tablaClientes th.dt-head-right,.dataTables_wrapper #tablaClientes td.dt-type-numeric,.dataTables_wrapper #tablaClientes th.dt-type-numeric{text-align:left!important}
.dataTables_wrapper #tablaClientes th.dt-type-numeric .dt-column-header{justify-content:flex-start!important}
.fp-dt-buttons .fp-dt-btn{border-radius:14px!important;padding:.42rem .72rem!important;font-weight:800!important;letter-spacing:.02em;display:inline-flex!important;align-items:center;gap:.45rem;border-width:1px!important;box-shadow:0 10px 22px rgba(22,34,58,.12)}
.fp-dt-buttons .fp-dt-btn:focus{outline:0}
.fp-dt-buttons .fp-dt-btn:focus-visible{box-shadow:0 10px 22px rgba(22,34,58,.12),0 0 0 .25rem rgba(91,108,255,.22)}
.fp-dt-buttons .buttons-excel{background:linear-gradient(180deg,#27a364 0%, #198754 100%)!important;border-color:rgba(25,135,84,.85)!important;color:#fff!important}
.fp-dt-buttons .buttons-pdf{background:linear-gradient(180deg,#f05a67 0%, #dc3545 100%)!important;border-color:rgba(220,53,69,.85)!important;color:#fff!important}
.fp-dt-buttons .buttons-print{background:linear-gradient(180deg,#6a7dff 0%, #0d6efd 100%)!important;border-color:rgba(13,110,253,.85)!important;color:#fff!important}
.fp-dt-buttons .buttons-excel,.fp-dt-buttons .buttons-pdf,.fp-dt-buttons .buttons-print{transition:transform .12s ease,filter .12s ease,box-shadow .12s ease}
.fp-dt-buttons .buttons-excel:hover,.fp-dt-buttons .buttons-pdf:hover,.fp-dt-buttons .buttons-print:hover{transform:translateY(-1px);filter:brightness(1.06);box-shadow:0 14px 28px rgba(22,34,58,.16)}
.fp-dt-buttons .buttons-excel:active,.fp-dt-buttons .buttons-pdf:active,.fp-dt-buttons .buttons-print:active{transform:translateY(0);filter:brightness(.98);box-shadow:0 10px 22px rgba(22,34,58,.10)}
.menu-parent{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.65rem .9rem;border-radius:16px;border:0;background:var(--sidebar-parent-bg);color:var(--sidebar-text);font-weight:800}
.menu-parent:hover{background:var(--sidebar-parent-hover-bg);color:var(--sidebar-text)}
.menu-parent.active{background:var(--sidebar-parent-active-bg);box-shadow:inset 0 0 0 1px var(--sidebar-parent-hover-bg)}
.menu-parent > div{min-width:0}
.menu-parent span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.menu-parent .chevron{transition:transform .15s ease;opacity:.9}
.menu-parent[aria-expanded="true"] .chevron{transform:rotate(180deg)}
.menu .collapse,.menu .collapsing{margin:.25rem 0 .15rem .25rem;padding-left:.25rem;border-left:1px solid var(--sidebar-sep)}
.menu .item.child{padding-left:2.1rem;opacity:.96;border-radius:14px}
.menu .item.child:hover{background:var(--sidebar-item-hover-bg)}
.menu .item.child.active{background:var(--sidebar-item-active-bg);color:var(--sidebar-item-active-text)}
.menu .item.child.active i{color:var(--sidebar-item-active-text)}
.menu .item.child i{opacity:.9}

.layout.collapsed .menu-parent{justify-content:center;padding:.65rem .7rem}
.layout.collapsed .menu-parent span{display:none}
.layout.collapsed .menu-parent .chevron{display:none}
.layout.collapsed .menu-parent > div{width:auto}
.layout.collapsed .menu .collapse{display:none !important}
.layout.collapsed .menu .item.child{display:none}
.layout.collapsed .sidebar .title{display:none}
.layout.collapsed .menu .menu-section{display:none}
.layout.collapsed .menu .item span{display:none}
.layout.collapsed .menu .item{justify-content:center}
.layout.collapsed .menu .collapse.fp-flyout{display:block !important;position:fixed;z-index:1060;margin:0;padding:.5rem;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:18px;box-shadow:0 22px 55px rgba(22,34,58,.18);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);max-height:calc(100vh - 24px);overflow:auto}
.layout.collapsed .menu .collapse.fp-flyout{border-left:0}
.layout.collapsed .menu .collapse.fp-flyout .item.child{display:flex;padding:.6rem .75rem;border-radius:14px;color:var(--ui-text);opacity:1}
.layout.collapsed .menu .collapse.fp-flyout .item.child i{color:var(--ui-muted);opacity:1}
.layout.collapsed .menu .collapse.fp-flyout .item.child span{display:inline}
.layout.collapsed .menu .collapse.fp-flyout .item.child:hover{background:rgba(91,108,255,.10)}
.layout.collapsed .menu .collapse.fp-flyout .item.child.active{background:rgba(91,108,255,.14);color:var(--ui-text)}
.layout.collapsed .menu .collapse.fp-flyout .item.child.active i{color:var(--ui-primary)}

.topbar{grid-column:2;margin:1rem 1.25rem 0;padding:.85rem 1rem;display:flex;align-items:center;justify-content:space-between}
.topbar{position:sticky;top:.75rem;z-index:1020;background:var(--ui-surface-strong);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid var(--ui-border);border-radius:24px;box-shadow:0 18px 45px rgba(22,34,58,.08)}
.topbar .title{display:flex;align-items:center;gap:.75rem}
.topbar .actions{display:flex;align-items:center;gap:.6rem}
.toggle-btn{width:44px;height:44px;border-radius:16px;border:1px solid var(--ui-border);background:var(--ui-surface-strong);display:none;align-items:center;justify-content:center;color:var(--ui-text);box-shadow:0 10px 25px rgba(22,34,58,.06)}
.toggle-btn:hover{background:rgba(79,110,247,.08);border-color:rgba(79,110,247,.25)}
.app-search{width:min(420px, 52vw);position:relative}
.app-search input{border-radius:999px;padding-left:2.5rem;background:var(--ui-surface-strong);border:1px solid var(--ui-border);box-shadow:0 10px 25px rgba(22,34,58,.06)}
.app-search .icon{position:absolute;left:.85rem;top:50%;transform:translateY(-50%);color:var(--ui-muted)}
.icon-btn{width:42px;height:42px;border-radius:14px;border:1px solid var(--ui-border);background:var(--ui-surface-strong);display:flex;align-items:center;justify-content:center;color:var(--ui-text);box-shadow:0 10px 25px rgba(22,34,58,.06)}
.user-pill{display:flex;align-items:center;gap:.6rem;background:var(--ui-surface-strong);border:1px solid var(--ui-border);border-radius:999px;padding:.35rem .6rem .35rem .4rem;box-shadow:0 10px 25px rgba(22,34,58,.06)}
.avatar{width:34px;height:34px;border-radius:999px;background:linear-gradient(180deg,#dfe6ff 0%, #c8d3ff 100%);display:flex;align-items:center;justify-content:center;color:var(--ui-primary);font-weight:800}

.content{grid-column:2;padding:1.25rem 1.25rem 1.5rem}
.content{min-width:0}

.layout.pos-fullscreen{grid-template-columns:1fr}
.layout.pos-fullscreen .sidebar{display:none !important}
.layout.pos-fullscreen .topbar{display:none !important}
.layout.pos-fullscreen .content{grid-column:1;padding:.75rem .75rem 1rem}

.stat-card,.card-panel{background:var(--ui-surface-strong);border:1px solid var(--ui-border);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow-soft);overflow:hidden}
.stat-card{padding:1.1rem}
.stat-card .kpi{font-size:1.75rem;font-weight:800;letter-spacing:-.02em}
.stat-card .kpi .unit{font-size:1rem;color:var(--ui-muted);font-weight:700}
.stat-card .icon{width:44px;height:44px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#e9eeff 0%, #d9e2ff 100%);color:var(--ui-primary)}
.stat-card .btn{border-radius:14px}
.btn{border-radius:14px}
.btn.btn-sm{border-radius:12px}
.btn.btn-lg{border-radius:16px}

.btn-primary{background:var(--ui-primary);border-color:var(--ui-primary)}
.btn-primary:hover{background:var(--ui-primary-600);border-color:var(--ui-primary-600)}
.btn-outline-light{border-color:var(--ui-border);color:var(--ui-text);background:transparent}
.btn-outline-light:hover{background:rgba(79,110,247,.08);border-color:rgba(79,110,247,.25);color:var(--ui-text)}
.btn-icon{width:36px;height:36px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;border:1px solid var(--ui-border);background:var(--ui-surface-strong);color:var(--ui-text);box-shadow:0 10px 25px rgba(22,34,58,.06)}
.btn-icon.btn-sm{width:34px;height:34px;border-radius:12px}
.btn-icon i{font-size:1.05rem}
.btn-icon-primary{border-color:rgba(91,108,255,.28);background:rgba(91,108,255,.12);color:var(--ui-primary)}
.btn-icon-primary:hover{background:rgba(91,108,255,.18);border-color:rgba(91,108,255,.38);color:var(--ui-primary)}
.btn-icon-danger{border-color:rgba(255,77,109,.30);background:rgba(255,77,109,.12);color:#b42318}
.btn-icon-danger:hover{background:rgba(255,77,109,.18);border-color:rgba(255,77,109,.40);color:#b42318}
.btn-icon-warning{border-color:rgba(255,153,80,.32);background:rgba(255,153,80,.14);color:#b54708}
.btn-icon-warning:hover{background:rgba(255,153,80,.18);border-color:rgba(255,153,80,.44);color:#b54708}
.btn-icon-success{border-color:rgba(34,192,143,.30);background:rgba(34,192,143,.14);color:#067647}
.btnAiItem{border-color:rgba(91,108,255,.25);background:var(--ui-surface)}
.btnAiItem:hover{background:rgba(91,108,255,.10);border-color:rgba(91,108,255,.35)}
.ai-star{
  background:linear-gradient(90deg,#ff3d77 0%, #ffb703 25%, #3a86ff 55%, #8338ec 85%, #ff3d77 100%);
  background-size:220% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent !important;
  display:inline-block;
  animation:aiStarHue 2.4s linear infinite, aiStarPulse 1.2s ease-in-out infinite;
}
@keyframes aiStarHue{0%{background-position:0% 50%}100%{background-position:100% 50%}}
@keyframes aiStarPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}

.btn-icon-success:hover{background:rgba(34,192,143,.18);border-color:rgba(34,192,143,.42);color:#067647}


.modal-content{background:var(--ui-surface-strong);border:1px solid var(--ui-border);color:var(--ui-text);border-radius:var(--ui-radius)}
.dropdown-menu{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:18px;box-shadow:var(--ui-shadow-soft)}
.dropdown-item{border-radius:12px;color:var(--ui-text)}
.dropdown-item:hover,.dropdown-item:focus{background:rgba(91,108,255,.10);color:var(--ui-text)}
.form-control,.form-select,.input-group-text{background:var(--ui-surface-soft);border:1px solid var(--ui-border);color:var(--ui-text);border-radius:14px}
.fp-searchable-select{position:relative}
.fp-searchable-select-native{position:absolute !important;inset:0 auto auto 0 !important;width:1px !important;height:1px !important;opacity:0 !important;pointer-events:none !important}
.fp-searchable-select-control{display:flex;align-items:center;gap:.35rem;height:calc(2.25rem + 2px);min-height:calc(2.25rem + 2px);padding:.375rem .75rem;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:14px;box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}
.fp-searchable-select-control:focus-within{border-color:rgba(79,110,247,.55);box-shadow:0 0 0 .25rem rgba(79,110,247,.15);background:var(--ui-surface)}
.fp-searchable-select:hover .fp-searchable-select-control{border-color:var(--ui-border-strong)}
.fp-searchable-select.is-open .fp-searchable-select-control{border-color:rgba(79,110,247,.55);box-shadow:0 0 0 .25rem rgba(79,110,247,.15)}
.fp-searchable-select.is-disabled .fp-searchable-select-control{opacity:.72;background:var(--ui-surface-2)}
.fp-searchable-select-input{flex:1 1 auto;min-width:0;border:0;outline:0;background:transparent;color:var(--ui-text);padding:0;line-height:1.5;font-size:1rem;box-shadow:none}
.fp-searchable-select-input::placeholder{color:var(--ui-muted)}
.fp-searchable-select-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.fp-searchable-select-toggle{flex:0 0 auto;width:24px;height:24px;border:0;border-radius:10px;background:transparent;color:var(--ui-muted);display:inline-flex;align-items:center;justify-content:center;padding:0}
.fp-searchable-select-toggle:hover{background:rgba(79,110,247,.08);color:var(--ui-text)}
.fp-searchable-select.is-open .fp-searchable-select-toggle i{transform:rotate(180deg)}
.fp-searchable-select-toggle i{transition:transform .15s ease}
.fp-searchable-select-panel{display:none;position:absolute;top:calc(100% + .35rem);left:0;right:0;z-index:30;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:14px;box-shadow:0 18px 40px rgba(22,34,58,.12);overflow:hidden}
.fp-searchable-select.is-open .fp-searchable-select-panel{display:block}
.fp-searchable-select-list{max-height:260px;overflow:auto;padding:.35rem}
.fp-searchable-select-option{width:100%;border:0;background:transparent;color:var(--ui-text);text-align:left;padding:.6rem .7rem;border-radius:10px}
.fp-searchable-select-option:hover,.fp-searchable-select-option:focus{background:rgba(79,110,247,.08);outline:0}
.fp-searchable-select-option.is-active{background:rgba(79,110,247,.12);font-weight:700}
.fp-searchable-select-empty{padding:.75rem;color:var(--ui-muted);text-align:center}
.input-group-text{color:var(--ui-muted-strong)}
.form-control::placeholder{color:var(--ui-muted)}
.form-control:focus,.form-select:focus{border-color:rgba(79,110,247,.55);box-shadow:0 0 0 .25rem rgba(79,110,247,.15);background:var(--ui-surface-strong)}
.fp-inline-suggestions{
  background:var(--ui-surface);
  border:1px solid var(--ui-border);
  border-radius:14px;
  box-shadow:0 18px 40px rgba(22,34,58,.18);
  overflow:auto;
}
.fp-inline-suggestions .list-group-item{
  background:transparent;
  color:var(--ui-text);
  border-color:var(--ui-border);
  padding:.9rem 1rem;
}
.fp-inline-suggestions .list-group-item:first-child{
  border-top-left-radius:14px;
  border-top-right-radius:14px;
}
.fp-inline-suggestions .list-group-item:last-child{
  border-bottom-left-radius:14px;
  border-bottom-right-radius:14px;
}
.fp-inline-suggestions .list-group-item:hover,
.fp-inline-suggestions .list-group-item:focus{
  background:rgba(91,108,255,.10);
  color:var(--ui-text);
}
.fp-inline-suggestions .list-group-item .fw-semibold{
  color:var(--ui-text);
}
.fp-inline-suggestions .list-group-item .text-secondary{
  color:var(--ui-muted) !important;
}
.fp-inline-suggestions-section{
  padding:.75rem 1rem .5rem;
  background:rgba(91,108,255,.06);
  border-top:1px solid var(--ui-border);
  border-bottom:1px solid var(--ui-border);
}
.fp-inline-suggestions-section:first-child{
  border-top:none;
}
.fp-inline-suggestions-section .fw-semibold{
  color:var(--ui-text);
  font-size:.82rem;
  letter-spacing:.02em;
}
.fp-inline-suggestions-section-head{
  display:flex;
  align-items:center;
  gap:.5rem;
}
.fp-inline-suggestions-section-chip{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.35rem .7rem;
  border-radius:999px;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  border:1px solid transparent;
}
.fp-inline-suggestions-section-chip-opm{
  background:rgba(76,110,245,.16);
  color:#3157f3;
  border-color:rgba(76,110,245,.28);
}
.fp-inline-suggestions-section-chip-ai{
  background:rgba(72,190,255,.16);
  color:#0b84c9;
  border-color:rgba(72,190,255,.28);
}
.fp-inline-suggestions-section-chip-internal{
  background:rgba(120,130,150,.14);
  color:var(--ui-muted-strong);
  border-color:rgba(120,130,150,.22);
}
.fp-inline-suggestions::-webkit-scrollbar{width:10px}
.fp-inline-suggestions::-webkit-scrollbar-track{background:transparent}
.fp-inline-suggestions::-webkit-scrollbar-thumb{
  background:rgba(108,122,153,.35);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}
.fp-inline-suggestions::-webkit-scrollbar-thumb:hover{background:rgba(108,122,153,.5);background-clip:padding-box}
html[data-theme="dark"] .fp-inline-suggestions{
  background:linear-gradient(180deg,rgba(19,28,53,.98) 0%, rgba(15,22,43,.98) 100%);
  border-color:rgba(123,140,255,.18);
  box-shadow:0 20px 42px rgba(0,0,0,.32);
}
html[data-theme="dark"] .fp-inline-suggestions .list-group-item{
  border-color:rgba(123,140,255,.14);
}
html[data-theme="dark"] .fp-inline-suggestions .list-group-item:hover,
html[data-theme="dark"] .fp-inline-suggestions .list-group-item:focus{
  background:rgba(123,140,255,.14);
}
html[data-theme="dark"] .fp-inline-suggestions-section{
  background:rgba(123,140,255,.10);
  border-color:rgba(123,140,255,.16);
}
html[data-theme="dark"] .fp-inline-suggestions-section-chip-opm{
  background:rgba(123,140,255,.20);
  color:#dbe2ff;
  border-color:rgba(123,140,255,.30);
}
html[data-theme="dark"] .fp-inline-suggestions-section-chip-ai{
  background:rgba(72,190,255,.18);
  color:#dff6ff;
  border-color:rgba(72,190,255,.30);
}
html[data-theme="dark"] .fp-inline-suggestions-section-chip-internal{
  background:rgba(146,157,184,.16);
  color:#d3dcf8;
  border-color:rgba(146,157,184,.24);
}
html[data-theme="dark"] .fp-inline-suggestions .badge.text-bg-secondary{
  background:rgba(123,140,255,.18) !important;
  color:#dce4ff !important;
}
html[data-theme="dark"] .fp-inline-suggestions .badge.text-bg-info{
  background:rgba(72,190,255,.18) !important;
  color:#dff6ff !important;
}
html[data-theme="dark"] .fp-inline-suggestions::-webkit-scrollbar-thumb{
  background:rgba(199,209,242,.28);
  background-clip:padding-box;
}
html[data-theme="dark"] .fp-inline-suggestions::-webkit-scrollbar-thumb:hover{
  background:rgba(199,209,242,.42);
  background-clip:padding-box;
}
.form-control:hover,.form-select:hover{border-color:var(--ui-border-strong)}
.table{color:var(--ui-text)}
.table thead th{color:var(--ui-muted-strong);font-weight:800;font-size:.79rem;text-transform:uppercase;letter-spacing:.04em}
.table{border-color:var(--ui-border)}
.table> :not(caption)>*>*{padding:.75rem .75rem}
.table thead th{background:var(--ui-surface-2);border-bottom:1px solid var(--ui-border)}
.table tbody td{vertical-align:middle}
.table tbody tr{transition:background-color .14s ease}
.table tbody tr:hover{background:rgba(91,108,255,.06)}
.table-responsive{border-radius:18px;border:1px solid rgba(91,108,255,.08);background:var(--ui-surface-strong);overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
.table-responsive>.table{margin-bottom:0}
.badge{border:1px solid var(--ui-border);font-weight:800;letter-spacing:.02em;padding:.42rem .58rem}
.alert{border-radius:18px;border-color:var(--ui-border);box-shadow:var(--ui-shadow-soft)}
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .card-panel{background:linear-gradient(180deg,rgba(15,22,43,.98) 0%, rgba(11,16,32,.96) 100%);box-shadow:var(--ui-shadow-soft)}
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu{background:linear-gradient(180deg,rgba(15,22,43,.98) 0%, rgba(11,16,32,.98) 100%)}
html[data-theme="dark"] .table-responsive{background:rgba(15,22,43,.92);border-color:rgba(123,140,255,.10)}
html[data-theme="dark"] .table thead th{background:rgba(19,28,53,.96);color:#d6deff}
html[data-theme="dark"] .table tbody tr:hover{background:rgba(123,140,255,.09)}
html[data-theme="dark"] .badge.text-bg-light,
html[data-theme="dark"] .badge.bg-light{background:rgba(19,28,53,.92) !important;color:#e7ecff !important;border-color:rgba(123,140,255,.18) !important}
html[data-theme="dark"] .text-bg-light.text-dark,
html[data-theme="dark"] .bg-light.text-dark{color:#e7ecff !important}
html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select{background:rgba(19,28,53,.92);border-color:rgba(123,140,255,.16);color:var(--ui-text)}
html[data-theme="dark"] .form-control::placeholder{color:#9dacd8}
html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus{background:rgba(123,140,255,.14)}
html[data-theme="dark"] .alert{background:rgba(19,28,53,.96);color:var(--ui-text)}
.list-group-item{background:transparent;border-color:var(--ui-border)}


.fp-dtbar .dataTables_filter{margin:0}
.fp-dtbar .dataTables_filter label{margin:0;display:flex;align-items:center;gap:.5rem;font-weight:700;color:var(--ui-muted-strong)}
.fp-dtbar .dataTables_filter input{margin-left:0;border-radius:999px;padding:.55rem .9rem;border:1px solid var(--ui-border);background:var(--ui-surface);box-shadow:0 10px 25px rgba(22,34,58,.06)}
.fp-dtbar .dt-buttons{display:flex;gap:.5rem;flex-wrap:wrap}
.fp-dtbar .dt-buttons .btn{box-shadow:0 10px 25px rgba(22,34,58,.06);border-color:rgba(91,108,255,.25)}
.fp-dtbar .dt-buttons .btn.btn-outline-light{color:var(--ui-primary);background:var(--ui-surface)}
.fp-dtfoot{row-gap:.65rem}
.fp-dtfoot .dataTables_paginate{margin-left:auto}
.dataTables_wrapper{width:100%}
.dataTables_wrapper .table.dataTable{width:100%!important;margin-bottom:0}
.dataTables_wrapper table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control,
.dataTables_wrapper table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control{padding-left:2rem;position:relative}
.dataTables_wrapper table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
.dataTables_wrapper table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before{top:50%;left:.7rem;transform:translateY(-50%);margin-top:0}
.dataTables_wrapper table.dataTable>tbody>tr.child ul.dtr-details{width:100%;margin:0;padding:0}
.dataTables_wrapper table.dataTable>tbody>tr.child ul.dtr-details>li{display:flex;justify-content:space-between;gap:.8rem;padding:.55rem 0;border-bottom:1px solid rgba(91,108,255,.08)}
.dataTables_wrapper table.dataTable>tbody>tr.child ul.dtr-details>li:last-child{border-bottom:0}
.dataTables_wrapper table.dataTable>tbody>tr.child .dtr-title{font-weight:800;color:var(--ui-muted-strong);min-width:120px}
.dataTables_wrapper table.dataTable>tbody>tr.child .dtr-data{text-align:right;overflow-wrap:anywhere}
.fp-dtbar .dt-buttons .btn.btn-outline-light:hover{background:rgba(91,108,255,.10);border-color:rgba(91,108,255,.35);color:var(--ui-primary)}
.fp-dtfoot .dataTables_info{color:var(--ui-muted);font-weight:700}
.fp-dtfoot .pagination{margin:0}
.fp-dtfoot .page-link{border-radius:12px;margin:0 .15rem;border:1px solid var(--ui-border);color:var(--ui-text);background:var(--ui-surface)}
.fp-dtfoot .page-item.active .page-link{background:var(--ui-primary);border-color:var(--ui-primary);color:#fff}

.pos-client-results{max-height:260px;overflow:auto;border:1px solid var(--ui-border);border-radius:18px;background:var(--ui-surface);box-shadow:0 18px 45px rgba(22,34,58,.10)}
.pos-client-results .list-group-item{border:0;border-bottom:1px solid var(--ui-border);padding:.65rem .75rem}
.pos-client-results .list-group-item:last-child{border-bottom:0}
.pos-client-results .list-group-item:hover{background:rgba(91,108,255,.08)}

.login-hero{background:var(--login-hero-bg)}
.login-hero .carousel-inner{border-radius:0}
.login-hero{position:relative}
.login-news-overlay{position:absolute;inset:0;display:flex;align-items:stretch;justify-content:center;padding:2rem}
.login-news-wrap{width:100%;max-width:980px;display:flex;align-items:center}
.login-page{background:var(--ui-bg)}
.login-left{background:var(--login-left-bg)}
.login-left-inner{max-width:540px}
.login-news-card{width:100%;max-height:calc(100vh - 4rem);overflow:hidden;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:26px;box-shadow:0 28px 70px rgba(10,22,48,.35);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);display:flex;flex-direction:column}
.login-news-card{padding:1.25rem 1.25rem 1rem}
.login-news-title{font-weight:800;font-size:1.1rem;color:var(--ui-text)}
.login-news-subtitle{color:var(--ui-muted);font-size:.9rem;margin-top:.15rem}
.nav-pills-modern .nav-link{border-radius:14px;background:rgba(79,110,247,.08);color:var(--ui-text);font-weight:700}
.nav-pills-modern .nav-link.active{background:var(--ui-primary)}
.login-news-card .tab-content{flex:1;min-height:0;display:flex}
.login-news-card .tab-pane{flex:1;min-height:0}
.login-news-list{max-height:none;height:100%;overflow-y:auto;overflow-x:hidden;padding-right:.25rem;padding-bottom:1.5rem;scrollbar-gutter:stable}
.login-news-list-mobile{max-height:340px}
.login-news-list .list-group-item{background:transparent;border:0;border-bottom:1px solid var(--ui-border);padding:.85rem 0}
.login-news-list .list-group-item:last-child{border-bottom:0}
.login-news-list a.list-group-item{transition:transform .12s ease, background-color .12s ease}
.login-news-list a.list-group-item:hover{background:rgba(79,110,247,.06);transform:translateY(-1px)}
.pos-live-results{margin-top:.75rem}
.pos-live-results .list-group{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:16px;overflow:hidden;box-shadow:0 18px 45px rgba(22,34,58,.08)}
.pos-live-results .list-group-item{background:var(--ui-surface);border:0;border-bottom:1px solid var(--ui-border)}
.pos-live-results .list-group-item:last-child{border-bottom:0}
.pos-live-results .list-group-item:last-child{border-bottom:0}
.pos-live-results .hint{font-size:.85rem;color:var(--ui-muted)}

#modalProducto{
  overflow:hidden !important;
}
.products-modal-dialog{
  margin:1rem auto;
  height:calc(100vh - 2rem);
  max-height:calc(100vh - 2rem);
  max-width:min(96vw, 1680px);
}
.products-modal-grid{align-items:start}
.products-modal-panel{
  background:linear-gradient(180deg,#ffffff 0%, #f4f7ff 100%);
  border:1px solid rgba(91,108,255,.12);
  border-radius:18px;
  padding:1rem;
  box-shadow:0 12px 30px rgba(22,34,58,.06);
}
.products-modal-content{
  display:flex;
  flex-direction:column;
  height:100%;
  max-height:100%;
  overflow:hidden;
  background:linear-gradient(180deg,#ffffff 0%, #f3f7ff 100%);
}
.products-modal-content .modal-header,
.products-modal-footer{
  flex:0 0 auto;
}
.products-modal-content .modal-header{
  background:#ffffff;
  border-bottom:1px solid rgba(91,108,255,.10);
}
.products-modal-content .modal-body{
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
  padding-bottom:0;
  background:linear-gradient(180deg,#fbfcff 0%, #f2f6ff 100%);
}
.products-modal-content #formProducto{
  display:flex;
  flex:1 1 auto;
  height:100%;
  min-height:0;
}
.products-modal-footer{
  gap:.75rem;
  justify-content:flex-end;
  border-top:1px solid var(--ui-border);
  background:#ffffff;
}
.products-modal-footer .btn{
  min-width:140px;
}
.products-modal-tabs{
  margin-top:0;
  gap:.45rem;
  border-bottom:0;
}
.products-modal-tabs-wrap{
  display:flex;
  flex-direction:column;
  min-height:0;
  min-width:0;
  height:100%;
}
.products-modal-tabs-body{
  flex:1 1 0;
  min-height:0;
  min-width:0;
  height:0;
  max-height:100%;
  display:block;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:.35rem;
  padding-bottom:1rem;
  scrollbar-width:thin;
}
.products-modal-tabs-body .tab-content{
  padding-top:1rem !important;
  min-height:0;
  min-width:0;
}
.products-modal-tabs-body .tab-pane{
  min-height:0;
  min-width:0;
}
.products-modal-tabs-body .tab-pane.active{
  padding-bottom:.5rem;
}
.products-modal-tabs-body .row{
  --bs-gutter-x: 1rem;
}
.products-modal-tab-content{
  flex:1 1 auto;
  min-height:0;
  min-width:0;
  height:auto;
  overflow:visible;
  padding-right:0;
  padding-bottom:0;
}
.products-modal-tabs-body::-webkit-scrollbar{
  width:10px;
}
.products-modal-tabs-body::-webkit-scrollbar-track{
  background:rgba(91,108,255,.08);
  border-radius:999px;
}
.products-modal-tabs-body::-webkit-scrollbar-thumb{
  background:rgba(91,108,255,.26);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}
.products-modal-tabs-body::-webkit-scrollbar-thumb:hover{
  background:rgba(91,108,255,.38);
  background-clip:padding-box;
}
.products-modal-tabs .nav-link{
  border:1px solid var(--ui-border);
  border-radius:14px;
  color:var(--ui-text);
  background:var(--ui-surface-strong);
  font-weight:700;
}
.products-modal-tabs .nav-link.active{
  background:rgba(91,108,255,.14);
  border-color:rgba(91,108,255,.24);
  color:var(--ui-primary);
}
@media (min-width: 992px){
  .products-modal-content{
    height:min(94vh, 1080px);
    overflow:hidden;
  }
  .products-modal-content .modal-body{
    display:flex;
    overflow:hidden;
  }
  .products-modal-grid{
    display:flex;
    flex:1 1 auto;
    min-height:0;
    height:100%;
    align-items:stretch !important;
  }
  .products-modal-col-main{
    flex:0 0 50%;
    max-width:50%;
    min-height:0;
  }
  .products-modal-col-tabs{
    flex:0 0 50%;
    max-width:50%;
    min-height:0;
  }
  .products-modal-main,
  .products-modal-tabs-wrap{
    height:100%;
    min-height:0;
  }
  .products-modal-grid > [class*="col-"]{
    display:flex;
    min-height:0;
  }
  .products-modal-grid > [class*="col-"] > .products-modal-panel{
    flex:1 1 auto;
  }
  .products-modal-tabs-wrap{
    overflow:hidden;
  }
  .products-modal-tabs-body{
    flex:1 1 0;
    min-height:0;
    height:0;
    max-height:100%;
    overflow-y:auto;
    overflow-x:hidden;
  }
  .products-modal-tab-content{
    height:auto;
  }
  .products-modal-main{
    overflow:visible;
    position:relative;
  }
}
@media (min-width: 1200px){
  .products-modal-main #pNombreSug{
    left:0 !important;
    width:calc(100% + 74%) !important;
    min-width:calc(174% - .5rem) !important;
    max-width:calc(174% - .5rem) !important;
    max-height:min(72vh, 760px) !important;
    z-index:1085 !important;
  }
}
@media (max-width: 1199.98px){
  .products-modal-content .modal-body{
    overflow-y:auto;
  }
  .products-modal-tabs-body{
    display:block;
    overflow:visible;
    padding-right:0;
    padding-bottom:0;
  }
  .products-modal-tab-content{
    height:auto;
    overflow:visible;
    padding-right:0;
    padding-bottom:0;
  }
  .products-modal-panel{
    padding:.9rem;
  }
  .products-modal-footer{
    position:sticky;
    bottom:0;
    z-index:3;
  }
}
@media (min-width: 1400px){
  .products-modal-dialog{
    max-width:min(97vw, 1780px);
  }
}
html[data-theme="dark"] .products-modal-panel{
  background:linear-gradient(180deg,rgba(19,28,53,.98) 0%, rgba(15,22,43,.98) 100%);
  border-color:rgba(123,140,255,.14);
}
html[data-theme="dark"] .products-modal-content{
  background:linear-gradient(180deg,rgba(19,28,53,.98) 0%, rgba(15,22,43,.99) 100%);
}
html[data-theme="dark"] .products-modal-content .modal-header{
  background:linear-gradient(180deg,rgba(19,28,53,.99) 0%, rgba(16,24,46,.99) 100%);
  border-bottom-color:rgba(123,140,255,.14);
}
html[data-theme="dark"] .products-modal-content .modal-body{
  background:linear-gradient(180deg,rgba(17,25,48,.98) 0%, rgba(14,21,40,.99) 100%);
}
html[data-theme="dark"] .products-modal-footer{
  background:linear-gradient(180deg,rgba(15,22,43,.98) 0%, rgba(11,16,32,.98) 100%);
  border-color:rgba(123,140,255,.14);
}
html[data-theme="dark"] .products-modal-tabs .nav-link{
  background:rgba(19,28,53,.92);
  border-color:rgba(123,140,255,.16);
}
html[data-theme="dark"] .products-modal-tabs .nav-link.active{
  background:rgba(123,140,255,.18);
  border-color:rgba(123,140,255,.26);
  color:#dfe6ff;
}
html[data-theme="dark"] .products-modal-tabs-body::-webkit-scrollbar{
  width:10px;
}
html[data-theme="dark"] .products-modal-tabs-body::-webkit-scrollbar-track{
  background:transparent;
}
html[data-theme="dark"] .products-modal-tabs-body::-webkit-scrollbar-thumb{
  background:rgba(199,209,242,.26);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}
html[data-theme="dark"] .products-modal-tabs-body::-webkit-scrollbar-thumb:hover{
  background:rgba(199,209,242,.40);
  background-clip:padding-box;
}

@media (min-width: 992px){
  .pos-right-sticky{position:sticky;top:92px}
}

.pos-qty-group{max-width:140px;margin-left:auto;flex-wrap:nowrap}
.pos-qty-group .btn{padding:.25rem .5rem;flex:0 0 36px;width:36px}
.pos-qty-group .form-control{min-width:56px;max-width:64px;flex:0 0 64px}
.pos-cart-compact .pos-qty-group{max-width:136px}
.pos-summary-sticky{position:sticky;bottom:12px;z-index:20}

.pos-bottom-bar{position:fixed;left:0;right:0;bottom:0;z-index:1030;padding:.75rem .75rem calc(.75rem + env(safe-area-inset-bottom));background:var(--ui-surface);border-top:1px solid var(--ui-border);box-shadow:0 -18px 45px rgba(22,34,58,.08);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.pos-bottom-left{min-width:0}
.pos-has-bottom-bar .content{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
.layout.pos-fullscreen .pos-bottom-bar{display:none !important}

.pos-main-row{align-items:start}
.pos-main-left,.pos-main-right,.pos-left-panel,.pos-right-stack{min-width:0}
.pos-cobro-card{display:flex;flex-direction:column;gap:0}
.pos-cobro-head{margin-bottom:.35rem}
.pos-cobro-actions{padding:1rem 1.05rem;background:var(--ui-surface-2)}
.pos-pagos-list{min-height:120px}
.pos-pay-card{border-radius:22px;box-shadow:0 12px 28px rgba(22,34,58,.06)}
.pos-pay-card .form-label{margin-bottom:.25rem}
.pos-pay-select-wrap{display:block}
.pos-pay-action-stack .btn{border-radius:14px}
.pos-pay-meta{background:var(--ui-surface-3);border:1px dashed rgba(91,108,255,.22);border-radius:16px;padding:.75rem}
.pos-pay-wallet-box{min-height:100%;display:flex;flex-direction:column;justify-content:flex-end}
.pos-pay-card-simple .pago-monto{font-size:1.15rem;font-weight:700}
.pos-pay-card .pago-trans[readonly],.pos-pay-card .pago-monto[readonly]{background:var(--ui-surface-2)}
.pos-right-cliente{transition:opacity .16s ease,transform .16s ease}
.wallet-manual-card{max-width:none}
.wallet-manual-card .form-control{min-height:52px}
.pos-summary-highlight{padding:1rem 1.05rem;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
.pos-summary-highlight.is-empty{background:var(--ui-surface-2)}
.pos-summary-highlight.is-pending{background:rgba(255,77,109,.06);border-color:rgba(255,77,109,.20)}
.pos-summary-highlight.is-ready{background:rgba(34,192,143,.08);border-color:rgba(34,192,143,.24)}
.pos-summary-highlight .text-end{flex:0 0 auto;min-width:92px}
.pos-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.75rem}
.pos-section-title{font-weight:800;letter-spacing:-.01em}
.pos-section-subtitle{color:var(--ui-muted);font-size:.85rem;margin-top:.18rem}
.pos-head-chips,.ops-head-chips{display:flex;flex-wrap:wrap;gap:.4rem}
.ops-chip{display:inline-flex;align-items:center;gap:.35rem;padding:.38rem .7rem;border-radius:999px;background:rgba(91,108,255,.10);border:1px solid rgba(91,108,255,.16);color:var(--ui-primary);font-size:.78rem;font-weight:800;letter-spacing:.01em}
.ops-chip.ops-chip-neutral{background:var(--ui-surface-3);border-color:var(--ui-border);color:var(--ui-muted-strong)}
.ops-chip.ops-chip-success{background:rgba(34,192,143,.10);border-color:rgba(34,192,143,.18);color:#067647}
.ops-chip.ops-chip-warning{background:rgba(255,153,80,.12);border-color:rgba(255,153,80,.20);color:#b54708}
.pos-quick-hints{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.75rem}
.pos-quick-hints .ops-chip{font-size:.75rem}
.pos-cart-scroll{border-radius:18px}
.pos-cobro-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:.9rem 0 0}
.pos-cobro-kpi{padding:.85rem .95rem;border-radius:18px;background:var(--ui-surface-2);border:1px solid var(--ui-border)}
.pos-cobro-kpi .label{color:var(--ui-muted);font-size:.76rem;text-transform:uppercase;letter-spacing:.05em;font-weight:800}
.pos-cobro-kpi .value{font-size:1.1rem;font-weight:800;margin-top:.2rem}
.pos-summary-actions{display:grid;grid-template-columns:1fr;gap:.65rem}
.pos-summary-footnote{color:var(--ui-muted);font-size:.84rem;line-height:1.45}
.pos-client-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}
.pos-page .page-hero{overflow:hidden}
.pos-surface-card{position:relative}
.pos-surface-card::before{content:"";position:absolute;inset:0 0 auto 0;height:1px;background:linear-gradient(90deg,rgba(91,108,255,.22),rgba(91,108,255,0));pointer-events:none}
.pos-search-card .input-group-lg .input-group-text{padding-inline:1rem;border-top-right-radius:0;border-bottom-right-radius:0}
.pos-search-card .input-group-lg .form-control{min-height:56px}
.pos-search-card .input-group-lg .btn{min-width:124px}
.pos-cart-card .pos-section-head,.pos-summary-card .d-flex:first-child,.pos-client-card .pos-client-card-head{margin-bottom:1rem}
.pos-cobro-shell{background:
  radial-gradient(960px 260px at 0% 0%, rgba(91,108,255,.12) 0%, rgba(91,108,255,0) 56%),
  linear-gradient(180deg,var(--ui-surface) 0%, var(--ui-surface-2) 100%)}
.pos-close-card{border-style:solid}
.pos-summary-card{background:
  radial-gradient(960px 260px at 0% 0%, rgba(34,192,143,.12) 0%, rgba(34,192,143,0) 58%),
  linear-gradient(180deg,var(--ui-surface) 0%, var(--ui-surface-2) 100%)}
.pos-client-card{background:
  radial-gradient(960px 260px at 0% 0%, rgba(91,108,255,.12) 0%, rgba(91,108,255,0) 58%),
  linear-gradient(180deg,var(--ui-surface) 0%, var(--ui-surface-2) 100%)}
.pos-client-card #clienteSelectedCard{min-height:88px}
.clients-page .page-hero{overflow:hidden}
.clients-modal-content{background:
  radial-gradient(980px 260px at 0% 0%, rgba(91,108,255,.10) 0%, rgba(91,108,255,0) 56%),
  linear-gradient(180deg,var(--ui-surface) 0%, var(--ui-surface-2) 100%)}
.clients-modal-form .modal-body{display:flex;flex-direction:column;gap:.2rem}
.clients-modal-section{margin-bottom:.35rem}
.clients-modal-section-title{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:var(--ui-primary)}
.clients-modal-section-text{font-size:.82rem;line-height:1.55;color:var(--ui-muted);margin-top:.18rem}
.clients-doc-note{padding:.7rem .85rem;border-radius:14px;background:rgba(91,108,255,.06);border:1px solid rgba(91,108,255,.12)}
.inventory-page .page-hero,
.purchases-page .page-hero,
.vendors-page .page-hero,
.products-page .page-hero,
.expiry-page .page-hero{overflow:hidden}
.purchases-form-card{background:
  radial-gradient(960px 260px at 0% 0%, rgba(91,108,255,.12) 0%, rgba(91,108,255,0) 56%),
  linear-gradient(180deg,var(--ui-surface) 0%, var(--ui-surface-2) 100%)}
.purchases-subblock{margin-bottom:1rem}
.purchases-subblock-title{font-size:.92rem;font-weight:900;color:var(--ui-text)}
.purchases-subblock-text{font-size:.84rem;line-height:1.6;color:var(--ui-muted);margin-top:.18rem}
.purchases-detail-card,
.purchases-history-card,
.vendors-modal-content{background:
  radial-gradient(980px 260px at 0% 0%, rgba(91,108,255,.10) 0%, rgba(91,108,255,0) 56%),
  linear-gradient(180deg,var(--ui-surface) 0%, var(--ui-surface-2) 100%)}
.vendors-modal-form{display:flex;flex-direction:column;gap:.2rem}
.vendors-modal-section{margin-bottom:.45rem}
.vendors-modal-section-title{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:var(--ui-primary)}
.vendors-modal-section-text{font-size:.82rem;line-height:1.55;color:var(--ui-muted);margin-top:.18rem}
.products-modal-content{background:linear-gradient(180deg,#ffffff 0%, #f3f7ff 100%)}
.lotes-modal-content{background:
  radial-gradient(980px 260px at 0% 0%, rgba(91,108,255,.10) 0%, rgba(91,108,255,0) 56%),
  linear-gradient(180deg,var(--ui-surface) 0%, var(--ui-surface-2) 100%)}
.ops-shell{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.ops-shell-title{font-weight:800;letter-spacing:-.01em}
.ops-shell-subtitle{color:var(--ui-muted);font-size:.88rem;margin-top:.18rem}
.ops-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.85rem;margin-bottom:1rem}
.ops-kpi-card{padding:1rem 1rem .95rem;border-radius:20px;background:linear-gradient(180deg,var(--ui-surface) 0%, var(--ui-surface-2) 100%);border:1px solid var(--ui-border);box-shadow:0 14px 32px rgba(22,34,58,.08)}
.ops-kpi-card .label{color:var(--ui-muted);font-size:.76rem;text-transform:uppercase;letter-spacing:.06em;font-weight:800}
.ops-kpi-card .value{font-size:1.4rem;font-weight:800;line-height:1.05;margin-top:.3rem}
.ops-kpi-card .hint{color:var(--ui-muted);font-size:.8rem;margin-top:.3rem}
.ops-kpi-card.is-success{background:rgba(34,192,143,.08);border-color:rgba(34,192,143,.20)}
.ops-kpi-card.is-warning{background:rgba(255,153,80,.10);border-color:rgba(255,153,80,.20)}
.ops-kpi-card.is-danger{background:rgba(255,77,109,.08);border-color:rgba(255,77,109,.20)}
.ops-kpi-card.is-accent{background:rgba(91,108,255,.08);border-color:rgba(91,108,255,.18)}
.ops-filter-card{overflow:hidden;background:linear-gradient(180deg,var(--ui-surface) 0%, var(--ui-surface-2) 100%)}
.ops-filter-summary{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.8rem}
.ops-filter-summary .ops-chip{font-size:.76rem}
.ops-table-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.85rem}
.ops-table-title{font-weight:800}
.ops-table-subtitle{color:var(--ui-muted);font-size:.84rem;line-height:1.55;max-width:780px}
.ops-status-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.36rem .62rem;border-radius:999px;font-size:.74rem;font-weight:800;letter-spacing:.04em;border:1px solid transparent}
.ops-status-badge.is-paid{background:rgba(34,192,143,.10);border-color:rgba(34,192,143,.18);color:#067647}
.ops-status-badge.is-pending{background:rgba(255,153,80,.12);border-color:rgba(255,153,80,.18);color:#b54708}
.ops-status-badge.is-failed{background:rgba(255,77,109,.10);border-color:rgba(255,77,109,.18);color:#b42318}
.ops-provider-badge{display:inline-flex;align-items:center;justify-content:center;min-width:82px;padding:.38rem .7rem;border-radius:999px;background:var(--ui-surface-2);border:1px solid var(--ui-border);font-size:.76rem;font-weight:800;letter-spacing:.05em}
.ops-provider-badge.is-culqi{color:#7c3aed;background:rgba(124,58,237,.10);border-color:rgba(124,58,237,.18)}
.ops-provider-badge.is-izipay{color:#0f766e;background:rgba(13,148,136,.10);border-color:rgba(13,148,136,.18)}
.ops-provider-badge.is-wallet{color:#1d4ed8;background:rgba(59,130,246,.10);border-color:rgba(59,130,246,.18)}
.ops-ref-stack{display:flex;flex-direction:column;gap:.15rem}
.ops-ref-stack .meta{color:var(--ui-muted);font-size:.76rem}
.ops-action-stack{display:flex;flex-wrap:wrap;gap:.35rem;justify-content:flex-end}
.ops-action-stack .btn{box-shadow:none}
.ops-empty-link{color:var(--ui-muted);font-size:.84rem}
.ops-filter-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.9fr);gap:1rem;align-items:start}
.ops-filter-main{min-width:0}
.ops-filter-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.ops-button-row{display:flex;justify-content:flex-end;gap:.75rem;flex-wrap:wrap}
.ops-button-row .btn{min-height:44px;flex:1 1 180px}
.ops-button-row-compact{height:100%}
.ops-button-row-compact .btn{flex:1 1 0}
.ops-check-highlight{padding:.85rem 1rem;border-radius:18px;background:var(--ui-surface-3);border:1px solid var(--ui-border);min-height:44px;display:flex;align-items:center}
.ops-check-highlight .form-check-input{margin-top:0}
.ops-table-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.ops-table-toolbar > div:first-child{min-width:0}
.ops-table-legend{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end}
.ops-table-wrap{width:100%;border:1px solid rgba(91,108,255,.10);border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.72) 0%, rgba(241,246,255,.54) 100%);overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
.ops-table-wrap .table{margin-bottom:0}
.ops-table-wrap .table thead th{background:rgba(91,108,255,.06);border-bottom-color:rgba(91,108,255,.10);font-size:.77rem;text-transform:uppercase;letter-spacing:.05em}
.ops-table-wrap .table td,.ops-table-wrap .table th{padding:.82rem .8rem;vertical-align:middle}
.ops-table-wrap .table td:last-child,.ops-table-wrap .table th:last-child{white-space:nowrap}
.fp-auto-table-wrap{margin-bottom:1rem}
.fp-dtr-table{table-layout:fixed}
.fp-dtr-table th{width:132px;font-size:.76rem;text-transform:uppercase;letter-spacing:.04em;color:var(--ui-muted-strong)}
.fp-dtr-table td,.fp-dtr-table th{padding:.52rem .58rem;vertical-align:top}
.fp-dtr-table td{overflow-wrap:anywhere}
.products-page .table-responsive.ops-table-wrap{overflow:hidden}
.products-page .table{min-width:0}
.products-page .table td:last-child,.products-page .table th:last-child{min-width:96px}
.products-page .table th:last-child{padding-right:1rem}
.products-page .table td:last-child{padding-right:1rem}
.products-page .table td:first-child,.products-page .table th:first-child{min-width:240px}
.products-page .products-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:.45rem;padding-right:.1rem}
.products-page .products-mobile-meta{display:none}
.products-page .products-mobile-dot{display:inline-flex;align-items:center;justify-content:center;min-width:.8rem;color:var(--ui-muted)}
.inventory-page .stock-lotes-action-stack{display:inline-flex;align-items:center;justify-content:flex-end;gap:.45rem;flex-wrap:wrap}
.inventory-page .stock-lotes-actions{min-width:0}
.inventory-page .stock-product-cell{display:flex;flex-direction:column;gap:.5rem}
.inventory-page .stock-lotes-action-stack-mobile{display:none}
.inventory-page .stock-col-producto{min-width:220px}
.inventory-page .stock-col-total{white-space:nowrap;min-width:72px}
.inventory-page .stock-col-actions{white-space:nowrap;min-width:118px}
.inventory-page .stock-current-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:.45rem;flex-wrap:wrap}
.inventory-page .stock-current-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:.38rem}
.inventory-page .stock-current-btn-icon{flex:0 0 auto}
.inventory-page .stock-current-col-producto{min-width:220px}
.inventory-page .stock-current-col-total{white-space:nowrap;min-width:64px}
.inventory-page .stock-current-col-actions{white-space:nowrap;min-width:118px}
.products-page .fp-dtr-table th{width:128px;font-size:.76rem;text-transform:uppercase;letter-spacing:.04em}
.products-page .fp-dtr-table td,.products-page .fp-dtr-table th{padding:.48rem .55rem}
@media (max-width: 1199.98px){
  .products-page .table td,.products-page .table th{padding:.72rem .62rem}
  .products-page .table td:first-child,.products-page .table th:first-child{min-width:200px}
}
@media (max-width: 767.98px){
  .products-page .table{table-layout:auto}
  .products-page .table td,.products-page .table th{padding:.62rem .5rem;font-size:.94rem}
  .products-page #tablaProductos2 thead th{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.68rem;padding-top:.5rem;padding-bottom:.5rem}
  .products-page #tablaProductos2 thead th:first-child{text-align:left}
  .products-page .table td:first-child,.products-page .table th:first-child{min-width:0}
  .products-page .products-col-main{width:auto}
  .products-page .products-col-stock{width:3.4rem;white-space:nowrap}
  .products-page .products-col-actions{width:4.9rem;white-space:nowrap}
  .products-page .products-name-main .fw-semibold{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .products-page .products-mobile-meta{display:flex;flex-wrap:wrap;gap:.28rem;font-size:.76rem;color:var(--ui-muted);margin-top:.32rem}
  .products-page .btn.btn-sm{padding:.35rem .48rem}
  .products-page .btn-icon.btn-sm{width:32px;height:32px}
  .products-page .table td:last-child,.products-page .table th:last-child{padding-right:.75rem}
  .products-page .products-actions{gap:.35rem}
  .products-page .dtr-details{width:100%}
  .inventory-page .ops-table-wrap .table{min-width:0!important;table-layout:auto}
  .inventory-page #tablaLotes thead .stock-col-producto,
  .inventory-page #tablaLotes tbody .stock-col-producto{width:auto;min-width:0}
  .inventory-page #tablaLotes thead .stock-col-total,
  .inventory-page #tablaLotes tbody .stock-col-total{width:64px;min-width:64px;white-space:nowrap}
  .inventory-page #tablaLotes thead .stock-col-actions,
  .inventory-page #tablaLotes tbody .stock-col-actions{display:none!important}
  .inventory-page #tablaLotes thead .stock-col-control,
  .inventory-page #tablaLotes tbody .stock-col-control{width:26px;min-width:26px;padding-left:.3rem;padding-right:.2rem}
  .inventory-page #tablaLotes thead th{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.68rem;padding-top:.5rem;padding-bottom:.5rem}
  .inventory-page #tablaLotes td,.inventory-page #tablaLotes th{padding:.62rem .45rem;font-size:.92rem;vertical-align:middle}
  .inventory-page #tablaLotes .stock-col-producto .fw-semibold{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.84rem;line-height:1.2}
  .inventory-page .stock-lotes-action-stack-mobile{display:flex}
  .inventory-page .stock-lotes-action-stack{display:flex;flex-direction:column;align-items:stretch;gap:.35rem}
  .inventory-page .stock-lotes-action-stack .btn{width:100%;min-height:34px;padding:.34rem .3rem;font-size:.74rem;justify-content:center}
  .inventory-page .stock-lotes-action-stack .btn i{margin-right:0!important}
  .inventory-page .stock-lotes-action-stack .stock-btn-label{display:none}
  .inventory-page #tablaStock thead .stock-current-col-control,
  .inventory-page #tablaStock tbody .stock-current-col-control{width:26px;min-width:26px;padding-left:.3rem;padding-right:.2rem}
  .inventory-page #tablaStock thead .stock-current-col-producto,
  .inventory-page #tablaStock tbody .stock-current-col-producto{width:auto;min-width:0}
  .inventory-page #tablaStock thead .stock-current-col-total,
  .inventory-page #tablaStock tbody .stock-current-col-total{width:64px;min-width:64px;white-space:nowrap}
  .inventory-page #tablaStock thead .stock-current-col-actions,
  .inventory-page #tablaStock tbody .stock-current-col-actions{width:118px;min-width:118px}
  .inventory-page #tablaStock thead th{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.68rem;padding-top:.5rem;padding-bottom:.5rem}
  .inventory-page #tablaStock td,.inventory-page #tablaStock th{padding:.62rem .45rem;font-size:.92rem;vertical-align:middle}
  .inventory-page #tablaStock .stock-current-col-producto .fw-semibold{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.84rem;line-height:1.2}
  .inventory-page .stock-current-actions{display:flex;flex-direction:column;align-items:stretch;gap:.35rem}
  .inventory-page .stock-current-actions .btn{width:100%;min-height:34px;padding:.34rem .45rem;font-size:.74rem;justify-content:center;gap:.35rem;white-space:nowrap}
  .inventory-page .stock-current-actions .btn i{margin-right:0!important}
  .inventory-page table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
  .inventory-page table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before{top:50%;transform:translateY(-50%)}
}
@media (max-width: 420px){
  .inventory-page .stock-current-actions .btn{gap:0}
  .inventory-page .stock-current-actions .stock-current-btn-icon{display:none}
}
@media (min-width: 768px){
  .inventory-page #tablaLotes thead .stock-col-control,
  .inventory-page #tablaLotes tbody .stock-col-control{display:none!important}
  .inventory-page #tablaStock thead .stock-current-col-control,
  .inventory-page #tablaStock tbody .stock-current-col-control{display:none!important}
}
@media (max-width: 767.98px){
  .fp-dtbar{align-items:stretch!important}
  .fp-dtbar .dt-buttons{width:100%}
  .fp-dtbar .dt-buttons .btn{flex:1 1 auto;justify-content:center}
  .fp-dtbar .dataTables_filter{width:100%}
  .fp-dtbar .dataTables_filter label{width:100%;flex-wrap:wrap}
  .fp-dtbar .dataTables_filter input{width:100%!important;min-width:0}
  .fp-dtfoot{align-items:stretch!important}
  .fp-dtfoot .dataTables_info,.fp-dtfoot .dataTables_paginate{width:100%;margin-left:0}
  .fp-dtfoot .pagination{justify-content:center;flex-wrap:wrap}
  .dataTables_wrapper table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control,
  .dataTables_wrapper table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control{padding-left:1.75rem}
  .dataTables_wrapper table.dataTable>tbody>tr.child ul.dtr-details>li{flex-direction:column;align-items:flex-start;gap:.25rem}
  .dataTables_wrapper table.dataTable>tbody>tr.child .dtr-data{text-align:left}
  .table-responsive,.ops-table-wrap{border-radius:16px}
}
.sales-page .page-section-card,
.ops-page .page-section-card,
.fe-bandeja-page .page-section-card{overflow:hidden}
.sales-page .ops-table-wrap .table,
.ops-page .ops-table-wrap .table,
.fe-bandeja-page .ops-table-wrap .table{min-width:960px}
.ops-page .page-hero,.fe-bandeja-page .page-hero{overflow:hidden}
.fe-chip-cloud{display:flex;flex-wrap:wrap;gap:.6rem}
.fe-chip-cloud .fe-status-chip{border-radius:999px;padding:.55rem .8rem;font-weight:700}
.fe-action-card-static{cursor:default}
.sales-detail-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.95fr);gap:1.1rem;align-items:start}
.sales-side-stack{display:flex;flex-direction:column;gap:1rem}
.sales-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.9rem}
.sales-card-title{font-size:1rem;font-weight:900;color:var(--ui-text);margin-bottom:.8rem}
.sales-kv-list{display:grid;gap:.75rem}
.sales-kv-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem .95rem;border-radius:18px;background:linear-gradient(180deg,var(--ui-surface-2) 0%, var(--ui-surface-3) 100%);border:1px solid rgba(91,108,255,.10)}
.sales-kv-item-strong{background:linear-gradient(180deg,rgba(91,108,255,.10) 0%, rgba(91,108,255,.04) 100%);border-color:rgba(91,108,255,.16)}
.sales-kv-label{font-size:.84rem;font-weight:700;color:var(--ui-muted-strong)}
.sales-kv-value{font-weight:900;color:var(--ui-text);text-align:right}
.sales-info-block{padding:.9rem .95rem;border-radius:18px;background:rgba(91,108,255,.06);border:1px solid rgba(91,108,255,.12)}
.sales-info-title{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--ui-primary);font-weight:900;margin-bottom:.35rem}
.sales-info-stack{display:grid;gap:.45rem}
.sales-log-list{display:grid;gap:.7rem}
.sales-log-item{padding:.85rem .95rem;border-radius:18px;background:var(--ui-surface-2);border:1px solid rgba(91,108,255,.10)}
.sales-payment-list{display:grid;gap:.7rem}
.sales-payment-item{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:.85rem .95rem;border-radius:18px;background:var(--ui-surface-2);border:1px solid rgba(91,108,255,.10)}

@media (max-width: 991.98px){
  .ops-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pos-cobro-kpis{grid-template-columns:1fr}
}

@media (max-width: 575.98px){
  .ops-shell,.ops-table-head,.pos-section-head,.pos-client-card-head{flex-direction:column;align-items:stretch}
  .ops-kpi-grid{grid-template-columns:1fr}
}
@media (max-width: 1199.98px){
  .ops-filter-layout{grid-template-columns:1fr}
  .sales-detail-layout{grid-template-columns:1fr}
}
@media (max-width: 767.98px){
  .ops-button-row{flex-direction:column}
  .ops-button-row .btn{width:100%}
  .ops-table-toolbar{flex-direction:column}
  .ops-table-legend{justify-content:flex-start}
  .sales-page .page-section-head,.ops-page .page-section-head,.fe-bandeja-page .page-section-head{flex-direction:column;align-items:stretch}
  .sales-page .ops-table-wrap .table,.ops-page .ops-table-wrap .table,.fe-bandeja-page .ops-table-wrap .table{min-width:820px}
  .sales-card-head,.sales-kv-item,.sales-payment-item{flex-direction:column;align-items:flex-start}
  .sales-kv-value{text-align:left}
}
.pos-summary-highlight .text-end > div,
.pos-summary-highlight #posPendiente,
.pos-summary-highlight #posPagado,
.pos-summary-highlight #posVuelto{white-space:nowrap}
.pos-summary-highlight #posPendiente{transition:color .16s ease}
.pos-summary-highlight.is-ready #posPendiente{color:#067647 !important}
@media (min-width: 992px){
  .pos-main-left{flex:0 0 64%;width:64%}
  .pos-main-right{flex:0 0 36%;width:36%}
  .pos-right-stack{position:sticky;top:92px}
  .pos-right-stack{max-height:calc(100vh - 108px);overflow:auto;padding-right:.2rem}
  .pos-summary-sticky{position:static;bottom:auto}
  .pos-cobro-card{min-height:calc(100vh - 122px)}
  .pos-pagos-list{max-height:calc(100vh - 470px);overflow:auto;padding-right:.1rem}
}
@media (max-width: 991.98px){
  body.pos-left-cobro .pos-bottom-bar{display:none !important}
  body.pos-has-bottom-bar.pos-left-cobro .content{padding-bottom:1.25rem}
}

body:not(.pos-left-cobro) .pos-summary-highlight{display:none !important}
body.pos-left-cobro #btnOpenCobro{display:none !important}
body:not(.pos-left-cobro) .pos-right-cliente{display:none !important}

.pos-cart-scroll{scrollbar-gutter:stable}
@media (min-width: 992px){
  .pos-cart-scroll{max-height:calc(100vh - 335px);overflow:auto}
  .pos-cart-scroll thead th{position:sticky;top:0;z-index:6;background:var(--ui-surface-2)}
  .pos-cart-scroll thead th{box-shadow:0 1px 0 rgba(24,35,58,.08)}
}

@media (max-width: 991.98px){
  .layout{grid-template-columns:100%}
  .sidebar{top:0;left:0;bottom:0;width:280px;max-width:92vw;transform:translateX(-105%);transition:transform .2s ease;z-index:1040;border-radius:0 26px 26px 0}
  .layout.mobile-open .sidebar{transform:translateX(0)}
  .sidebar-backdrop{position:fixed;inset:0;background:rgba(8,14,28,.35);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);z-index:1030;display:none}
  .layout.mobile-open .sidebar-backdrop{display:block}
  .topbar{grid-column:1}
  .topbar{margin:.75rem .75rem 0;border-radius:22px}
  .content{grid-column:1;padding:1rem .75rem 1.25rem}
  .app-search{width:100%}
  .menu-parent{justify-content:space-between}
  .toggle-btn{display:flex !important}
}

.sidebar-backdrop{display:none}

@media (min-width: 992px){
  .toggle-btn{display:none !important}
}


.gauge-wrap{display:flex;flex-direction:column;align-items:center}
.gauge{--p:0;width:150px;height:150px;border-radius:999px;background:conic-gradient(var(--ui-primary) calc(var(--p) * 1%), rgba(91,108,255,.14) 0);position:relative;display:grid;place-items:center}
.gauge::after{content:"";position:absolute;inset:14px;border-radius:999px;background:var(--ui-surface);border:1px solid var(--ui-border);box-shadow:inset 0 0 0 1px rgba(255,255,255,.65)}
.gauge-center{position:relative;z-index:1;text-align:center}
.gauge-value{font-weight:900;font-size:1.4rem;letter-spacing:-.02em}
.gauge-sub{font-size:.9rem;color:var(--ui-muted);font-weight:800}
.tone-success-soft{background:conic-gradient(#22c08f calc(var(--p) * 1%), rgba(34,192,143,.16) 0)}
.tone-warning-soft{background:conic-gradient(#ff9950 calc(var(--p) * 1%), rgba(255,153,80,.18) 0)}

.recent-card{display:flex;align-items:center;gap:.75rem;padding:.9rem 1rem;border-radius:22px;background:linear-gradient(180deg,var(--ui-surface) 0%, var(--ui-surface-2) 100%);border:1px solid var(--ui-border);box-shadow:0 16px 38px rgba(22,34,58,.08)}
.recent-icon{width:44px;height:44px;border-radius:18px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.1rem;flex:0 0 auto}
.recent-meta{min-width:0}
.recent-card .form-check-input{width:2.4rem;height:1.2rem}
.recent-card .form-check-input:disabled{opacity:1}

.quick-card{display:flex;align-items:center;gap:.75rem;padding:.95rem 1rem;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:22px;box-shadow:0 16px 38px rgba(22,34,58,.08)}
.quick-icon{width:44px;height:44px;border-radius:18px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.1rem;flex:0 0 auto}
.quick-meta{min-width:0}
.quick-value{margin-left:auto;font-weight:900;color:var(--ui-text)}

.dash-tile{display:flex;align-items:center;gap:.9rem;padding:1rem 1rem;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:22px;box-shadow:0 18px 45px rgba(22,34,58,.10)}
.dash-icon{width:46px;height:46px;border-radius:18px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.15rem;flex:0 0 auto}
.dash-meta{min-width:0}
.dash-label{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--ui-muted);font-weight:800}
.dash-value{font-size:1.25rem;font-weight:900;letter-spacing:-.02em;color:var(--ui-text);line-height:1.1;margin-top:.1rem}
.dash-sub{font-size:.85rem;color:var(--ui-muted);margin-top:.15rem}

.tone-primary{background:linear-gradient(180deg,var(--ui-primary) 0%, var(--ui-primary-600) 100%)}
.tone-success{background:linear-gradient(180deg,#29d3a3 0%, #22c08f 100%)}
.tone-warning{background:linear-gradient(180deg,#ffb65c 0%, #ff9950 100%)}
.tone-danger{background:linear-gradient(180deg,#ff6b8c 0%, #ff4d6d 100%)}
.tone-muted{background:linear-gradient(180deg,#c9d3ff 0%, #b9c5ff 100%)}

.chip{width:40px;height:40px;border-radius:16px;display:flex;align-items:center;justify-content:center;color:#fff;flex:0 0 auto}

.soft-card{background:linear-gradient(180deg,var(--ui-surface-2) 0%, var(--ui-surface-3) 100%);border:1px solid var(--ui-border);border-radius:22px;padding:1rem;box-shadow:0 14px 34px rgba(22,34,58,.06)}
.soft-card .btn{border-radius:14px}

.device-card{display:flex;align-items:center;gap:.85rem;padding:1rem;background:linear-gradient(180deg,var(--ui-surface) 0%, var(--ui-surface-2) 100%);border:1px solid var(--ui-border);border-radius:22px;box-shadow:0 18px 45px rgba(22,34,58,.10);text-decoration:none;color:inherit;transition:transform .12s ease, box-shadow .12s ease,border-color .12s ease}
.device-card:hover{transform:translateY(-1px);box-shadow:0 22px 52px rgba(22,34,58,.12);border-color:var(--ui-border-strong)}
.device-icon{width:46px;height:46px;border-radius:18px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.15rem;flex:0 0 auto}
.device-meta{min-width:0}
.device-title{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.device-sub{font-size:.85rem;color:var(--ui-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.device-right{margin-left:auto;flex:0 0 auto}

.page-shell{display:flex;flex-direction:column;gap:.85rem}
.page-hero{padding:1.2rem 1.25rem;border-radius:26px;border:1px solid var(--ui-border);background:
  radial-gradient(1200px 360px at 0% 0%, rgba(91,108,255,.18) 0%, rgba(91,108,255,0) 58%),
  radial-gradient(760px 240px at 100% 0%, rgba(138,160,255,.12) 0%, rgba(138,160,255,0) 60%),
  linear-gradient(180deg,var(--ui-surface-strong) 0%, var(--ui-surface-2) 100%);
  box-shadow:0 18px 45px rgba(22,34,58,.09)}
.page-hero-main{display:flex;align-items:flex-start;justify-content:space-between;gap:1.2rem}
.page-hero-copy{min-width:0;flex:1 1 auto}
.page-eyebrow{font-size:.75rem;text-transform:uppercase;letter-spacing:.12em;font-weight:900;color:var(--ui-primary);margin-bottom:.35rem}
.page-title{font-size:2rem;font-weight:900;letter-spacing:-.03em;line-height:1.02;color:var(--ui-text)}
.page-subtitle{font-size:.95rem;line-height:1.7;color:var(--ui-muted);max-width:760px}
.page-section{display:flex;flex-direction:column;gap:.6rem}
.page-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.85rem}
.page-section-title{font-size:1rem;font-weight:900;letter-spacing:-.02em;color:var(--ui-text)}
.page-section-text{font-size:.84rem;line-height:1.55;color:var(--ui-muted);margin-top:.1rem;max-width:820px}
.page-section-card{background:linear-gradient(180deg,var(--ui-surface-strong) 0%, var(--ui-surface-2) 100%);border:1px solid var(--ui-border);border-radius:24px;box-shadow:0 12px 28px rgba(22,34,58,.06)}

.config-side-stack{display:flex;flex-direction:column;gap:1rem}
.config-summary-list{display:grid;gap:.7rem}
.config-summary-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1rem;border-radius:18px;background:linear-gradient(180deg,var(--ui-surface-2) 0%, var(--ui-surface-3) 100%);border:1px solid rgba(91,108,255,.10)}
.config-summary-item .label{font-size:.84rem;color:var(--ui-muted-strong);font-weight:700}
.config-summary-item .value{font-weight:900;color:var(--ui-text)}

.member-row{display:flex;align-items:center;gap:.75rem;padding:.7rem .6rem;border-radius:18px}
.member-row:hover{background:rgba(91,108,255,.08)}
.history-row{display:flex;align-items:center;gap:.75rem;padding:.7rem .6rem;border-radius:18px;text-decoration:none;color:inherit}
.history-row:hover{background:rgba(91,108,255,.08)}
.history-icon{width:40px;height:40px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:rgba(91,108,255,.12);color:var(--ui-primary);flex:0 0 auto}

.fe-page{display:flex;flex-direction:column;gap:1.5rem}
.fe-workspace{display:flex;flex-direction:column;gap:1.35rem}
.fe-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.fe-main-shell{background:linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 100%)}
.fe-main-shell .form-control,.fe-main-shell .form-select{min-height:44px}
.fe-top-tabs{border-bottom:1px solid rgba(91,108,255,.12);gap:.5rem}
.fe-top-tabs .nav-link{border:1px solid transparent;border-radius:14px 14px 0 0;padding:.8rem 1.1rem;font-weight:800;color:var(--ui-muted);background:transparent}
.fe-top-tabs .nav-link:hover{color:var(--ui-primary);border-color:rgba(91,108,255,.12)}
.fe-top-tabs .nav-link.active{color:var(--ui-text);background:var(--ui-surface);border-color:rgba(91,108,255,.12);border-bottom-color:var(--ui-surface);box-shadow:0 -1px 0 rgba(91,108,255,.04), 0 14px 28px rgba(22,34,58,.04)}
.fe-eyebrow{font-size:.74rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:var(--ui-primary);margin-bottom:.4rem}
.fe-hero-card{overflow:hidden;position:relative;background:
  radial-gradient(1200px 420px at 0% 0%, rgba(91,108,255,.16) 0%, rgba(91,108,255,0) 56%),
  linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.66) 100%)}
.fe-hero-main{display:flex;gap:1rem;align-items:flex-start;height:100%}
.fe-hero-icon-wrap{padding-top:.25rem}
.fe-hero-icon{width:58px;height:58px;border-radius:20px;box-shadow:0 16px 34px rgba(91,108,255,.22)}
.fe-hero-title{font-size:2rem;font-weight:900;letter-spacing:-.03em}
.fe-hero-text{font-size:1rem;line-height:1.7;color:var(--ui-muted);max-width:700px}
.fe-hero-tags,.fe-inline-status{display:flex;flex-wrap:wrap;gap:.55rem}
.fe-hero-side{height:100%;padding:1.1rem;border-radius:24px;background:rgba(255,255,255,.68);border:1px solid rgba(91,108,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.fe-hero-side-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.fe-side-kicker{font-size:.74rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ui-muted);margin-bottom:.15rem}
.fe-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.95rem}
.fe-metric-card{padding:1rem 1rem 1.05rem;border-radius:20px;background:var(--ui-surface);border:1px solid rgba(91,108,255,.12);box-shadow:0 14px 30px rgba(22,34,58,.08)}
.fe-metric-label{font-size:.8rem;color:var(--ui-muted);font-weight:700}
.fe-metric-value{font-size:1.8rem;font-weight:900;letter-spacing:-.03em;color:var(--ui-text);margin-top:.35rem;line-height:1}
.fe-metric-inline{font-size:1rem;font-weight:800;color:var(--ui-text);margin-top:.45rem}

.fe-config-shell{background:
  linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.64) 100%);
  border-color:rgba(91,108,255,.12)}
.fe-config-sidebar{height:100%;padding:1.35rem;background:
  linear-gradient(180deg, rgba(91,108,255,.08) 0%, rgba(91,108,255,.03) 100%);
  border-right:1px solid rgba(91,108,255,.12);display:flex;flex-direction:column;gap:1.2rem}
.fe-sidebar-title{font-size:1.3rem;font-weight:900;letter-spacing:-.02em;margin:0}
.fe-sidebar-text{font-size:.94rem;line-height:1.65;color:var(--ui-muted);margin:0}
.fe-tabs-nav{gap:.65rem}
.fe-tabs-nav .nav-item{width:100%}
.fe-tabs-nav .nav-link{width:100%;min-width:0;text-align:left;padding:.95rem 1rem;border-radius:18px;background:rgba(255,255,255,.72);border:1px solid rgba(91,108,255,.10);box-shadow:0 10px 24px rgba(22,34,58,.05);display:flex;flex-direction:column;gap:.15rem}
.fe-tabs-nav .nav-link.active{background:linear-gradient(180deg,var(--ui-primary) 0%, var(--ui-primary-600) 100%);border-color:transparent;color:#fff;box-shadow:0 14px 30px rgba(91,108,255,.26)}
.fe-tab-label{font-weight:800}
.fe-tab-hint{font-size:.8rem;opacity:.78}
.fe-tabs-nav .nav-link.active .fe-tab-hint{color:rgba(255,255,255,.82)}
.fe-sidebar-note{margin-top:auto;padding:1rem;border-radius:20px;background:rgba(255,255,255,.72);border:1px solid rgba(91,108,255,.10)}

.fe-config-main{padding:1.35rem}
.fe-pane-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.15rem}
.fe-pane-title{font-size:1.25rem;font-weight:900;letter-spacing:-.02em}
.fe-pane-subtitle{font-size:.95rem;color:var(--ui-muted);margin-top:.2rem;max-width:760px}
.fe-pane-chip{padding:.45rem .75rem;border-radius:999px;background:rgba(91,108,255,.10);border:1px solid rgba(91,108,255,.18);font-size:.8rem;font-weight:800;color:var(--ui-primary)}
.fe-panel-card{padding:1.15rem;border-radius:24px;background:linear-gradient(180deg,var(--ui-surface) 0%, rgba(255,255,255,.86) 100%);border:1px solid rgba(91,108,255,.10);box-shadow:0 18px 42px rgba(22,34,58,.08)}
.fe-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.fe-card-head-compact{margin-bottom:.7rem}
.fe-card-title{font-size:1rem;font-weight:800;color:var(--ui-text)}
.fe-card-subtitle{font-size:.9rem;color:var(--ui-muted);margin-top:.2rem;line-height:1.6}
.fe-table-wrap .table thead th{font-size:.78rem}
.fe-table-wrap .table td,.fe-table-wrap .table th{padding:.7rem .72rem}
.fe-inline-panel{padding:1rem;border-radius:20px;background:linear-gradient(180deg,rgba(91,108,255,.08) 0%, rgba(91,108,255,.03) 100%);border:1px solid rgba(91,108,255,.14)}
.fe-inline-panel-title{font-weight:800;color:var(--ui-text);margin-bottom:.25rem}
.fe-inline-panel-compact{padding:.85rem .95rem}
.fe-panel-card .form-label{margin-bottom:.38rem}
.fe-status-list{display:grid;gap:.85rem}
.fe-status-item{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding:1rem;border-radius:18px;background:var(--ui-surface-2);border:1px solid rgba(91,108,255,.10)}
.fe-status-title{font-weight:800;color:var(--ui-text);margin-bottom:.2rem}
.fe-status-text{font-size:.88rem;color:var(--ui-muted);line-height:1.6;max-width:440px}
.fe-switch-lg .form-check-input{width:3.15rem;height:1.65rem}
.fe-cert-card{padding:1rem;border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.98) 0%, rgba(244,247,255,.94) 100%);border:1px dashed rgba(91,108,255,.22)}
.fe-cert-top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.fe-cert-card .form-control{min-height:48px}
.fe-mode-block{padding:1rem;border-radius:18px;border:1px solid rgba(91,108,255,.10);margin-bottom:.85rem}
.fe-mode-block-demo{background:rgba(91,108,255,.06)}
.fe-mode-block-prod{background:rgba(255,77,109,.05)}
.fe-mode-title{font-weight:800;margin-bottom:.25rem}
.fe-mode-footer{margin-top:auto;padding-top:1rem;border-top:1px solid rgba(91,108,255,.10)}
.fe-action-bar{display:flex;justify-content:flex-end;align-items:center;gap:.75rem;margin-top:1.25rem;padding-top:1.1rem;border-top:1px solid rgba(91,108,255,.10)}
.fe-btn-equal{min-height:46px}

.fe-series-shell{background:
  linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.72) 100%)}
.fe-section-topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.25rem}
.fe-section-title{font-size:1.35rem;font-weight:900;letter-spacing:-.02em}
.fe-section-subtitle{font-size:.95rem;color:var(--ui-muted);margin-top:.2rem;max-width:720px}
.fe-switch-row{display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap;padding:.2rem 0}
.fe-switch-row-compact{gap:1rem;padding-top:.05rem}
.fe-table-wrap{border:1px solid rgba(91,108,255,.08);background:rgba(255,255,255,.5)}

@media (max-width: 1399.98px){
  .fe-hero-title{font-size:1.8rem}
}
@media (max-width: 1199.98px){
  .fe-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fe-config-sidebar{border-right:0;border-bottom:1px solid rgba(91,108,255,.12)}
  .fe-tabs-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .fe-tabs-nav .nav-item{width:auto}
}
@media (max-width: 991.98px){
  .fe-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fe-section-topbar,.fe-pane-header,.fe-card-head,.fe-status-item,.fe-cert-top{flex-direction:column}
  .fe-tabs-nav{grid-template-columns:1fr}
  .fe-action-bar{justify-content:stretch}
  .fe-action-bar .btn{width:100%}
}
@media (max-width: 767.98px){
  .fe-page{gap:1rem}
  .fe-overview-grid{grid-template-columns:1fr}
  .fe-hero-card,.fe-series-shell{padding:1.1rem !important}
  .fe-config-main,.fe-config-sidebar{padding:1rem}
  .fe-hero-main{flex-direction:column}
  .fe-hero-title{font-size:1.55rem}
  .fe-summary-grid{grid-template-columns:1fr}
}

.fp-help-offcanvas{width:min(440px,100vw);border-left:1px solid var(--ui-border);background:
  radial-gradient(900px 280px at 0% 0%, rgba(91,108,255,.14) 0%, rgba(91,108,255,0) 55%),
  linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,249,255,.96) 100%);color:var(--ui-text)}
.fp-help-kicker{font-size:.74rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:var(--ui-primary);margin-bottom:.35rem}
.fp-help-summary{padding:1rem 1.05rem;border-radius:20px;background:rgba(91,108,255,.10);border:1px solid rgba(91,108,255,.16);color:var(--ui-text);line-height:1.75}
.fp-help-block{margin-top:1rem;padding:1rem 1.05rem;border-radius:20px;background:linear-gradient(180deg,var(--ui-surface) 0%, var(--ui-surface-2) 100%);border:1px solid var(--ui-border);box-shadow:0 14px 34px rgba(22,34,58,.06)}
.fp-help-block-title{font-weight:800;color:var(--ui-text);margin-bottom:.6rem}
.fp-help-list{margin:0;padding-left:1.15rem;display:grid;gap:.52rem;color:var(--ui-text)}
.fp-help-list-ordered li::marker{font-weight:800;color:var(--ui-primary)}
.fp-help-footer{margin-top:1rem}
.fp-theme-status{border:1px solid var(--ui-border);padding:.55rem .8rem;border-radius:999px;font-weight:700}
.fp-theme-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}
.fp-theme-choice{width:100%;display:flex;align-items:flex-start;gap:.85rem;text-align:left;padding:1rem;border-radius:20px;border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-text);box-shadow:0 12px 28px rgba(22,34,58,.05);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background-color .16s ease}
.fp-theme-choice:hover{transform:translateY(-1px);border-color:rgba(91,108,255,.24);box-shadow:0 14px 30px rgba(22,34,58,.08)}
.fp-theme-choice.is-active{border-color:rgba(91,108,255,.42);background:rgba(91,108,255,.08);box-shadow:0 14px 32px rgba(91,108,255,.12)}
.fp-theme-choice-icon{flex:0 0 42px;width:42px;height:42px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:rgba(91,108,255,.12);color:var(--ui-primary);font-size:1.05rem}
.fp-theme-choice-copy{display:flex;flex-direction:column;gap:.2rem;min-width:0}
.fp-theme-choice-title{font-weight:800;color:var(--ui-text)}
.fp-theme-choice-text{font-size:.88rem;line-height:1.45;color:var(--ui-muted)}
.fp-theme-choice-check{margin-left:auto;color:var(--ui-primary);opacity:0;transition:opacity .16s ease}
.fp-theme-choice.is-active .fp-theme-choice-check{opacity:1}
html[data-theme="dark"] .fp-help-offcanvas{background:
  radial-gradient(900px 280px at 0% 0%, rgba(123,140,255,.20) 0%, rgba(123,140,255,0) 58%),
  linear-gradient(180deg, rgba(15,22,43,.98) 0%, rgba(11,16,32,.98) 100%);
  box-shadow:-18px 0 44px rgba(0,0,0,.35)}
html[data-theme="dark"] .fp-help-summary{background:rgba(123,140,255,.14);border-color:rgba(123,140,255,.22);color:var(--ui-text)}
html[data-theme="dark"] .fp-help-block{background:rgba(19,28,53,.96);border-color:rgba(123,140,255,.18);box-shadow:0 16px 34px rgba(0,0,0,.24)}
html[data-theme="dark"] .fp-help-offcanvas .text-secondary{color:#c7d1f2 !important}
html[data-theme="dark"] .fp-help-list li,
html[data-theme="dark"] .fp-help-summary,
html[data-theme="dark"] .fp-help-block-title{color:var(--ui-text)}
html[data-theme="dark"] .fp-theme-choice{background:rgba(19,28,53,.9);border-color:rgba(123,140,255,.16);box-shadow:0 16px 32px rgba(0,0,0,.2)}
html[data-theme="dark"] .fp-theme-choice:hover{border-color:rgba(123,140,255,.28);box-shadow:0 18px 36px rgba(0,0,0,.28)}
html[data-theme="dark"] .fp-theme-choice.is-active{background:rgba(123,140,255,.16);border-color:rgba(123,140,255,.36)}
html[data-theme="dark"] .fp-theme-choice-icon{background:rgba(123,140,255,.18);color:#dce4ff}
html[data-theme="dark"] .fp-theme-choice-text{color:#c7d1f2}
html[data-theme="dark"] .ops-chip.ops-chip-neutral{background:rgba(19,28,53,.94);border-color:rgba(123,140,255,.16);color:#d6deff}
html[data-theme="dark"] .ops-kpi-card,
html[data-theme="dark"] .recent-card,
html[data-theme="dark"] .device-card{background:linear-gradient(180deg,rgba(19,28,53,.96) 0%, rgba(15,22,43,.96) 100%)}
html[data-theme="dark"] .soft-card,
html[data-theme="dark"] .pos-pay-meta{background:linear-gradient(180deg,rgba(23,33,61,.96) 0%, rgba(19,28,53,.96) 100%);border-color:rgba(123,140,255,.16)}
html[data-theme="dark"] .pos-cobro-shell,
html[data-theme="dark"] .pos-summary-card,
html[data-theme="dark"] .pos-client-card,
html[data-theme="dark"] .pos-close-card{background:
  radial-gradient(960px 260px at 0% 0%, rgba(123,140,255,.14) 0%, rgba(123,140,255,0) 58%),
  linear-gradient(180deg,rgba(19,28,53,.96) 0%, rgba(15,22,43,.96) 100%)}
html[data-theme="dark"] .clients-modal-content{background:
  radial-gradient(980px 260px at 0% 0%, rgba(123,140,255,.14) 0%, rgba(123,140,255,0) 56%),
  linear-gradient(180deg,rgba(19,28,53,.96) 0%, rgba(15,22,43,.96) 100%)}
html[data-theme="dark"] .clients-doc-note{background:rgba(123,140,255,.10);border-color:rgba(123,140,255,.16)}
html[data-theme="dark"] .purchases-form-card,
html[data-theme="dark"] .purchases-detail-card,
html[data-theme="dark"] .purchases-history-card,
html[data-theme="dark"] .vendors-modal-content,
html[data-theme="dark"] .lotes-modal-content{background:
  radial-gradient(980px 260px at 0% 0%, rgba(123,140,255,.14) 0%, rgba(123,140,255,0) 56%),
  linear-gradient(180deg,rgba(19,28,53,.96) 0%, rgba(15,22,43,.96) 100%)}
html[data-theme="dark"] .products-modal-content{background:
  radial-gradient(980px 260px at 0% 0%, rgba(123,140,255,.14) 0%, rgba(123,140,255,0) 56%),
  linear-gradient(180deg,rgba(19,28,53,.96) 0%, rgba(15,22,43,.96) 100%)}
html[data-theme="dark"] .ops-filter-card{background:linear-gradient(180deg,rgba(19,28,53,.96) 0%, rgba(15,22,43,.96) 100%)}
html[data-theme="dark"] .ops-check-highlight,
html[data-theme="dark"] .ops-table-wrap,
html[data-theme="dark"] .fe-action-card-static{background:linear-gradient(180deg,rgba(19,28,53,.96) 0%, rgba(15,22,43,.96) 100%);border-color:rgba(123,140,255,.16)}
html[data-theme="dark"] .ops-table-wrap .table thead th{background:rgba(123,140,255,.10);border-bottom-color:rgba(123,140,255,.16)}
html[data-theme="dark"] .fe-chip-cloud .fe-status-chip .badge{background:#dce4ff !important;color:#13213d !important}
html[data-theme="dark"] .sales-kv-item,
html[data-theme="dark"] .sales-log-item,
html[data-theme="dark"] .sales-payment-item{background:rgba(123,140,255,.08);border-color:rgba(123,140,255,.16)}
html[data-theme="dark"] .sales-info-block{background:rgba(123,140,255,.10);border-color:rgba(123,140,255,.16)}
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .page-section-card,
html[data-theme="dark"] .config-summary-item{background:linear-gradient(180deg,rgba(19,28,53,.96) 0%, rgba(15,22,43,.96) 100%);border-color:rgba(123,140,255,.16)}
html[data-theme="dark"] .page-hero{box-shadow:0 20px 46px rgba(0,0,0,.28)}

.caja-page{min-width:0}
.caja-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.caja-topbar-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;justify-content:flex-end}
.caja-layout-closed{display:grid;gap:1rem;grid-template-columns:minmax(0,1fr)}
.caja-card{border-radius:18px}
.caja-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.75rem}
.caja-tabs-shell{overflow:hidden}
.caja-tabs{gap:.5rem;border-bottom:0;margin-bottom:1rem}
.caja-tabs .nav-link{border:1px solid var(--ui-border);border-radius:14px;color:var(--ui-text);background:var(--ui-surface-strong);font-weight:700}
.caja-tabs .nav-link.active{background:rgba(91,108,255,.14);border-color:rgba(91,108,255,.24);color:var(--ui-primary)}
.caja-tabs-content{min-height:0}
.caja-op-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;align-items:start}
.caja-op-row-top,.caja-op-row-bottom,.caja-op-col-actions,.caja-op-col-summary{min-width:0}
.caja-op-row-bottom{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;align-items:start}
.caja-op-summary{margin-bottom:0}
.caja-op-balance-hero{border-radius:18px;padding:1rem 1.1rem;background:radial-gradient(860px 260px at 0% 0%, rgba(91,108,255,.16) 0%, rgba(91,108,255,0) 62%),linear-gradient(180deg,var(--ui-surface-2) 0%, var(--ui-surface-3) 100%);border:1px solid rgba(91,108,255,.22)}
.caja-op-balance-label{font-size:.82rem;color:var(--ui-muted)}
.caja-op-balance-value{font-size:1.65rem;font-weight:900;color:var(--ui-text);line-height:1.05;margin-top:.15rem}
.caja-op-balance-meta{font-size:.8rem;color:var(--ui-muted);margin-top:.35rem}
.caja-op-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.caja-op-kpi{border-radius:16px;padding:.85rem .95rem;background:linear-gradient(180deg,var(--ui-surface-2) 0%, var(--ui-surface-3) 100%);border:1px solid rgba(91,108,255,.12)}
.caja-op-kpi-in{border-color:rgba(34,197,94,.22)}
.caja-op-kpi-out{border-color:rgba(239,68,68,.22)}
.caja-op-kpi-label{font-size:.78rem;color:var(--ui-muted)}
.caja-op-kpi-value{font-size:1.12rem;font-weight:900;color:var(--ui-text);line-height:1.1;margin-top:.2rem}
.caja-op-kpi-meta{font-size:.78rem;color:var(--ui-muted);margin-top:.35rem}
.caja-summary-grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:.85rem}
.caja-summary-item{border-radius:18px;padding:.95rem 1rem;background:linear-gradient(180deg,var(--ui-surface-2) 0%, var(--ui-surface-3) 100%);border:1px solid rgba(91,108,255,.10)}
.caja-summary-in{border-color:rgba(34,197,94,.22)}
.caja-summary-out{border-color:rgba(239,68,68,.22)}
.caja-summary-balance{border-color:rgba(91,108,255,.22)}
.caja-summary-label{font-size:.78rem;color:var(--ui-muted)}
.caja-summary-value{font-size:1.25rem;font-weight:900;color:var(--ui-text);line-height:1.1;margin-top:.2rem}
.caja-summary-meta{font-size:.78rem;color:var(--ui-muted);margin-top:.35rem}
.caja-layout-open{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;align-items:start}
.caja-side-card{position:sticky;top:1rem}
.caja-side{max-width:720px}
.caja-op-session-kv{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}
.caja-op-session-item{border-radius:14px;padding:.7rem .8rem;background:linear-gradient(180deg,var(--ui-surface-2) 0%, var(--ui-surface-3) 100%);border:1px solid rgba(91,108,255,.12);position:relative;overflow:hidden}
.caja-op-session-item::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:rgba(91,108,255,.55)}
.caja-op-session-item:nth-child(1){background:linear-gradient(180deg,rgba(34,197,94,.10) 0%, var(--ui-surface-3) 100%);border-color:rgba(34,197,94,.20)}
.caja-op-session-item:nth-child(1)::before{background:rgba(34,197,94,.85)}
.caja-op-session-item:nth-child(2){background:linear-gradient(180deg,rgba(59,130,246,.10) 0%, var(--ui-surface-3) 100%);border-color:rgba(59,130,246,.20)}
.caja-op-session-item:nth-child(2)::before{background:rgba(59,130,246,.85)}
.caja-op-session-item:nth-child(3){background:linear-gradient(180deg,rgba(168,85,247,.10) 0%, var(--ui-surface-3) 100%);border-color:rgba(168,85,247,.20)}
.caja-op-session-item:nth-child(3)::before{background:rgba(168,85,247,.85)}
.caja-op-session-item:nth-child(4){background:radial-gradient(680px 200px at 0% 0%, rgba(91,108,255,.16) 0%, rgba(91,108,255,0) 62%),linear-gradient(180deg,var(--ui-surface-2) 0%, var(--ui-surface-3) 100%);border-color:rgba(91,108,255,.22)}
.caja-op-session-item:nth-child(4)::before{background:rgba(91,108,255,.85)}
.caja-op-session-k{font-size:.78rem;color:var(--ui-muted)}
.caja-op-session-v{font-weight:900;color:var(--ui-text);margin-top:.1rem}
.caja-op-actions .btn{min-height:42px}
.caja-side-section{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.6rem .75rem;border-radius:14px;background:rgba(91,108,255,.06);border:1px solid rgba(91,108,255,.10);margin-top:.6rem}
.caja-side-label{font-size:.78rem;color:var(--ui-muted)}
.caja-side-value{font-weight:900;color:var(--ui-text)}
.caja-divider{height:1px;background:rgba(91,108,255,.12)}
.caja-op-methods-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:.6rem}
.caja-op-method{border-radius:16px;padding:.75rem .9rem;background:linear-gradient(180deg,var(--ui-surface-2) 0%, var(--ui-surface-3) 100%);border:1px solid rgba(91,108,255,.12);display:flex;flex-direction:column;gap:.35rem}
.caja-op-method-head{display:flex;align-items:center;gap:.55rem}
.caja-op-method-head i{width:28px;height:28px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:rgba(91,108,255,.10);color:var(--ui-primary)}
.caja-op-method-label{font-size:.82rem;color:var(--ui-muted);font-weight:800}
.caja-op-method-value{font-size:1.1rem;font-weight:900;color:var(--ui-text);line-height:1.05}
.caja-op-method-sub{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-size:.78rem;color:var(--ui-muted);margin-top:.1rem;flex-wrap:wrap}
.caja-op-method-efectivo{border-color:rgba(34,197,94,.22)}
.caja-op-method-efectivo .caja-op-method-head i{background:rgba(34,197,94,.12);color:#198754}
.caja-op-method-wallet{border-color:rgba(168,85,247,.22)}
.caja-op-method-wallet .caja-op-method-head i{background:rgba(168,85,247,.12);color:#8b5cf6}
.caja-op-method-tarjeta{border-color:rgba(59,130,246,.22)}
.caja-op-method-tarjeta .caja-op-method-head i{background:rgba(59,130,246,.12);color:#2563eb}
.caja-op-method-otros{border-color:rgba(91,108,255,.18)}
.caja-op-method-otros .caja-op-method-head i{background:rgba(91,108,255,.10);color:var(--ui-primary)}

@media (min-width: 992px){
  .caja-layout-closed{grid-template-columns:minmax(0,.6fr) minmax(0,1.4fr)}
  .caja-layout-open{grid-template-columns:minmax(0,1.55fr) minmax(360px,.85fr)}
  .caja-op-row-bottom{grid-template-columns:minmax(360px,.92fr) minmax(0,1.08fr)}
  .caja-op-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .caja-op-methods-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width: 991.98px){
  .caja-side-card{position:static}
  .caja-op-session-kv{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width: 575.98px){
  .caja-op-summary-grid{grid-template-columns:minmax(0,1fr)}
  .caja-op-kpi-value{font-size:1.05rem}
  .caja-op-balance-value{font-size:1.35rem}
  .caja-op-session-kv{grid-template-columns:minmax(0,1fr)}
  .caja-op-method-value{font-size:1.04rem}
}
@media (max-width: 991.98px){
  .fp-theme-choice-grid{grid-template-columns:1fr}
  .page-hero-main,.page-section-head{flex-direction:column}
}
