.iptv-profile-initial{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--bs-primary,#626ed4);color:#fff;font-weight:600;width:36px;height:36px;vertical-align:middle}
.account-pages .iptv-auth-header{position:relative;padding-bottom:8px}
.account-pages .iptv-auth-logo{position:absolute;left:50%;bottom:-30px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;width:184px;max-width:calc(100% - 32px);height:64px;padding:16px;background:#fff;border:1px solid rgba(91,104,214,.16);border-radius:12px;box-shadow:0 4px 14px rgba(30,40,80,.1);line-height:1;z-index:1}
.account-pages .iptv-auth-logo img{display:block;width:144px;max-width:100%;height:auto}
.account-pages .iptv-auth-logo:focus-visible{outline:3px solid #303859;outline-offset:3px}
.iptv-global-search .position-relative input{padding-inline-end:38px}
.iptv-search-submit{position:absolute;inset-inline-end:5px;top:4px;border:0;background:transparent;color:inherit;font-size:20px;line-height:28px}
.iptv-notifications .dropdown-menu{width:390px;max-width:calc(100vw - 24px)}
.iptv-notification-list{max-height:360px;overflow-y:auto}
.iptv-notification-row{display:block;width:100%;padding:12px 16px;border:0;border-bottom:1px solid var(--bs-border-color,#eff2f7);background:transparent;color:inherit;text-align:start}
.iptv-notification-row:hover{background:var(--bs-tertiary-bg,rgba(98,110,212,.08))}
.iptv-notification-summary{display:flex;flex-wrap:wrap;gap:4px}
.iptv-notification-count[hidden]{display:none!important}
#iptv-global-orders-modal .modal-dialog{max-width:1400px;width:calc(100vw - 32px);margin:16px auto}
#iptv-global-orders-modal .modal-body{min-height:240px}
#iptv-global-orders-modal td,#iptv-global-orders-modal th{font-size:13px;vertical-align:middle}
#iptv-global-orders-modal td{white-space:normal;overflow-wrap:anywhere;min-width:110px}
#iptv-global-orders-modal td:nth-child(2),#iptv-global-orders-modal td:nth-child(6){min-width:80px;white-space:nowrap}
#iptv-global-orders-modal td:first-child{min-width:160px}
.iptv-results-issues:empty,.iptv-more-sites:empty{display:none!important}
.iptv-results-issue{padding:8px 12px;margin-bottom:4px;border-radius:4px;background:rgba(255,193,7,.12);font-size:13px}
.iptv-site-switch{max-width:245px}
.iptv-site-switch .select2-container{max-width:100%}
.iptv-site-switch select[name=acting_site_id]+span{top:0;min-width:180px}
.iptv-site-switch .select2-container .select2-selection--single{background:var(--bs-secondary-bg,#fff);border-color:var(--bs-border-color,#ced4da)}
.iptv-site-switch .select2-container .select2-selection__rendered{color:var(--bs-body-color,#495057)}
body[data-bs-theme=dark] .select2-dropdown{background:#252b3b;border-color:#475167;color:#e7ecf5}
body[data-bs-theme=dark] .select2-results__option[aria-selected=true]{background:#39435a;color:#fff}
body[data-bs-theme=dark] .select2-container--default .select2-results__option--highlighted[aria-selected]{background:#626ed4;color:#fff}
body[data-bs-theme=dark] .select2-search__field{background:#1d2433;color:#e7ecf5;border-color:#56627a!important}
body[data-bs-theme=dark] .iptv-site-switch .select2-selection--single{background:#252b3b;border-color:#56627a}
body[data-bs-theme=dark] .iptv-site-switch .select2-selection__rendered{color:#e7ecf5}
/* Keep closed Select2 controls consistent too, not just their open results. */
body[data-bs-theme=dark] .select2-container--default .select2-selection--single,
body[data-bs-theme=dark] .select2-container--default .select2-selection--multiple{background:#252b3b;border-color:#56627a;color:#e7ecf5}
body[data-bs-theme=dark] .select2-container--default .select2-selection--single .select2-selection__rendered,
body[data-bs-theme=dark] .select2-container--default .select2-selection__placeholder{color:#e7ecf5}
body[data-bs-theme=dark] .select2-container--default .select2-selection--multiple .select2-selection__choice{background:#39435a;border-color:#56627a;color:#e7ecf5}
body[data-bs-theme=dark] .select2-container--default .select2-selection__choice__remove{color:#dce3ef}
body[data-bs-theme=dark] .select2-container--default.select2-container--disabled .select2-selection--single,
body[data-bs-theme=dark] .select2-container--default.select2-container--disabled .select2-selection--multiple{background:#2d3447;color:#bcc5d8;opacity:.8}
body[data-bs-theme=dark] .select2-container--default .select2-selection--single .select2-selection__arrow b{border-top-color:#c7d0e0}
.iptv-shell-clock #serverTime{background:#184a63!important;color:#fff;border:1px solid #528ba8;font-weight:600;letter-spacing:.015em;font-variant-numeric:tabular-nums}
.dashboard-layout-toolbar[hidden],.dashboard-widget-controls[hidden],.dashboard-widget-size-menu[hidden]{display:none!important}
.dashboard-widget-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:24px;margin-bottom:24px}
.dashboard-widget{grid-column:span var(--widget-columns,12);min-width:0;display:flex;flex-direction:column;position:relative}
.iptv-overview .dashboard-widget>.card,.iptv-overview .dashboard-widget>a>.card{height:100%;margin-bottom:0}
.dashboard-widget>a{height:100%;display:block}
.dashboard-widget-controls{position:absolute;inset-inline-end:8px;top:7px;display:flex;align-items:center;gap:3px;z-index:2}
.dashboard-widget-action{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--bs-body-color,#495057);font-size:21px;line-height:1}
.dashboard-widget-action:hover,.dashboard-widget-action[aria-expanded=true]{background:var(--bs-tertiary-bg,#edf0f7);border-color:var(--bs-border-color,#d5dbea)}
.dashboard-widget-action:focus-visible{outline:2px solid #626ed4;outline-offset:2px}.dashboard-widget-action:disabled{opacity:.5}
.is-editing-layout .dashboard-widget{outline:1px dashed var(--bs-border-color,#aeb7c7);outline-offset:3px;border-radius:4px}
.iptv-overview.is-editing-layout .dashboard-widget>.card>.card-body,.iptv-overview.is-editing-layout .dashboard-widget>a>.card>.card-body{padding-top:44px}
.dashboard-drag-handle{cursor:grab;touch-action:none;user-select:none}
.dashboard-layout-dragging,.dashboard-layout-dragging *{cursor:grabbing!important;user-select:none!important}
.dashboard-widget.is-dragging{position:fixed;top:0;left:0;z-index:1500;pointer-events:none;opacity:.94;box-shadow:0 18px 50px rgba(0,0,0,.25);will-change:transform;outline:2px solid #626ed4}
.dashboard-widget-placeholder{grid-column:span var(--widget-columns,12);min-width:0;border:2px dashed #626ed4;border-radius:8px;background:rgba(98,110,212,.1)}
.dashboard-widget-size-menu{position:fixed;z-index:1600;width:260px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;padding:16px;border:1px solid var(--bs-border-color,#d5dbea);border-radius:10px;background:var(--bs-secondary-bg,#fff);color:var(--bs-body-color,#495057);box-shadow:0 12px 35px rgba(0,0,0,.18)}
.dashboard-widget-size-menu .dashboard-widget-action{flex-shrink:0}
.is-saving-layout .dashboard-widget-controls{pointer-events:none;opacity:.65}
.dashboard-widget[data-height=compact]{--dashboard-chart-height:220px}.dashboard-widget[data-height=tall]{--dashboard-chart-height:420px}
.iptv-overview .dashboard-widget[data-height=compact] .ct-chart,.iptv-overview .dashboard-widget[data-height=tall] .ct-chart,
.iptv-overview .dashboard-widget[data-height=compact] .network-chart:not(#network-packages-wrap),.iptv-overview .dashboard-widget[data-height=tall] .network-chart:not(#network-packages-wrap){height:var(--dashboard-chart-height)}
.iptv-overview .dashboard-widget .network-package-scroll{max-height:var(--dashboard-chart-height,580px)}
@media(max-width:991px){.dashboard-widget:not(.is-dragging),.dashboard-widget-placeholder{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.dashboard-widget{scroll-behavior:auto}}
@media(max-width:767px){
 .iptv-site-switch{max-width:125px}.iptv-site-switch select[name=acting_site_id]+span{min-width:110px!important}
 .navbar-header .navbar-brand-box{padding:0 8px}.navbar-header .header-item{padding-left:8px!important;padding-right:8px!important}
 #iptv-global-orders-modal .modal-dialog{width:calc(100vw - 12px);margin:6px auto}
}
