*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f4f6fb;color:#202938}body.dark{background:#111827;color:#e5e7eb}.hidden{display:none!important}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}.login-screen{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#4058d9,#7b4fd5 48%,#ce42b3)}.login-card{width:min(430px,100%);background:#fff;border-radius:24px;padding:34px;box-shadow:0 25px 70px #1118}.brand-mark{width:62px;height:62px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary,#4f46e5),#8b5cf6);color:#fff;font-weight:900;font-size:22px;margin-bottom:20px}.login-card h1{margin:0 0 6px;font-size:30px}.login-card p{margin:0 0 25px;color:#64748b}.login-card label,.panel-card label{display:block;font-size:14px;color:#475569;margin:14px 0}.login-card input,.panel-card input,.panel-card select,.panel-card textarea{width:100%;margin-top:7px;padding:12px 13px;border:1px solid #d7dce5;border-radius:10px;outline:0;background:#fff;color:#202938}.login-card input:focus,.panel-card input:focus,.panel-card select:focus,.panel-card textarea:focus{border-color:var(--primary,#4f46e5);box-shadow:0 0 0 3px #4f46e51a}.login-card small{display:block;margin-top:15px;color:#64748b;line-height:1.5}.primary-btn{background:var(--primary,#4f46e5);color:#fff;padding:11px 17px;border-radius:10px;font-weight:750;box-shadow:0 7px 16px #4f46e526}.primary-btn:hover{filter:brightness(.96);transform:translateY(-1px)}.error-text{min-height:18px;color:#dc2626;font-size:13px;margin-top:8px}.app{min-height:100vh;display:flex}.sidebar{width:245px;background:#202936;color:#cbd5e1;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:20}.side-brand{padding:25px 20px;display:flex;gap:12px;align-items:center;border-bottom:1px solid #ffffff12}.side-brand>span{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:var(--primary,#4f46e5);color:#fff;font-weight:900}.side-brand strong{display:block;color:#fff;font-size:16px}.side-brand small{color:#94a3b8}.sidebar nav{padding:18px 12px;display:grid;gap:6px}.nav-btn{background:transparent;color:#aeb9c9;text-align:left;padding:12px 14px;border-radius:10px;font-weight:650;display:flex;gap:12px;align-items:center}.nav-btn:hover,.nav-btn.active{background:var(--primary,#4f46e5);color:#fff}.side-bottom{margin-top:auto;padding:15px}.logout-btn{width:100%;padding:11px;border-radius:10px;background:#ffffff0c;color:#cbd5e1}.main{margin-left:245px;width:calc(100% - 245px);min-width:0}.topbar{height:76px;background:#fff;border-bottom:1px solid #e6eaf0;padding:12px 28px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:10}.dark .topbar,.dark .panel-card,.dark .toolbar,.dark .table-wrap{background:#1f2937;color:#e5e7eb;border-color:#374151}.topbar h2{margin:0;font-size:20px}.topbar p{margin:2px 0 0;color:#718096;font-size:12px}.top-actions{display:flex;align-items:center;gap:12px}.user-chip{background:#f1f5f9;border-radius:30px;padding:7px 12px 7px 7px;display:flex;align-items:center;gap:8px;color:#334155}.user-chip span{width:28px;height:28px;border-radius:50%;background:var(--primary,#4f46e5);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800}.icon-btn{background:transparent;color:#475569;font-size:19px;padding:7px}.main>.view{padding:26px 28px 50px;max-width:1600px;margin:auto}.hero{background:linear-gradient(120deg,#202a46,#4d3b91 55%,var(--primary,#4f46e5));color:#fff;border-radius:18px;padding:25px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;box-shadow:0 16px 35px #29366a22}.hero h1{margin:5px 0;font-size:30px}.hero p{margin:5px 0 0;color:#dbe4ff;max-width:700px}.eyebrow{font-size:11px;letter-spacing:1.8px;color:#8eeaff;font-weight:900}.stats-grid{display:grid;gap:14px}.finance-stats{grid-template-columns:repeat(5,1fr)}.account-stats{grid-template-columns:repeat(5,1fr);margin-bottom:25px}.stat-card{background:#fff;border:1px solid #e7eaf0;border-radius:14px;padding:17px;display:flex;gap:13px;align-items:center;min-width:0;box-shadow:0 6px 20px #26324a08}.stat-card .stat-icon{width:48px;height:48px;flex:0 0 48px;border-radius:13px;background:#eef2ff;color:var(--primary,#4f46e5);display:grid;place-items:center;font-weight:900;font-size:21px}.stat-card span{font-size:10px;font-weight:800;color:#7b8798;display:block}.stat-card strong{font-size:19px;display:block;margin-top:5px}.stat-card.total{background:linear-gradient(135deg,#202936,#39425e);color:#fff}.stat-card.total span{color:#cbd5e1}.stat-card.total .stat-icon{background:#ffffff1b;color:#fff}.account-stats .stat-card{display:block}.account-stats .mini-label{font-size:11px}.account-stats .stat-card strong{font-size:27px}.account-stats .stat-card small{color:#94a3b8}.status-active{border-top:4px solid #16a34a}.status-support{border-top:4px solid #f59e0b}.status-expired{border-top:4px solid #ef4444}.status-sold{border-top:4px solid #6366f1}.status-total{border-top:4px solid #06b6d4}.section-title,.panel-head,.view-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.section-title h3{margin:0 0 13px}.text-btn,.small-btn{background:#eef2ff;color:var(--primary,#4f46e5);padding:8px 11px;border-radius:8px;font-weight:750;font-size:12px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel-card{background:#fff;border:1px solid #e5e9f0;border-radius:14px;padding:18px;box-shadow:0 6px 20px #26324a08}.panel-head{margin-bottom:15px}.panel-head h3{margin:0}.panel-head small{color:#8a94a4}.category-list{display:grid;gap:10px}.category-row{display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:10px;padding:10px;border-radius:9px;background:#f8fafc}.category-dot{width:10px;height:10px;border-radius:50%}.category-row strong{font-size:13px}.category-row span{font-size:12px;color:#64748b}.upcoming-list{display:grid;gap:8px}.upcoming{display:flex;justify-content:space-between;gap:12px;padding:11px;background:#f8fafc;border-radius:9px}.upcoming strong{font-size:13px}.upcoming small{display:block;color:#64748b;margin-top:3px}.days-badge{min-width:42px;height:30px;padding:0 7px;display:grid;place-items:center;border-radius:8px;background:#dcfce7;color:#166534;font-weight:800;font-size:12px}.days-badge.warn{background:#fef3c7;color:#92400e}.days-badge.danger{background:#fee2e2;color:#991b1b}.view-head{margin-bottom:20px}.view-head h1{margin:0 0 4px;font-size:28px}.view-head p{margin:0;color:#7b8798}.toolbar{display:flex;gap:9px;align-items:center;background:#fff;border:1px solid #e5e9f0;padding:10px;border-radius:12px;margin-bottom:13px}.toolbar input{flex:1;min-width:180px;padding:11px 12px;border:1px solid #d9dee7;border-radius:9px}.toolbar select{padding:10px;border:1px solid #d9dee7;border-radius:9px;background:#fff}.table-wrap{overflow:auto;background:#fff;border:1px solid #e5e9f0;border-radius:12px}.accounts-table{width:100%;border-collapse:collapse;min-width:1050px}.accounts-table th{background:#202936;color:#fff;text-align:left;padding:12px 10px;font-size:11px;letter-spacing:.3px}.accounts-table td{padding:10px;border-bottom:1px solid #edf0f4;font-size:12px;vertical-align:middle}.accounts-table tr:hover td{background:#fafbff}.cat-pill{padding:6px 9px;border-radius:6px;color:#fff;font-weight:800;display:inline-block}.status-pill{padding:5px 8px;border-radius:6px;font-size:11px;font-weight:800}.status-pill.Activo{background:#dcfce7;color:#166534}.status-pill.Soporte{background:#fef3c7;color:#92400e}.status-pill.Vendido{background:#e0e7ff;color:#3730a3}.status-pill.Vencida{background:#fee2e2;color:#991b1b}.row-actions{display:flex;gap:5px}.row-actions button{padding:6px 8px;border-radius:7px;background:#eef2ff;color:#334155;font-size:12px}.row-actions .delete{background:#fee2e2;color:#991b1b}.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.category-card,.provider-card{background:#fff;border:1px solid #e4e8ef;border-radius:14px;overflow:hidden;box-shadow:0 7px 22px #26324a08}.color-bar{height:9px}.card-body{padding:17px}.card-body h3{margin:0 0 5px}.card-body p{margin:0 0 15px;color:#738096;font-size:13px}.card-actions{display:flex;gap:8px}.card-actions button{padding:8px 10px;border-radius:8px;background:#eef2ff;color:#4f46e5;font-weight:700;font-size:12px}.card-actions .delete{background:#fee2e2;color:#991b1b}.provider-number{font-size:30px;font-weight:900;margin:5px 0}.support-layout,.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.settings-grid{grid-template-columns:repeat(3,1fr)}.support-item{padding:12px;border:1px solid #e6eaf0;border-radius:10px;margin:8px 0;display:flex;justify-content:space-between;gap:12px}.muted{color:#718096;font-size:13px;line-height:1.6}.button-row{display:flex;gap:8px;flex-wrap:wrap}.danger{background:#fee2e2;color:#991b1b}.file-label input{padding:8px}.movement{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #edf0f4}.movement strong{display:block}.movement small{color:#7b8798}.amount-in{color:#15803d;font-weight:850}.amount-out{color:#b91c1c;font-weight:850}.modal{position:fixed;inset:0;background:#101828b8;display:grid;place-items:center;padding:15px;z-index:50}.modal-card{width:min(650px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;padding:25px;position:relative}.modal-close{position:absolute;right:15px;top:11px;background:transparent;font-size:28px;color:#7a8493}.modal-card h2{margin:0 0 18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 13px}.form-grid .full{grid-column:1/-1}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.cancel-btn{padding:10px 14px;border-radius:9px;background:#eef2f5}.toast{position:fixed;right:20px;bottom:20px;background:#202936;color:#fff;padding:12px 16px;border-radius:10px;box-shadow:0 15px 35px #0003;transform:translateY(120px);transition:.25s;z-index:100;font-size:13px}.toast.show{transform:translateY(0)}#mobileMenu{display:none}@media(max-width:1100px){.finance-stats,.account-stats{grid-template-columns:repeat(3,1fr)}.cards-grid{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:1fr 1fr}}@media(max-width:780px){.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.open{transform:none;box-shadow:20px 0 50px #0004}.main{margin-left:0;width:100%}.topbar{padding:11px 15px}.topbar #mobileMenu{display:inline-block}.top-actions #todayLabel{display:none}.main>.view{padding:18px 13px 35px}.hero{padding:20px;align-items:flex-start;flex-direction:column}.hero h1{font-size:25px}.finance-stats,.account-stats,.two-col,.support-layout,.settings-grid,.cards-grid{grid-template-columns:1fr}.account-stats .stat-card{padding:14px}.view-head{align-items:flex-start}.view-head h1{font-size:24px}.toolbar{flex-wrap:wrap}.toolbar input{flex-basis:100%}.toolbar select{flex:1;min-width:130px}.table-wrap{margin:0 -1px}.topbar h2{font-size:18px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.user-chip{font-size:0;padding:5px}.user-chip span{font-size:10px}.modal-card{padding:21px}.upcoming{padding:9px}.side-brand{padding-top:20px}}
/* Formulario de registro de cuenta — estilo compacto tipo panel */
.account-modal-head{padding-right:35px;margin-bottom:18px}.modal-kicker{font-size:10px;letter-spacing:1.5px;font-weight:900;color:var(--primary,#4f46e5)}.account-modal-head h2{font-size:30px;line-height:1.05;margin:5px 0 6px;color:#26313f}.account-modal-head p{font-size:12px;color:#7b8798;margin:0}.account-form{display:grid;gap:0}.account-field{margin:0}.account-field label{display:block;font-size:14px;color:#303947;font-weight:500;margin:0 0 11px}.account-field input,.account-field select,.account-field textarea{width:100%;margin-top:7px;padding:12px 14px;border:1px solid #d8dce3;border-radius:7px;outline:0;background:#fff;color:#28313d;font-size:13px;transition:.18s}.account-field input:focus,.account-field select:focus,.account-field textarea:focus{border-color:var(--primary,#4f46e5);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary,#4f46e5) 12%,transparent)}.input-action,.textarea-action{position:relative}.input-action input{padding-right:43px}.textarea-action textarea{padding-right:42px;resize:vertical;min-height:94px}.field-clear{position:absolute;right:7px;top:50%;transform:translateY(-2%);width:29px;height:29px;border-radius:7px;background:transparent;color:#aaa2b5;font-size:14px;padding:0}.textarea-clear{top:14px;transform:none}.field-clear:hover{background:#f1f2f6;color:var(--primary,#4f46e5)}.account-two{display:grid;grid-template-columns:1fr 1fr;gap:13px}.account-actions{padding-top:5px;margin-top:4px;border-top:1px solid #eef0f3}.register-btn{min-width:150px}.cancel-btn{padding:10px 15px;border-radius:9px;background:#eef1f5;color:#4b5563;font-weight:700}.dark .account-modal-head h2,.dark .account-field label{color:#e5e7eb}.dark .account-field input,.dark .account-field select,.dark .account-field textarea{background:#111827;color:#e5e7eb;border-color:#374151}
@media(max-width:520px){.modal-card{width:100%;padding:20px 17px;border-radius:16px}.account-modal-head h2{font-size:26px}.account-two{grid-template-columns:1fr}.account-field label{margin-bottom:9px}.account-field input,.account-field select,.account-field textarea{padding:11px 12px}.account-actions{position:sticky;bottom:-20px;background:#fff;padding:13px 0 3px}.dark .account-actions{background:#1f2937}.register-btn{flex:1}.cancel-btn{flex:0 0 auto}}

/* ===== Cuentas Registradas: diseño inspirado en la referencia ===== */
.accounts-view{background:linear-gradient(180deg,#f7f8ff 0,#f4f6fb 42%,#f4f6fb 100%);min-height:calc(100vh - 76px)}
.accounts-breadcrumb{font-size:12px;color:#64748b;margin:-3px 0 14px;display:flex;gap:9px;align-items:center}.accounts-breadcrumb span{color:var(--primary,#4f46e5);font-weight:700}.accounts-breadcrumb strong{color:#b4236e}.accounts-breadcrumb b{color:#9aa5b5}
.accounts-titlebar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}.accounts-titlebar h1{font-size:29px;margin:0 0 5px;letter-spacing:-.5px}.accounts-titlebar p{margin:0;color:#7b8798;font-size:13px}
.account-category-chips{display:flex;gap:7px;overflow-x:auto;padding:2px 2px 12px;scrollbar-width:thin}.account-category-chips::-webkit-scrollbar{height:5px}.account-category-chips::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.account-chip{border:0;color:#fff;padding:9px 13px;border-radius:7px;font-size:11px;font-weight:800;white-space:nowrap;box-shadow:0 3px 9px #26324a18}.account-chip.active{outline:3px solid #c7d2fe;outline-offset:1px}
.accounts-toolbar{display:flex;gap:9px;align-items:center;background:#fff;border:1px solid #e1e6ef;border-radius:12px;padding:10px;box-shadow:0 4px 15px #24304d08}.account-search{display:flex;align-items:center;gap:8px;flex:1;min-width:220px;border:1px solid #d9dfeb;border-radius:9px;padding:0 11px;height:39px;background:#fff}.account-search span{font-size:21px;color:#64748b}.account-search input{border:0!important;outline:0!important;box-shadow:none!important;padding:0!important;margin:0!important;width:100%;font-size:12px}.accounts-toolbar select{height:39px;padding:0 10px;border:1px solid #d9dfeb;border-radius:9px;background:#fff;color:#475569;font-size:12px}.filter-btn{height:39px;padding:0 13px;border:1px solid #d9dfeb;border-radius:9px;background:#f8faff;color:var(--primary,#4f46e5);font-weight:800;font-size:12px}
.accounts-pagination{display:flex;justify-content:space-between;align-items:center;padding:10px 2px;color:#7b8798;font-size:11px}.accounts-pagination>div{display:flex;gap:3px}.accounts-pagination button,.accounts-pagination b{width:36px;height:34px;border:1px solid #e0e5ee;background:#fff;color:#4f46e5;display:grid;place-items:center;border-radius:6px;font-size:13px}.accounts-pagination b{background:#202936;color:#fff;border-color:#202936}
.accounts-table-card{border-radius:12px;box-shadow:0 8px 24px #25324b0c;border-color:#e1e6ef}.accounts-table{min-width:1370px}.accounts-table th{background:linear-gradient(90deg,#202a39,#202b3b);padding:13px 9px;color:#70eaff;text-align:center;font-size:10px;text-transform:none;border-right:1px solid #ffffff14}.accounts-table td{padding:8px 9px;height:52px;text-align:center;font-size:11px;color:#263242;border-right:1px solid #edf0f5}.accounts-table td:nth-child(3),.accounts-table td:nth-child(5){text-align:left}.accounts-table th:nth-child(3),.accounts-table td:nth-child(3){min-width:360px}.accounts-table tbody tr:nth-child(even) td{background:#fbfcfe}.accounts-table tbody tr:hover td{background:#f3f6ff}.cat-pill{min-width:130px;text-align:center;padding:8px 9px;border-radius:4px;font-size:11px;box-shadow:0 2px 5px #00000012}.account-add-btn{display:inline-flex;align-items:center;gap:4px;background:#20cf73;color:#fff;padding:7px 10px;border-radius:3px;font-weight:900;font-size:11px}.profile-counts{display:flex;align-items:center;gap:4px;justify-content:center}.profile-dot{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:11px;font-weight:900;border:2px solid #fff;box-shadow:0 1px 4px #0002}.profile-dot.red{background:#ef4444}.profile-dot.blue{background:#168cf0}.profile-dot.green{background:#16a34a}.eye-btn{background:transparent;color:#1fc9ef;font-size:17px;padding:1px}.condition-icon{font-size:24px;color:#263ad9}.renew-btn,.support-btn,.edit-btn,.delete-btn{background:transparent!important;padding:3px 4px!important;font-size:10px!important;display:inline-flex;flex-direction:column;align-items:center;gap:1px}.renew-btn{color:#5b3df5!important}.support-btn{color:#ef4444!important}.edit-btn{color:#4338ca!important}.delete-btn{color:#ef4444!important}.action-symbol{font-size:18px;line-height:15px}.days-box{display:inline-grid;place-items:center;min-width:49px;padding:8px 5px;border-radius:2px;background:#0a8f1a;color:#fff;font-weight:900}.days-box.warn{background:#ffbd00}.days-box.danger{background:#ef4444}.refund-box{display:inline-block;background:#20cf73;color:#fff;padding:8px 9px;border-radius:2px;font-weight:800;min-width:55px}.provider-box{display:inline-block;background:#e8faf3;color:#17875d;padding:7px 9px;border-radius:5px;font-weight:750}.status-box{display:inline-block;background:#008c12;color:#fff;padding:7px 9px;border-radius:2px;font-weight:900}.dark .accounts-view{background:#111827}.dark .accounts-toolbar,.dark .accounts-pagination button,.dark .accounts-pagination b,.dark .account-search,.dark .accounts-table-card{background:#1f2937;color:#e5e7eb;border-color:#374151}.dark .accounts-table td{color:#e5e7eb;border-color:#374151}.dark .accounts-toolbar select{background:#1f2937;color:#e5e7eb;border-color:#374151}
@media(max-width:780px){.accounts-titlebar{align-items:flex-start;flex-direction:column}.accounts-titlebar h1{font-size:24px}.accounts-toolbar{flex-wrap:wrap}.account-search{flex-basis:100%;min-width:0}.accounts-toolbar select,.filter-btn,.accounts-toolbar .small-btn{flex:1}.accounts-table-card{margin:0}.accounts-pagination{padding-top:8px}.account-category-chips{margin-right:-13px;padding-right:13px}.accounts-breadcrumb{margin-top:0}}

.password-cell{display:flex;align-items:center;gap:6px;min-width:125px}.password-value{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.3px}.password-all-btn{background:#ecfeff;color:#087f9d;border:1px solid #b9edf5}.all-password-tools{display:flex;gap:9px;margin-bottom:12px}.all-password-tools input{flex:1;padding:11px 12px;border:1px solid #d8dce3;border-radius:9px;outline:0}.all-password-list{display:grid;gap:8px}.all-password-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 12px;border:1px solid #e5e9f0;border-radius:10px;background:#f8fafc}.all-password-main{display:flex;align-items:center;gap:10px;min-width:0}.all-password-main>div{min-width:0}.all-password-main strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.all-password-main small{display:block;color:#718096;font-size:11px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.all-password-index{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#e0e7ff;color:#3730a3;font-size:11px;font-weight:900;flex:0 0 27px}.all-password-value{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #dfe4eb;border-radius:8px;padding:5px 7px;min-width:170px;justify-content:space-between}.all-pw-text{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;word-break:break-all}.all-eye{flex:0 0 auto}.dark .all-password-row{background:#111827;border-color:#374151}.dark .all-password-value,.dark .all-password-tools input{background:#1f2937;color:#e5e7eb;border-color:#374151}@media(max-width:520px){.all-password-tools{flex-direction:column}.all-password-value{min-width:0;max-width:46vw}.all-password-row{align-items:flex-start}.all-password-main{min-width:0}.all-password-main small{max-width:48vw}}

/* Clientes y perfiles asociados a cada cuenta */
.profile-counts{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;white-space:nowrap;width:100%;max-width:100%;padding:2px 1px 5px;scrollbar-width:thin}.profile-dot{border:2px solid #fff;transition:.15s transform;flex:0 0 28px}.profile-dot:hover{transform:translateY(-2px) scale(1.05)}.profile-summary{width:100%;display:flex;justify-content:center;gap:6px;font-size:9px;line-height:1.1;white-space:nowrap}.profile-summary .sold-count{color:#dc2626;font-weight:800}.profile-summary .free-count{color:#15803d;font-weight:800}.profile-summary.empty{color:#94a3b8}.status-vendido{background:#dc2626!important}.status-libre{background:#16a34a!important}
.client-modal-head{margin-bottom:18px;padding-right:35px}.client-modal-head h2{margin:4px 0 3px;font-size:28px;letter-spacing:-.4px}.client-modal-head p{margin:0;color:#718096;font-size:13px}.client-form label{display:block;color:#4b5563;font-size:14px;margin:0 0 11px}.client-form input,.client-form select,.client-form textarea{width:100%;margin-top:7px;padding:11px 12px;border:1px solid #d6dbe4;border-radius:7px;background:#fff;color:#202938;outline:0}.client-form input:focus,.client-form select:focus,.client-form textarea:focus{border-color:var(--primary,#4f46e5);box-shadow:0 0 0 3px #4f46e51a}.client-form textarea{resize:vertical;min-height:72px}.client-form .input-action{position:relative}.client-form .input-action input,.client-form .input-action textarea{padding-right:42px}.client-form .field-clear{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:29px;height:29px;background:transparent;color:#aaa2b5}.client-form .textarea-clear{top:15px;transform:none}.phone-row{display:grid;grid-template-columns:100px 1fr;gap:0}.phone-row select{border-radius:7px 0 0 7px}.phone-row input{border-radius:0 7px 7px 0}.client-type,.client-status{display:flex;gap:18px;align-items:center;margin:3px 0 12px}.client-type label,.client-status label{margin:0;display:flex;align-items:center;gap:6px;cursor:pointer}.client-type input,.client-status input{width:auto;margin:0;accent-color:var(--primary,#4f46e5)}.client-form .account-two{margin-bottom:2px}.client-form .modal-actions{align-items:center}.client-form .danger{background:#fee2e2;color:#b91c1c;padding:10px 13px;border-radius:9px;font-weight:750}.dark .client-form label{color:#e5e7eb}.dark .client-form input,.dark .client-form select,.dark .client-form textarea{background:#111827;color:#e5e7eb;border-color:#374151}.dark .client-modal-head p{color:#94a3b8}
@media(max-width:520px){.client-modal-head h2{font-size:25px}.phone-row{grid-template-columns:90px 1fr}.client-form .account-two{grid-template-columns:1fr}.profile-summary{font-size:8px}}

.provider-modal-head{text-align:center;margin-bottom:18px}.provider-modal-head h2{font-size:28px;margin:4px 0 6px}.provider-modal-head p{margin:0;color:#718096;font-size:13px;line-height:1.5}.provider-form{display:grid;gap:15px}.provider-form label{display:grid;gap:7px;color:#374151;font-size:14px}.provider-form input,.provider-form select{width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid #d7dce4;border-radius:8px;background:#fff;font-size:15px;outline:none}.provider-form input:focus,.provider-form select:focus{border-color:#22d3ee;box-shadow:0 0 0 3px #22d3ee18}.provider-form .phone-row{display:grid;grid-template-columns:100px 1fr;gap:0}.provider-form .phone-row select{border-radius:8px 0 0 8px}.provider-form .phone-row input{border-radius:0 8px 8px 0}.provider-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.provider-top h3{margin:0 0 3px}.provider-top p{margin:0 0 10px}.provider-contact-list{display:grid;gap:8px;margin:10px 0 12px;padding:11px 0;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4;color:#4b5563;font-size:13px}.provider-contact-list>div{display:flex;gap:8px;align-items:center}.provider-contact-icon{width:24px;height:24px;display:inline-grid;place-items:center;border-radius:7px;background:#e8f7ff;color:#0ea5e9;font-weight:800}.provider-contact-actions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:13px;align-items:center}.provider-contact-actions a{padding:7px 9px;border-radius:7px;background:#eafaf2;color:#16875d;font-size:12px;font-weight:800;text-decoration:none}.provider-contact-actions span{margin-left:auto;font-size:12px;color:#7b8798}
@media(max-width:600px){.provider-modal-head h2{font-size:23px}.provider-form .phone-row{grid-template-columns:88px 1fr}.provider-contact-actions span{margin-left:0;width:100%}}
/* Registro continuo de clientes/perfiles */
.client-batch-area{margin-top:18px;border-top:1px solid #e8edf3;padding-top:17px}.client-batch-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}.client-batch-head h3{margin:4px 0 2px;font-size:20px;color:#26313f}.client-batch-head p{margin:0;color:#718096;font-size:12px}.client-batch-stats{font-size:11px;white-space:nowrap;background:#f5f7fa;border-radius:10px;padding:8px 10px;color:#64748b}.client-batch-stats b{color:#334155}.client-batch-stats strong{color:#dc2626;margin-left:7px}.client-batch-stats i{font-style:normal;color:#15803d;margin-left:7px}.batch-client-form{background:#f8fafc;border:1px solid #e3e8ef;border-radius:12px;padding:12px}.batch-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.batch-client-form label{display:block;font-size:11px;font-weight:700;color:#4b5563;margin-bottom:9px}.batch-client-form input,.batch-client-form select,.batch-client-form textarea{width:100%;margin-top:5px;padding:9px 10px;border:1px solid #d5dce5;border-radius:7px;background:#fff;color:#26313f;font-size:12px;outline:0}.batch-client-form textarea{resize:vertical}.batch-actions{display:flex;gap:8px;justify-content:flex-end}.batch-client-list{margin-top:10px;display:grid;gap:6px;max-height:210px;overflow:auto}.batch-client-row{display:grid;grid-template-columns:42px 1fr auto auto;align-items:center;gap:9px;padding:8px 9px;border:1px solid #e5eaf0;border-radius:8px;background:#fff}.batch-client-row b{display:block;font-size:12px;color:#26313f}.batch-client-row small{display:block;font-size:10px;color:#718096;margin-top:2px}.batch-number{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:10px;font-weight:900}.batch-number.sold{background:#ef4444}.batch-number.free{background:#16a34a}.batch-status{font-size:10px;font-weight:900;padding:5px 7px;border-radius:5px}.batch-status.sold{background:#fee2e2;color:#b91c1c}.batch-status.free{background:#dcfce7;color:#15803d}.batch-edit{background:#eef2ff;color:#4338ca;padding:6px 8px;border-radius:6px;font-size:10px;font-weight:800}.dark .client-batch-area{border-color:#374151}.dark .client-batch-head h3{color:#e5e7eb}.dark .client-batch-stats,.dark .batch-client-form,.dark .batch-client-row{background:#111827;border-color:#374151}.dark .batch-client-form label,.dark .batch-client-row b{color:#e5e7eb}.dark .batch-client-form input,.dark .batch-client-form select,.dark .batch-client-form textarea{background:#1f2937;color:#e5e7eb;border-color:#374151}
@media(max-width:650px){.client-batch-head{flex-direction:column}.batch-grid{grid-template-columns:1fr 1fr}.batch-client-row{grid-template-columns:36px 1fr auto}.batch-client-row .batch-edit{grid-column:3;grid-row:1}.batch-status{grid-column:2}.batch-actions{flex-direction:column}.batch-actions button{width:100%}}
@media(max-width:430px){.batch-grid{grid-template-columns:1fr}}

/* Personalización avanzada */
:root{--page-bg:#f4f7fb;--surface:#fff;--text:#263242;--muted:#718096;--icon:#1fc9ef;--table-head:#202a39;--secondary:#06b6d4;--success:#16a34a;--warning:#f59e0b;--danger:#ef4444;--radius:10px}
body{background:var(--page-bg);color:var(--text)}
.panel-card,.stat-card,.category-card,.provider-card{border-radius:var(--radius)}
.primary-btn{background:var(--primary)}
.icon-btn,.stat-icon,.condition-icon,.eye-btn{color:var(--icon)}
.accounts-table th{background:var(--table-head)}
.days-box{background:var(--success)}.days-box.warn{background:var(--warning)}.days-box.danger{background:var(--danger)}
.status-box{background:var(--success)}.profile-dot.green,.status-libre{background:var(--success)!important}.profile-dot.red,.status-vendido{background:var(--danger)!important}
.appearance-settings .muted{margin-top:-5px;margin-bottom:16px}.color-settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.color-settings-grid label{display:grid;gap:6px;font-size:12px;font-weight:700;color:var(--text)}.color-settings-grid input[type=color]{width:100%;height:42px;padding:3px;border:1px solid #d8dee8;border-radius:8px;background:var(--surface);cursor:pointer}.color-settings-grid input[type=range]{width:100%;accent-color:var(--primary)}.color-settings-grid output{font-size:11px;color:var(--muted)}.brand-preview{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:13px;margin:16px 0;border:1px dashed #d7dee8;border-radius:var(--radius);background:var(--page-bg)}.brand-preview span{padding:7px 10px;border-radius:7px;font-size:11px;font-weight:800}.preview-brand{background:var(--primary);color:#fff}.preview-text{color:var(--text);background:var(--surface)}.preview-icon{color:var(--icon);background:var(--surface)}.preview-ok{background:var(--success);color:#fff}.preview-warn{background:var(--warning);color:#fff}.preview-danger{background:var(--danger);color:#fff}
/* Registro de clientes en una sola línea ancha */
.modal-card:has(.client-batch-area){width:min(1120px,calc(100vw - 30px));max-width:1120px}.batch-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.batch-client-form{min-width:1030px;background:var(--page-bg);border:1px solid #e0e6ee;border-radius:var(--radius);padding:12px}.batch-row-fields{display:grid;grid-template-columns:1.25fr 1fr 1.1fr 1fr .75fr .8fr .65fr .8fr .9fr .9fr .8fr 1fr;gap:8px;align-items:end}.batch-row-fields label,.batch-row-bottom label{font-size:10px;font-weight:800;color:var(--text);display:grid;gap:4px}.batch-row-fields input,.batch-row-fields select,.batch-row-bottom textarea{width:100%;box-sizing:border-box;padding:9px 8px;border:1px solid #d6dce5;border-radius:7px;background:var(--surface);color:var(--text);font-size:11px;outline:none}.batch-row-fields input:focus,.batch-row-fields select:focus,.batch-row-bottom textarea:focus{border-color:var(--primary)}.batch-row-bottom{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:9px;align-items:end}.batch-row-bottom textarea{resize:none;min-height:38px}.batch-actions{display:flex;gap:7px;justify-content:flex-end}.batch-actions button{white-space:nowrap}.batch-client-list{min-width:1030px;margin-top:10px;border:1px solid #e1e6ee;border-radius:var(--radius);overflow:hidden;background:var(--surface)}.batch-client-header,.batch-client-row{display:grid;grid-template-columns:.8fr 1.45fr 1.15fr 1.2fr .8fr .9fr .8fr .65fr;align-items:center;gap:8px;padding:8px 10px}.batch-client-header{background:var(--table-head);color:#70eaff;font-size:10px;font-weight:900;text-transform:uppercase}.batch-client-row{border-top:1px solid #e8ecf2;font-size:11px;color:var(--text);min-height:43px}.batch-client-row:hover{background:color-mix(in srgb,var(--primary) 4%,var(--surface))}.batch-client-row b{font-size:11px}.batch-client-row small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.batch-client-row .batch-number{width:29px;height:29px}.batch-client-row>span:not(.batch-number):not(.batch-status){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.batch-empty{padding:18px;text-align:center;display:block;min-width:1030px}.dark .batch-client-form,.dark .batch-client-list{border-color:#374151;background:#111827}.dark .batch-row-fields input,.dark .batch-row-fields select,.dark .batch-row-bottom textarea{background:#1f2937;color:#e5e7eb;border-color:#374151}.dark .batch-client-row{border-color:#374151;color:#e5e7eb}.dark .brand-preview{border-color:#374151}
@media(max-width:600px){.color-settings-grid{grid-template-columns:1fr 1fr}.modal-card:has(.client-batch-area){width:calc(100vw - 12px);max-width:none}.batch-row-bottom{grid-template-columns:1fr}.batch-actions{justify-content:stretch}.batch-actions button{flex:1}}
@media(max-width:430px){.color-settings-grid{grid-template-columns:1fr}}

/* V5.3 FINAL FIX: perfiles siempre en una sola fila y URL controlada */
.accounts-table{table-layout:auto;min-width:1580px}
.accounts-table th:nth-child(3),.accounts-table td:nth-child(3){width:520px!important;min-width:520px!important;max-width:none!important}
.profile-cell{width:520px!important;min-width:520px!important;white-space:nowrap!important;overflow:hidden}
.profile-counts{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;width:max-content!important;min-width:100%!important;max-width:none!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;padding:3px 2px 5px!important}
.profile-counts .account-add-btn,.profile-counts .profile-dot{flex:0 0 auto!important;white-space:nowrap!important}
.profile-summary{white-space:nowrap!important;display:flex!important;justify-content:flex-start!important;margin-top:2px}
.accounts-table th:nth-child(6),.accounts-table td:nth-child(6){width:270px!important;min-width:270px!important;max-width:270px!important}
.url-cell{width:270px!important;min-width:270px!important;max-width:270px!important;text-align:center!important;vertical-align:middle!important}
.url-cell span{display:block;width:25ch;min-width:25ch;max-width:25ch;margin:0 auto;white-space:normal!important;overflow-wrap:normal!important;word-break:break-all!important;line-height:1.25}
@media(max-width:780px){.accounts-table{min-width:1580px}.accounts-table th:nth-child(3),.accounts-table td:nth-child(3),.profile-cell{width:520px!important;min-width:520px!important}.accounts-table th:nth-child(6),.accounts-table td:nth-child(6),.url-cell{width:270px!important;min-width:270px!important;max-width:270px!important}}


/* V5.5 — FIX DEFINITIVO INDEPENDIENTE DEL ZOOM
   Clientes/perfiles: una sola fila horizontal.
   URL: 25 caracteres aprox. por línea.
   La tabla conserva un ancho mínimo y se desplaza horizontalmente
   en vez de comprimir o envolver columnas. */
.accounts-table-card{
  width:100%;
  max-width:100%;
  overflow-x:auto!important;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}
.accounts-table{
  width:max-content!important;
  min-width:1900px!important;
  table-layout:auto!important;
}

/* Cuenta y/o perfiles: la columna crece según la cantidad de clientes */
.accounts-table th:nth-child(3),
.accounts-table td:nth-child(3),
.accounts-table .profile-cell{
  width:auto!important;
  min-width:150px!important;
  max-width:none!important;
}
.accounts-table th:nth-child(3){
  white-space:nowrap!important;
}
.accounts-table td.profile-cell{
  white-space:nowrap!important;
  overflow:visible!important;
  vertical-align:middle!important;
}
.profile-counts{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  width:max-content!important;
  min-width:max-content!important;
  max-width:none!important;
  height:40px!important;
  padding:2px 3px!important;
  margin:0!important;
  overflow:visible!important;
  white-space:nowrap!important;
}
.profile-counts .account-add-btn,
.profile-counts .profile-dot{
  display:flex!important;
  flex:0 0 auto!important;
  width:max-content!important;
  min-width:max-content!important;
  white-space:nowrap!important;
}
.profile-counts .profile-dot{
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  padding:0!important;
}
.profile-summary{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:max-content!important;
  white-space:nowrap!important;
  margin:2px 0 0 3px!important;
}

/* URL: 25 caracteres aprox. por línea */
.accounts-table th:nth-child(6),
.accounts-table td:nth-child(6),
.accounts-table .url-cell{
  width:300px!important;
  min-width:300px!important;
  max-width:300px!important;
}
.url-cell{
  text-align:center!important;
  vertical-align:middle!important;
  white-space:normal!important;
}
.url-cell span{
  display:block!important;
  width:25ch!important;
  min-width:25ch!important;
  max-width:25ch!important;
  margin:0 auto!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-all!important;
  line-height:1.3!important;
  text-align:center!important;
}

/* En móvil también se mantiene el ancho dinámico de perfiles.
   La tabla completa puede desplazarse horizontalmente. */
@media(max-width:780px){
  .accounts-table{
    width:max-content!important;
    min-width:1900px!important;
  }
  .accounts-table th:nth-child(3),
  .accounts-table td:nth-child(3),
  .accounts-table .profile-cell{
    width:auto!important;
    min-width:150px!important;
    max-width:none!important;
  }
  .accounts-table th:nth-child(6),
  .accounts-table td:nth-child(6),
  .accounts-table .url-cell{
    width:300px!important;
    min-width:300px!important;
    max-width:300px!important;
  }
}

/* V11 - ancho dinámico real de Cuenta y/o Perfiles */
.accounts-table{table-layout:auto!important;width:max-content!important;}
.accounts-table th:nth-child(3),
.accounts-table td:nth-child(3),
.accounts-table .profile-cell{
  width:max-content!important;
  min-width:150px!important;
  max-width:none!important;
}
.accounts-table td.profile-cell{overflow:visible!important;}
.profile-counts{
  display:flex!important;
  width:max-content!important;
  min-width:0!important;
  max-width:none!important;
  overflow:visible!important;
  flex-wrap:nowrap!important;
}
.profile-counts .account-add-btn,.profile-counts .profile-dot{flex:0 0 auto!important;}


/* V12 - ficha de detalle para clientes/perfiles. El perfil ya no abre Editar directamente. */
.client-detail-modal{position:relative;margin:-25px;padding:0 20px 20px;background:rgba(255,255,255,.96);color:#111827;overflow:hidden}
.client-detail-x{position:absolute;right:12px;top:8px;z-index:3;width:38px;height:38px;background:transparent;color:#d7f7ff;font-size:34px;font-weight:300;line-height:1}
.client-detail-brand{margin:0 0 20px;padding:12px 45px;background:#202b39;color:#61ddff;text-align:center;font-size:38px;font-weight:900;letter-spacing:.3px}
.client-detail-code{display:flex;justify-content:space-between;align-items:center;padding:15px 16px;border:1px solid #d9dee5;background:#f8fafc;font-size:16px}
.client-detail-code b{font-weight:500}
.client-detail-row{display:flex;justify-content:space-between;align-items:center;min-height:51px;padding:0 16px;border:1px solid #d9dee5;border-top:0;background:#f8fafc;font-size:16px}
.client-detail-row strong{font-weight:750}.client-detail-row>span{font-weight:400;text-align:right}
.detail-date-edit{display:flex;gap:18px;align-items:center}.detail-calendar{font-size:27px;color:#51dcff}
.detail-refund{background:#18c95b;color:#fff;padding:6px 16px;min-width:60px;text-align:center}
.detail-days{background:#168af0;color:#fff;padding:6px 18px;min-width:60px;text-align:center}.detail-days.warn{background:#f59e0b}.detail-days.danger{background:#ef4444}
.client-detail-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 5px 2px;color:#64748b;font-size:12px}
.detail-status{padding:4px 9px;border-radius:20px;font-weight:800}.detail-status.sold{background:#fee2e2;color:#dc2626}.detail-status.free{background:#dcfce7;color:#15803d}
.client-detail-actions{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:14px 0 0}
.client-detail-actions button{min-height:55px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:27px;border-radius:8px}
.client-detail-actions button small{font-size:9px;font-weight:700}.detail-send{color:#16a34a}.detail-renew{color:#4f46e5}.detail-warning{color:#f59e0b}.detail-edit{color:#2563eb}.detail-delete{color:#ef4444}
.client-menu-modal{padding:2px}.client-menu-brand{display:flex;align-items:center;gap:10px;padding:10px 12px;color:#61ddff;font-size:13px;font-weight:900}.client-menu-brand span{background:#202b39;padding:7px 9px;border-radius:7px}.client-menu-brand b{color:#202b39}
.client-menu-title{padding:6px 12px 12px;border-bottom:1px solid #e5e7eb}.client-menu-title h2{margin:0 0 4px}.client-menu-title p{margin:0;color:#64748b;font-size:12px}
.client-menu-actions{display:flex;gap:8px;padding:12px}.client-menu-add{flex:1;background:#16c77a;color:#fff;padding:12px;border-radius:9px;font-weight:800}.client-menu-close{background:#eef2f5;padding:12px;border-radius:9px;font-weight:700}
.client-menu-list{display:grid;gap:7px;padding:0 12px 12px}.client-menu-item{display:grid;grid-template-columns:40px 1fr 20px;align-items:center;gap:10px;width:100%;text-align:left;padding:10px;border:1px solid #e4e8ee;border-radius:10px;background:#f8fafc}
.client-menu-item strong{display:block;font-size:13px}.client-menu-item small{display:block;color:#718096;margin-top:2px}.client-menu-dot{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:900}.client-menu-dot.red{background:#ef4444}.client-menu-dot.green{background:#16a34a}.client-menu-arrow{font-size:25px;color:#94a3b8}.client-menu-empty{padding:22px;text-align:center;color:#718096}
@media(max-width:520px){.client-detail-modal{margin:-15px;padding:0 10px 12px}.client-detail-brand{font-size:31px;margin-bottom:12px}.client-detail-row{min-height:48px;font-size:14px;padding:0 10px}.client-detail-code{font-size:14px;padding:12px 10px}.client-detail-actions button{min-height:52px;font-size:23px}.detail-date-edit{gap:10px}}

/* V13: ver detalle primero; editar solo desde la ficha */
.client-menu-item,.profile-dot,.batch-edit{cursor:pointer!important}
.client-detail-modal{z-index:2}
.client-menu-modal{z-index:2}

/* V15 — rendimiento, estado de sincronización y experiencia móvil */
.server-ok,.server-check,.server-error,.saving-indicator{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;margin-left:8px}.server-ok{color:#15803d}.server-check{color:#b45309}.server-error{color:#b91c1c}.saving-indicator{color:#64748b}.saving-indicator.saving{color:#2563eb}.account-mobile-list{display:none}
@media(max-width:600px){
  .accounts-table-card{overflow:visible!important}.accounts-table-card>.accounts-table{display:none!important}.accounts-mobile-list{display:grid;gap:10px;width:100%}.account-mobile-card{background:var(--surface);border:1px solid #e2e8f0;border-radius:var(--radius);padding:12px;box-shadow:0 2px 10px rgba(15,23,42,.05)}
  .account-mobile-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.account-mobile-head>div{display:flex;align-items:center;gap:7px;min-width:0}.account-mobile-head strong{font-size:11px;color:var(--muted)}.account-mobile-user{margin-top:10px;padding:9px 0;border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5}.account-mobile-user strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-mobile-user small{display:block;margin-top:3px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-mobile-password{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;padding:8px 9px;border:1px solid #e2e8f0;border-radius:8px;background:var(--page-bg)}.account-mobile-password span{min-width:0}.account-mobile-password small{display:block;color:var(--muted);font-size:9px}.account-mobile-password b{display:block;margin-top:2px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-eye-btn{flex:0 0 34px;width:34px;height:30px;border:0;border-radius:7px;background:var(--surface);color:var(--icon);font-size:16px}.account-mobile-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px}.account-mobile-grid>div{min-width:0;background:var(--page-bg);border-radius:8px;padding:7px}.account-mobile-grid small{display:block;color:var(--muted);font-size:9px}.account-mobile-grid b{display:block;margin-top:3px;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-mobile-profiles{margin-top:10px}.account-mobile-profiles>span{display:block;font-size:10px;color:var(--muted);margin-bottom:4px}.account-mobile-profiles .profile-counts{height:auto!important;min-width:0!important;width:100%!important;overflow-x:auto!important;padding:2px 0!important}.account-mobile-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-top:10px}.account-mobile-actions button{border:0;border-radius:8px;padding:9px 5px;background:#eef2ff;color:#334155;font-size:10px;font-weight:800}.account-mobile-actions .danger{background:#fee2e2;color:#b91c1c}.account-mobile-empty{padding:25px;text-align:center;color:var(--muted);background:var(--surface);border-radius:var(--radius)}
}
@media(max-width:430px){.account-mobile-grid{grid-template-columns:repeat(2,1fr)}.accounts-toolbar{gap:6px}.accounts-toolbar .account-search{width:100%}.accounts-toolbar select,.accounts-toolbar button{min-height:40px}.server-ok,.server-check,.server-error,.saving-indicator{font-size:10px}}

/* V15.4 — Cuentas en formato vertical para PC/Laptop y móvil */
.accounts-table{display:none!important}
.accounts-mobile-list{display:grid!important;grid-template-columns:1fr;gap:12px;width:100%}
.account-mobile-card{width:100%;box-sizing:border-box;background:var(--surface);border:1px solid #e2e8f0;border-radius:var(--radius);padding:16px;box-shadow:0 2px 10px rgba(15,23,42,.05)}
.account-mobile-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.account-mobile-head>div{display:flex;align-items:center;gap:9px;min-width:0;flex-wrap:wrap}
.account-mobile-head strong{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.account-mobile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.account-mobile-fields>div{min-width:0;padding:9px 10px;background:var(--page-bg);border-radius:8px;border:1px solid rgba(148,163,184,.16)}
.account-mobile-fields small{display:block;color:var(--muted);font-size:10px;font-weight:700;margin-bottom:4px}
.account-mobile-fields>div>b{display:block;color:var(--text);font-size:12px;line-height:1.35;overflow-wrap:anywhere;word-break:break-word}
.account-mobile-fields .account-mobile-password{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:9px 10px;background:var(--page-bg);border:1px solid rgba(148,163,184,.16);border-radius:8px}
.account-mobile-password span{min-width:0;flex:1}
.account-mobile-password b{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}
.account-mobile-profiles{margin-top:10px;padding-top:10px;border-top:1px solid #edf1f5}
.account-mobile-profiles>span{display:block;font-size:10px;color:var(--muted);font-weight:800;margin-bottom:5px}
.account-mobile-profiles .profile-counts{height:auto!important;min-width:0!important;width:100%!important;overflow-x:auto!important;padding:2px 0!important;display:flex;flex-wrap:wrap;gap:5px}
.account-mobile-actions{display:flex;gap:7px;margin-top:12px;flex-wrap:wrap}
.account-mobile-actions button{border:0;border-radius:8px;padding:9px 13px;background:#eef2ff;color:#334155;font-size:11px;font-weight:800;cursor:pointer}
.account-mobile-actions .danger{background:#fee2e2;color:#b91c1c}
@media(max-width:600px){
 .account-mobile-card{padding:12px}
 .account-mobile-fields{grid-template-columns:1fr}
 .account-mobile-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}
 .account-mobile-actions button{padding:9px 5px;font-size:10px}
}
@media(max-width:430px){.account-mobile-head{align-items:flex-start}.account-mobile-fields{gap:6px}}

/* V15.5 — Cuentas horizontales en PC/Laptop y móvil */
.accounts-horizontal-list{width:100%;display:grid;gap:10px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding-bottom:4px}
.account-horizontal-card{width:max-content;min-width:100%;box-sizing:border-box;background:var(--surface);border:1px solid #e2e8f0;border-radius:var(--radius);box-shadow:0 2px 10px rgba(15,23,42,.05)}
.account-horizontal-main{display:flex;align-items:stretch;min-width:1760px;gap:0}
.ah-cell{flex:0 0 150px;min-width:150px;box-sizing:border-box;padding:11px 12px;border-right:1px solid rgba(148,163,184,.16);display:flex;flex-direction:column;justify-content:center;gap:4px;overflow:hidden}
.ah-cell small{font-size:9px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.25px}.ah-cell b{font-size:11px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ah-account{flex-basis:180px;min-width:180px}.ah-account strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ah-password{flex-basis:165px;min-width:165px}.ah-password>span{display:flex;align-items:center;gap:5px;min-width:0}.ah-password b{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;flex:1;min-width:0}.ah-password .mobile-eye-btn{width:30px;height:28px;flex:0 0 30px}.ah-url{flex-basis:230px;min-width:230px}.ah-url b{white-space:normal;overflow-wrap:anywhere}.ah-profiles{flex-basis:210px;min-width:210px}.ah-profiles .profile-counts{display:flex;align-items:center;gap:5px;overflow-x:auto;white-space:nowrap;padding:2px 0}.ah-actions{flex:0 0 240px;min-width:240px;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px}.ah-actions button{border:0;border-radius:8px;padding:8px 9px;background:#eef2ff;color:#334155;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap}.ah-actions .danger{background:#fee2e2;color:#b91c1c}
@media(max-width:700px){
 .accounts-horizontal-list{margin-right:-2px}
 .account-horizontal-card{min-width:1760px}
 .account-horizontal-main{min-width:1760px}
 .ah-cell{padding:10px 11px}
 .ah-account{flex-basis:170px;min-width:170px}.ah-url{flex-basis:210px;min-width:210px}.ah-profiles{flex-basis:190px;min-width:190px}.ah-actions{flex-basis:220px;min-width:220px}
}

/* V15.6 — horizontal compacto y consistente en PC + móvil */
.accounts-horizontal-list{width:100%;display:grid;gap:7px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding:0 0 4px;margin:0}
.account-horizontal-card{width:max-content;min-width:100%;box-sizing:border-box;background:var(--surface);border:1px solid rgba(148,163,184,.22);border-radius:8px;box-shadow:0 1px 5px rgba(15,23,42,.04);overflow:hidden}
.account-horizontal-main{display:flex;align-items:stretch;min-width:1320px;gap:0}
.ah-cell{flex:0 0 112px;min-width:112px;max-width:112px;box-sizing:border-box;padding:7px 8px;border-right:1px solid rgba(148,163,184,.13);display:flex;flex-direction:column;justify-content:center;gap:3px;overflow:hidden}
.ah-cell small{font-size:8px;line-height:1.1;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.15px}.ah-cell b{font-size:10px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ah-account{flex-basis:190px;min-width:190px;max-width:190px}.ah-account-top{display:flex;align-items:center;gap:5px;min-width:0}.ah-account-top .cat-pill{min-width:0;max-width:105px;padding:4px 6px;font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ah-account strong{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-add-btn{padding:4px 6px!important;border-radius:4px!important;font-size:9px!important;white-space:nowrap;flex:0 0 auto}.ah-mini-profiles{display:flex;align-items:center;gap:3px;min-width:0;overflow:hidden;white-space:nowrap}.ah-mini-profiles span{font-size:8px;color:var(--muted);font-weight:800;margin-right:1px}.ah-mini-profiles .profile-dot{width:20px;height:20px;font-size:8px;border-width:1px;flex:0 0 20px}.ah-mini-profiles i{font-size:8px;color:var(--muted);font-style:normal}
.ah-password{flex-basis:125px;min-width:125px;max-width:125px}.ah-password>span{display:flex;align-items:center;gap:3px;min-width:0}.ah-password b{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;flex:1;min-width:0}.ah-password .mobile-eye-btn{width:24px;height:24px;flex:0 0 24px;font-size:13px;padding:0}
.ah-url{flex-basis:155px;min-width:155px;max-width:155px}.ah-url b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ah-actions{flex:0 0 190px;min-width:190px;max-width:190px;display:flex;align-items:center;justify-content:center;gap:3px;padding:5px}.ah-actions button{border:0;border-radius:5px;padding:6px 7px;background:#eef2ff;color:#334155;font-size:9px;font-weight:800;cursor:pointer;white-space:nowrap}.ah-actions .danger{background:#fee2e2;color:#b91c1c}
@media(max-width:700px){.accounts-horizontal-list{width:100%;overflow-x:auto}.account-horizontal-card{min-width:1320px}.account-horizontal-main{min-width:1320px}.ah-cell{padding:7px 8px}.ah-account{flex-basis:180px;min-width:180px;max-width:180px}.ah-url{flex-basis:145px;min-width:145px;max-width:145px}.ah-actions{flex-basis:180px;min-width:180px;max-width:180px}}

/* V15.7 — ancho automático según el texto, sin truncar con "..." */
.account-horizontal-card{width:max-content;min-width:100%;overflow:visible}
.account-horizontal-main{min-width:max-content;width:max-content}
.ah-cell{flex:0 0 auto;width:max-content;min-width:max-content;max-width:none;overflow:visible;white-space:normal}
.ah-cell b{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.ah-account{width:max-content;min-width:max-content;max-width:none}
.ah-account-top{width:max-content;max-width:none;white-space:nowrap}
.ah-account-top .cat-pill{max-width:none;min-width:0;overflow:visible;text-overflow:clip;white-space:nowrap}
.ah-account strong{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
.ah-mini-profiles{width:max-content;min-width:0;max-width:none;overflow:visible;white-space:nowrap}
.ah-password{width:max-content;min-width:max-content;max-width:none}
.ah-password>span{width:max-content;min-width:0;max-width:none}
.ah-password b{flex:0 0 auto;min-width:0;max-width:none;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.ah-url{width:max-content;min-width:max-content;max-width:none}
.ah-url b{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:break-word}
.ah-actions{flex:0 0 auto;width:max-content;min-width:max-content;max-width:none;white-space:nowrap}
@media(max-width:700px){
 .account-horizontal-card,.account-horizontal-main{min-width:max-content}
 .ah-cell{width:max-content;min-width:max-content;max-width:none}
 .ah-account,.ah-password,.ah-url,.ah-actions{min-width:max-content;max-width:none}
}

/* V15.9 — colores de estados diferenciados */
.status-box.status-activo,
.status-box.status-vendido{background:#16a34a!important;color:#fff!important}
.status-box.status-vencida,
.status-box.status-vencido{background:#dc2626!important;color:#fff!important}
.status-box.status-libre{background:#2563eb!important;color:#fff!important}

.profile-dot.green{background:#16a34a!important}
.profile-dot.red{background:#dc2626!important}
.profile-dot.free,.profile-dot.libre{background:#2563eb!important}
.status-vendido{background:#16a34a!important}
.status-vencido,.status-vencida{background:#dc2626!important}
.status-libre{background:#2563eb!important}

.batch-number.sold{background:#16a34a!important}
.batch-number.free{background:#2563eb!important}
.batch-status.sold{background:#dcfce7!important;color:#15803d!important}
.batch-status.free{background:#dbeafe!important;color:#1d4ed8!important}
.detail-status.sold{background:#dcfce7!important;color:#15803d!important}
.detail-status.free{background:#dbeafe!important;color:#1d4ed8!important}

/* V15.10 - colores definitivos de estados */
.status-pill.Vendido{background:#dcfce7!important;color:#15803d!important}
.status-pill.Activo{background:#dcfce7!important;color:#15803d!important}
.status-box.status-activo{background:#16a34a!important;color:#fff!important}
.status-box.status-vendido{background:#16a34a!important;color:#fff!important}
.status-box.status-vencida,.status-box.status-vencido{background:#dc2626!important;color:#fff!important}
.status-box.status-libre{background:#2563eb!important;color:#fff!important}
.profile-dot.green,.client-menu-dot.green{background:#16a34a!important}
.profile-dot.blue,.client-menu-dot.blue{background:#2563eb!important}
.batch-number.sold{background:#16a34a!important}
.batch-number.free{background:#2563eb!important}
.batch-status.sold{background:#dcfce7!important;color:#15803d!important}
.batch-status.free{background:#dbeafe!important;color:#1d4ed8!important}
.detail-status.sold{background:#dcfce7!important;color:#15803d!important}
.detail-status.free{background:#dbeafe!important;color:#1d4ed8!important}


/* V15.12 - colores de estados independientes y personalizables */
.state-color-extra{margin:14px 0;padding:14px;border:1px solid #e5e7eb;border-radius:12px;background:color-mix(in srgb,var(--surface) 94%,var(--page-bg));}
.state-color-extra h4{margin:0 0 4px;font-size:13px}
.state-color-extra .muted{margin:0 0 10px;font-size:10px}
.status-box.status-activo{background:var(--state-active)!important}
.status-box.status-vendido{background:var(--state-sold)!important}
.status-box.status-vencida,.status-box.status-vencido{background:var(--state-expired)!important}
.status-box.status-libre{background:var(--state-free)!important}
.profile-dot.green,.client-menu-dot.green{background:var(--state-sold)!important}
.profile-dot.blue,.client-menu-dot.blue{background:var(--state-free)!important}
.batch-number.sold{background:var(--state-sold)!important}
.batch-number.free{background:var(--state-free)!important}
.batch-status.sold{background:color-mix(in srgb,var(--state-sold) 16%,white)!important;color:var(--state-sold)!important}
.batch-status.free{background:color-mix(in srgb,var(--state-free) 14%,white)!important;color:var(--state-free)!important}
.detail-status.sold{background:color-mix(in srgb,var(--state-sold) 16%,white)!important;color:var(--state-sold)!important}
.detail-status.free{background:color-mix(in srgb,var(--state-free) 14%,white)!important;color:var(--state-free)!important}
.detail-days.warn{background:var(--state-warning)!important;color:#fff!important}
.detail-days.danger{background:var(--state-zero)!important;color:#fff!important}
.status-pill.Vendido{background:color-mix(in srgb,var(--state-sold) 16%,white)!important;color:var(--state-sold)!important}
.status-pill.Activo{background:color-mix(in srgb,var(--state-active) 16%,white)!important;color:var(--state-active)!important}
@media(max-width:780px){.state-color-extra{padding:11px}}

/* V15.13 - texto de cuentas registradas un poco más grande */
.account-horizontal-main .ah-cell.ah-user b,
.account-horizontal-main .ah-cell.ah-password b,
.account-horizontal-main .ah-cell.ah-url b,
.account-horizontal-main .ah-cell.ah-email b,
.account-horizontal-main .ah-cell[data-field="user"] b,
.account-horizontal-main .ah-cell[data-field="email"] b { font-size:12px; }
.account-horizontal-main .ah-password .mobile-eye-btn { font-size:15px; width:27px; height:27px; flex-basis:27px; }
/* V15.14 - aumento visible del texto en cuentas registradas */
.account-horizontal-main .ah-cell:nth-child(2) b,
.account-horizontal-main .ah-password b,
.account-horizontal-main .ah-url b { font-size:14px !important; line-height:1.35 !important; }
.account-horizontal-main .ah-password .mobile-eye-btn { font-size:18px !important; width:30px !important; height:30px !important; flex-basis:30px !important; }

/* V15.15: tamaño configurable solo para textos de cuentas registradas */
.account-horizontal-main .ah-cell.ah-user b, .account-horizontal-main .ah-cell.ah-password b, .account-horizontal-main .ah-cell.ah-url b, .account-horizontal-main .ah-cell.ah-email b, .account-horizontal-main .ah-cell[data-field="user"] b, .account-horizontal-main .ah-cell[data-field="email"] b { font-size:var(--account-text-size,14px)!important; line-height:1.35!important; }
.account-horizontal-main .ah-password .mobile-eye-btn { font-size:calc(var(--account-text-size,14px) + 4px)!important; width:32px!important; height:32px!important; flex-basis:32px!important; }
#accountTextSizeOutput{display:inline-block;margin-top:6px;font-size:12px;font-weight:800;color:var(--muted)}

/* V15.16: tamaño configurable aplicado explícitamente al correo/usuario */
.account-horizontal-main .ah-user b { font-size: var(--account-text-size,14px) !important; line-height: 1.35 !important; }
.account-horizontal-main .ah-password b, .account-horizontal-main .ah-url b { font-size: var(--account-text-size,14px) !important; line-height: 1.35 !important; }
.account-horizontal-main .ah-password .mobile-eye-btn { font-size: calc(var(--account-text-size,14px) + 4px) !important; }
