/* Smart ISP BD admin UI — compact, reference-inspired SaaS presentation layer.
   Scoped to the authenticated shell; no route, action or data behavior lives here. */
.smartisp-shell{
  --shell-sidebar:228px;
  --shell-sidebar-collapsed:68px;
  --shell-topbar:58px;
  --shell-content:clamp(14px,1.6vw,24px);
  --ui-card-radius:10px;
  --ui-control-radius:8px;
  --ui-card-shadow:0 1px 2px rgba(15,23,42,.025),0 5px 16px rgba(15,23,42,.035);
  font-size:14px;
}

/* Application shell */
.smartisp-shell .sidebar{width:var(--shell-sidebar);box-shadow:none;position:relative;z-index:100}
.smartisp-shell .sidebar.collapsed{width:var(--shell-sidebar-collapsed)!important}
.smartisp-shell .sidebar-header{min-height:58px;padding:12px 15px}
.smartisp-shell .sidebar-header h2{font-size:19px;letter-spacing:-.35px}
.smartisp-shell .sidebar-header h2 i{font-size:18px}
.smartisp-shell .toggle-btn,.smartisp-shell .btn-icon{width:34px;height:34px;border-radius:8px;font-size:15px}
.smartisp-shell .menu-search-container{padding:9px 11px;border-bottom:1px solid var(--border)}
.smartisp-shell .menu-search-field{position:relative}
.smartisp-shell .menu-search-field input{width:100%;height:34px;min-height:34px!important;padding:7px 10px 7px 31px!important;border-radius:8px!important;font-size:12px!important;box-shadow:none!important}
.smartisp-shell .menu-search-field i{position:absolute;left:11px;top:50%;transform:translateY(-50%);font-size:11px;color:var(--text-tertiary);pointer-events:none}
.smartisp-shell .sidebar-nav{padding:8px 7px!important;scrollbar-width:thin}
.smartisp-shell .sidebar-nav ul{gap:1px}
.smartisp-shell .sidebar .nav-link{min-height:38px;margin:1px 3px;padding:9px 10px;gap:10px;border-radius:8px;border-left:0!important;font-size:13px;font-weight:500;transition:background .14s ease,color .14s ease}
.smartisp-shell .sidebar .nav-link i{width:17px;font-size:13px}
.smartisp-shell .sidebar .nav-link.active{font-weight:650;box-shadow:inset 3px 0 0 var(--primary)}
.smartisp-shell .sidebar-nav .sidebar-submenu{margin:3px 4px 5px 18px!important;padding:4px 0 4px 9px!important;gap:0!important;border-left:1px solid var(--border)!important;border-radius:0!important;background:transparent!important}
.smartisp-shell .nav-link-sub{min-height:31px;padding:6px 8px;gap:8px;border-radius:6px;font-size:11px}
.smartisp-shell .dropdown-arrow{font-size:9px}
.smartisp-shell .sidebar.collapsed .sidebar-header{padding:12px 8px!important}
.smartisp-shell .sidebar.collapsed .sidebar-nav .nav-link{min-height:40px;padding:10px 0!important;margin:2px 4px!important}
.smartisp-shell .sidebar.collapsed .sidebar-nav .nav-link i{font-size:15px!important}
.smartisp-shell .sidebar.collapsed .menu-item-has-child:hover .sidebar-submenu{left:62px!important;width:210px!important;padding:8px!important;border-radius:9px!important}

