/* NexoPlay · Centro de Distribuidores V4 — tema gamer RGB sobrio.
   Base midnight/navy, acento violeta RGB, cyan y fucsia; mantiene verde real para WhatsApp/éxito.
   Aislado del resto de centros. */
:root{--dist-green:#8b5cf6;--dist-green-strong:#a855f7;--dist-green-soft:rgba(139,92,246,.12);--dist-green-border:rgba(139,92,246,.30);--dist-bg:#060712;--dist-card:#0b1020;--dist-card-2:#11172b;--dist-line:#29264c;--dist-text:#f8f7ff;--dist-muted:#aab2d1}
body:has(.distributor-sidebar){background:var(--dist-bg);color:var(--dist-text)}
body:has(.distributor-sidebar) .app-shell{background:var(--dist-bg)}
.distributor-sidebar{background:linear-gradient(180deg,#11122b 0%,#070a16 100%)!important;border-right:1px solid var(--dist-line)!important;color:var(--dist-text)!important}
.distributor-sidebar .brand{min-height:68px;display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid rgba(139,92,246,.14)}
.distributor-brand-mark{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#a855f7,#0d6b49);display:grid;place-items:center;color:#fff;font-size:23px;font-weight:900;box-shadow:0 8px 24px rgba(168,85,247,.15)}
.distributor-brand-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.distributor-brand-copy b{font-size:18px;letter-spacing:-.4px}.distributor-brand-copy b span{color:#c4b5fd}.distributor-brand-copy small{font-size:9px;letter-spacing:1.25px;color:#c4b5fd;font-weight:800}
.distributor-sidebar-close{margin-left:auto;border:1px solid #3d2e66;background:#15172e;color:#e9e7ff;border-radius:8px;width:30px;height:30px;cursor:pointer}
.distributor-sidebar nav{padding:13px 9px;overflow:auto}.distributor-sidebar .nav-caption{margin:15px 10px 7px;color:#a78bfa;font-size:9px;letter-spacing:1.35px;font-weight:800}.distributor-sidebar nav a{display:flex;align-items:center;gap:10px;min-height:39px;padding:9px 11px;color:#e0e7ff;border-radius:10px;margin:2px 0;font-size:12px;transition:background .16s,color .16s}.distributor-sidebar nav a:hover{background:rgba(139,92,246,.09);color:white}.distributor-sidebar nav a.active{background:linear-gradient(90deg,rgba(139,92,246,.22),rgba(139,92,246,.08));color:#ffffff;box-shadow:inset 3px 0 var(--dist-green-strong)}.distributor-sidebar nav a.active .icon{color:var(--dist-green-strong)}
.distributor-sidebar .sidebar-bottom{border-top:1px solid rgba(139,92,246,.14);padding:12px 10px}.distributor-sidebar .help-link,.distributor-sidebar .logout-sidebar{color:#cbd5e1}.distributor-mini-status{display:flex;gap:9px;align-items:center;padding:12px 9px;margin:8px 0;border:1px solid rgba(139,92,246,.18);border-radius:12px;background:rgba(139,92,246,.055)}.distributor-mini-status>i,.distributor-online i{width:7px;height:7px;border-radius:50%;background:#22d3ee;box-shadow:0 0 12px rgba(168,85,247,.55);flex:none}.distributor-mini-status div{display:flex;flex-direction:column;gap:3px}.distributor-mini-status b{font-size:11px}.distributor-mini-status small{font-size:10px;color:var(--dist-muted)}
.distributor-topbar{background:rgba(3,17,19,.96)!important;border-bottom:1px solid var(--dist-line)!important}.distributor-topbar .searchbar{background:#0d1426!important;border-color:#2a2b4f!important}.distributor-topbar .searchbar:focus-within{border-color:#8b5cf6!important;box-shadow:0 0 0 3px rgba(139,92,246,.1)}.distributor-online{display:inline-flex;align-items:center;gap:8px;color:#cbd5e1;font-size:11px;font-weight:700}.distributor-topbar .profile-btn{border:1px solid var(--dist-line);background:#0d1426}.distributor-topbar .profile-btn>span:not(.icon):not(.avatar-placeholder):not(.user-avatar-img){display:flex;flex-direction:column;align-items:flex-start;gap:2px}.distributor-topbar .profile-btn small{font-size:10px;color:var(--dist-muted)}
.dist-center{width:100%;max-width:1720px;margin:0 auto;padding:26px clamp(16px,2.4vw,38px) 42px;color:var(--dist-text)}.dist-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 24px}.dist-page-header>div:first-child{min-width:0}.dist-page-header>div:first-child>small{display:block;color:#c4b5fd;font-size:10px;font-weight:800;letter-spacing:1.55px;margin:0 0 8px}.dist-page-header h1{margin:0;color:#ffffff;font-size:clamp(26px,2vw,36px);line-height:1.13;letter-spacing:-.8px}.dist-page-header p{margin:8px 0 0;color:#aab2d1;font-size:13px;line-height:1.55;max-width:760px}.dist-page-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.dist-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border:1px solid #483078;border-radius:10px;background:#11172b;color:#f3f4ff;padding:9px 13px;font:inherit;font-size:12px;font-weight:750;text-decoration:none;cursor:pointer;transition:transform .15s,border-color .15s,background .15s;white-space:nowrap}.dist-btn:hover:not(:disabled){transform:translateY(-1px);border-color:#a855f7}.dist-btn:disabled{opacity:.42;cursor:not-allowed}.dist-btn.primary{background:linear-gradient(135deg,#8b5cf6,#6d28d9);border-color:#a855f7;color:white;box-shadow:0 7px 20px rgba(139,92,246,.18)}.dist-btn.ghost{background:#0d1426;border-color:#342b5d;color:#dbeafe}.dist-btn.whatsapp{background:linear-gradient(135deg,#8b5cf6,#6d28d9);border-color:#a855f7;color:white}.dist-btn.reminder{background:linear-gradient(135deg,#2479f5,#1557d6);border-color:#3b82f6;color:#fff}.dist-btn.tiny{min-height:32px;padding:6px 9px;border-radius:8px;font-size:10px;gap:5px}.dist-btn .icon{width:14px;height:14px}.dist-btn .icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dist-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.dist-metric{display:flex;align-items:center;gap:13px;padding:18px 17px;min-height:104px;background:linear-gradient(145deg,#11172b,#0d1426);border:1px solid var(--dist-line);border-radius:15px;min-width:0}.dist-metric-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;flex:none;background:rgba(139,92,246,.14);color:#c4b5fd}.dist-metric-icon.blue{background:rgba(34,153,255,.13);color:#52b8ff}.dist-metric-icon.amber{background:rgba(245,158,11,.13);color:#ffc35c}.dist-metric-icon.money{background:rgba(139,92,246,.14);color:#22d3ee}.dist-metric-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.dist-metric>div{display:flex;flex-direction:column;gap:5px;min-width:0}.dist-metric small{font-size:11px;color:#aab2d1}.dist-metric strong{font-size:25px;line-height:1.1;color:#ffffff;overflow-wrap:anywhere}.dist-metric em{font-style:normal;color:#c4b5fd;font-size:10px}
.dist-panel{background:linear-gradient(145deg,rgba(13,16,38,.98),rgba(7,9,24,.98));border:1px solid var(--dist-line);border-radius:16px;padding:19px;margin-bottom:16px;min-width:0}.dist-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.dist-panel-head h2{margin:0;color:#f8f7ff;font-size:16px}.dist-panel-head p{margin:5px 0 0;color:#aab2d1;font-size:11px;line-height:1.5}.dist-link{color:#22d3ee;font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap}.dist-link:hover{text-decoration:underline}.dist-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:16px}.dist-recent-list{display:flex;flex-direction:column;gap:4px}.dist-recent-row{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:11px 8px;background:transparent;border:0;border-bottom:1px solid rgba(58,46,102,.38);color:inherit;cursor:pointer}.dist-recent-row:hover{background:rgba(139,92,246,.06)}.dist-recent-main{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.dist-recent-main b{font-size:12px}.dist-recent-main small{font-size:10px;color:var(--dist-muted)}.dist-expiry-list{display:flex;flex-direction:column;gap:12px}.dist-expiry-row{display:grid;grid-template-columns:9px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid rgba(58,46,102,.36)}.dist-expiry-dot{width:8px;height:8px;border-radius:50%;background:#f6ac38;box-shadow:0 0 11px rgba(246,172,56,.28)}.dist-expiry-row>div{display:flex;flex-direction:column;gap:4px;min-width:0}.dist-expiry-row b{font-size:11px}.dist-expiry-row small{color:var(--dist-muted);font-size:10px}.dist-expiry-row strong{font-size:11px;color:#ffc066;white-space:nowrap}.dist-icon-btn{width:33px;height:33px;display:inline-grid;place-items:center;border:1px solid #483078;border-radius:9px;color:#dbeafe;background:#10162a;cursor:pointer}.dist-icon-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}.dist-money-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dist-money-summary>div{display:flex;flex-direction:column;gap:7px;border:1px solid rgba(72,48,120,.6);border-radius:12px;background:#0d1426;padding:14px}.dist-money-summary small{font-size:11px;color:#aab2d1}.dist-money-summary strong{font-size:20px;color:#f8f7ff}.dist-positive{color:#22d3ee!important}.dist-disclaimer,.dist-detail-muted{margin:13px 0 0;color:#a7b4d4;font-size:10px;line-height:1.6}
.dist-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:15px}.dist-search{display:flex;align-items:center;gap:8px;flex:1 1 280px;min-width:200px;min-height:40px;padding:0 12px;border:1px solid #3b2d63;border-radius:10px;background:#0b1020;color:#aab2d1}.dist-search .icon{display:inline-flex;width:16px}.dist-search .icon svg{width:16px;height:16px;stroke:currentColor;fill:none}.dist-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#f8f7ff;font:inherit;font-size:12px}.dist-toolbar select{min-height:40px;max-width:220px;border:1px solid #3b2d63;border-radius:10px;background:#0b1020;color:#e9e7ff;padding:0 11px;font:inherit;font-size:11px}.dist-result-count{margin-left:auto;color:#a7b4d4;border:1px solid #4e327b;background:#10162a;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:800}.dist-table-wrap{width:100%;overflow:auto;border:1px solid rgba(72,48,120,.7);border-radius:12px;scrollbar-color:#553483 #0b1020}.dist-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1160px;font-size:11px}.dist-table th{padding:12px 11px;background:#15172e;color:#c4b5fd;font-size:9px;letter-spacing:.65px;text-align:left;white-space:nowrap;border-bottom:1px solid #312a59}.dist-table td{padding:12px 10px;border-bottom:1px solid rgba(72,48,120,.5);color:#e9e7ff;vertical-align:middle}.dist-table tr:last-child td{border-bottom:0}.dist-table tbody tr:hover td{background:rgba(139,92,246,.035)}.dist-product-cell,.dist-client-cell{display:flex;align-items:center;gap:9px;min-width:135px}.dist-product-cell>span:last-child,.dist-client-cell{display:flex;flex-direction:column;gap:4px}.dist-product-cell b,.dist-client-cell b{font-size:11px;color:#f8f7ff}.dist-product-cell small,.dist-client-cell small,.dist-substatus{font-size:9px;color:#c4b5fd;display:block;margin-top:4px}.dist-product-thumb{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;overflow:hidden;background:#11172b;border:1px solid #312a59;color:#c4b5fd;flex:none}.dist-product-thumb img{width:100%;height:100%;object-fit:cover}.dist-product-thumb svg{width:17px;height:17px;fill:none;stroke:currentColor}.dist-date-buy{color:#22d3ee!important;font-weight:750;white-space:nowrap}.dist-date-expiry{color:#ff777c!important;font-weight:750;white-space:nowrap}.dist-expiry-days{display:block;color:#c68085;font-size:9px;font-weight:500;margin-top:4px}.dist-profit{color:#a7b4d4!important;font-weight:800;white-space:nowrap}.dist-status{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:999px;border:1px solid transparent;font-size:9px;font-weight:850;white-space:nowrap}.dist-status.good{background:rgba(139,92,246,.12);border-color:rgba(139,92,246,.32);color:#c4b5fd}.dist-status.waiting{background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.29);color:#ffca73}.dist-status.bad{background:rgba(239,68,68,.12);border-color:rgba(239,68,68,.28);color:#ff9696}.dist-row-actions{display:flex;align-items:center;gap:6px;min-width:300px}.dist-table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:13px;color:#aab2d1;font-size:10px}.dist-table-footer b{color:#f4f2ff}
.dist-state-card{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:40px 20px;border:1px dashed #483078;border-radius:15px;background:rgba(24,19,49,.55)}.dist-state-card h3{margin:0;color:#ffffff;font-size:16px}.dist-state-card p{margin:0;color:#aab2d1;font-size:12px;max-width:580px;line-height:1.6}.dist-state-card.error{border-color:#844343;background:rgba(66,15,15,.15)}.dist-state-icon{width:42px;height:42px;border-radius:12px;background:var(--dist-green-soft);display:grid;place-items:center;color:#aab2d1}.dist-state-icon svg{width:22px;height:22px;stroke:currentColor;fill:none}.dist-spinner{width:28px;height:28px;border:3px solid #2a2b4f;border-top-color:#22d3ee;border-radius:50%;animation:dist-spin .8s linear infinite}@keyframes dist-spin{to{transform:rotate(360deg)}}.dist-inline-empty,.dist-inline-error{padding:17px;color:#aab2d1;font-size:11px;line-height:1.6}.dist-inline-error{color:#ffadad}.dist-support-list,.dist-history-list{display:flex;flex-direction:column;gap:8px}.dist-support-row,.dist-history-row{display:flex;align-items:center;gap:15px;padding:13px;border:1px solid rgba(72,48,120,.65);border-radius:12px;background:#0d1426}.dist-support-row>div,.dist-history-row>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.dist-support-row b,.dist-history-row b{font-size:12px}.dist-support-row small,.dist-history-row small{font-size:10px;color:var(--dist-muted);line-height:1.5}.dist-history-icon{width:35px;height:35px;border-radius:10px;background:rgba(139,92,246,.12);display:grid;place-items:center;color:#c4b5fd}.dist-history-icon svg{width:17px;height:17px;stroke:currentColor;fill:none}.dist-history-ref{font-size:10px;color:#a7b4d4}
.dist-chart{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;min-height:220px;padding:12px 6px 2px}.dist-chart-bar-wrap{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}.dist-chart-bar-wrap>strong{font-size:10px;color:#aab2d1;text-align:center;overflow-wrap:anywhere}.dist-chart-track{width:min(55px,70%);height:135px;background:#11172b;border-radius:10px 10px 4px 4px;display:flex;align-items:flex-end;overflow:hidden;border:1px solid #2a2b4f}.dist-chart-track span{display:block;width:100%;background:linear-gradient(180deg,#c4b5fd,#7c3aed);border-radius:8px 8px 2px 2px;min-height:3px}.dist-chart-bar-wrap small{color:#cbd5e1;text-transform:capitalize;font-size:10px}.dist-chart-bar-wrap em{font-style:normal;color:#a78bfa;font-size:9px}
.dist-detail-modal-wrap{max-height:calc(100dvh - 36px);overflow:auto}.dist-sale-detail{width:min(1180px,calc(100vw - 28px));border:1px solid #553483;border-radius:18px;background:linear-gradient(145deg,#07191b,#060712);padding:20px;color:var(--dist-text);box-shadow:0 28px 90px rgba(0,0,0,.55)}.dist-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:16px;margin-bottom:15px;border-bottom:1px solid #292b4c}.dist-detail-head small{color:#c4b5fd;font-size:9px;letter-spacing:1.3px;font-weight:850}.dist-detail-head h2{margin:6px 0;font-size:21px}.dist-detail-head p{margin:0;color:#aab2d1;font-size:11px}.dist-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.dist-detail-card{padding:15px;border:1px solid #292b4c;background:#0b1020;border-radius:13px;min-width:0}.dist-detail-card h3{margin:0 0 14px;color:#f4f2ff;font-size:13px}.dist-detail-card dl{display:grid;grid-template-columns:minmax(95px,.7fr) minmax(0,1.3fr);gap:9px 12px;margin:0;font-size:11px}.dist-detail-card dt{color:#aab2d1}.dist-detail-card dd{margin:0;color:#f4f2ff;overflow-wrap:anywhere}.dist-credential-list{display:flex;flex-direction:column;gap:9px}.dist-credential-row{padding:9px 0;border-bottom:1px solid rgba(58,46,102,.45)}.dist-credential-row>small{display:block;color:#a7b4d4;font-size:10px;margin-bottom:5px}.dist-credential-row>div{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.dist-credential-row strong{font-size:11px;font-weight:650;overflow-wrap:anywhere;white-space:pre-wrap;flex:1;min-width:0}.dist-copy{border:1px solid #3b2d63;background:#10162a;color:#dbeafe;border-radius:7px;padding:5px 8px;font-size:10px;cursor:pointer}.dist-sensitive{background:#41291b;color:#ffc98a;border-radius:6px;padding:3px 5px;font-size:9px}.dist-provider-wait{padding:25px 12px;display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;color:#aab2d1}.dist-provider-wait svg{width:25px;height:25px;stroke:#aab2d1;fill:none}.dist-provider-wait b{color:#f4f2ff;font-size:12px}.dist-provider-wait p{font-size:10px;line-height:1.6;margin:0}.dist-detail-actions{display:flex;flex-direction:column;gap:8px}.dist-detail-actions .dist-btn{width:100%;justify-content:flex-start}.dist-detail-card>p{font-size:10px;line-height:1.6;color:#cbd5e1}.dist-modal-layer{position:fixed!important;inset:0!important;z-index:9999!important;display:flex!important;align-items:center;justify-content:center;padding:16px;background:rgba(3,4,15,.80);backdrop-filter:blur(8px)}.dist-modal-layer .dist-detail-modal-wrap{margin:auto}
.distributor-purchase-mode{margin:15px 0;padding:17px;border:1px solid #553483;border-radius:15px;background:linear-gradient(135deg,rgba(10,66,46,.54),rgba(4,25,24,.98));color:#f4f2ff}.distributor-purchase-mode header>span{font-size:9px;letter-spacing:1.4px;color:#c4b5fd;font-weight:900}.distributor-purchase-mode header h3{margin:5px 0;font-size:15px}.distributor-purchase-mode header p{color:#aab2d1;font-size:11px;margin:5px 0 13px}.distributor-purchase-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.distributor-purchase-mode-options button{display:flex;align-items:flex-start;gap:10px;text-align:left;padding:13px;border:1px solid #483078;border-radius:12px;background:#0b1020;color:#f4f2ff;cursor:pointer}.distributor-purchase-mode-options button.selected{border-color:#a855f7;background:rgba(139,92,246,.12);box-shadow:0 0 0 2px rgba(139,92,246,.07)}.distributor-purchase-mode-options .mode-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:rgba(139,92,246,.12);color:#c4b5fd;flex:none}.distributor-purchase-mode-options .mode-icon svg{width:18px;height:18px;fill:none;stroke:currentColor}.distributor-purchase-mode-options button>strong,.distributor-purchase-mode-options button>small{grid-column:2}.distributor-purchase-mode-options button strong{font-size:12px}.distributor-purchase-mode-options button small{display:block;color:#a7b4d4;font-size:10px;line-height:1.5;margin-top:3px}.distributor-resale-client-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0;padding:14px;border:1px solid rgba(139,92,246,.28);border-radius:12px;background:rgba(19,17,44,.62)}.distributor-resale-fields-title{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#f4f2ff;font-size:12px}.distributor-resale-fields-title span{font-size:10px;color:#c4b5fd}.distributor-resale-client-fields .cart-buyer-field{min-width:0}.distributor-resale-client-fields input,.distributor-resale-price input{border-color:#643ca0!important}.distributor-cart-wait{border-style:dashed;border-color:#7c3aed!important}.distributor-cart-wait strong{color:#c4b5fd!important}.distributor-cart-wait span{color:#aab2d1}
@media(max-width:1300px){.dist-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dist-center{padding:22px 18px 34px}.dist-dashboard-grid{grid-template-columns:1fr}.dist-page-header h1{font-size:28px}}
@media(max-width:760px){.dist-center{padding:18px 12px 28px}.dist-page-header{display:block}.dist-page-header-actions{justify-content:flex-start;margin-top:14px}.dist-metric-grid{grid-template-columns:1fr 1fr;gap:9px}.dist-metric{min-height:90px;padding:13px 10px;gap:9px}.dist-metric-icon{width:36px;height:36px}.dist-metric strong{font-size:20px}.dist-metric small{font-size:10px}.dist-metric em{font-size:9px}.dist-panel{padding:13px;border-radius:13px}.dist-toolbar{align-items:stretch}.dist-search{flex-basis:100%;max-width:none}.dist-toolbar select{flex:1 1 calc(50% - 6px);max-width:none}.dist-result-count{margin-left:0}.dist-money-summary{grid-template-columns:1fr}.dist-money-summary strong{font-size:18px}.dist-table-footer{align-items:flex-start;flex-direction:column}.dist-chart{gap:6px;min-height:180px}.dist-chart-track{height:95px;width:75%}.dist-detail-grid{grid-template-columns:1fr}.dist-sale-detail{padding:13px;width:calc(100vw - 14px)}.dist-detail-head h2{font-size:17px}.dist-expiry-row{grid-template-columns:8px minmax(0,1fr) auto}.dist-expiry-row .dist-icon-btn{grid-column:2;justify-self:start}.distributor-resale-client-fields,.distributor-purchase-mode-options{grid-template-columns:1fr}.distributor-resale-fields-title{align-items:flex-start;flex-direction:column}.dist-support-row,.dist-history-row{align-items:flex-start;flex-wrap:wrap}.dist-support-row>div,.dist-history-row>div{flex-basis:calc(100% - 55px)}.dist-page-header p{font-size:12px}}
@media(max-width:900px){body:has(.distributor-sidebar) .distributor-sidebar{position:fixed;z-index:1500;inset:0 auto 0 0;width:min(285px,84vw);transform:translateX(-105%);transition:transform .2s ease;box-shadow:0 25px 80px rgba(0,0,0,.45)}body:has(.distributor-sidebar-open) .distributor-sidebar{transform:translateX(0)}body:has(.distributor-sidebar-open)::after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1400}body:has(.distributor-sidebar) .main{margin-left:0!important}.distributor-topbar .mobile-brand{display:block;color:#f4f2ff;font-size:13px}.distributor-topbar .distributor-search{display:none}}


/* NexoPlay Distribuidores V4 · RGB gamer refinement (solo este centro) */
:root {
  --dist-green: #8b5cf6;
  --dist-green-strong: #a855f7;
  --dist-green-soft: rgba(139,92,246,.14);
  --dist-green-border: rgba(139,92,246,.34);
  --dist-bg: #060712;
  --dist-card: #0b1020;
  --dist-card-2: #11172b;
  --dist-line: #29264c;
  --dist-text: #f4f2ff;
  --dist-muted: #aab2d1;
  --dist-cyan: #22d3ee;
  --dist-blue: #3b82f6;
  --dist-pink: #ec4899;
}
body:has(.distributor-sidebar),
body:has(.distributor-sidebar) .app-shell { background: #060712 !important; }
.distributor-sidebar {
  background: linear-gradient(180deg,#111329 0%,#080a17 100%) !important;
  border-right-color: #29264c !important;
}
.distributor-sidebar .brand { border-bottom-color: rgba(139,92,246,.22); }
.distributor-brand-mark {
  background: linear-gradient(135deg,#a855f7 0%,#7c3aed 48%,#2563eb 100%);
  box-shadow: 0 0 22px rgba(124,58,237,.28);
}
.distributor-brand-copy b span { color: #c4b5fd; }
.distributor-sidebar-close, .dist-icon-btn {
  border-color: #42316f; background: #11172b; color: #e9e7ff;
}
.distributor-sidebar nav a.active {
  background: linear-gradient(100deg,rgba(124,58,237,.30),rgba(34,211,238,.08));
  box-shadow: inset 3px 0 #a855f7, 0 0 18px rgba(124,58,237,.08);
}
.distributor-sidebar nav a.active .icon { color: #c4b5fd; }
.distributor-topbar { background: rgba(6,7,18,.97) !important; border-bottom-color: #29264c !important; }
.distributor-topbar .searchbar { background: #0d1426 !important; border-color: #29264c !important; }
.distributor-topbar .searchbar:focus-within { border-color: #8b5cf6 !important; box-shadow: 0 0 0 3px rgba(139,92,246,.16); }
.dist-page-header>div:first-child>small { color: #c4b5fd; }
.dist-btn { border-color: #3d2e66; background: #11172b; color: #f4f2ff; }
.dist-btn:hover:not(:disabled) { border-color: #a855f7; box-shadow: 0 0 16px rgba(139,92,246,.16); }
.dist-btn.primary {
  background: linear-gradient(120deg,#7c3aed,#9333ea 52%,#2563eb);
  border-color: #a78bfa; box-shadow: 0 8px 22px rgba(124,58,237,.24);
}
/* WhatsApp keeps its recognizable green, distinct from the gamer-violet primary actions. */
.dist-btn.whatsapp {
  background: linear-gradient(120deg,#10b981,#059669);
  border-color: #34d399; color: #fff;
  box-shadow: 0 5px 16px rgba(16,185,129,.16);
}
.dist-btn.whatsapp:hover:not(:disabled) { border-color: #6ee7b7; box-shadow: 0 0 18px rgba(16,185,129,.22); }
.dist-btn.reminder {
  background: linear-gradient(120deg,#2563eb,#4f46e5 58%,#7c3aed);
  border-color: #60a5fa; color: #fff;
  box-shadow: 0 5px 16px rgba(59,130,246,.18);
}
.dist-metric-icon { background: rgba(139,92,246,.15); color: #c4b5fd; }
.dist-metric-icon.blue { background: rgba(59,130,246,.16); color: #60a5fa; }
.dist-metric-icon.amber { background: rgba(245,158,11,.14); color: #fbbf24; }
.dist-metric-icon.money { background: rgba(16,185,129,.14); color: #34d399; }
.dist-positive { color: #34d399 !important; }
.dist-link { color: #22d3ee; }
.dist-status.ok { color: #6ee7b7; }
.dist-chart-track span { background: linear-gradient(180deg,#22d3ee 0%,#8b5cf6 55%,#ec4899 100%); }
.dist-panel, .dist-metric, .dist-sale-detail {
  border-color: #29264c;
}
.dist-panel { background: linear-gradient(145deg,rgba(13,16,38,.98),rgba(7,9,24,.98)); }
.dist-metric { background: linear-gradient(145deg,#11172b,#0b1020); }
.dist-sale-detail { background: linear-gradient(145deg,#0d1026,#060712); }
.dist-detail-card { border-color: #29264c; background: #0b1020; }
.dist-search, .dist-toolbar select { border-color: #34305e; background: #0b1020; }
.dist-search:focus-within, .dist-toolbar select:focus { border-color: #8b5cf6; outline: none; box-shadow: 0 0 0 3px rgba(139,92,246,.12); }
.dist-state-card { border-color: rgba(139,92,246,.45); background: linear-gradient(135deg,rgba(124,58,237,.08),rgba(34,211,238,.035)); }
.dist-state-icon, .dist-history-icon { background: rgba(139,92,246,.16); color: #c4b5fd; }
.distributor-purchase-mode { border-color: #49317b; background: linear-gradient(130deg,rgba(124,58,237,.17),rgba(13,16,38,.98)); }
.distributor-purchase-mode-options button { border-color: #34305e; background: #0b1020; }
.distributor-purchase-mode-options button.selected { border-color: #a855f7; background: rgba(139,92,246,.16); box-shadow: 0 0 0 2px rgba(139,92,246,.09),0 0 18px rgba(139,92,246,.08); }
.distributor-purchase-mode-options .mode-icon { background: rgba(139,92,246,.16); color: #c4b5fd; }
.distributor-resale-client-fields { border-color: rgba(139,92,246,.32); background: rgba(17,15,42,.62); }
.distributor-resale-client-fields input, .distributor-resale-price input { border-color: #49317b !important; }
.distributor-cart-wait { border-color: #7c3aed !important; }
.dist-credential-row, .dist-recent-row, .dist-table-footer, .dist-detail-head { border-color: rgba(72,48,120,.5); }
@media (prefers-reduced-motion: reduce) {
  .dist-btn, .distributor-sidebar nav a, body:has(.distributor-sidebar) .distributor-sidebar { transition: none !important; }
}

/* NexoPlay · Modal de detalle de reventa: un solo contenedor de desplazamiento.
   Evita el modal genérico estrecho y el scroll anidado que recortaban la ficha. */
.dist-modal-layer .nx-modal.dist-sale-detail-host {
  box-sizing: border-box;
  width: min(1180px, calc(100vw - 32px));
  max-width: 1180px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.dist-modal-layer .dist-detail-modal-wrap {
  width: 100%;
  max-height: none;
  overflow: visible;
}
.dist-modal-layer .dist-sale-detail {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.dist-modal-layer .dist-detail-grid {
  align-items: start;
}
.dist-modal-layer .dist-detail-card {
  align-self: start;
}
@media (max-width: 760px) {
  .dist-modal-layer {
    align-items: center;
    padding: 12px 10px;
  }
  .dist-modal-layer .nx-modal.dist-sale-detail-host {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }
  .dist-modal-layer .dist-sale-detail {
    padding: 14px;
    border-radius: 16px;
  }
  .dist-modal-layer .dist-detail-head {
    gap: 9px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  .dist-modal-layer .dist-detail-head h2 {
    font-size: 17px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .dist-modal-layer .dist-detail-head p {
    overflow-wrap: anywhere;
  }
  .dist-modal-layer .dist-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .dist-modal-layer .dist-detail-card {
    padding: 12px;
  }
  .dist-modal-layer .dist-detail-card dl {
    grid-template-columns: minmax(94px, .75fr) minmax(0, 1.25fr);
    gap: 8px 10px;
    line-height: 1.45;
  }
  .dist-modal-layer .dist-detail-card dd {
    min-width: 0;
  }
}
@media (max-width: 380px) {
  .dist-modal-layer .dist-detail-card dl {
    grid-template-columns: minmax(82px, .8fr) minmax(0, 1.2fr);
    gap: 7px 8px;
    font-size: 10px;
  }
}
