/* HextecPro · shared workspace and account controls. Product data stays in its own module. */
:root{color-scheme:dark;--hp-bg:#0b111c;--hp-surface:#111b2a;--hp-surface-2:#172335;--hp-border:#253246;--hp-text:#edf3fc;--hp-muted:#a2b1c6;--hp-accent:#628dff;--hp-primary:#3265e8;--hp-success:#70dfb3;--hp-shadow:0 16px 48px #0004;--hp-sidebar-width:246px;--hp-product:#7ba1ff;--hp-product-soft:#3265e81a}
html[data-theme=light]{color-scheme:light;--hp-bg:#f5f7fb;--hp-surface:#fff;--hp-surface-2:#f0f4fa;--hp-border:#dde4ee;--hp-text:#18253b;--hp-muted:#5b6b82;--hp-accent:#285ad3;--hp-primary:#285ad3;--hp-success:#137d58;--hp-shadow:0 16px 48px #26385712;--hp-product:#285ad3;--hp-product-soft:#3265e810}
[data-product=resto],body[data-system=resto]{--hp-product:#f2ad69;--hp-product-soft:#ed94391a}
[data-product=hotel],body[data-system=hotel]{--hp-product:#a996f8;--hp-product-soft:#9678ef1a}
[data-product=vet],body[data-system=vet]{--hp-product:#65cdb4;--hp-product-soft:#2fb99a1a}
[data-product=tiendas],body[data-system=tiendas]{--hp-product:#7bc4f4;--hp-product-soft:#2e9cdd1a}
html[data-theme=light] [data-product=resto],html[data-theme=light] body[data-system=resto]{--hp-product:#9c5115}
html[data-theme=light] [data-product=hotel],html[data-theme=light] body[data-system=hotel]{--hp-product:#6d49c7}
html[data-theme=light] [data-product=vet],html[data-theme=light] body[data-system=vet]{--hp-product:#157961}
html[data-theme=light] [data-product=tiendas],html[data-theme=light] body[data-system=tiendas]{--hp-product:#196b9d}
.hp-icon{display:inline-block;flex:none;vertical-align:middle;width:20px;height:20px}
.hp-profile,.hp-profile *,.hp-sidebar,.hp-topbar{box-sizing:border-box}
.hp-profile{position:relative;color:var(--hp-text);font-family:Inter,"Segoe UI",system-ui,sans-serif;line-height:1.5;text-align:left;flex-shrink:0}
.hp-profile summary{list-style:none;cursor:pointer}
.hp-profile summary::-webkit-details-marker{display:none}
.hp-profile-trigger{display:flex;align-items:center;gap:9px;min-height:44px;padding:4px 10px 4px 5px;border:1px solid var(--hp-border);border-radius:12px;background:var(--hp-surface);color:var(--hp-text);font-size:13px;font-weight:600;user-select:none}
.hp-profile-trigger>.hp-icon{width:14px;height:14px;color:var(--hp-muted)}
.hp-avatar{width:32px;height:32px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;background:var(--hp-product-soft);color:var(--hp-accent);flex-shrink:0}
.hp-avatar .hp-icon{width:18px;height:18px}
.hp-profile-panel{position:absolute;right:0;top:calc(100% + 12px);width:302px;max-width:calc(100vw - 32px);padding:8px;border:1px solid var(--hp-border);border-radius:16px;background:var(--hp-surface);box-shadow:var(--hp-shadow);z-index:90;transform-origin:top right}
.hp-profile-identity{display:flex;align-items:center;gap:11px;padding:12px 8px 17px;margin-bottom:5px;border-bottom:1px solid var(--hp-border)}
.hp-profile-identity>div{min-width:0}.hp-profile-identity strong{display:block;font-size:13px;font-weight:650}.hp-profile-identity small{display:block;font-size:12px;color:var(--hp-muted);overflow-wrap:anywhere;margin-top:2px}
.hp-menu-link{display:flex;align-items:center;gap:11px;min-height:44px;padding:10px;border-radius:9px;color:var(--hp-text)!important;text-decoration:none!important;font-size:13px;font-weight:500}
.hp-menu-link>.hp-icon{width:18px;height:18px;color:var(--hp-muted)}.hp-menu-link>.hp-icon:last-child:not(:first-child){margin-left:auto;width:15px;height:15px}.hp-menu-link:hover{background:var(--hp-surface-2)}.hp-menu-login{color:var(--hp-accent)!important}.hp-menu-logout{margin-top:8px;border-top:1px solid var(--hp-border);border-radius:0 0 9px 9px}
.hp-menu-caption{display:block;font-size:11px;font-weight:600;letter-spacing:.04em;color:var(--hp-muted);margin:0 0 9px}.hp-theme-section{padding:12px 8px 6px}.hp-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:4px;background:var(--hp-bg);border:1px solid var(--hp-border);border-radius:10px}.hp-theme-options button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:38px;padding:6px 3px;border:1px solid transparent;border-radius:7px;font:inherit;font-size:11px;background:transparent;color:var(--hp-muted);cursor:pointer}.hp-theme-options .hp-icon{width:14px;height:14px}.hp-theme-options button[aria-pressed=true]{color:var(--hp-accent);border-color:var(--hp-border);background:var(--hp-surface);box-shadow:0 1px 4px #0001}
.hp-profile summary:focus-visible,.hp-profile a:focus-visible,.hp-profile button:focus-visible,.hp-admin :is(a,button,input,select,summary):focus-visible{outline:3px solid var(--hp-accent);outline-offset:3px}
.hp-admin{--mc-bg:var(--hp-bg);--mc-card:var(--hp-surface);--mc-border:var(--hp-border);--mc-text:var(--hp-text);--mc-muted:var(--hp-muted);--mc-accent:var(--hp-primary);--ra-bg:var(--hp-bg);--ra-panel:var(--hp-surface);--ra-panel-soft:var(--hp-surface-2);--ra-border:var(--hp-border);--ra-text:var(--hp-text);--ra-muted:var(--hp-muted);--ra-blue:var(--hp-primary);--ra-link:var(--hp-accent);--ra-ring:var(--hp-accent);margin:0;background:var(--hp-bg);color:var(--hp-text);font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.6;min-height:100vh}
.hp-admin *{box-sizing:border-box}.hp-admin a{text-decoration:none}.hp-admin button,.hp-admin summary{cursor:pointer}.hp-admin h1,.hp-admin h2,.hp-admin h3{color:var(--hp-text);text-wrap:balance}.hp-admin h1{letter-spacing:-.035em;line-height:1.2}.hp-admin p{line-height:1.65}.hp-admin .muted{color:var(--hp-muted)}
.hp-sidebar{position:fixed;inset:0 auto 0 0;width:var(--hp-sidebar-width);background:var(--hp-surface);border-right:1px solid var(--hp-border);display:flex;flex-direction:column;z-index:60;color:var(--hp-text)}
.hp-brand{display:flex;align-items:center;gap:10px;min-height:82px;padding:18px 23px;color:var(--hp-text)!important;font-size:21px;font-weight:750;letter-spacing:-.7px;border-bottom:1px solid var(--hp-border);text-decoration:none}.hp-brand>img{border-radius:10px;object-fit:contain}.hp-brand>span{line-height:1.2}.hp-brand>span>span{color:var(--hp-accent)}.hp-brand small{display:block;color:var(--hp-muted);font-size:10px;letter-spacing:.04em;font-weight:500;margin-top:5px}
.hp-sidebar-body{padding:24px 14px;overflow-y:auto;flex:1}.hp-nav-link{display:flex;align-items:center;gap:11px;min-height:46px;margin-bottom:5px;padding:11px 13px;border:1px solid transparent;border-radius:9px;color:var(--hp-muted);font-size:13px;font-weight:550}.hp-nav-link>.hp-icon{width:19px;height:19px}.hp-nav-link>.hp-icon:last-child:not(:first-child){width:13px;height:13px;margin-left:auto;opacity:.5}.hp-nav-link:hover{color:var(--hp-text);background:var(--hp-surface-2)}.hp-nav-link.is-active{background:var(--hp-product-soft);border-color:color-mix(in srgb,var(--hp-product) 20%,transparent);color:var(--hp-product)}.hp-nav-caption{font-size:10px;font-weight:650;letter-spacing:.12em;text-transform:uppercase;color:var(--hp-muted);padding:0 13px;margin:26px 0 11px}.hp-subnav{margin:0 0 12px 23px;padding:3px 0 2px 21px;border-left:1px solid var(--hp-border);display:grid;gap:2px}.hp-subnav a{font-size:12px;color:var(--hp-muted);padding:8px 3px;min-height:36px}.hp-subnav a[aria-current=page],.hp-subnav a:hover{color:var(--hp-product)}.hp-subnav a[aria-current=page]{font-weight:650}
.hp-sidebar-foot{display:flex;align-items:center;gap:10px;margin:0 16px 16px;padding:15px 7px 0;border-top:1px solid var(--hp-border);color:var(--hp-muted)}.hp-sidebar-foot>.hp-icon{color:var(--hp-success);width:17px;height:17px}.hp-sidebar-foot strong{font-size:11px;font-weight:600;display:block}.hp-sidebar-foot small{font-size:10px;display:block;margin-top:2px}
.hp-topbar{height:82px;margin-left:var(--hp-sidebar-width);padding:0 36px;background:var(--hp-surface);border-bottom:1px solid var(--hp-border);display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:50;color:var(--hp-text)}.hp-topbar-left,.hp-topbar-actions{display:flex;align-items:center;gap:22px;min-width:0}.hp-breadcrumb{display:flex;align-items:center;gap:11px;min-width:0;font-size:12px;white-space:nowrap}.hp-breadcrumb>span{color:var(--hp-muted)}.hp-breadcrumb>.hp-icon{width:13px;height:13px;color:var(--hp-muted)}.hp-breadcrumb strong{font-weight:600}.hp-breadcrumb-section{display:flex;align-items:center;gap:11px}.hp-breadcrumb-section .hp-icon{width:13px;height:13px}.hp-visit-site{display:flex;align-items:center;gap:7px;color:var(--hp-muted);font-size:12px;min-height:44px;white-space:nowrap}.hp-visit-site .hp-icon{width:15px;height:15px}.hp-visit-site:hover{color:var(--hp-accent)}.hp-icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--hp-border);border-radius:9px;background:var(--hp-surface);color:var(--hp-text)}.hp-mobile-toggle{display:none}
.hp-skip{position:fixed;left:16px;top:10px;z-index:1200;padding:10px 16px;border-radius:8px;background:var(--hp-surface);color:var(--hp-text);transform:translateY(-160%)}.hp-skip:focus{transform:translateY(0)}
.hp-admin .mc-wrap{margin-left:var(--hp-sidebar-width);padding:34px 36px 50px}.hp-admin .mc-wrap>.container{max-width:1400px;padding:0;margin-inline:auto}.hp-admin .ra-main{width:auto;max-width:1400px;padding:34px 0 48px;margin:0 36px 0 calc(var(--hp-sidebar-width) + 36px)}.hp-admin .ra-footer{margin-left:var(--hp-sidebar-width);border-color:var(--hp-border);padding:20px 36px}.hp-admin .ra-footer .ra-shell{width:100%;font-size:11px}.hp-admin .ra-page-head{margin-bottom:26px;align-items:center}.hp-admin .ra-page-head h1{font-size:30px;margin-bottom:8px}.hp-admin .ra-page-head p:last-child{font-size:13px;max-width:65ch}.hp-admin .ra-eyebrow,.hp-eyebrow{font-size:10px;font-weight:650;letter-spacing:.13em;color:var(--hp-product);margin:0 0 12px}.hp-eyebrow .hp-icon{width:14px;height:14px;margin-right:6px}
.hp-admin .ra-panel,.hp-admin .mc-card{border:1px solid var(--hp-border);border-radius:14px;background:var(--hp-surface);box-shadow:none}.hp-admin .ra-panel{padding:24px;margin-bottom:24px}.hp-admin .ra-panel h2{font-size:16px;font-weight:650}.hp-admin .ra-env{background:var(--hp-surface);padding:18px 22px;gap:14px}.hp-admin .ra-env .ra-field{max-width:280px}.hp-admin .ra-env .ra-field label{font-size:11px;color:var(--hp-muted)}.hp-admin .ra-env p{font-size:12px}.hp-admin .ra-field input,.hp-admin .ra-field select{background:var(--hp-bg);border-color:var(--hp-border);color:var(--hp-text);font-size:14px}.hp-admin .ra-field input[readonly]{background:var(--hp-surface-2)}.hp-admin .ra-button{font-size:12px;border-radius:9px;min-height:42px;padding:9px 14px;gap:7px;background:var(--hp-surface-2);border-color:var(--hp-border);color:var(--hp-text);transition:background-color 150ms ease-out,transform 150ms ease-out}.hp-admin .ra-button-primary{background:var(--hp-primary);color:#fff;border-color:var(--hp-primary)}.hp-admin .ra-button:hover{background:color-mix(in srgb,var(--hp-surface-2) 80%,var(--hp-accent))}.hp-admin .ra-button-primary:hover{background:color-mix(in srgb,var(--hp-primary) 88%,#000)}.hp-admin .ra-button:active,.hp-admin .btn:active{transform:scale(.98)}.hp-admin .ra-button>.hp-icon{width:16px;height:16px}.hp-admin .ra-table{font-size:12px}.hp-admin .ra-table th{font-size:10px;text-transform:uppercase;letter-spacing:.055em;padding:12px;color:var(--hp-muted);background:var(--hp-bg)}.hp-admin .ra-table td{padding:18px 12px}.hp-admin .ra-table td:first-child{font-weight:650;font-size:13px}.hp-admin .ra-row-actions .ra-button{font-size:11px;min-height:38px;padding:7px 10px}.hp-admin .ra-badge{background:var(--hp-surface-2);border-color:var(--hp-border);border-radius:6px;padding:3px 8px;font-size:10px}.hp-admin .ra-empty{font-size:13px;padding:40px 20px}.hp-admin .ra-alert{font-size:13px;border-color:var(--hp-border)}.hp-admin .ra-note{font-size:13px}.hp-admin .ra-plan summary{font-size:15px}.hp-admin .ra-check{font-size:13px}
html[data-theme=light] .hp-admin{--ra-error-bg:#fff0f1;--ra-error-text:#a22440;--ra-success-bg:#eaf8f1;--ra-success-text:#166748;--ra-warning-bg:#fff7e3;--ra-warning-text:#835706}
.hp-admin .btn{font-size:12px;border-radius:8px;min-height:38px;font-weight:600}.hp-admin .btn-accent{background:var(--hp-primary);border-color:var(--hp-primary);color:#fff}.hp-admin .btn-ghost{background:var(--hp-surface-2);border-color:var(--hp-border);color:var(--hp-text)}.hp-admin .chip{border-color:var(--hp-border);background:var(--hp-surface-2);color:var(--hp-muted);font-size:11px}.hp-admin .form-control,.hp-admin .form-select{background-color:var(--hp-bg);border-color:var(--hp-border);color:var(--hp-text)}.hp-admin .form-control::placeholder{color:var(--hp-muted)}.hp-admin .form-label{color:var(--hp-text)}.hp-admin .table{--bs-table-color:var(--hp-text);--bs-table-bg:transparent;--bs-table-border-color:var(--hp-border);--bs-table-hover-bg:var(--hp-surface-2)}.hp-admin .table thead th{color:var(--hp-muted);border-color:var(--hp-border)!important}.hp-admin .modal-content{background:var(--hp-surface);color:var(--hp-text);border-color:var(--hp-border)}.hp-admin .modal-header,.hp-admin .modal-footer{border-color:var(--hp-border)}.hp-admin .tol-head h1,.hp-admin .tol-card h2,.hp-admin .tol-card h3{color:var(--hp-text)}.hp-admin .tol-card{background:var(--hp-surface);border-color:var(--hp-border);box-shadow:none}.hp-admin .tol-kpi{background:var(--hp-surface);border-color:var(--hp-border)}
.hp-page-title{display:flex;align-items:center;gap:13px}.hp-title-icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;background:var(--hp-product-soft);color:var(--hp-product);flex-shrink:0}.hp-title-icon .hp-icon{width:23px;height:23px}.hp-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.hp-stat{padding:18px 22px;background:var(--hp-surface);border:1px solid var(--hp-border);border-radius:12px}.hp-stat span,.hp-stat small{display:block;font-size:11px;color:var(--hp-muted)}.hp-stat strong{display:block;font-size:27px;font-weight:650;letter-spacing:-.04em;margin-top:5px;color:var(--hp-text);font-variant-numeric:tabular-nums}.hp-list-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:16px 0 20px}.hp-search{display:flex;align-items:center;gap:9px;flex:1;max-width:380px;min-width:200px;position:relative;color:var(--hp-muted)}.hp-search>.hp-icon{position:absolute;left:12px;width:17px;height:17px;pointer-events:none}.hp-search input{width:100%;height:42px;padding:9px 12px 9px 38px;border:1px solid var(--hp-border);border-radius:8px;background:var(--hp-bg);color:var(--hp-text);font:inherit;font-size:12px}.hp-search input::placeholder{color:var(--hp-muted)}.hp-list-toolbar select{height:42px;padding:8px 30px 8px 12px;border-radius:8px;border:1px solid var(--hp-border);background:var(--hp-bg);color:var(--hp-text);font:inherit;font-size:12px}.hp-list-count{font-size:11px;color:var(--hp-muted)}.hp-empty-state{padding:44px 20px;text-align:center;color:var(--hp-muted);font-size:13px}.hp-empty-state .hp-icon{display:block;margin:0 auto 14px;width:28px;height:28px;color:var(--hp-product)}[data-client-row][hidden],[data-client-empty][hidden]{display:none!important}
.hp-overview-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:3px 0 27px}.hp-overview-heading h1{font-size:clamp(26px,2.6vw,38px);font-weight:650;margin:0 0 12px}.hp-overview-heading h1>span{color:var(--hp-accent)}.hp-overview-heading p.muted{font-size:13px;margin:0}.hp-workspace-badge{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--hp-border);background:var(--hp-surface);padding:8px 12px;border-radius:7px;font-size:11px;color:var(--hp-muted);white-space:nowrap}.hp-workspace-badge .hp-icon{width:14px;height:14px;color:var(--hp-accent)}.hp-workspace-banner{display:flex;align-items:center;gap:17px;padding:22px 24px;background:linear-gradient(110deg,var(--hp-product-soft),var(--hp-surface));border:1px solid color-mix(in srgb,var(--hp-accent) 26%,var(--hp-border));border-radius:13px;margin-bottom:34px}.hp-banner-icon{display:flex;align-items:center;justify-content:center;width:43px;height:43px;border-radius:11px;background:var(--hp-product-soft);color:var(--hp-accent);flex-shrink:0}.hp-banner-icon .hp-icon{width:23px;height:23px}.hp-workspace-banner strong{font-size:13px;font-weight:600}.hp-workspace-banner p{font-size:12px;color:var(--hp-muted);margin:5px 0 0}.hp-banner-tag{font-size:10px;color:var(--hp-accent);white-space:nowrap;margin-left:auto;border:1px solid color-mix(in srgb,var(--hp-accent) 28%,transparent);border-radius:6px;padding:5px 9px}.hp-section-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 17px}.hp-section-heading h2{font-size:17px;font-weight:600;margin:0}.hp-section-heading h2 span{font-size:10px;display:inline-block;background:var(--hp-surface-2);border:1px solid var(--hp-border);padding:2px 7px;border-radius:5px;color:var(--hp-muted);vertical-align:middle;margin-left:7px}.hp-section-heading p{margin:0;font-size:11px;color:var(--hp-muted)}.hp-system-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.hp-product-card{display:flex;flex-direction:column;min-width:0;background:var(--hp-surface);border:1px solid var(--hp-border);border-radius:14px;padding:24px 23px 0;transition:border-color 180ms ease-out}.hp-product-card:focus-within,.hp-product-card:hover{border-color:var(--hp-product)}.hp-product-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.hp-product-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:var(--hp-product-soft);color:var(--hp-product);flex-shrink:0}.hp-product-icon .hp-icon{width:23px;height:23px}.hp-product-category{font-size:9px;color:var(--hp-muted);text-align:right}.hp-product-card h2,.hp-help-card h2{font-size:20px;font-weight:650;letter-spacing:-.03em;margin:0 0 10px}.hp-product-card>p{color:var(--hp-muted);font-size:12px;margin:0 0 20px;max-width:39ch}.hp-product-card ul{padding:0;list-style:none;margin:auto 0 22px;display:grid;gap:8px}.hp-product-card li{font-size:11px;display:flex;align-items:center;gap:8px;color:var(--hp-muted)}.hp-product-card li .hp-icon{width:13px;height:13px;color:var(--hp-product)}.hp-product-open{display:flex;align-items:center;justify-content:space-between;min-height:56px;border-top:1px solid var(--hp-border);font-size:12px;font-weight:600;color:var(--hp-product)}.hp-product-open .hp-icon{width:17px;height:17px}.hp-help-card{padding:24px;background:var(--hp-surface-2);border:1px dashed var(--hp-border);border-radius:14px;display:flex;align-items:flex-start;flex-direction:column}.hp-help-card>.hp-product-icon{color:var(--hp-muted);background:var(--hp-bg);margin-bottom:20px}.hp-help-card p{font-size:12px;color:var(--hp-muted);margin:0 0 16px}.hp-help-card>a{display:flex;align-items:center;gap:9px;min-height:38px;color:var(--hp-accent);font-size:12px}.hp-help-card>a .hp-icon{width:14px;height:14px}.hp-overview-foot{display:flex;align-items:center;justify-content:center;gap:7px;color:var(--hp-muted);font-size:10px;margin:30px 0 0}.hp-overview-foot .hp-icon{width:13px;height:13px}
@media(min-width:1900px){.hp-admin .ra-main{margin-inline:auto;transform:translateX(calc(var(--hp-sidebar-width)/2));width:calc(100% - var(--hp-sidebar-width) - 72px)}}
@media(max-width:1200px){:root{--hp-sidebar-width:220px}.hp-topbar{padding-inline:24px}.hp-admin .mc-wrap{padding:28px 24px}.hp-admin .ra-main{margin-inline:calc(var(--hp-sidebar-width) + 24px) 24px}.hp-brand{padding-inline:18px}.hp-breadcrumb-section{display:none}.hp-system-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hp-banner-tag{display:none}}
@media(max-width:900px){.hp-sidebar{transform:translateX(-100%);width:246px;transition:transform 180ms ease-out}.hp-admin.hp-nav-open .hp-sidebar{transform:translateX(0)}.hp-sidebar-scrim{position:fixed;inset:0;background:#0008;border:0;z-index:55}.hp-sidebar-scrim[hidden]{display:none}.hp-mobile-toggle{display:inline-flex}.hp-topbar{margin-left:0;height:72px;padding-inline:20px}.hp-topbar-left{gap:12px}.hp-topbar-actions{gap:14px}.hp-breadcrumb>span:first-child,.hp-breadcrumb>.hp-icon{display:none}.hp-admin .mc-wrap{margin-left:0;padding:28px 24px}.hp-admin .ra-main{margin:0 24px;padding-top:28px}.hp-admin .ra-footer{margin-left:0}.hp-overview-heading h1{font-size:30px}.hp-workspace-badge{display:none}.hp-admin.hp-nav-open{overflow:hidden}}
@media(max-width:600px){.hp-topbar{padding-inline:16px;height:68px}.hp-profile-label{display:none}.hp-profile-trigger{padding-right:7px;gap:6px}.hp-profile-panel{right:0}.hp-topbar-actions{gap:10px}.hp-visit-site span{display:none}.hp-visit-site{justify-content:center;width:32px}.hp-admin .mc-wrap{padding:25px 16px 36px}.hp-admin .ra-main{margin:0 16px;padding-top:25px}.hp-admin .ra-footer{padding-inline:16px}.hp-overview-heading{margin-bottom:23px}.hp-overview-heading h1{font-size:28px;max-width:11em}.hp-overview-heading p.muted{font-size:13px}.hp-workspace-banner{padding:17px;gap:12px;margin-bottom:27px;align-items:flex-start}.hp-banner-icon{width:35px;height:35px;border-radius:9px}.hp-workspace-banner strong{font-size:12px}.hp-workspace-banner p{font-size:11px}.hp-section-heading{align-items:flex-start;gap:7px;flex-direction:column}.hp-section-heading h2{font-size:16px}.hp-system-grid{grid-template-columns:minmax(0,1fr);gap:15px}.hp-product-card{padding:21px 21px 0}.hp-product-card>p{max-width:none;font-size:13px}.hp-product-card li{font-size:12px}.hp-product-category{font-size:10px}.hp-product-card h2{font-size:22px}.hp-product-open{min-height:57px;font-size:13px}.hp-overview-foot{align-items:flex-start;text-align:center;font-size:10px}.hp-admin .ra-page-head h1{font-size:27px}.hp-admin .ra-panel{padding:18px}.hp-admin .ra-env{padding:16px}.hp-summary{gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}.hp-stat{padding:13px 11px}.hp-stat strong{font-size:24px}.hp-stat span,.hp-stat small{font-size:10px}.hp-list-toolbar{align-items:stretch;gap:9px}.hp-search{max-width:none;flex-basis:100%}.hp-search input,.hp-list-toolbar select,.hp-admin .ra-field input,.hp-admin .ra-field select{font-size:16px}.hp-list-toolbar select{flex:1}.hp-list-count{align-self:center}.hp-admin .ra-table td{padding:9px 0;font-size:12px}.hp-admin .ra-row-actions .ra-button{min-height:44px}.hp-admin .ra-env .ra-field{max-width:none}.hp-page-title{gap:10px}.hp-title-icon{width:39px;height:39px}.hp-admin .ra-page-head .ra-actions{width:100%}}
@media(prefers-reduced-motion:reduce){.hp-sidebar,.hp-profile-panel,.hp-admin .btn,.hp-admin .ra-button,.hp-product-card{transition:none!important;animation:none!important}}
.hp-public{--mc-bg:var(--hp-bg);--mc-card:var(--hp-surface);--mc-border:var(--hp-border);--mc-text:var(--hp-text);--mc-muted:var(--hp-muted);--mc-accent:var(--hp-primary);background:var(--hp-bg);color:var(--hp-text);font-family:Inter,"Segoe UI",system-ui,sans-serif}
.hp-public .nav-hero{background:var(--hp-surface);border-color:var(--hp-border);padding:14px 0}.hp-public .nav-hero .container{flex-wrap:nowrap;gap:14px}.hp-public .hp-public-brand{display:flex;align-items:center;gap:9px;color:var(--hp-text);font-size:19px;letter-spacing:-.5px}.hp-public-brand img{border-radius:8px}.hp-public .nav-actions{width:auto!important;flex-wrap:nowrap!important;gap:12px!important}.hp-public .nav-actions>.btn{min-height:42px;font-size:12px;border-color:var(--hp-border);background:var(--hp-surface-2);color:var(--hp-text)}.hp-public .mc-card{background:var(--hp-surface);border-color:var(--hp-border);box-shadow:var(--hp-shadow)}.hp-public .chip{color:var(--hp-muted);border-color:var(--hp-border)}.hp-public .form-control{background:var(--hp-bg);border-color:var(--hp-border);color:var(--hp-text)}.hp-public .form-control::placeholder{color:var(--hp-muted)}
.hp-stat{display:flex;align-items:center;gap:15px}.hp-stat .hp-stat-icon{display:flex;justify-content:center;align-items:center;background:var(--hp-product-soft);color:var(--hp-product);height:40px;width:40px;border-radius:10px;flex-shrink:0}.hp-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.hp-list-heading h2{margin:0!important}.hp-search.ra-field{max-width:420px;gap:7px}.hp-search.ra-field>div{position:relative;width:100%}.hp-search.ra-field>div>.hp-icon{position:absolute;left:12px;top:13px;width:16px;height:16px;pointer-events:none}.hp-admin .hp-search input{padding-left:37px;min-height:42px}.hp-list-toolbar .ra-field:not(.hp-search){min-width:190px}.hp-list-toolbar .ra-field>label{font-size:11px;color:var(--hp-muted)}
.hp-admin .ra-badge[data-state=active],.hp-admin .ra-badge[data-state=ACTIVE],.hp-admin .ra-badge[data-state=ACTIVA]{color:var(--hp-success);background:color-mix(in srgb,var(--hp-success) 9%,transparent);border-color:color-mix(in srgb,var(--hp-success) 24%,transparent)}.hp-admin .ra-badge[data-state=pending],.hp-admin .ra-badge[data-state=PENDIENTE],.hp-admin .ra-badge[data-state=pending_license]{color:var(--hp-product);background:var(--hp-product-soft)}
@media(max-width:900px){.hp-sidebar{visibility:hidden}.hp-admin.hp-nav-open .hp-sidebar{visibility:visible}}
.hp-search.ra-field{align-items:stretch}
.hp-clients-section{margin:0 0 32px}.hp-clients-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.hp-clients-heading h2{font-size:17px;font-weight:600;margin:0 0 5px}.hp-clients-heading p{font-size:12px;color:var(--hp-muted);margin:0}.hp-kpi-refresh{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 12px;border:1px solid var(--hp-border);border-radius:8px;background:var(--hp-surface);color:var(--hp-text);font:inherit;font-size:11px;white-space:nowrap}.hp-kpi-refresh>.hp-icon{width:15px;height:15px}.hp-kpi-refresh:disabled{opacity:.6;cursor:wait}.hp-kpi-refresh:hover:enabled{border-color:var(--hp-accent)}.hp-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.hp-client-kpi{min-width:0;display:flex;flex-direction:column;border:1px solid var(--hp-border);border-radius:12px;padding:18px 18px 0;background:var(--hp-surface);position:relative;overflow:hidden}.hp-client-kpi::before{content:"";position:absolute;left:0;top:0;right:0;height:2px;background:var(--hp-product);opacity:.75}.hp-kpi-top{display:flex;align-items:center;gap:9px;margin-bottom:16px}.hp-kpi-top h3{font-size:12px;font-weight:600;letter-spacing:0;margin:0}.hp-kpi-icon{display:inline-flex;align-items:center;justify-content:center;background:var(--hp-product-soft);color:var(--hp-product);border-radius:8px;width:31px;height:31px;flex-shrink:0}.hp-kpi-icon>.hp-icon{width:17px;height:17px}.hp-kpi-result{display:flex;flex-direction:column;align-items:flex-start;min-height:72px;margin-bottom:7px;gap:4px}.hp-kpi-result strong{font-variant-numeric:tabular-nums;font-size:34px;font-weight:650;letter-spacing:-.045em;line-height:1.2;color:var(--hp-text)}.hp-kpi-result>span{font-size:11px;color:var(--hp-muted)}.hp-client-kpi[data-state=error] .hp-kpi-result strong{font-size:18px;line-height:1.5;letter-spacing:-.02em}.hp-client-kpi[data-state=loading] .hp-kpi-result strong{color:var(--hp-muted)}.hp-kpi-detail{font-size:10px;color:var(--hp-muted);line-height:1.6;min-height:34px;margin:0 0 14px;overflow-wrap:anywhere}.hp-kpi-environment{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--hp-muted);margin:auto 0 13px;min-height:28px}.hp-kpi-environment>.hp-icon{width:12px;height:12px}.hp-kpi-environment>span{background:var(--hp-surface-2);padding:3px 7px;border:1px solid var(--hp-border);border-radius:5px}.hp-kpi-environment select{width:100%;min-width:0;min-height:34px;font:inherit;color:var(--hp-text);background:var(--hp-bg);border:1px solid var(--hp-border);border-radius:5px;padding:4px 3px}.hp-kpi-bottom{display:flex;align-items:center;justify-content:space-between;gap:9px;border-top:1px solid var(--hp-border);min-height:43px}.hp-kpi-bottom>a{display:inline-flex;align-items:center;gap:7px;color:var(--hp-product);font-size:10px;min-height:40px}.hp-kpi-bottom>a .hp-icon{width:12px;height:12px}.hp-kpi-bottom>button{font:inherit;font-size:10px;min-height:34px;color:var(--hp-accent);border:0;background:transparent;padding:5px 0}.hp-kpi-bottom>button[hidden]{display:none}.hp-kpi-note{display:flex;align-items:flex-start;gap:6px;font-size:10px;color:var(--hp-muted);margin:13px 0 0;line-height:1.6}.hp-kpi-note>.hp-icon{width:13px;height:13px;margin-top:2px}.hp-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
@media(max-width:1280px){.hp-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.hp-clients-heading{align-items:flex-start}.hp-clients-heading h2{font-size:16px}.hp-clients-heading p{font-size:11px}.hp-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hp-client-kpi{padding:15px 13px 0}.hp-kpi-top{gap:7px;margin-bottom:14px}.hp-kpi-top h3{font-size:11px}.hp-kpi-icon{width:28px;height:28px}.hp-kpi-result strong{font-size:31px}.hp-kpi-result>span{font-size:10px}.hp-kpi-refresh{min-height:44px;padding-inline:9px}.hp-kpi-environment select{font-size:16px}.hp-kpi-bottom{flex-wrap:wrap;gap:0}.hp-kpi-bottom>a{min-height:44px}.hp-kpi-bottom>button{min-height:44px}.hp-kpi-note{font-size:10px}.hp-client-kpi[data-state=error] .hp-kpi-result strong{font-size:16px}}
@media(max-width:600px){.hp-stat{gap:8px;align-items:flex-start;flex-direction:column}.hp-stat .hp-stat-icon{width:28px;height:28px;border-radius:7px}.hp-stat .hp-stat-icon .hp-icon{width:16px;height:16px}.hp-list-heading{align-items:flex-start;flex-direction:column}.hp-public .nav-actions>.btn:first-child{display:none}.hp-public .nav-actions{gap:8px!important}.hp-public .nav-hero .container{row-gap:0}.hp-public .hp-public-brand{font-size:17px}.hp-public .nav-hero{padding-block:10px}}
.cpe-campos{border:0;padding:0;margin:0 0 22px;min-width:0}.cpe-campos>legend{float:none;width:auto;font-size:1rem;font-weight:650;margin-bottom:12px}.cpe-tipos{display:flex;flex-wrap:wrap;gap:6px 22px;margin:0 0 14px}.cpe-tipo{display:inline-flex;align-items:center;gap:8px;min-height:40px;cursor:pointer;font-weight:600}.cpe-tipo input{width:18px;height:18px;accent-color:var(--hp-primary)}.cpe-aviso a{font-weight:650}.cpe-docs{display:flex;flex-wrap:wrap;gap:4px 10px;white-space:nowrap}.cpe-docs small{white-space:normal}
.cobro-dialog{width:min(660px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--hp-border);border-radius:20px;background:var(--hp-surface);color:var(--hp-text);box-shadow:var(--hp-shadow);overflow:hidden}.cobro-dialog--sm{width:min(460px,calc(100vw - 24px))}.cobro-dialog::backdrop{background:#020617b8;backdrop-filter:blur(3px)}.cobro-card{display:flex;flex-direction:column;max-height:calc(100dvh - 26px);margin:0}.cobro-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 14px;border-bottom:1px solid var(--hp-border)}.cobro-head h2{margin:0;font-size:18px;font-weight:750;letter-spacing:-.01em}.cobro-sub{margin:3px 0 0;font-size:12px;color:var(--hp-muted)}.cobro-x{display:grid;place-items:center;width:38px;height:38px;flex:none;border:1px solid var(--hp-border);border-radius:10px;background:var(--hp-surface-2);color:var(--hp-text);cursor:pointer}.cobro-x .hp-icon{width:16px;height:16px}.cobro-body{display:grid;gap:12px;padding:16px 18px;overflow:auto;background:var(--hp-bg)}.cobro-sec{display:grid;gap:10px;padding:14px;border:1px solid var(--hp-border);border-radius:16px;background:var(--hp-surface)}.cobro-sec[hidden],.cobro-grid[hidden],.cobro-check[hidden],.cobro-tile[hidden],.cobro-fijo[hidden]{display:none}.cobro-label{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:750}.cobro-label .hp-icon{width:28px;height:28px;padding:6px;border-radius:9px;background:var(--hp-surface-2);color:var(--hp-muted)}.cobro-tiles{display:grid;gap:6px}.cobro-methods{grid-template-columns:repeat(6,minmax(0,1fr))}.cobro-docs{grid-template-columns:repeat(4,minmax(0,1fr))}.cobro-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:68px;padding:8px 4px;border:1.5px solid var(--hp-border);border-radius:14px;background:var(--hp-surface);font-size:12px;font-weight:700;text-align:center;cursor:pointer;transition:border-color .15s,background-color .15s}.cobro-tile input{position:absolute;opacity:0;pointer-events:none}.cobro-tile img{width:30px;height:30px;border-radius:50%;background:#fff;object-fit:contain;box-shadow:0 0 0 1px #0f172a14}.cobro-tile .hp-icon{width:20px;height:20px;color:var(--hp-muted)}.cobro-tile:hover{border-color:color-mix(in srgb,var(--hp-primary) 55%,var(--hp-border))}.cobro-tile:has(input:focus-visible){outline:3px solid color-mix(in srgb,var(--hp-primary) 55%,transparent);outline-offset:2px}.cobro-docs .cobro-tile:has(input:checked){border-color:var(--hp-primary);background:var(--hp-primary);color:#fff;box-shadow:0 6px 16px #1d4ed838}.cobro-docs .cobro-tile:has(input:checked) .hp-icon{color:#fff}.cobro-methods .cobro-tile:has(input:checked){border-color:#16a34a;background:color-mix(in srgb,#16a34a 13%,var(--hp-surface))}.cobro-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cobro-grid .wide{grid-column:1/-1}.cobro-field{display:grid;gap:5px;margin:0;min-width:0}.cobro-field>span{font-size:12px;font-weight:650;color:var(--hp-muted)}.cobro-field input,.cobro-field select{width:100%;min-height:44px;padding:9px 12px;border:1px solid var(--hp-border);border-radius:10px;background:var(--hp-bg);color:var(--hp-text);font:inherit;font-size:14px;font-weight:600}.cobro-field input:focus,.cobro-field select:focus{outline:2px solid color-mix(in srgb,var(--hp-primary) 60%,transparent);outline-offset:1px}.cobro-totals{display:grid;gap:6px;margin:0;padding:14px;border:1px solid var(--hp-border);border-radius:16px;background:var(--hp-surface)}.cobro-totals div{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--hp-muted)}.cobro-totals dd{margin:0;text-align:right;color:var(--hp-text)}.cobro-totals .is-grand{align-items:baseline;padding-top:8px;border-top:1px solid var(--hp-border);color:var(--hp-text);font-weight:800}.cobro-totals .is-grand dd{font-size:24px;font-weight:850;letter-spacing:-.02em;color:var(--hp-success)}.cobro-check{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;border:1px solid var(--hp-border);border-radius:12px;background:var(--hp-surface);font-size:13px;cursor:pointer}.cobro-check input{width:18px;height:18px;margin-top:1px;flex:none;accent-color:var(--hp-primary)}.cobro-check small{color:var(--hp-muted)}.cobro-warn{margin:0;padding:9px 12px;border:1px solid #f59e0b66;border-radius:10px;background:#f59e0b1a;font-size:12px}.cobro-warn a{font-weight:700}.cobro-fijo{margin:0;padding:9px 12px;border-radius:10px;background:var(--hp-surface-2);font-size:13px}.cobro-foot{display:flex;align-items:center;gap:8px;padding:12px 18px;border-top:1px solid var(--hp-border);background:var(--hp-surface)}.cobro-status{flex:1;margin:0;font-size:12px;color:var(--hp-muted)}.cobro-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border:1px solid var(--hp-border);border-radius:11px;background:var(--hp-surface-2);color:var(--hp-text);font:inherit;font-size:13px;font-weight:700;text-decoration:none;cursor:pointer;white-space:nowrap}.cobro-btn .hp-icon{width:16px;height:16px}.cobro-btn.is-primary{border-color:#16a34a;background:#16a34a;color:#fff}.cobro-btn.is-blue{border-color:var(--hp-primary);background:var(--hp-primary);color:#fff}.cobro-btn:disabled{opacity:.6;cursor:not-allowed}.cobro-btn.is-sm{min-height:34px;padding:0 11px;font-size:12px;border-radius:9px}.cobro-done{display:grid;justify-items:center;gap:10px;padding:28px 22px 22px;text-align:center}.cobro-done__icon{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:color-mix(in srgb,var(--hp-success) 16%,transparent);color:var(--hp-success)}.cobro-done__icon.is-warn{background:#f59e0b22;color:#d97706}.cobro-done__icon .hp-icon{width:30px;height:30px}.cobro-done h2{margin:0;font-size:20px}.cobro-done__doc{display:grid;gap:2px;min-width:240px;padding:12px 16px;border:1px solid var(--hp-border);border-radius:14px;background:var(--hp-bg)}.cobro-done__doc[hidden]{display:none}.cobro-done__doc strong{font-size:19px;letter-spacing:.3px}.cobro-done__doc small{color:var(--hp-muted)}.cobro-done p{margin:0;font-size:13px;color:var(--hp-muted);max-width:46ch}.cobro-done__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:6px}.cobro-done__actions [hidden]{display:none}.cobro-pagos{display:grid;gap:8px}.cobro-pago{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:12px 14px;border:1px solid var(--hp-border);border-radius:14px;background:var(--hp-surface)}.cobro-pago strong{font-size:14px}.cobro-pago small{color:var(--hp-muted);font-size:12px}.cobro-pago__monto{text-align:right;font-weight:800;white-space:nowrap}.cobro-pago .cpe-docs{grid-column:1/-1;align-items:center}.cobro-vacio{margin:0;padding:26px;text-align:center;color:var(--hp-muted)}
.pago-badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:11.5px;font-weight:700;line-height:1.6;white-space:nowrap}.pago-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.pago-badge[data-pago=AL_DIA]{color:var(--hp-success);background:color-mix(in srgb,var(--hp-success) 13%,transparent)}.pago-badge[data-pago=POR_VENCER]{color:#a16207;background:#f59e0b24}.pago-badge[data-pago=VENCIDO]{color:#b91c1c;background:#ef444420}.pago-badge[data-pago=PENDIENTE]{color:#c2410c;background:#fb923c24}.pago-badge[data-pago=POR_APROBAR]{color:var(--hp-primary);background:color-mix(in srgb,var(--hp-primary) 13%,transparent)}.pago-badge[data-pago=SIN_CONTRATO]{color:var(--hp-muted);background:var(--hp-surface-2)}html[data-theme=dark] .pago-badge[data-pago=POR_VENCER]{color:#fbbf24}html[data-theme=dark] .pago-badge[data-pago=VENCIDO]{color:#fca5a5}html[data-theme=dark] .pago-badge[data-pago=PENDIENTE]{color:#fdba74}.pago-acciones{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.cfg-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px;padding:5px;border:1px solid var(--hp-border);border-radius:14px;background:var(--hp-surface)}.cfg-tabs a{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 14px;border-radius:10px;color:var(--hp-muted);font-size:13px;font-weight:650;text-decoration:none}.cfg-tabs a .hp-icon{width:16px;height:16px}.cfg-tabs a:hover{background:var(--hp-surface-2);color:var(--hp-text)}.cfg-tabs a[aria-current=page]{background:var(--hp-primary);color:#fff}.cfg-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 18px}.cfg-step{display:flex;gap:10px;align-items:center;padding:12px 14px;border:1px solid var(--hp-border);border-radius:14px;background:var(--hp-surface);color:var(--hp-text);text-decoration:none}.cfg-step .hp-icon{width:30px;height:30px;padding:6px;border-radius:9px;flex:none;background:#f59e0b22;color:#d97706}.cfg-step.is-ok .hp-icon{background:color-mix(in srgb,var(--hp-success) 15%,transparent);color:var(--hp-success)}.cfg-step strong{display:block;font-size:13px}.cfg-step small{color:var(--hp-muted);font-size:12px}
@media(max-width:700px){.cobro-methods{grid-template-columns:repeat(3,minmax(0,1fr))}.cobro-docs{grid-template-columns:repeat(2,minmax(0,1fr))}.cobro-grid{grid-template-columns:minmax(0,1fr)}.cobro-dialog{width:100vw;max-width:100vw;max-height:94dvh;margin:auto auto 0;border-radius:20px 20px 0 0}.cobro-dialog--sm{margin:auto;border-radius:20px;width:calc(100vw - 24px)}.cobro-foot{flex-wrap:wrap}.cobro-status{flex-basis:100%}.cobro-foot .cobro-btn{flex:1}.cfg-steps{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:no-preference){.cobro-dialog[open]{animation:cobro-in .18s ease-out}@keyframes cobro-in{from{opacity:0;transform:translateY(10px) scale(.98)}}}
.hp-admin .form-text{color:var(--hp-muted)}
/* Formato común de clientes: pestañas Mono/Multi-empresa, listado y ficha de detalle (Comercial, Resto, Vet y Hotel). */
.hp-client-tabs{margin-bottom:16px}.cfg-tabs span[aria-disabled=true]{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 14px;border-radius:10px;color:var(--hp-muted);font-size:13px;font-weight:650;opacity:.6;cursor:not-allowed}.cfg-tabs span[aria-disabled=true] .hp-icon{width:16px;height:16px}
.hp-tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 7px;border-radius:999px;background:var(--hp-surface-2);color:inherit;font-size:11px;font-weight:700}.cfg-tabs a[aria-current=page] .hp-tab-count{background:#ffffff33}
.hp-clients-panel{margin-bottom:24px;padding:18px 20px;border:1px solid var(--hp-border);border-radius:14px;background:var(--hp-surface);color:var(--hp-text)}
.hp-clients-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:14px}.hp-clients-search{position:relative;flex:1 1 280px}.hp-clients-search .hp-icon{position:absolute;left:12px;top:50%;width:16px;height:16px;transform:translateY(-50%);color:var(--hp-muted);pointer-events:none}
.hp-clients-search input,.hp-clients-toolbar select{width:100%;height:42px;padding:0 12px;border:1px solid var(--hp-border);border-radius:10px;background:var(--hp-bg);color:var(--hp-text);font:inherit;font-size:13px}.hp-clients-search input{padding-left:38px}.hp-clients-toolbar select{width:auto;min-width:220px}
.hp-clients-search input:focus-visible,.hp-clients-toolbar select:focus-visible{outline:2px solid var(--hp-accent);outline-offset:1px}.hp-clients-toolbar .hp-list-count{margin-left:auto;white-space:nowrap}
.hp-clients-wrap{overflow-x:auto;border:1px solid var(--hp-border);border-radius:12px}.hp-clients{width:100%;border-collapse:collapse;color:var(--hp-text);font-size:13px}
.hp-clients th{padding:11px 14px;border-bottom:1px solid var(--hp-border);background:var(--hp-bg);color:var(--hp-muted);font-size:10.5px;font-weight:650;letter-spacing:.06em;text-align:left;text-transform:uppercase;white-space:nowrap}
.hp-clients td{padding:13px 14px;border-bottom:1px solid var(--hp-border);vertical-align:middle}.hp-clients tbody tr:last-child td{border-bottom:0}.hp-clients tbody tr:hover{background:var(--hp-surface-2)}.hp-clients tr[hidden]{display:none}
.hp-client-name{color:var(--hp-text);font-weight:650;text-decoration:none}.hp-client-name:hover{color:var(--hp-accent);text-decoration:underline}.hp-client-sub{display:block;margin-top:2px;color:var(--hp-muted);font-size:12px}
.hp-clients .hp-clients-actions{text-align:left;white-space:nowrap}.hp-clients-actions>div{display:inline-flex;gap:6px}
.hp-state{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;background:var(--hp-surface-2);color:var(--hp-muted);font-size:11.5px;font-weight:700;line-height:1.6;white-space:nowrap}
.hp-state[data-tone=ok]{color:var(--hp-success);background:color-mix(in srgb,var(--hp-success) 13%,transparent)}.hp-state[data-tone=warn]{color:#a16207;background:#f59e0b24}.hp-state[data-tone=bad]{color:#b91c1c;background:#ef444420}
html[data-theme=dark] .hp-state[data-tone=warn]{color:#fbbf24}html[data-theme=dark] .hp-state[data-tone=bad]{color:#fca5a5}
.hp-detail-head{margin-bottom:22px}.hp-back{display:inline-flex;align-items:center;gap:6px;margin-bottom:14px;color:var(--hp-muted);font-size:13px;font-weight:600;text-decoration:none}.hp-back .hp-icon{width:16px;height:16px}.hp-back:hover{color:var(--hp-text)}
.hp-detail-title{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:16px}.hp-detail-title h1{margin:0 0 6px;color:var(--hp-text);font-size:28px;font-weight:700;letter-spacing:-.02em;line-height:1.2}.hp-detail-title p{margin:0;color:var(--hp-muted);font-size:13px}.hp-detail-title .hp-eyebrow{margin-bottom:8px;text-transform:uppercase}
.hp-detail-badges{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hp-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin-bottom:24px}
.hp-detail-card{display:flex;flex-direction:column;padding:18px 20px;border:1px solid var(--hp-border);border-radius:14px;background:var(--hp-surface);color:var(--hp-text)}.hp-detail-card>header{display:flex;align-items:center;gap:10px;margin-bottom:14px}.hp-detail-card h2{margin:0;color:var(--hp-text);font-size:15px;font-weight:650}
.hp-detail-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;background:var(--hp-product-soft);color:var(--hp-product)}.hp-detail-icon .hp-icon{width:17px;height:17px}
.hp-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin:0 0 14px}.hp-facts dt{margin:0 0 2px;color:var(--hp-muted);font-size:10.5px;font-weight:650;letter-spacing:.05em;text-transform:uppercase}.hp-facts dd{margin:0;color:var(--hp-text);font-size:13.5px;overflow-wrap:break-word}.hp-facts .is-wide{grid-column:1/-1}
.hp-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:14px;border-top:1px solid var(--hp-border)}.hp-detail-actions form{margin:0}
@media(max-width:760px){.hp-clients thead{display:none}.hp-clients,.hp-clients tbody,.hp-clients tr,.hp-clients td{display:block;width:100%}.hp-clients tr{padding:12px 14px;border-bottom:1px solid var(--hp-border)}.hp-clients tbody tr:last-child{border-bottom:0}.hp-clients td{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:5px 0;border:0;text-align:right}.hp-clients td::before{content:attr(data-label);color:var(--hp-muted);font-size:11px;text-align:left}.hp-clients td:first-child{display:block;padding-bottom:8px;text-align:left}.hp-clients td:first-child::before,.hp-clients .hp-clients-actions::before{content:none}.hp-clients .hp-clients-actions{padding-top:10px}.hp-clients-actions>div{display:flex;width:100%}.hp-clients-actions .cobro-btn{flex:1}.hp-clients-search{flex-basis:100%}.hp-clients-toolbar select{flex:1;min-width:0}.hp-clients-toolbar .hp-list-count{margin-left:0}.hp-facts{grid-template-columns:minmax(0,1fr)}.hp-clients-panel{padding:14px}}
.cobro-btn.is-danger{border-color:color-mix(in srgb,#dc2626 45%,transparent);background:transparent;color:#dc2626}html[data-theme=dark] .cobro-btn.is-danger{color:#fca5a5}.cobro-btn:hover{filter:brightness(1.08)}
/* Cobros: monto total y cobrado, avisos, historial de pagos con acciones y visor de PDF/ticket en modal. */
.cobro-dialog--lg{width:min(1000px,calc(100vw - 24px))}
.cobro-hint{grid-column:1/-1;margin:0;font-size:12px;color:var(--hp-muted)}
.cobro-hint.is-error,.cobro-vacio.is-error{color:#dc2626;font-weight:650}
.cobro-status.is-error{padding:8px 10px;border-radius:10px;background:#ef44441a;color:#b91c1c;font-weight:650}
.cobro-totals div[hidden]{display:none}.cobro-totals .is-desc dd{color:#d97706;font-weight:750}
.cobro-aviso{margin:0;padding:10px 12px;border:1px solid var(--hp-border);border-radius:10px;background:var(--hp-surface);font-size:13px;font-weight:600}.cobro-aviso[hidden]{display:none}
.cobro-aviso.is-error{border-color:#ef444466;background:#ef44441a;color:#b91c1c}.cobro-aviso.is-ok{border-color:color-mix(in srgb,var(--hp-success) 40%,transparent);background:color-mix(in srgb,var(--hp-success) 12%,transparent);color:var(--hp-success)}
html[data-theme=dark] .cobro-status.is-error,html[data-theme=dark] .cobro-aviso.is-error,html[data-theme=dark] .cobro-hint.is-error,html[data-theme=dark] .cobro-vacio.is-error{color:#fca5a5}
.cobro-pago{grid-template-columns:minmax(0,1fr) auto auto;align-items:center}.cobro-pago__doc{color:var(--hp-text)!important;font-weight:650}.cobro-pago__acciones{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px}
.pagos-tabla-wrap{overflow-x:auto;border:1px solid var(--hp-border);border-radius:14px;background:var(--hp-surface)}
.pagos-tabla{width:100%;border-collapse:collapse;color:var(--hp-text);font-size:13px}
.pagos-tabla th{padding:10px 12px;border-bottom:1px solid var(--hp-border);background:var(--hp-bg);color:var(--hp-muted);font-size:10.5px;font-weight:650;letter-spacing:.06em;text-align:left;text-transform:uppercase;white-space:nowrap}
.pagos-tabla td{padding:11px 12px;border-bottom:1px solid var(--hp-border);vertical-align:middle}.pagos-tabla tbody tr:last-child td{border-bottom:0}
.pagos-tabla .r{text-align:right}.pagos-tabla small{display:block;margin-top:2px;color:var(--hp-muted);font-size:11.5px}.pagos-tabla strong{font-weight:700}
.pagos-acciones{display:inline-flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.pagos-confirmar{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;font-size:12.5px;font-weight:650}
.pagos-vacio{padding:26px 12px;text-align:center;color:var(--hp-muted)}
.cobro-visor{width:min(1040px,calc(100vw - 24px));height:calc(100dvh - 24px)}.cobro-visor .cobro-card{height:100%;max-height:none}
.cobro-visor .cobro-head{align-items:center}.cobro-visor__frame{flex:1;width:100%;min-height:0;border:0;background:#525659}
.cobro-visor__formatos{display:inline-flex;gap:4px;margin-left:auto;padding:4px;border:1px solid var(--hp-border);border-radius:11px;background:var(--hp-surface-2)}.cobro-visor__formatos[hidden]{display:none}
.cobro-visor__formatos button{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--hp-muted);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.cobro-visor__formatos button .hp-icon{width:15px;height:15px}.cobro-visor__formatos button[aria-pressed=true]{background:var(--hp-primary);color:#fff}
@media(max-width:760px){.cobro-pago{grid-template-columns:minmax(0,1fr) auto}.cobro-pago__acciones{grid-column:1/-1;justify-content:flex-start}.pagos-tabla thead{display:none}.pagos-tabla,.pagos-tabla tbody,.pagos-tabla tr,.pagos-tabla td{display:block;width:100%}.pagos-tabla tr{padding:10px 12px;border-bottom:1px solid var(--hp-border)}.pagos-tabla td{display:flex;justify-content:space-between;gap:10px;padding:4px 0;border:0;text-align:right}.pagos-tabla td::before{content:attr(data-label);color:var(--hp-muted);font-size:11px;text-align:left}.pagos-tabla td.pagos-acciones-celda::before,.pagos-tabla td.pagos-vacio::before{content:none}.pagos-tabla td.pagos-acciones-celda{justify-content:flex-start;padding-top:8px}.cobro-visor .cobro-head{flex-wrap:wrap}.cobro-visor__formatos{order:3;margin-left:0}}
.cobro-field input[readonly]{background:var(--hp-surface-2);color:var(--hp-muted);cursor:not-allowed}
@media(min-width:761px){.pagos-acciones-celda{white-space:nowrap}.pagos-acciones{flex-wrap:nowrap}}
.pagos-tabla td.r small{white-space:nowrap}
/* Diálogos de opciones de la ficha (Resto, Vet, Hotel): formularios con el mismo marco que el modal de cobro. */
.hp-dialog{width:min(880px,calc(100vw - 24px))}.hp-dialog-body{display:block}.hp-dialog-body>*+*{margin-top:12px}
.hp-dialog-body .ra-fieldset{margin:0}.hp-dialog-body form+details,.hp-dialog-body details+details{margin-top:10px}
.cobro-visor{width:min(1280px,calc(100vw - 24px))}
.hp-dialog-body .ra-actions{margin-top:16px}
.hp-dialog-body details.ra-plan{margin:0;padding:12px 14px;border:1px solid var(--hp-border);border-radius:12px;background:var(--hp-surface)}.hp-dialog-body details.ra-plan+details.ra-plan{margin-top:8px}.hp-dialog-body details.ra-plan[open]>summary{margin-bottom:12px}
form>button.hp-menu-link{width:100%;border:0;background:none;font:inherit;font-size:13px;text-align:left;cursor:pointer}
/* Firma electrónica (ficha Resto): solo el panel de la vía elegida; sin :has se ven todos y el botón dice «Guardar». */
.firma-modos{grid-template-columns:repeat(3,minmax(0,1fr))}.hp-dialog-body .firma-modos-set{margin-bottom:16px}
.firma-hint{margin:0 0 14px;font-size:13px;line-height:1.5;color:var(--hp-muted)}.firma-hint strong{color:var(--hp-text);font-weight:600}.firma-panel{margin-bottom:18px}.firma-form .ra-grid{gap:14px}.firma-save-pse{display:none}.hp-dialog-body details.firma-consumo{margin-top:20px}.firma-consumo .ra-plan-meta{font-size:12px}
@supports selector(:has(*)){.firma-panel{display:none}.firma-form:has([name=firma][value=CERTIFICADO]:checked) [data-firma-panel=CERTIFICADO],.firma-form:has([name=firma][value=SMARTPSE]:checked) [data-firma-panel=SMARTPSE],.firma-form:has([name=firma][value=QPSE]:checked) [data-firma-panel=QPSE]{display:block}.firma-form:has([name=firma][value=SMARTPSE]:checked,[name=firma][value=QPSE]:checked) .firma-save{display:none}.firma-form:has([name=firma][value=SMARTPSE]:checked,[name=firma][value=QPSE]:checked) .firma-save-pse{display:inline}}