/* Compact top navigation */
.smartisp-shell .topbar{height:var(--shell-topbar);min-height:var(--shell-topbar);padding:0 18px;position:sticky;top:0;z-index:80}
.smartisp-shell .topbar-left,.smartisp-shell .topbar-right{display:flex;align-items:center}
.smartisp-shell .topbar-left{gap:10px;min-width:0}
.smartisp-shell .topbar-right{gap:7px;min-width:0;margin-left:auto}
.smartisp-shell .topbar-left h3{margin:0;font-size:16px;font-weight:650;letter-spacing:-.15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smartisp-shell #mobile-toggle-sidebar{display:none}
.smartisp-shell .topbar-account-status{display:flex;align-items:center;gap:6px;min-width:0}
.smartisp-shell .account-pill{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 8px;border:1px solid var(--border);border-radius:7px;background:var(--surface-soft);color:var(--text-primary);text-decoration:none;white-space:nowrap;font-variant-numeric:tabular-nums;transition:background .14s,border-color .14s,color .14s}
.smartisp-shell .account-pill:hover,.smartisp-shell .account-pill:focus-visible{border-color:var(--primary);background:var(--surface-selected);outline:none}
.smartisp-shell span.account-pill{cursor:default}.smartisp-shell span.account-pill:hover{border-color:var(--border);background:var(--surface-soft)}.smartisp-shell span.account-pill-sms:hover{background:var(--warning-soft);border-color:var(--warning)}
.smartisp-shell .account-pill small{font-size:8px;font-weight:750;letter-spacing:.05em;text-transform:uppercase;color:var(--text-tertiary)}
.smartisp-shell .account-pill b{font-size:10px;font-weight:750}
.smartisp-shell .account-pill-id{background:var(--surface-hover)}
.smartisp-shell .account-pill-sms{background:var(--warning-soft);border-color:var(--warning)}
.smartisp-shell .account-pill-sms small,.smartisp-shell .account-pill-sms b{color:var(--warning)}
.smartisp-shell .account-pill-balance{background:var(--success-soft);border-color:var(--success)}
.smartisp-shell .account-pill-balance small,.smartisp-shell .account-pill-balance b{color:var(--success)}
.smartisp-shell .account-refresh[aria-busy="true"] i{animation:spin 1s linear infinite}
.smartisp-shell .is-hidden{display:none!important}
.smartisp-shell .notification-bell{position:relative}
.smartisp-shell .notification-count{position:absolute;top:-3px;right:-4px;display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;border:2px solid var(--surface);border-radius:999px;background:var(--danger);color:#fff;font-size:8px;font-weight:800;line-height:1}
.smartisp-shell .notification-count[hidden],.smartisp-shell .notification-popover[hidden]{display:none!important}
.smartisp-shell .notification-popover{position:absolute;right:0;top:calc(100% + 10px);z-index:1300;width:min(370px,calc(100vw - 20px));max-height:430px;overflow:auto;border:1px solid var(--border);border-radius:11px;background:var(--surface-raised);box-shadow:var(--shadow-lg)}
.smartisp-shell .notification-popover-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid var(--border);background:var(--surface-raised)}
.smartisp-shell .notification-popover-head strong{font-size:12px}
.smartisp-shell .notification-popover-head button{padding:4px 0;border:0;background:transparent;color:var(--primary);font:inherit;font-size:9px;font-weight:700;cursor:pointer}
.smartisp-shell .notification-list{padding:6px}
.smartisp-shell .notification-empty{padding:12px;margin:0;font-size:11px;text-align:center}
.smartisp-shell .notification-item{display:block;width:100%;padding:9px 10px;border:0;border-bottom:1px solid var(--border);border-radius:7px;background:transparent;color:inherit;text-align:left;cursor:pointer}
.smartisp-shell .notification-item:last-child{border-bottom:0}
.smartisp-shell .notification-item:hover,.smartisp-shell .notification-item:focus-visible{background:var(--surface-hover);outline:none}
.smartisp-shell .notification-item.is-unread{background:var(--primary-soft)}
.smartisp-shell .notification-item strong,.smartisp-shell .notification-item span,.smartisp-shell .notification-item small{display:block}
.smartisp-shell .notification-item strong{font-size:11px}
.smartisp-shell .notification-item span{margin-top:3px;font-size:10px;line-height:1.35;overflow-wrap:anywhere}
.smartisp-shell .notification-item small{margin-top:5px;font-size:8px}
.smartisp-shell .topbar-profile{position:relative}
.smartisp-shell .profile-trigger{display:flex;align-items:center;gap:8px;max-width:210px;height:36px;padding:3px 7px 3px 4px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--text-primary);cursor:pointer;text-align:left}
.smartisp-shell .profile-trigger:hover,.smartisp-shell .profile-trigger:focus-visible,.smartisp-shell .profile-trigger[aria-expanded="true"]{border-color:var(--border);background:var(--surface-soft);outline:none}
.smartisp-shell .profile-trigger img{width:28px;height:28px;flex:0 0 28px;border-radius:50%;object-fit:cover;border:1px solid var(--border-strong);background:var(--surface-soft)}
.smartisp-shell .profile-trigger-copy{display:grid;min-width:0;line-height:1.15}
.smartisp-shell .profile-trigger-copy b{max-width:138px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:700}
.smartisp-shell .profile-trigger-copy small{margin-top:2px;font-size:8px;color:var(--text-tertiary);letter-spacing:.05em}
.smartisp-shell .profile-chevron{font-size:8px;color:var(--text-tertiary);transition:transform .14s}
.smartisp-shell .profile-trigger[aria-expanded="true"] .profile-chevron{transform:rotate(180deg)}
.smartisp-shell .profile-menu{position:absolute;right:0;top:calc(100% + 9px);z-index:1300;width:275px;padding:7px;border:1px solid var(--border);border-radius:11px;background:var(--surface-raised);box-shadow:var(--shadow-lg)}
.smartisp-shell .profile-menu[hidden]{display:none}
.smartisp-shell .profile-menu-summary{padding:10px 10px 8px;border-bottom:1px solid var(--border);margin-bottom:5px}
.smartisp-shell .profile-menu-summary>strong,.smartisp-shell .profile-menu-summary>span{display:block}
.smartisp-shell .profile-menu-summary>strong{font-size:12px;overflow-wrap:anywhere}
.smartisp-shell .profile-menu-summary>span{margin-top:2px;color:var(--text-tertiary);font-size:8px;letter-spacing:.06em}
.smartisp-shell .profile-menu-summary dl{display:grid;gap:5px;margin:9px 0 0}
.smartisp-shell .profile-menu-summary dl div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.smartisp-shell .profile-menu-summary dt{color:var(--text-secondary);font-size:9px}
.smartisp-shell .profile-menu-summary dd{margin:0;font-size:10px;font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
.smartisp-shell .profile-menu>a,.smartisp-shell .profile-menu>button{display:flex;align-items:center;gap:9px;width:100%;min-height:34px;padding:7px 9px;border:0;border-radius:7px;background:transparent;color:var(--text-primary);text-decoration:none;font:inherit;font-size:10px;cursor:pointer}
.smartisp-shell .profile-menu>a:hover,.smartisp-shell .profile-menu>button:hover,.smartisp-shell .profile-menu>a:focus-visible,.smartisp-shell .profile-menu>button:focus-visible{background:var(--surface-hover);outline:none}
.smartisp-shell .profile-menu>a i,.smartisp-shell .profile-menu>button i{width:15px;text-align:center;color:var(--text-tertiary)}
.smartisp-shell .profile-menu .profile-menu-danger,.smartisp-shell .profile-menu .profile-menu-danger i{color:var(--danger)}
.smartisp-shell .marquee-section{display:flex;align-items:center;min-height:38px;padding:5px 18px;border-bottom:1px solid var(--border);background:var(--surface);color:var(--text-secondary);font-size:11px;overflow:hidden}
.smartisp-shell .announcement-label{display:flex;align-items:center;gap:6px;flex:0 0 auto;margin-right:14px;padding:4px 9px;border-radius:999px;background:var(--primary-soft);color:var(--primary);font-weight:700;white-space:nowrap}
.smartisp-shell .announcement-track{min-width:0;overflow:hidden;white-space:nowrap;mask-image:linear-gradient(to right,transparent,#000 3%,#000 97%,transparent)}
.smartisp-shell .announcement-track span{display:inline-block;padding-left:100%;animation:smartisp-announcement 32s linear infinite}
.smartisp-shell .announcement-track:hover span{animation-play-state:paused}
@keyframes smartisp-announcement{to{transform:translateX(-100%)}}
.smartisp-shell .content-area{padding:var(--shell-content);background:var(--app-bg)}

/* Shared page and component rhythm */
.smartisp-shell .dashboard-container,.smartisp-shell .health-center,.smartisp-shell .subscription-page,.smartisp-shell .sms-wallet-page{max-width:1680px;margin-inline:auto}
.smartisp-shell .glass,.smartisp-shell .card{border-radius:var(--ui-card-radius);box-shadow:var(--ui-card-shadow);border-color:var(--border);backdrop-filter:none}
.smartisp-shell .card-header{padding:13px 16px;background:transparent;border-color:var(--border)}
.smartisp-shell .card-header h2,.smartisp-shell .card-header h3{font-size:15px;letter-spacing:-.1px}
.smartisp-shell .card-body{padding:16px}
.smartisp-shell h1,.smartisp-shell h2,.smartisp-shell h3{letter-spacing:-.025em}
.smartisp-shell .text-muted{line-height:1.45}

/* Reference-inspired compact KPI cards */
.smartisp-shell .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin-bottom:16px!important}
.smartisp-shell .stat-card{min-height:78px!important;padding:12px 14px!important;gap:12px!important;border-radius:var(--ui-card-radius)!important;box-shadow:var(--ui-card-shadow)!important;background:var(--surface)!important;overflow:hidden!important}
.smartisp-shell .stat-card:hover{transform:translateY(-1px)!important;box-shadow:var(--shadow-md)!important;border-color:var(--border-strong)!important}
.smartisp-shell .stat-card::after{display:none!important}
.smartisp-shell .stat-icon{flex:0 0 36px;width:36px!important;height:36px!important;border-radius:7px!important;font-size:14px!important}
.smartisp-shell .stat-card:hover .stat-icon{transform:none}
.smartisp-shell .stat-card h3,.smartisp-shell .stat-card .stat-info strong{font-size:20px!important;line-height:1.05!important;font-weight:700!important;font-variant-numeric:tabular-nums;color:var(--text-primary)!important}
.smartisp-shell .stat-card p,.smartisp-shell .stat-card .stat-info small{font-size:10px!important;line-height:1.25!important;color:var(--text-secondary)!important;margin-top:5px!important;letter-spacing:.015em}
.smartisp-shell .operations-dashboard{gap:16px!important}
.smartisp-shell .ops-section{gap:8px!important}
.smartisp-shell .ops-section-title{min-height:30px;padding:0 2px;align-items:center!important}
.smartisp-shell .ops-section-title h3{font-size:14px!important;margin:1px 0 0!important}
.smartisp-shell .ops-kicker{font-size:8px!important;letter-spacing:1.3px!important}
.smartisp-shell .ops-grid{gap:9px!important}
.smartisp-shell .ops-grid-six,.smartisp-shell .ops-grid-seven{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.smartisp-shell .ops-metric{min-height:76px!important}
.smartisp-shell .ops-lower-grid{gap:12px!important;grid-template-columns:minmax(0,2fr) minmax(290px,1fr)!important}
.smartisp-shell .ops-panel{padding:14px!important;border-radius:var(--ui-card-radius)!important;box-shadow:var(--ui-card-shadow)!important}
.smartisp-shell .ops-panel-header{margin-bottom:8px!important}
.smartisp-shell .ops-panel-header h3{font-size:14px}
.smartisp-shell .ops-panel .canvas-wrapper{height:220px!important}
.smartisp-shell .ticket-summary-widget{gap:8px}
.smartisp-shell .ticket-summary-widget .summary-item{min-height:64px;padding:10px;border-radius:8px}
.smartisp-shell .ticket-summary-widget b{font-size:18px!important}

/* Tables, filters and large data modules */
.smartisp-shell .table-responsive,.smartisp-shell .table-container{border-radius:9px;background:var(--surface);box-shadow:none}
.smartisp-shell .table th,.smartisp-shell table thead th{height:38px;padding:9px 11px!important;font-size:10px!important;font-weight:700;text-transform:none;letter-spacing:.025em}
.smartisp-shell .table td,.smartisp-shell table tbody td{padding:10px 11px!important;font-size:12px!important;line-height:1.35}
.smartisp-shell .table tbody tr{transition:background .12s ease}
.smartisp-shell .table tbody tr:hover,.smartisp-shell table tbody tr:hover{background:var(--surface-hover)}
.smartisp-shell .badge{padding:4px 7px;border-radius:5px;font-size:9px;line-height:1.1;letter-spacing:.025em}
.smartisp-shell .pagination{gap:4px}
.smartisp-shell .pagination button,.smartisp-shell .pagination a{min-width:30px;min-height:30px;border-radius:7px;font-size:11px}
.smartisp-shell .filter-card{margin-bottom:14px!important}
.smartisp-shell .filter-card .card-body{padding:12px!important;gap:9px!important}
.smartisp-shell .filter-card .form-control{margin:0}
.smartisp-shell .report-nav{margin-bottom:12px!important;padding:5px!important;border-radius:9px!important}
.smartisp-shell .report-filter{padding:12px!important;margin-bottom:14px!important}
.smartisp-shell .report-cards,.smartisp-shell .sms-metrics,.smartisp-shell .sub-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
.smartisp-shell .report-metric,.smartisp-shell .sms-metrics article,.smartisp-shell .sub-metrics .card{min-height:78px!important;padding:12px 14px!important;border-radius:var(--ui-card-radius)!important;box-shadow:var(--ui-card-shadow)!important}
.smartisp-shell .report-metric strong,.smartisp-shell .sms-metrics strong,.smartisp-shell .sub-metrics strong{font-size:19px!important;margin:5px 0 2px!important}
.smartisp-shell .health-summary{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
.smartisp-shell .health-summary-card{padding:12px 14px!important;border-radius:var(--ui-card-radius)!important;box-shadow:var(--ui-card-shadow)!important}
.smartisp-shell .health-summary-card strong{font-size:19px!important;margin:5px 0 2px!important}
.smartisp-shell .health-panel{padding:14px!important;border-radius:var(--ui-card-radius)!important;box-shadow:var(--ui-card-shadow)!important}

/* Controls, forms and actions */
.smartisp-shell .btn{min-height:34px;padding:7px 11px;border-radius:var(--ui-control-radius);font-size:11px;font-weight:650}
.smartisp-shell .btn-sm,.smartisp-shell .btn-xs{min-height:29px;padding:5px 8px;font-size:10px}
.smartisp-shell .form-control,.smartisp-shell input:not([type="checkbox"]):not([type="radio"]),.smartisp-shell select,.smartisp-shell textarea{border-radius:var(--ui-control-radius);font-size:12px}
.smartisp-shell .form-control,.smartisp-shell input:not([type="checkbox"]):not([type="radio"]),.smartisp-shell select{min-height:38px}
.smartisp-shell .form-group{margin-bottom:14px}
.smartisp-shell .form-group>label,.smartisp-shell .form-label{margin-bottom:5px;font-size:11px}
.smartisp-shell .modal-overlay{padding:14px;backdrop-filter:blur(3px)}
.smartisp-shell .modal-content{border-radius:12px;box-shadow:var(--shadow-lg)}
.smartisp-shell .modal-header,.smartisp-shell .modal-footer{padding:14px 17px}
.smartisp-shell .modal-header h2,.smartisp-shell .modal-header h3{font-size:16px}
.smartisp-shell .modal-body{padding:17px}

/* Async and empty states */
.smartisp-shell [aria-busy="true"]{cursor:wait}
.smartisp-shell .smartisp-skeleton{position:relative;overflow:hidden;background:var(--surface-soft);color:transparent!important;border-radius:6px}
.smartisp-shell .smartisp-skeleton::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,var(--surface-hover),transparent);animation:smartisp-shimmer 1.2s infinite}
@keyframes smartisp-shimmer{to{transform:translateX(100%)}}
.smartisp-shell .empty-state,.smartisp-shell td[colspan]{color:var(--text-secondary)}

/* Theme-specific refinement */
:root[data-theme="light"] .smartisp-shell{--app-bg:#f3f6fa;--sidebar-bg:#fff;--surface:#fff;--surface-raised:#fff;--surface-soft:#f7f9fc;--surface-hover:#f1f5f9;--surface-selected:#eaf2ff;--border:#e1e7ef;--border-strong:#cdd7e4;--text-primary:#182235;--text-secondary:#617086}
:root[data-theme="dark"] .smartisp-shell,.smartisp-shell.dark-mode{--ui-card-shadow:0 1px 2px rgba(0,0,0,.18),0 8px 24px rgba(0,0,0,.12)}

@media(max-width:1320px){
  .smartisp-shell .profile-trigger{max-width:155px}
  .smartisp-shell .profile-trigger-copy b{max-width:88px}
  .smartisp-shell .ops-grid-six,.smartisp-shell .ops-grid-seven,.smartisp-shell .stats-grid,.smartisp-shell .report-cards,.smartisp-shell .sms-metrics,.smartisp-shell .sub-metrics,.smartisp-shell .health-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:992px){
  .smartisp-shell .sidebar{width:228px!important;left:-240px!important;background:var(--sidebar-bg)!important}
  .smartisp-shell .sidebar.open{left:0!important}
  .smartisp-shell #mobile-toggle-sidebar{display:inline-flex!important}
  .smartisp-shell .topbar{padding:0 12px!important}
  .smartisp-shell .account-pill-id{display:none}
  .smartisp-shell .account-pill{padding:0 6px}
  .smartisp-shell .account-pill small{display:none}
  .smartisp-shell .profile-trigger-copy{display:none}
  .smartisp-shell .profile-trigger{width:36px;padding:3px;justify-content:center}
  .smartisp-shell .profile-chevron{display:none}
  .smartisp-shell .ops-grid-six,.smartisp-shell .ops-grid-seven,.smartisp-shell .stats-grid,.smartisp-shell .report-cards,.smartisp-shell .sms-metrics,.smartisp-shell .sub-metrics,.smartisp-shell .health-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .smartisp-shell .ops-lower-grid{grid-template-columns:1fr!important}
}
@media(max-width:600px){
  .smartisp-shell{--shell-content:10px}
  .smartisp-shell .topbar{height:52px;min-height:52px}
  .smartisp-shell .topbar-left h3{font-size:14px}
  .smartisp-shell .marquee-section{min-height:34px;padding:4px 10px}
  .smartisp-shell .announcement-label{margin-right:9px;padding:3px 7px;font-size:9px}
  .smartisp-shell .topbar-account-status .account-pill{display:none!important}
  .smartisp-shell .topbar-right{gap:3px}
  .smartisp-shell .profile-menu{position:fixed;top:56px;right:8px;width:min(290px,calc(100vw - 16px))}
  .smartisp-shell .ops-grid-six,.smartisp-shell .ops-grid-seven,.smartisp-shell .stats-grid,.smartisp-shell .report-cards,.smartisp-shell .sms-metrics,.smartisp-shell .sub-metrics,.smartisp-shell .health-summary{grid-template-columns:1fr!important}
  .smartisp-shell .stat-card{min-height:70px!important}
  .smartisp-shell .notification-popover{position:fixed;top:56px;right:8px;width:min(370px,calc(100vw - 16px))}
  .smartisp-shell .table th,.smartisp-shell table thead th{font-size:9px!important}
  .smartisp-shell .table td,.smartisp-shell table tbody td{font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){.smartisp-shell .announcement-track span{animation:none;padding-left:0}}

/* Enterprise interaction and responsive consistency layer */
.smartisp-shell{font-family:var(--font-sans);font-size:14px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.skip-link{position:fixed;left:12px;top:8px;z-index:100000;transform:translateY(-150%);padding:9px 13px;border-radius:8px;background:var(--primary);color:#fff;text-decoration:none;font-weight:700;box-shadow:var(--shadow-lg)}
.skip-link:focus{transform:translateY(0)}
.smartisp-shell .sidebar-header h2{font-size:18px;letter-spacing:-.035em}
.smartisp-shell .sidebar-nav{overscroll-behavior:contain;scrollbar-color:var(--border-strong) transparent;scrollbar-width:thin}
.smartisp-shell .sidebar .nav-link:focus-visible,.smartisp-shell .nav-link-sub:focus-visible{outline:2px solid var(--primary);outline-offset:-2px;background:var(--surface-selected)!important;color:var(--primary)!important}
.smartisp-shell .main-content{min-width:0;isolation:isolate}
.smartisp-shell .content-area{min-height:calc(100dvh - var(--shell-topbar) - 38px)}
.smartisp-shell .content-area>div,.smartisp-shell .content-area>section{width:100%}
.smartisp-shell .card,.smartisp-shell .glass,.smartisp-shell .stat-card{transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease,transform .16s ease}
.smartisp-shell .card-header{min-height:48px;align-items:center}
.smartisp-shell .card-header h2,.smartisp-shell .card-header h3{margin:0;line-height:1.3}
.smartisp-shell .card-header p{margin:3px 0 0;color:var(--text-secondary)}
.smartisp-shell .card-body>:first-child{margin-top:0}
.smartisp-shell .card-body>:last-child{margin-bottom:0}
.smartisp-shell .btn,.smartisp-shell .btn-icon,.smartisp-shell button{touch-action:manipulation}
.smartisp-shell .btn:focus-visible,.smartisp-shell .btn-icon:focus-visible,.smartisp-shell button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.smartisp-shell .btn i{flex:0 0 auto}
.smartisp-shell .form-grid{gap:14px}
.smartisp-shell label{overflow-wrap:anywhere}
.smartisp-shell textarea{line-height:1.5;resize:vertical}
.smartisp-shell .table-responsive,.smartisp-shell .table-container{scrollbar-color:var(--border-strong) var(--surface-soft);scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.smartisp-shell .table-responsive table,.smartisp-shell .table-container table{width:100%;border-collapse:separate;border-spacing:0}
.smartisp-shell .table-responsive thead th,.smartisp-shell .table-container thead th{position:sticky;top:0;z-index:2}
.smartisp-shell .table td:last-child,.smartisp-shell .table th:last-child{white-space:nowrap}
.smartisp-shell .table td button,.smartisp-shell .table td .btn,.smartisp-shell .table td a.btn{vertical-align:middle}
.smartisp-shell .filter-card .card-body>div{min-width:0}
.smartisp-shell .filter-card input,.smartisp-shell .filter-card select{max-width:100%!important}
.smartisp-shell .modal-overlay.active{display:flex;align-items:center;justify-content:center}
.smartisp-shell .modal-content{width:min(720px,calc(100vw - 28px));overscroll-behavior:contain}
.smartisp-shell .modal-lg{width:min(980px,calc(100vw - 28px));max-width:980px!important}
.smartisp-shell .modal-header{position:sticky;top:0;z-index:4}
.smartisp-shell .modal-footer{position:sticky;bottom:0;z-index:4}
.smartisp-shell [aria-busy="true"]{cursor:progress}
.smartisp-shell [aria-busy="true"]>.card,.smartisp-shell [aria-busy="true"]>.stats-grid{transition:opacity .15s ease}
.smartisp-shell .notice,.smartisp-shell .client-dashboard-error{padding:11px 13px;border:1px solid var(--danger);border-radius:9px;background:var(--danger-soft);color:var(--danger);font-size:12px}
.smartisp-shell .notice.ok{border-color:var(--success);background:var(--success-soft);color:var(--success)}

/* Platform and ISP dashboards */
body[data-user-role="super_admin"].smartisp-shell .enterprise-platform-dashboard{max-width:1680px}
.smartisp-shell .enterprise-platform-dashboard>.stats-grid{margin-bottom:16px!important}
.smartisp-shell .enterprise-platform-dashboard .dashboard-panels-row{gap:16px!important}
.smartisp-shell .enterprise-platform-dashboard .card{min-width:0}
.smartisp-shell .enterprise-operations-dashboard{max-width:1680px}
.smartisp-shell .dashboard-panels-row{align-items:stretch}
.smartisp-shell .dashboard-panels-row>.card,.smartisp-shell .widgets-column>.card{min-width:0}
.smartisp-shell .canvas-wrapper canvas{max-width:100%}
.smartisp-shell .progress-ring-bg{stroke:var(--border)!important}
.smartisp-shell .promised-list{display:grid;gap:2px}
.smartisp-shell .promised-item{min-height:42px}

/* Customer dashboard and self-service portal */
body[data-user-role="client"].smartisp-shell{--shell-content:clamp(12px,2.4vw,28px)}
.smartisp-shell .enterprise-client-dashboard,.smartisp-shell .customer-portal-shell{max-width:1380px;margin-inline:auto}
.smartisp-shell .enterprise-client-dashboard{display:grid;gap:16px}
.smartisp-shell .enterprise-client-dashboard>.stats-grid{margin-bottom:0!important}
.smartisp-shell .client-dashboard-main{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);gap:16px;align-items:start}
.smartisp-shell .client-dashboard-main>.card,.smartisp-shell .client-dashboard-main>.flex{min-width:0}
.smartisp-shell .pay-card{border-color:color-mix(in srgb,var(--primary) 42%,var(--border))!important}
.smartisp-shell .client-support-card .btn{margin-top:12px}
.smartisp-shell .customer-portal-shell{display:grid;gap:14px}
.smartisp-shell .customer-portal-shell>.mb-4{margin-bottom:0!important}
.smartisp-shell .customer-portal-brand .card-body{display:grid;gap:3px;padding-block:18px}
.smartisp-shell .customer-portal-brand h2{margin:0;font-size:clamp(20px,3vw,28px)}
.smartisp-shell .customer-portal-eyebrow{color:var(--primary);font-size:9px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.smartisp-shell .customer-portal-nav .card-body{flex-wrap:nowrap!important;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;padding:7px!important}
.smartisp-shell .customer-portal-nav [data-cp],.smartisp-shell .customer-portal-nav a{flex:0 0 auto;scroll-snap-align:start;white-space:nowrap}
.smartisp-shell .customer-portal-nav [aria-selected="true"]{box-shadow:inset 0 0 0 1px var(--primary)}
.smartisp-shell .cp-panel:focus{outline:none}
.smartisp-shell .customer-quick-actions .card-body{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));align-items:stretch}
.smartisp-shell .customer-quick-actions .btn{justify-content:center;width:100%;margin:0!important}
.smartisp-shell .customer-portal-shell #cp-live{padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft)}
.smartisp-shell .customer-portal-shell #cp-live>div{min-width:0;overflow-wrap:anywhere}
.smartisp-shell .customer-portal-shell #cp-current-package{padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft);line-height:1.7}
.smartisp-shell .customer-portal-shell #cp-package-list .card-body{display:grid;gap:7px}

@media(min-width:1440px){
  .smartisp-shell{--shell-content:22px}
  .smartisp-shell .content-area{padding-inline:clamp(20px,2.2vw,36px)}
}
@media(max-width:1023px){
  .smartisp-shell .client-dashboard-main{grid-template-columns:1fr}
  .smartisp-shell .client-dashboard-main>.flex{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}
  .smartisp-shell .filter-card .card-body{align-items:stretch!important}
}
@media(max-width:767px){
  .smartisp-shell .card-header,.smartisp-shell .card-body{padding:14px}
  .smartisp-shell .card-header{min-height:44px}
  .smartisp-shell .btn{min-height:40px}
  .smartisp-shell .btn-icon{min-width:40px;min-height:40px}
  .smartisp-shell .form-control,.smartisp-shell input:not([type="checkbox"]):not([type="radio"]),.smartisp-shell select{min-height:42px}
  .smartisp-shell .filter-card .card-body{display:grid!important;grid-template-columns:1fr!important;width:100%}
  .smartisp-shell .filter-card .card-body>*{width:100%;max-width:none!important}
  .smartisp-shell .table-responsive,.smartisp-shell .table-container{border-radius:8px}
  .smartisp-shell .table th,.smartisp-shell .table td{white-space:nowrap}
  .smartisp-shell .modal-overlay{padding:10px}
  .smartisp-shell .modal-content,.smartisp-shell .modal-lg{width:calc(100vw - 20px)!important;max-width:none!important;max-height:calc(100dvh - 20px)!important;margin:0!important}
  .smartisp-shell .modal-body{padding:14px}
  .smartisp-shell .client-dashboard-main>.flex{grid-template-columns:1fr}
  .smartisp-shell .customer-portal-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .smartisp-shell .customer-quick-actions .card-body{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:479px){
  body[data-user-role="client"].smartisp-shell .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-user-role="client"].smartisp-shell .stat-card{display:grid!important;grid-template-columns:32px minmax(0,1fr);padding:10px!important;gap:8px!important}
  body[data-user-role="client"].smartisp-shell .stat-icon{width:32px!important;height:32px!important;flex-basis:32px}
  body[data-user-role="client"].smartisp-shell .stat-card h3{font-size:15px!important;overflow-wrap:anywhere;white-space:normal!important}
  .smartisp-shell .customer-quick-actions .card-body{grid-template-columns:1fr}
  .smartisp-shell .customer-portal-brand .card-body{padding:14px}
  .smartisp-shell .customer-portal-shell .form-grid{grid-template-columns:1fr!important}
}

@media(hover:none){
  .smartisp-shell .sidebar .nav-link,.smartisp-shell .nav-link-sub{min-height:42px}
  .smartisp-shell .table td button,.smartisp-shell .table td .btn,.smartisp-shell .table td a.btn{min-height:36px;min-width:36px}
}

/* Compact management workspaces: PPPoE clients and Hotspot */
.smartisp-shell .management-workspace{display:grid;gap:14px;max-width:100%;min-width:0}
.smartisp-shell .management-filter-card,.smartisp-shell .management-control-card,.smartisp-shell .management-table-card{margin:0!important;min-width:0}
.smartisp-shell .management-filter-layout{display:flex!important;align-items:center!important;justify-content:space-between;gap:10px!important;flex-wrap:wrap!important;padding:12px 14px!important}
.smartisp-shell .management-filter-controls{display:grid;grid-template-columns:minmax(220px,1.55fr) repeat(4,minmax(125px,1fr));gap:8px;align-items:center;flex:1 1 760px;min-width:0}
.smartisp-shell .management-filter-controls>.form-control{width:100%!important;max-width:none!important;min-width:0;margin:0!important}
.smartisp-shell .management-filter-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 1 auto;flex-wrap:wrap}
.smartisp-shell .management-filter-actions .btn{margin:0;white-space:nowrap}
.smartisp-shell .management-table-body{padding:0 12px 10px!important}
.smartisp-shell .management-table-card .table-responsive{margin-inline:-1px}
.smartisp-shell .management-table-card .table{margin:0;min-width:1120px}
.smartisp-shell .management-table-card .table th{padding:10px 9px!important;font-size:10px!important;letter-spacing:.035em;white-space:nowrap}
.smartisp-shell .management-table-card .table td{padding:9px!important;font-size:12px!important;line-height:1.35;vertical-align:middle}
.smartisp-shell .management-table-card .table td button{max-width:100%}
.smartisp-shell .management-pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 2px 0;border-top:1px solid var(--border)}
.smartisp-shell .compact-filter-grid{display:grid;grid-template-columns:minmax(145px,.9fr) repeat(4,minmax(125px,.8fr)) minmax(175px,1.15fr);gap:8px;align-items:end;padding:10px 12px}
.smartisp-shell .compact-filter-grid .form-group{min-width:0;margin:0}
.smartisp-shell .compact-filter-grid label{display:block;margin:0 0 3px;font-size:10px;line-height:1.2;color:var(--text-muted);white-space:nowrap}
.smartisp-shell .compact-filter-grid .form-control{width:100%;min-width:0;margin:0}
.smartisp-shell .compact-filter-actions{display:flex;gap:6px;align-items:center;align-self:end;min-width:0}
.smartisp-shell .compact-filter-actions .btn{min-height:34px;white-space:nowrap;margin:0}
.smartisp-shell .compact-filter-toolbar{display:grid;gap:7px;align-items:end;min-width:0}
.smartisp-shell .compact-filter-toolbar>*{min-width:0;margin:0}
.smartisp-shell .billing-management{gap:12px}
.smartisp-shell .billing-filter-controls{grid-template-columns:minmax(145px,.85fr) repeat(2,minmax(140px,.8fr)) auto;flex:1 1 620px}
.smartisp-shell .billing-filter-controls .btn{min-height:36px;white-space:nowrap}
.smartisp-shell .billing-filter-actions .btn{min-height:36px;padding-inline:11px}
.smartisp-shell .billing-summary-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
.smartisp-shell .billing-summary-grid .stat-card{min-height:78px;padding:11px 13px!important}
.smartisp-shell .billing-summary-grid .stat-icon{width:38px!important;height:38px!important;flex-basis:38px}
.smartisp-shell .billing-summary-grid .stat-info h3{font-size:18px!important;margin-bottom:2px}
.smartisp-shell .billing-table-card .table{min-width:880px}
.smartisp-shell .reports-management{gap:12px}
.smartisp-shell .reports-management .report-filter{padding:0;margin:0}
.smartisp-shell .reports-management .report-nav{margin:0}
.smartisp-shell .reports-management .management-table-card .table{min-width:760px}
.smartisp-shell .reports-management .management-pagination{padding:9px 12px}
.smartisp-shell .sms-report-card .card-header{padding:10px 12px}
.smartisp-shell .sms-report-filters{grid-template-columns:repeat(3,minmax(120px,.75fr)) minmax(180px,1.25fr) auto}
.smartisp-shell .sms-report-filters .btn{height:36px;white-space:nowrap}
.smartisp-shell .sms-report-card .management-table-body{padding:0!important}
.smartisp-shell .sms-report-card table{min-width:920px}
.smartisp-shell .hotspot-management{gap:12px}
.smartisp-shell .management-control-body{padding:12px 14px!important}
.smartisp-shell .hotspot-primary-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.smartisp-shell .hotspot-router-search{display:flex;align-items:center;gap:8px;flex:1 1 520px;min-width:0;flex-wrap:wrap}
.smartisp-shell .hotspot-router-search>div{flex:0 1 280px;min-width:210px}
.smartisp-shell .hotspot-router-search .form-control{width:100%!important;max-width:240px!important;margin:0!important}
.smartisp-shell .hotspot-primary-actions{display:flex;justify-content:flex-end;gap:8px;flex:0 1 auto}
.smartisp-shell .hotspot-primary-actions>div{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.smartisp-shell .management-tabs{display:flex!important;gap:4px!important;margin:0!important;padding:5px!important;border:1px solid var(--border)!important;border-radius:10px!important;background:var(--surface-soft)!important;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;flex-wrap:nowrap!important}
.smartisp-shell .management-tabs .btn{flex:0 0 auto;white-space:nowrap;margin:0;min-height:34px}
.smartisp-shell .hotspot-summary-grid{grid-template-columns:repeat(6,minmax(115px,1fr));gap:8px;margin-bottom:12px}
.smartisp-shell .hotspot-summary-card{padding:10px 12px;border-color:var(--border);background:var(--surface-raised);border-radius:9px}
.smartisp-shell .hotspot-summary-card small{margin-bottom:2px;font-size:10px}
.smartisp-shell .hotspot-summary-card strong{font-size:17px}
.smartisp-shell .hotspot-filter-panel{margin:0 0 12px!important}
.smartisp-shell .hotspot-filter-grid{display:grid!important;grid-template-columns:repeat(5,minmax(125px,1fr)) auto!important;gap:8px!important;padding:10px 12px!important;align-items:center}
.smartisp-shell .hotspot-filter-grid>*{min-width:0;margin:0!important}
.smartisp-shell .hotspot-filter-grid .btn{white-space:nowrap}
.smartisp-shell .hotspot-batch-toolbar{display:contents;margin:0;padding:0;border:0;background:transparent}
.smartisp-shell .hotspot-batch-toolbar.hidden{display:none}
.smartisp-shell .hotspot-batch-toolbar .form-control{width:auto!important;min-width:190px;max-width:240px!important;margin:0!important}
.smartisp-shell .hotspot-batch-toolbar .btn{min-height:34px;padding:6px 9px;white-space:nowrap}
.smartisp-shell .hotspot-users-table{min-width:0!important;table-layout:auto}
.smartisp-shell .hotspot-comment{max-width:180px}

@media(max-width:1199px){
  .smartisp-shell .management-filter-controls{grid-template-columns:minmax(210px,1.45fr) repeat(2,minmax(135px,1fr));flex-basis:100%}
  .smartisp-shell .management-filter-actions{width:100%}
  .smartisp-shell .billing-filter-controls{grid-template-columns:minmax(150px,1fr) repeat(2,minmax(140px,1fr)) auto}
  .smartisp-shell .billing-filter-actions{width:100%}
  .smartisp-shell .compact-filter-grid{grid-template-columns:repeat(3,minmax(140px,1fr))}
  .smartisp-shell .sms-report-filters{grid-template-columns:repeat(4,minmax(125px,1fr))}
  .smartisp-shell .hotspot-summary-grid{grid-template-columns:repeat(3,minmax(130px,1fr))}
  .smartisp-shell .hotspot-filter-grid{grid-template-columns:repeat(3,minmax(140px,1fr))!important}
  .smartisp-shell .hotspot-primary-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .smartisp-shell .hotspot-router-search{grid-column:1/-1}
  .smartisp-shell .hotspot-batch-toolbar{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
  .smartisp-shell .hotspot-batch-toolbar.hidden{display:none}
  .smartisp-shell .hotspot-batch-toolbar .form-control{flex:1 1 220px;max-width:none!important}
}
@media(max-width:767px){
  .smartisp-shell .management-filter-layout{padding:10px!important}
  .smartisp-shell .management-filter-controls{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;flex-basis:auto}
  .smartisp-shell .management-filter-controls>:first-child{grid-column:1/-1}
  .smartisp-shell .management-filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .smartisp-shell .management-filter-actions .btn{width:100%;justify-content:center}
  .smartisp-shell .management-table-body{padding:0 8px 8px!important}
  .smartisp-shell .management-pagination{align-items:stretch}
  .smartisp-shell .billing-filter-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
  .smartisp-shell .billing-filter-controls>:first-child{grid-column:1/-1}
  .smartisp-shell .billing-filter-controls .btn{width:100%;justify-content:center}
  .smartisp-shell .billing-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .smartisp-shell .compact-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .smartisp-shell .compact-filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:1/-1;width:100%}
  .smartisp-shell .compact-filter-actions .btn{width:100%;justify-content:center}
  .smartisp-shell .sms-report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .smartisp-shell .sms-report-filters .btn{width:100%;justify-content:center}
  .smartisp-shell .hotspot-router-search{display:grid;grid-template-columns:1fr;width:100%;flex-basis:100%}
  .smartisp-shell .hotspot-primary-toolbar{grid-template-columns:1fr}
  .smartisp-shell .hotspot-router-search{grid-column:auto}
  .smartisp-shell .hotspot-router-search>div{display:grid!important;grid-template-columns:auto minmax(0,1fr);min-width:0}
  .smartisp-shell .hotspot-router-search .form-control{max-width:none!important}
  .smartisp-shell .hotspot-primary-actions,.smartisp-shell .hotspot-primary-actions .btn{width:100%}
  .smartisp-shell .hotspot-primary-actions>div{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .smartisp-shell .hotspot-primary-actions .btn{justify-content:center}
  .smartisp-shell .hotspot-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .smartisp-shell .hotspot-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .smartisp-shell .hotspot-filter-grid .btn{width:100%}
  .smartisp-shell .hotspot-batch-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .smartisp-shell .hotspot-batch-toolbar .form-control{grid-column:1/-1;width:100%!important;min-width:0}
  .smartisp-shell .hotspot-batch-toolbar .btn{width:100%;justify-content:center}
}
@media(max-width:479px){
  .smartisp-shell .management-filter-controls,.smartisp-shell .management-filter-actions,.smartisp-shell .compact-filter-grid,.smartisp-shell .compact-filter-actions,.smartisp-shell .compact-filter-toolbar,.smartisp-shell .hotspot-filter-grid{grid-template-columns:1fr!important}
  .smartisp-shell .management-filter-controls>:first-child{grid-column:auto}
  .smartisp-shell .billing-summary-grid{grid-template-columns:1fr!important}
  .smartisp-shell .hotspot-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .smartisp-shell .management-pagination>div{width:100%;justify-content:center;text-align:center}
  .smartisp-shell .hotspot-primary-actions>div{grid-template-columns:1fr}
  .smartisp-shell .hotspot-batch-toolbar{grid-template-columns:1fr}
  .smartisp-shell .hotspot-batch-toolbar .form-control{grid-column:auto}
}

/* Phone top bar (UX-5, up to 600px): the page title shrinks (with an ellipsis) instead of being covered; Refresh and
 * the light/dark switch move into the profile menu; the language switch offers only the other language. */
.smartisp-shell .profile-menu .profile-menu-phone-only{display:none}
@media(max-width:600px){
  .smartisp-shell .topbar-left{flex:1 1 auto;min-width:0}
  .smartisp-shell .topbar-right{flex:0 0 auto;margin-left:6px}
  .smartisp-shell #topbar-refresh,.smartisp-shell #theme-toggle{display:none!important}
  .smartisp-shell .profile-menu .profile-menu-phone-only{display:flex}
}

/* Notification center (header bell): grouped alerts and notifications, readable sizes, priority colour on the edge. */
.smartisp-shell .notification-popover{width:min(420px,calc(100vw - 20px));max-height:min(580px,calc(100vh - 90px));display:flex;flex-direction:column;overflow:hidden}
.smartisp-shell .notification-popover-head{padding:13px 15px;align-items:flex-start}
.smartisp-shell .notification-popover-head strong{font-size:14px}
.smartisp-shell .notification-popover-sub{display:block;margin-top:2px;font-size:12px;color:var(--text-muted)}
.smartisp-shell .notification-popover-head button{font-size:12px;padding:4px 2px;white-space:nowrap}
.smartisp-shell .notification-list{padding:4px 10px 10px;overflow:auto;flex:1 1 auto}
.smartisp-shell .notification-empty{padding:28px 10px;text-align:center;font-size:13px}
.smartisp-shell .notification-footer-link{display:block;padding:11px 15px;border-top:1px solid var(--border);text-align:center;font-size:13px;font-weight:600;color:var(--primary);text-decoration:none;background:var(--surface-raised)}
.smartisp-shell .notification-footer-link:hover,.smartisp-shell .notification-footer-link:focus-visible{background:var(--surface-hover)}
.smartisp-shell .notification-count.has-critical{animation:notice-pulse 1.8s ease-out 2}
@keyframes notice-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--danger) 55%,transparent)}100%{box-shadow:0 0 0 9px transparent}}
@media (prefers-reduced-motion:reduce){.smartisp-shell .notification-count.has-critical{animation:none}}
.notice-group{margin-top:10px}
.notice-group-title{display:flex;align-items:center;gap:7px;margin:0 2px 6px;font-size:12px;font-weight:700;color:var(--text-secondary,var(--text-muted))}
.notice-group-title i{width:14px;text-align:center;color:var(--text-muted)}
.notice-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.notice-entry{--notice:var(--info);position:relative;display:flex;align-items:center;gap:8px;padding:0 8px 0 0;border:1px solid var(--border);border-left:3px solid var(--notice);border-radius:10px;background:var(--surface-raised,var(--surface))}
.notice-entry.is-critical{--notice:var(--danger)}.notice-entry.is-warning{--notice:var(--warning)}.notice-entry.is-info{--notice:var(--info)}
.notice-entry.is-unread{background:color-mix(in srgb,var(--primary) 6%,var(--surface-raised,var(--surface)))}
.notice-entry-main{flex:1 1 auto;min-width:0;display:flex;align-items:flex-start;gap:10px;padding:10px 4px 10px 10px;border:0;background:transparent;color:inherit;font:inherit;text-align:left;text-decoration:none;cursor:pointer;border-radius:9px}
.notice-entry-main:hover .notice-entry-body strong{color:var(--primary)}
.notice-entry-main:focus-visible,.notice-entry-action:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.notice-entry-marker{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;padding:0 6px;border-radius:8px;background:color-mix(in srgb,var(--notice) 14%,transparent);color:var(--notice);font-size:14px;font-weight:700}
.notice-entry-marker:empty{min-width:10px;width:10px;height:10px;margin-top:4px;padding:0;border-radius:50%;background:var(--notice)}
.notice-entry-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.notice-entry-body strong{font-size:13px;line-height:1.3;color:var(--text-primary)}
.notice-entry-text{font-size:12px;line-height:1.4;color:var(--text-muted);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.notice-entry-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:11px;color:var(--text-muted)}
.notice-priority{padding:1px 7px;border-radius:999px;font-weight:600;background:color-mix(in srgb,var(--notice) 13%,transparent);color:var(--notice)}
.notice-priority.is-critical{--notice:var(--danger)}.notice-priority.is-warning{--notice:var(--warning)}.notice-priority.is-info{--notice:var(--info)}
.notice-unread-label{padding:1px 7px;border-radius:999px;background:var(--primary);color:#fff;font-weight:600}
.notice-entry-action{flex:none;padding:6px 11px;border:1px solid var(--border);border-radius:8px;font-size:12px;font-weight:600;color:var(--primary);text-decoration:none;background:var(--surface)}
.notice-entry-action:hover{background:var(--surface-hover);border-color:var(--primary)}
/* style.css hides <span>s in header links on phones (icon-only header buttons); entries inside the bell are not header buttons. */
.smartisp-shell .topbar-right .notification-popover a .notice-entry-body,.smartisp-shell .topbar-right .notification-popover a .notice-entry-meta{display:flex!important}
.smartisp-shell .topbar-right .notification-popover a .notice-entry-marker{display:inline-flex!important}
.smartisp-shell .topbar-right .notification-popover a .notice-entry-text{display:-webkit-box!important}
.smartisp-shell .topbar-right .notification-popover a :is(.notice-priority,.notice-unread-label){display:inline-block!important}
