/**
 * Templet LINNMS 2026
 */

:root {font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
  --bg-page: #0c0f14;
  --bg-input: #161a21;
  --bg-hover: #222833;
  --bg-main: rgba(37, 42, 51, 0.459);
  --bg-card: rgba(5, 8, 14, 0.28);
  --border-main: 1px solid rgba(73, 87, 109, 0.39);
  --surface: rgba(35, 40, 48, 0.877);
  --surface-raised: rgba(43, 51, 66, 0.863);
  --surface-deep: rgb(21, 25, 32);
  --surface-input: rgba(22, 26, 33, 0.637);
  --shade-soft: rgba(127, 127, 127, 0.1);
  --bg-surface: rgb(1 61 96 / 23%);
  --bg-line: #484d55;
  --bg-line-soft: #262b35;
  --border-hover: #495c77;
  --border-light: rgba(56, 56, 56, 0.267);
  --text-primary: #eef1f7;
  --text-secondary: #d0d5e1;
  --text-muted: #a3aab8;
  --text-faint: #7d8593;
  --input-readonly: #35393fc4;
  --primary: #3569d1;
  --cyan: #4fd1c5;
  --green: #57c785;
  --red: #ea3941;
  --red-soft: rgb(214, 11, 21);
  --amber: #e5a95a;
  --orange: #ff9a52;
  --yellow: #f0c75e;
  --tint-primary: rgba(91, 141, 239, 0.08);
  --tint-blue: rgba(107, 147, 255, 0.1);
  --tint-cyan: rgba(79, 209, 197, 0.15);
  --glow-primary: rgba(91, 141, 239, 0.28);
  --focus-border: rgba(54, 89, 247, 0.58);
  --focus-ring:
    0 0 0 2px rgba(103, 89, 226, 0.1), inset 0 0 0 1px rgba(91, 140, 239, 0.08);
  --font-small: clamp(0.57rem, 0.6rem + 0.14vw, 0.7rem);
  --font-size-xs: clamp(0.75rem, 0.72rem + 0.14vw, 0.8125rem);
  --font-size-sm: clamp(0.8125rem, 0.7768rem + 0.1786vw, 0.9375rem);
  --font-size-md: clamp(0.875rem, 0.8393rem + 0.1786vw, 1rem);
  --font-size-lg: clamp(1rem, 0.9464rem + 0.2679vw, 1.1875rem);
  --font-size-heading: clamp(1.125rem, 1.0357rem + 0.4464vw, 1.4375rem);
  --font-size-device-title: clamp(1.125rem, 1.0893rem + 0.1786vw, 1.25rem);
  --font-size-title: clamp(1.25rem, 1.0833rem + 0.83vw, 1.75rem);
  --font-size-display: clamp(1.375rem, 1.2083rem + 0.83vw, 1.875rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --onu-fluid-gap: clamp(0.375rem, 0.2917rem + 0.42vw, 0.625rem);
  --app-bar-height: 56px;
  --footer-height: 34px;
  --modal-gap: clamp(16px, 3vh, 32px);
  --modal-height: calc(100dvh - var(--footer-height) - var(--modal-gap) * 2 - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.2s;
}


*{box-sizing:border-box;margin:0;padding:0;}body{color:var(--text-primary);background:radial-gradient(circle at 32% 18%,rgba(91,140,239,.055),transparent 28%),radial-gradient(circle at 82% 72%,rgba(79,209,197,.04),transparent 30%),var(--bg-page);line-height:1.55;position:relative;min-height:100vh;padding-bottom:var(--footer-height);font-size:var(--font-size-md);}body::before,body::after{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;}body::before{background:radial-gradient(720px 500px at 10% -8%,rgba(91,140,239,.2),transparent 62%),radial-gradient(620px 460px at 94% 10%,var(--tint-cyan),transparent 62%),radial-gradient(540px 420px at 38% 52%,rgba(107,147,255,.09),transparent 66%),radial-gradient(680px 500px at 72% 104%,rgba(87,199,133,.08),transparent 62%);background-repeat:no-repeat;}body::after{z-index:-1;background-image:radial-gradient(circle at 12% 18%,rgba(79,209,197,.9) 0 2px,rgba(79,209,197,.22) 3px,transparent 11px),radial-gradient(circle at 29% 42%,rgba(107,147,255,.86) 0 2px,rgba(107,147,255,.2) 3px,transparent 11px),radial-gradient(circle at 51% 24%,rgba(79,209,197,.85) 0 2px,rgba(79,209,197,.18) 3px,transparent 11px),radial-gradient(circle at 73% 48%,rgba(107,147,255,.82) 0 2px,rgba(107,147,255,.18) 3px,transparent 11px),radial-gradient(circle at 88% 20%,rgba(79,209,197,.86) 0 2px,rgba(79,209,197,.2) 3px,transparent 11px),linear-gradient(28deg,transparent 0 17%,rgba(79,209,197,.1) 17.1% 17.35%,transparent 17.5% 100%),linear-gradient(148deg,transparent 0 37%,var(--tint-blue) 37.1% 37.35%,transparent 37.5% 100%),linear-gradient(90deg,transparent 0 19.8%,var(--tint-primary) 20% 20.15%,transparent 20.3% 49.8%,rgba(79,209,197,.065) 50% 50.15%,transparent 50.3% 79.8%,var(--tint-primary) 80% 80.15%,transparent 80.3%),linear-gradient(0deg,transparent 0 24.8%,rgba(91,141,239,.07) 25% 25.15%,transparent 25.3% 59.8%,rgba(79,209,197,.065) 60% 60.15%,transparent 60.3%),repeating-linear-gradient(135deg,transparent 0 92px,rgba(107,147,255,.065) 92px 93px,transparent 93px 184px),repeating-linear-gradient(45deg,transparent 0 138px,rgba(79,209,197,.055) 138px 139px,transparent 139px 276px);background-size:auto;mask-image:radial-gradient(ellipse at 50% 10%,#000 0%,rgba(0,0,0,.95) 70%,rgba(0,0,0,.55) 100%);-webkit-mask-image:radial-gradient(ellipse at 50% 10%,#000 0%,rgba(0,0,0,.95) 70%,rgba(0,0,0,.55) 100%);opacity:.72;}html{scrollbar-width:thin;scrollbar-color:rgba(92,119,135,.65) transparent;}*{scrollbar-width:thin;scrollbar-color:rgba(92,119,135,.65) transparent;}*::-webkit-scrollbar{width:5px;height:5px;}*::-webkit-scrollbar-track{background:transparent;}*::-webkit-scrollbar-thumb{background:rgba(70,158,216,.65);border-radius:999px;}*::-webkit-scrollbar-thumb:hover{background:rgba(79,209,197,.8);}*::-webkit-scrollbar-corner{background:transparent;}a{text-decoration:none;color:inherit;}h2{font-size:var(--font-size-heading);}select{background-color:var(--shade-soft)!important;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid transparent;border-radius:10px;color:var(--text-primary);font-weight:600;transition:none!important;transition-delay:0s!important;}input,select,textarea,button{color-scheme:dark;}input::placeholder,textarea::placeholder{color:var(--text-muted);opacity:1;font-size:var(--font-size-xs);}select option,select optgroup{background-color:var(--surface-input);}input[type="number"]{-moz-appearance:textfield;appearance:textfield;}input[type="number"]::-webkit-outer-spin-button,input[type="number"]::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0;}code,.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;}table{width:100%;border-collapse:collapse;font-size:var(--font-size-sm);}th{height:37px;text-align:left;padding:0 14px;border-top:1px solid rgba(91,141,239,.22);border-bottom:1px solid rgba(91,141,239,.34);background:rgba(91,141,239,.1);color:var(--primary);font-weight:700;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;}td{border-bottom:1px solid var(--bg-line-soft);vertical-align:middle;padding:5px 12px;white-space:nowrap;font-size:var(--font-size-sm);cursor:pointer;}tbody tr{padding:2px;}tbody tr:hover{background:var(--bg-hover);}td small{display:block;margin-top:4px;}

.select-loading-shell {
  position: relative;
  display: inline-flex;
  max-width: 100%;
}
.select-loading-shell > select {
  width: 100%;
  padding-right: 52px !important;
}
.select-loading-shell::after {
  content: "\f130";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 30px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  border: 0;
  border-radius: 0;
  color: var(--text-muted);
  font-family: bootstrap-icons !important;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
}
.select-loading-shell.is-loading::after {
  opacity: 1;
  animation: select-loading-spin 0.65s linear infinite;
}
.select-loading-shell.is-loading > select {
  cursor: progress;
}
@keyframes select-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
.button.is-loading > i,
button.is-loading > i {
  display: inline-block;
  animation: select-loading-spin 0.7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .button.is-loading > i,
  button.is-loading > i {
    animation: none;
  }
}

.label {
  font-size: var(--font-size-md);
  font-weight: 600;
}
.value {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: var(--surface-deep);
  border-right: 1px solid var(--bg-line);
  display: flex;
  flex-direction: column;
  z-index: 30;
  padding-bottom: var(--footer-height);
}
.brand {
  height: var(--app-bar-height);
  min-height: var(--app-bar-height);
  max-height: var(--app-bar-height);
  flex: 0 0 var(--app-bar-height);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0 0.6875rem;
  border-bottom: 1px solid var(--bg-line);
}
.brand-icon {
  flex: 0 0 auto;
  display: inline-block;
  line-height: 1;
  font-size: clamp(1.6875rem, 1.6042rem + 0.42vw, 1.9375rem);
  background-image: linear-gradient( 110deg, #bef264, #34d399, #2dd4bf, #a78bfa, #bef264);
  background-size: 300% 200%;
  background-position: 0 40%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 7px rgba(52, 211, 153, 0.3));
}
.brand-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  line-height: 1.2;
}
.brand-copy strong {
  font-size: var(--font-size-heading);
  letter-spacing: -0.02em;
  background: linear-gradient(  100deg,  var(--amber),  var(--cyan),  var(--primary));
  background-clip: text;
  color: transparent;
}
.brand-copy small{
  color: var(--text-faint);
  margin-top: 3px;
  font-size: var(--font-size-xs);
}
.brandText {
  background-image: linear-gradient(  100deg,  var(--amber),  var(--cyan),  var(--primary),  #ec7bb6);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sidebar-scroll {
  overflow: auto;
  padding: 8px 7px 16px;
}

.nav-label {
  padding: 14px 7px 6px;
  color: var(--text-faint);
  font-size: var(--font-small);
}
.sidebar nav {
  display: grid;
  gap: 2px;
}
.sidebar nav a {
  border-left: 3px solid transparent;
  transition:
    background-color 0.25s ease,
    padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.25s ease,
    box-shadow 0.3s ease;
}
.sidebar nav a,
.nav-disabled {
  min-height: 35px;
  padding: 0 0 3px 17px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.sidebar nav a i,
.nav-disabled i {
  width: 16px;
  text-align: center;
  font-style: normal;
  font-size: 16px;
}
.sidebar-nav-label {
  position: relative;
  display: inline-block;
}
.sidebar-count {
  position: absolute;
  top: -3px;
  left: calc(100% + 5px);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: #b30303;
  font-size: clamp(0.5rem, 0.72rem + 0.14vw, 0.6rem) !important;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sidebar nav a:hover {
  padding-left: 11px;
  border: 0;
}
.sidebar nav a.active {
  color: #e0e7ff;
  background: var(--surface-raised);
  border-left: 3px solid #818cf8;
  box-shadow: inset 12px 0 16px -12px rgba(129, 140, 248, 0.45),-2px 0 10px -4px rgba(129, 140, 248, 0.25);
}
.sidebar nav a.active i {
  color: #a5b4fc;
  filter: none;
}
.mobile-menu-button,
.sidebar-backdrop {
  display: none;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.nav-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
}
.nav-disabled em {
  margin-left: auto;
  padding: 2px 5px;
  border: 1px solid rgba(229, 169, 90, 0.28);
  border-radius: 999px;
  background: rgba(229, 169, 90, 0.08);
  font-size: var(--font-size-xs);
  color: var(--amber);
  font-style: normal;
  white-space: nowrap;
}
.nav-access-disabled {
  opacity: 0.62;
}
.nav-lock-status,
.nav-lock-status i {
  color: var(--green);
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}
.container {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: var(--app-bar-height);
  min-height: var(--app-bar-height);
  max-height: var(--app-bar-height);
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface-deep);
  border-bottom: 1px solid var(--bg-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 10px 28px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
}
.account-idle-badge {
  border: 1px solid var(--bg-line);
}
.user-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.user-chip i {
  font-size: 24px;
  line-height: 1;
}
.account-menu {
  position: relative;
}
.topbar-profile-link {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px;
  cursor: pointer;
  font: inherit;
}
.topbar-profile-link:hover,
.topbar-profile-link[aria-expanded="true"] {
  border-color: var(--bg-hover);
}
.account-dropdown {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  padding: 7px;
  border: 1px solid var(--bg-line);
  border-radius: 12px;
  background: var(--bg-input);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
}
.account-dropdown[hidden] {
  display: none;
}
.account-dropdown-identity {
  display: grid;
  gap: 2px;
  padding: 8px 10px 10px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--bg-line);
  overflow-wrap: anywhere;
}
.account-dropdown-identity strong {
  font-size: var(--font-size-sm);
}
.account-dropdown-item {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.25s ease;
}
.account-dropdown-item:hover,
.account-dropdown-item:focus-visible {
  outline: none;
  background: var(--bg-hover);
  color: var(--text-primary);
  padding-left: 13px;
}
.account-dropdown-item i {
  width: 18px;
  font-size: 16px;
  text-align: center;
}
.account-dropdown-form {
  margin: 0;
}
.account-dropdown-logout {
  color: #ff9bb2;
}
.content {
  padding: 1.5rem 1.375rem calc(var(--footer-height) + var(--footer-height));
  max-width: 1600px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.125rem;
}
.page-head h1 {
  font-size: var(--font-size-title);
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--primary);
  text-transform: uppercase;
}
.page-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rule {
  height: 1px;
  background: var(--bg-line);
  margin: 18px 0 21px;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.button {
  border: 1px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-size-sm);
  min-width: 0;
  padding: clamp(5px, 0.85vw, 8px) clamp(8px, 1.2vw, 13px);
  min-height: 38px;
  gap: clamp(4px, 0.6vw, 6px);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.button .btn-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.button:active {
  transform: translateY(1px) scale(0.98);
}
.button.primary {
  background: var(--primary);
  color: var(--text-primary);
}
.button.primary:hover {
  box-shadow:
    0 6px 22px rgba(91, 141, 239, 0.3),
    0 0 0 3px rgba(91, 141, 239, 0.1);
  transform: translateY(-1px);
}
.button.secondary {
  background: var(--bg-input);
  border-color: var(--bg-line);
}
.button.secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px var(--tint-primary);
}
.button.button-danger {
  background: rgba(234, 57, 65, 0.16);
  border-color: rgba(234, 57, 65, 0.38);
  color: #ff9bb2;
}
.button.button-danger:hover {
  background: rgba(234, 57, 65, 0.24);
  border-color: rgba(234, 57, 65, 0.55);
  box-shadow:
    0 6px 18px rgba(255, 109, 141, 0.28),
    0 0 0 3px rgba(255, 109, 141, 0.08);
  transform: translateY(-1px);
}
.button.small {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
}


.inline-form {
  display: inline-flex;
  margin: 0;
}
.head-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  position: relative;
  z-index: 2;
}
.head-actions-row > div {
  min-width: 0;
}
.head-actions-row > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-left: auto;
}
.stats {
  display: grid;
  gap: 14px;
  margin-bottom: 15px;
}
.stats.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.summary-stats {
  gap: 12px;
}
.summary-stats .stat-card {
  min-height: 82px;
  padding: 15px 16px 13px;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  cursor: pointer;
}

.summary-stats .stat-card > span {
  margin-bottom: 9px;
}
.summary-stats .stat-card.accent-teal {
  background: linear-gradient(180deg, var(--tint-cyan), #1a1f27);
}
@media (max-width: 1299px) {
  .summary-stats {
    gap: 0.4375rem;
  }
  .summary-stats .stat-card {
    min-height: 60px;
    padding: 0.5875rem 0.525rem 0.4625rem;
    border-radius: 10px;
  }
  .summary-stats .stat-card > span {
    margin-bottom: 0.4375rem;
    letter-spacing: 0;
  }
}
@media (max-width: 799px) {
  .summary-stats .stat-card {
    min-height: 70px;
    padding: 0.6875rem 0.625rem 0.5625rem;
  }
}
@media (max-width: 620px) {
  .summary-stats .stat-card {
    min-height: 60px;
    padding: 0.5875rem 0.525rem 0.4625rem;
  }
}
.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    var(--surface-raised),
    rgba(26, 31, 39, 0.8)
  );
  border: 1px solid var(--bg-line);
  border-radius: 12px;
  min-height: 89px;
  min-width: 0;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: transparent;
  box-shadow: 0 0 10px currentColor;
}
.accent-blue::before{background:var(--primary);}.accent-green::before{background:var(--green);}.accent-teal::before{background:var(--cyan);}.accent-amber::before{background:var(--amber);}.accent-lost::before{background:var(--orange);}.accent-pink::before{background:#ec7bb6;}.accent-down::before{background:#f0c75e;}.accent-red::before{background:var(--red);}.stat-card.accent-down{border-color:rgba(240,199,94,.32);}.stat-card.accent-lost{border-color:rgba(255,154,82,.438);}.stat-card.accent-blue{border-color:var(--glow-primary);}.stat-card.accent-green{border-color:rgba(87,199,133,.28);}.stat-card.accent-teal{border-color:rgba(79,209,197,.3);}.stat-card.accent-pink{border-color:rgba(236,123,182,.3);}.stat-card.accent-pink>span{color:#ec7bb6;}.stat-card.accent-red{border-color:rgba(240,113,120,.3);}
.stat-card > span {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.stat-card > span,
.stat-card > strong,
.stat-card > small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat-card > strong {
  font-size: var(--font-size-md);
  font-weight: 700;
  margin-top: auto;
}
.dashboard-summary-cards .stat-card > strong {
  font-size: var(--font-size-lg);
}
.stat-card > small {
  display: block;
  margin-top: 8px;
  font-size: var(--font-size-xs);
}
.panel,
.table-panel,
.config-card {
  background: var(--bg-main);
  border: 1px solid rgba(73, 87, 109, 0.39);
  border-radius: 13px;
  box-shadow:
    inset 0 1px 0 var(--border-light),
    inset 1px 0 0 rgba(255, 255, 255, 0.02),
    0 14px 34px rgba(0, 0, 0, 0.18);
}
.panel {
  padding: 20px;
  margin-bottom: 15px;
}
.empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  margin: 12px 0 20px;
  padding: 20px;
  color: var(--text-muted);
  text-align: center;
}
.table-panel {
  margin-bottom: 15px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}
.panel-heading h2 {
  margin: 0;
}
.panel-heading > .tittle-subtitle {
  flex: 1 1 auto;
  min-width: 0;
}
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.detail-list > div {
  background: var(--surface-input);
  border: 1px solid var(--bg-line-soft);
  border-radius: 10px;
  padding: 12px;
}
.detail-list > div > span:first-child {
  display: block;
  margin-top: 8px;
  margin-bottom: 20px;
}
.detail-list strong,
.detail-list .detail-value {
  display: block;
  overflow-wrap: anywhere;
}
.notice {
  margin-bottom: 7px;
  border: 1px dashed #cf5e0d44;
  border-radius: 10px;
  background: #ce723031;
  color: var(--orange);
  padding: 11px 12px;
  line-height: 1.55;
  font-size: var(--font-size-xs);
}
.table-toolbar {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg-line);
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.table-toolbar > h2 {
  margin: 0;
  line-height: 1.35;
}
.table-search {
  position: relative;
  height: 38px;
  flex: 1;
  border: 1px solid var(--bg-line);
  border-radius: 11px;
  background: var(--surface-input);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}
.table-search:focus-within {
  border-color: var(--focus-border);
  box-shadow: var(--focus-ring);
}
.table-search > span {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 17px;
  font-weight: 700;
}
.table-search input {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  padding: 0 11px 0 36px;
  box-sizing: border-box;
  border-radius: inherit;
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
}
.table-toolbar select {
  width: auto;
  min-width: 150px;
  height: 38px;
  min-height: 38px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 600;
  padding: 9px 12px;
  outline: none;
}
.table-toolbar select:hover {
  border-color: var(--bg-line);
  background-color: rgba(127, 127, 127, 0.16) !important;
}
.table-toolbar select:focus {
  border-color: var(--focus-border);
  box-shadow: var(--focus-ring);
}
.table-filter-toolbar {
  flex-wrap: wrap;
  min-width: 0;
}
.table-filter-toolbar .table-search {
  min-width: 150px;
  flex: 1 1 auto;
  flex-basis: auto;
}
.table-toolbar > .left,
.table-toolbar > .right {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
.table-toolbar > .left {
  flex: 1 1 auto;
}
.table-toolbar > .left > h2 {
  flex: 0 0 auto;
  margin: 0;
  line-height: 1.35;
}
.table-toolbar > .left > .table-search {
  width: 100%;
}
.table-toolbar > .right {
  flex: 0 1 auto;
  justify-content: flex-end;
  margin-left: auto;
}
.table-filter-toolbar > .right > select,
.table-filter-toolbar > .right > .select,
.table-filter-toolbar > .right > .select-loading-shell {
  min-width: 150px;
  max-width: 220px;
  flex: 0 1 auto;
  height: 38px;
  min-height: 38px;
}
.table-filter-toolbar > .right select {
  text-align: left;
  text-align-last: left;
}
.table-filter-toolbar > .right .select-button {
  position: static;
  justify-content: flex-start;
  text-align: left;
}
.table-filter-toolbar > .right .select-value {
  padding-inline: 0;
  text-align: left;
}
.table-filter-toolbar > .right .select-chevron {
  position: static;
  right: auto;
  margin-left: auto;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
}
.list-scroll-viewport {
  height: 460px;
  min-height: 460px;
  max-height: 460px;
  overflow: auto;
}
.list-scroll-viewport:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: -1px;
}



.table-footer {
  padding: 11px 14px;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  font-weight: 600;
}
.public-log-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.public-log-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 3px;
  min-width: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--bg-line-soft);
  font-size: var(--font-size-sm);
}
.public-log-entry:first-child {
  border-top: 0;
}
.public-log-entry:hover {
  background: rgba(59, 130, 246, 0.035);
}
.public-log-entry[hidden] {
  display: none !important;
}
.public-log-message {
  display: flex;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.app-log-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 1px 7px;
  border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, currentColor 16%, transparent);
  font-size: var(--font-size-xs);
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.public-log-message .public-log-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  white-space: nowrap;
}
.public-log-time {
  flex: 0 0 auto;
  justify-self: start;
  margin-left: 0;
  color: var(--text-faint);
  font-size: var(--font-size-xs);
  font-weight: inherit;
  white-space: nowrap;
}
.public-log-empty {
  padding: 28px 16px;
  color: var(--text-muted);
  text-align: center;
}
.public-log-message.is-expanded {
  align-items: flex-start;
}
.public-log-message.is-expanded .public-log-text {
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.public-log-toggle {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 24px;
  cursor: pointer;
}
.public-log-message.is-expandable,
.public-log-message.is-expandable .public-log-text {
  cursor: pointer;
}
.public-log-toggle i {
  display: inline-block;
  transition: transform 160ms ease;
}
.public-log-message.is-expanded .public-log-toggle i {
  transform: rotate(180deg);
}
.public-log-toggle:hover,
.public-log-toggle:focus-visible {
  color: var(--text-primary);
  background: var(--shade-soft);
}
.public-log-toggle[hidden] {
  display: none;
}
.empty-cell {
  text-align: center;
  padding: 35px;
  color: var(--text-faint);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: var(--font-size-xs);
  white-space: nowrap;
}
.signal {
  font-family: ui-monospace, monospace;
  font-weight: 600;
  white-space: nowrap;
}
.method {
  font-family: ui-monospace, monospace;
  color: #8ea8ff;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row-actions form {
  margin: 0;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.icon-button > i {
  font-size: 1.05em;
  line-height: 1;
}
.icon-button:hover {
  background: var(--bg-hover);
  border-color: var(--bg-line);
  color: var(--text-primary);
  transform: translateY(-1px);
  text-decoration: none;
}
.icon-button:focus-visible {
  outline: 0;
  border-color: var(--focus-border);
  box-shadow: var(--focus-ring);
}
.modal-close-button {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--bg-line);
  background: var(--bg-input);
  color: var(--red);
}
.modal-close-button:hover,
.modal-close-button:focus-visible {
  border-color: var(--red);
  background: rgba(234, 57, 65, 0.12);
  color: var(--red);
}
.device-table-actions .icon-button {
  color: var(--text-secondary);
}
.device-table-actions .icon-button > i {
  -webkit-text-stroke: 0.45px currentColor;
  paint-order: stroke fill;
}
.device-table-actions .icon-button.scan {
  color: var(--primary);
  background: rgba(91, 141, 239, 0.14);
  border-color: rgba(91, 141, 239, 0.28);
}
.device-table-actions .icon-button.scan:hover,
.select-chevron:hover {
  color: #9db9f5;
  background: rgba(91, 141, 239, 0.24);
  border-color: rgba(91, 141, 239, 0.42);
}
.device-table-actions .icon-button.scan:focus-visible,
.select-chevron:focus-visible {
  border-color: rgba(91, 141, 239, 0.45);
}
.icon-button.save {
  color: var(--green);
}
.alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 14px;
  border: 1px solid #364157;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  animation: fadeUp 0.3s var(--ease) both;
}
.form-grid {
  display: grid;
  gap: 13px;
}
.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.span-2 {
  grid-column: span 2;
}
.field {
  display: block;
}
.field > span,
.field > label,
.field > legend {
  display: block;
  font-weight: 600;
  font-size: var(--font-size-md);
  margin-bottom: 5px;
}
.field
  > label:has(
    ~ :is(input, select, textarea)[required]:not(:disabled),
    ~ .select select[required]:not(:disabled),
    ~ .password-input-wrap input[required]:not(:disabled),
    ~ .input-button-group :is(input, select, textarea)[required]:not(:disabled)
  )::after {
  content: " *";
  color: var(--red);
}

.field input:not([role="switch"]),
.field select,
.field textarea {
  width: 100%;
  background: var(--surface-input);
  border: 1px solid var(--bg-line);
  border-radius: 10px;
  color: var(--text-secondary);
  padding: 10px 11px;
  outline: 0;
}

.field input:focus,.field select:focus,.field select:hover,.field select:focus,.field textarea:focus {
  border-color: var(--focus-border);
  box-shadow: var(--focus-ring);
}
.field textarea {
  min-height: 72px;
  resize: vertical;
  font: inherit;
}
.settings-number-shell,
.notification-number-shell {
  display: grid;
  grid-template-columns: 82px auto;
  align-items: center;
  gap: 8px;
}
.settings-number-shell input,
.notification-number-shell input {
  width: 82px;
  min-width: 0;
  height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--bg-line);
  border-radius: 6px;
  background: var(--surface-input);
  color: var(--text-primary);
  font: inherit;
  font-size: var(--font-size-sm);
  text-align: right;
}
.notification-number-shell input:disabled {
  background: transparent;
  color: var(--text-secondary);
  opacity: 0.8;
  -webkit-text-fill-color: var(--text-secondary);
}
.settings-number-shell input:focus,
.notification-number-shell input:focus {
  border-color: var(--focus-border);
  box-shadow: var(--focus-ring);
  outline: 0;
}
.settings-number-shell > span,
.notification-number-shell > span {
  min-width: 42px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}
.settings-number-shell input:disabled {
  color: var(--text-secondary);
  opacity: 1 !important;
  border: 0;
  background: transparent !important;
}
.settings-text-shell input,
.olt-pon-text-shell input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--bg-line);
  border-radius: 6px;
  background: var(--surface-input);
  color: var(--text-primary);
}
.settings-text-shell input:focus,
.olt-pon-text-shell input:focus {
  border-color: var(--focus-border);
  box-shadow: var(--focus-ring);
  outline: 0;
}
.field-help {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  line-height: 1.45;
}
.field-help-link {
  display: inline-block;
  margin-top: 4px;
  text-decoration: none;
  word-break: break-all;
}
.field-help-link:hover,
.field-help-link:focus-visible {
  cursor: pointer;
  transform: translateY(-2px);
}
.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.stack-form {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}
.toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.toggle-card {
  position: relative;
  min-height: 63px;
  border: 1px solid var(--bg-line);
  border-radius: 12px;
  background: var(--surface-input);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.toggle-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px var(--tint-primary);
}
.toggle-card small {
  margin-left: 6px;
  color: var(--text-faint);
  font-size:var(--font-small);
letter-spacing: -0.1px;
}
:is(.toggle-card, .settings-row) input[type="checkbox"],
:is(.toggle-card, .settings-row) input[type="checkbox"]:disabled {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}
.toggle-switch {
  display: inline-block;
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border-hover);
  background: #12151b;
  flex: 0 0 auto;
}
input.toggle-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  margin: 0;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  background: #12151b;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
  flex: 0 0 auto;
}
.toggle-switch::after,
input.toggle-switch::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  left: 2px;
  top: 2px;
  background: rgba(91, 239, 207, 0.5);
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}
input:focus-visible + .toggle-switch,
input.toggle-switch:focus-visible {
  outline: 1px solid var(--cyan);
  box-shadow: var(--focus-ring);
}
input:checked + .toggle-switch,
input.toggle-switch:checked {
  background: rgba(91, 239, 207, 0.2);
  border-color: rgba(91, 239, 207, 0.5);
  box-shadow:
    0 0 0 2px rgba(91, 239, 207, 0.12),
    0 0 20px rgba(91, 239, 207, 0.2);
}
input:checked + .toggle-switch::after,
input.toggle-switch:checked::after {
  transform: translateX(18px);
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(91, 239, 207, 0.55);
}
input.toggle-switch:disabled {
  opacity: 0.6;
  cursor: progress;
}
.alert-config {
  margin-top: 18px;
}
.config-card {
  padding: 18px;
}
.config-card .field {
  margin-bottom: 12px;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.68);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: calc(var(--modal-gap) + env(safe-area-inset-top, 0)) var(--modal-gap)
    var(--modal-gap);
  min-height: 0;
  overflow: hidden;
  animation: fadeUp 0.2s var(--ease) both;
}
.modal[hidden] {
  display: none;
}
.modal-card {
  width: min(420px, 100%);
  max-width: 100%;
  max-height: var(--modal-height);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid #364157;
  background: var(--surface-raised);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.28s var(--ease) both;
  isolation: isolate;
}
.modal-card h2 {
  margin: 0 0 16px;
}
.device-delete-dialog {
  width: min(440px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #3b4350;
  border-radius: 16px;
  background: #1b2029;
  color: var(--text-primary);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.6);
}
.device-delete-dialog::backdrop {
  background: rgba(5, 8, 14, 0.76);
}
.device-delete-dialog-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 26px 24px;
}
.device-delete-dialog-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(234, 57, 65, 0.3);
  border-radius: 12px;
  background: rgba(234, 57, 65, 0.12);
  color: #ff8187;
  font-size: 20px;
}
.device-delete-dialog h2 {
  margin: 1px 0 6px;
  font-size: 1.08rem;
  line-height: 1.35;
}
.device-delete-dialog p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.55;
}
.device-delete-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 26px;
  border-top: 1px solid var(--bg-line-soft);
  background: rgba(10, 13, 18, 0.22);
}
.device-delete-dialog-actions .button {
  min-width: 86px;
  min-height: 38px;
}
@media (max-width: 480px) {
  .device-delete-dialog-content {
    padding: 22px 20px;
  }
  .device-delete-dialog-actions {
    padding: 14px 20px;
  }
  .device-delete-dialog-actions .button {
    flex: 1;
  }
}
.app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 31;
  height: var(--footer-height);
  min-height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-top: 1px solid var(--bg-line);
  background: rgba(15, 17, 21, 0.94);
  color: var(--text-faint);
  font-size: var(--font-size-xs);
  line-height: 1.2;
  white-space: nowrap;
}
.app-footer-link {
  font-weight: 700;
  text-decoration: none;
}
.lead {
  color: var(--text-muted);
  font-size: var(--font-size-md);
  line-height: 1.6;
}

.select {
  position: relative;
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
}
.field > .select,
.select-loading-shell > .select {
  width: 100%;
}
.select-native {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
.select-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: inherit;
  padding: inherit;
  border: 1px solid transparent !important;
  border-radius: inherit;
  outline: 0;
  background: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.select:not(.is-gh) .select-button:hover {
  background-color: rgba(127, 127, 127, 0.16) !important;
  border-color: var(--bg-line) !important;
}
.select-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-chevron {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: var(--font-size-md);
  color: var(--text-primary);
  transition:
    color 160ms ease,
    transform 180ms ease;
}
.select.is-open .select-chevron {
  color: var(--focus-border);
  transform: rotate(180deg);
}
.select-button:focus-visible .select-chevron {
  color: var(--focus-border);
}
.select.is-open .select-button,
.select-button:focus-visible {
  border-color: var(--focus-border) !important;
  box-shadow: var(--focus-ring);
}
.select.is-disabled {
  opacity: 0.58;
}
.select.is-disabled .select-button {
  cursor: not-allowed;
}
.select-menu {
  overscroll-behavior: contain;
  position: fixed;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(360px, calc(100vh - 24px));
  padding: 6px 0;
  overflow: hidden;
  background: rgba(17, 21, 28, 0.82);
  border: 1px solid var(--bg-line);
  border-radius: 13px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}
.select-menu[hidden] {
  display: none;
}
.select-options {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  flex: 1 1 auto;
  gap: 2px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.select-group {
    padding: 8px 0 6px 20px;
  overflow: hidden;
  color: var(--primary);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--bg-line-soft);
}
.select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 7px 10px;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.select-menu.has-cyan-bullets .select-option > .select-check {
  display: none;
}
.select-menu.has-cyan-bullets .select-option.is-heading::before {
  content: none;
}
.select-menu.has-cyan-bullets .select-option.is-heading > .select-check {
  display: none;
}
.select-menu.has-cyan-bullets .select-option::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-inline: 4px;
  border-radius: 50%;
  background: var(--cyan);
}
.select-option-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-check {
  flex: 0 0 auto;
  color: var(--cyan);
  opacity: 0;
}
.select-option.is-active .select-check {
  opacity: 1;
}
.select-option:hover,
.select-option.is-active {
  background: rgba(91, 140, 239, 0.2);
}
.select-option:disabled {
  color: var(--text-muted);
  opacity: 0.7;
}
.select-option[hidden],
.select-group[hidden] {
  display: none;
}
.select-icon {
  flex: 0 0 auto;
  margin-right: 7px;
  color: var(--cyan);
  font-size: var(--font-size-sm);
}
.select-icon[hidden] {
  display: none;
}
.select-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin: 2px 8px 6px;
  padding: 0;
  border: 1px solid var(--bg-line);
  border-radius: 9px;
  background: var(--surface-input);
}
.select-search > i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  flex: 0 0 auto;
  color: var(--text-faint);
  font-size: var(--font-size-sm);
}
.select-search-input {
  flex: 1 1 0;
  width: 100%;
  height: 100%;
  padding: 0 10px 0 34px;
  box-sizing: border-box;
  border-radius: inherit;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
}
.select-search-input::placeholder {
  color: var(--text-faint);
}
.select-option-icon {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: var(--font-size-sm);
}
.select-option-meta {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--text-faint);
  font-size: var(--font-size-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-empty {
  margin: 0;
  padding: 9px 10px;
  color: var(--text-faint);
  font-size: var(--font-size-sm);
}
.select-empty[hidden] {
  display: none;
}
.select.is-gh {
  display: inline-flex;
}
.select.is-gh .select-button {
  gap: 6px;
  height: 38px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--text-primary);
  font: inherit;
  font-weight: 600;
}
.select.is-gh .select-button:hover,
.select.is-gh.is-open .select-button {
  border-color: var(--bg-line) !important;
  background: var(--bg-hover);
}
.select.is-gh .select-value {
  max-width: 12rem;
}
.select.is-gh .select-icon {
  margin-right: 0;
  color: var(--cyan);
  font-size: var(--font-size-md);
}
.table-filter-toolbar > .right .select-button {
  background: var(--bg-input);
  border: 1px solid var(--bg-line)!important;
}
.table-filter-toolbar > .right .select-button:hover {
  background: var(--bg-hover);
}
.select-menu.is-gh {
  gap: 0;
  width: min(340px, calc(100vw - 24px)) !important;
  padding: 6px 0;
  background: rgba(13, 17, 23, 0.96);
  border-radius: 12px;
}
.select-menu.is-gh .select-search {
  position: sticky;
  top: -6px;
  z-index: 1;
  margin: 0 8px 6px;
  min-height: 38px;
  background: var(--surface-input);
}

.select-menu.is-gh .select-option:hover {
  background: var(--bg-hover);
}
.select-menu.is-gh .select-option.is-active {
  background: rgba(91, 141, 239, 0.16);
}
.select-menu.is-gh .select-check {
  flex: 0 0 16px;
  width: 16px;
  text-align: center;
  color: var(--text-primary);
}
.select-menu .select-option:is(.is-multiple, .has-checkbox) > .select-check {
  display: grid;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid var(--bg-line);
  border-radius: 4px;
  background: var(--surface-input);
  color: transparent;
  font-size: 12px;
  opacity: 1;
}
.select-menu
  .select-option:is(.is-multiple, .has-checkbox).is-active
  > .select-check {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--bg-main);
}
.select-menu
  .select-option:is(.is-multiple, .has-checkbox)
  > .select-check::before {
  content: "";
  width: 5px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
.select-menu.is-gh .select-option-icon {
  color: var(--text-secondary);
}
.select-menu.is-gh .select-option-text,
.select-menu.is-gh .select-option-meta {
  font-weight: 500;
}
.select-menu.is-gh .select-empty {
  padding: 10px 8px;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="link"]:focus-visible {
  outline: 1px solid var(--cyan);
  box-shadow: 0 0 0 3px rgba(91, 239, 207, 0.346);
}
@keyframes approvalSearchIdle {
  0%,
  100% {
    transform: translateX(-2px) rotate(-8deg);
  }
  50% {
    transform: translateX(3px) rotate(8deg);
  }
}
.hidden {
  display: none;
}
.uptime-card small {
  display: block;
  margin-top: 7px;
  color: var(--text-faint);
  font-size: var(--font-size-xs);
}
.head-actions-row .inline-form {
  display: inline-flex;
  margin: 0;
}
.input-button-group {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.input-button-group > input {
  flex: 1 1 auto;
  min-width: 0;
}
.input-button-group > .button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.password-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.password-input-wrap > input {
  width: 100%;
  padding-right: 44px;
}
.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 2;
}
.password-visibility-toggle:hover {
  color: var(--text-primary);
  background: var(--shade-soft);
  transform: translateY(-50%);
  box-shadow: none;
}
.password-visibility-toggle:focus-visible {
  outline: 1px solid var(--cyan);
  box-shadow: 0 0 0 3px rgba(91, 239, 207, 0.2);
}
.table-panel,
.recent-activity-panel {
  scroll-margin-top: calc(var(--app-bar-height) + 10px);
}
.table-pagination {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  white-space: nowrap;
}
.table-page-button {
  width: 50px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}
.table-page-button:disabled,
.table-page-button.disabled {
  background: transparent;
  border-color: var(--bg-line-soft);
  color: var(--text-muted);
  opacity: 1;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.page-number-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-number {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-line-soft);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: var(--font-size-xs);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.page-number:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}
.page-number.is-active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.page-number-ellipsis {
  min-width: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}
.panel-title-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.panel-title-stack h2,
.panel-title-stack strong {
  margin: 0;
  line-height: 1.25;
}
.table-pagination.pagination-numbered {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.page-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  flex-wrap: nowrap;
}
.table-wrap tbody tr.is-admin-disabled > td,
.table-wrap tbody tr.is-admin-disabled > td strong {
  color: var(--text-faint);
}
.table-wrap tbody tr.is-admin-disabled > td {
  background: rgba(0, 0, 0, 0.08);
}
.table-wrap tbody tr.is-admin-disabled .status {
  opacity: 0.48;
  filter: saturate(0.3);
}
.device-name-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}
.device-name-cell .device-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.device-name-cell .device-address {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}
.device-type-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}
.device-type-cell .device-type {
  white-space: nowrap;
}
.device-type-cell .device-type-count {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  white-space: nowrap;
}
.device-model-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}
.device-model-cell .device-model {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.device-model-cell .device-system-name {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}
.status-dot {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  color: var(--text-faint);
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}
.status-dot.success {
  box-shadow:
    0 0 0 2px rgba(87, 199, 133, 0.12),
    0 0 8px rgba(87, 199, 133, 0.55);
}
.status-dot.is-pulsing {
  animation: status-dot-pulse 2.8s ease-in-out infinite;
}
@keyframes status-dot-pulse {
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot.is-pulsing {
    animation: none;
  }
}
.conn-cell {
  vertical-align: top;
}
.conn-time {
  display: block;
  white-space: nowrap;
}
.conn-time.is-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted, #8b95a7);
}
.sync-loading-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: sync-loading-spin 0.8s linear infinite;
}
.sync-loading-label {
  font-family: inherit;
}
@keyframes sync-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sync-loading-spinner {
    animation: none;
    opacity: 0.65;
  }
}
.conn-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  width: max-content;
  max-width: 100%;
  margin-top: 5px;
}
.conn-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size:var(--font-small);
  line-height: 1;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-raised, rgba(128, 128, 128, 0.08));
  color: var(--text-secondary);
  white-space: nowrap;
}
.conn-chip .conn-dot {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
[data-tip] {
  position: relative;
}
[data-tip]::after,
[data-tip]::before {
  position: absolute;
  left: 50%;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.35s var(--ease);
}
[data-tip]::after {
  content: attr(data-tip);
  bottom: calc(100% + 11px);
  width: max-content;
  max-width: min(300px, calc(100vw - 32px));
  padding: 9px 12px;
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  background: rgba(17, 21, 28, 0.98);
  color: var(--text-primary);
  font-size: var(--font-size-xs);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, 6px);
}
[data-tip]::before {
  content: "";
  bottom: calc(100% + 6px);
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--border-hover);
  border-bottom: 1px solid var(--border-hover);
  background: rgba(17, 21, 28, 0.98);
  transform: translate(-50%, 4px) rotate(45deg);
}
[data-tip]:hover::after,
[data-tip]:hover::before {
  opacity: 1;
  transition-delay: 0.5s;
}
[data-tip].is-tip-open::after,
[data-tip].is-tip-open::before {
  transition-delay: 0s;
}
[data-tip]:hover::after {
  transform: translate(-50%, 0);
}
[data-tip]:hover::before {
  transform: translate(-50%, 0) rotate(45deg);
}
[data-tip][data-tip-pos="bottom"]::after {
  top: calc(100% + 11px);
  bottom: auto;
  transform: translate(-50%, -6px);
}
[data-tip][data-tip-pos="bottom"]::before {
  top: calc(100% + 6px);
  bottom: auto;
  transform: translate(-50%, -4px) rotate(225deg);
}
[data-tip][data-tip-pos="bottom"]:hover::after {
  transform: translate(-50%, 0);
}
[data-tip][data-tip-pos="bottom"]:hover::before {
  transform: translate(-50%, 0) rotate(225deg);
}
@media (hover: none) {
  [data-tip]:hover::after,
  [data-tip]:hover::before {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-tip]::after,
  [data-tip]::before {
    transition-duration: 0.01ms;
  }
}
[data-tip].is-tip-error:is(input, textarea, select) {
  border-color: rgba(240, 113, 120, 0.75) !important;
  background: rgba(240, 113, 120, 0.07);
  box-shadow: 0 0 0 3px rgba(240, 113, 120, 0.14) !important;
}
[data-tip][data-tip-pos="bottom"]:focus-within::after,
[data-tip][data-tip-pos="bottom"]:focus-within::before {
  opacity: 0;
}
[data-tip].is-tip-open::after,
[data-tip].is-tip-open::before {
  opacity: 1;
}
[data-tip].is-tip-open::after {
  transform: translate(-50%, 0);
}
[data-tip].is-tip-open::before {
  transform: translate(-50%, 0) rotate(45deg);
}
[data-tip][data-tip-pos="bottom"].is-tip-open::after,
[data-tip][data-tip-pos="bottom"].is-tip-open::before {
  opacity: 1;
}
[data-tip][data-tip-pos="bottom"].is-tip-open::after {
  transform: translate(-50%, 0);
}
[data-tip][data-tip-pos="bottom"].is-tip-open::before {
  transform: translate(-50%, 0) rotate(225deg);
}
[data-tip].is-tip-error::after {
  border-color: rgba(240, 113, 120, 0.55);
  color: var(--red);
}
[data-tip].is-tip-error::before {
  border-right-color: rgba(240, 113, 120, 0.55);
  border-bottom-color: rgba(240, 113, 120, 0.55);
}
fieldset {
  border: 0;
}
.inline-list {
  margin-top: 14px;
  border-top: 1px solid var(--bg-line);
}
.title {
  margin-top: 50px;
}
.pon-catat-switch,
.pon-status-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}
.zte-pon-status-row,
.hioso-pon-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}


.onu-search-host {
  position: relative;
}
.onu-search-host:not(.onu-search-table-host).is-loading > :first-child,
.onu-search-table-host.is-loading tbody {
  visibility: hidden;
  pointer-events: none;
}
.onu-search-status {
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 0;
  color: var(--text-muted);
  text-align: center;
}
.onu-search-status[hidden],
.onu-search-status > [hidden] {
  display: none;
}
.onu-loading-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(79, 209, 197, 0.3);
  border-radius: 50%;
  background: var(--surface-raised);
  box-shadow: 0 0 24px rgba(79, 209, 197, 0.12);
  color: var(--cyan);
}
.onu-loading-badge > .sync-loading-spinner:not([hidden]) {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 0;
  border-radius: 0;
  font-size: 32px;
  line-height: 1;
}
.field > .select .select-value {
  max-width: none;
}
.field > .select .select-button,
.field > .select .select-button:hover {
  background: var(--surface-input) !important;
  border-color: var(--bg-line) !important;
}
.field > .select.is-open .select-button,
.field > .select .select-button:focus-visible {
  border-color: var(--focus-border) !important;
  box-shadow: var(--focus-ring);
}
:is(input, textarea, select):enabled[aria-invalid="true"],
.select > select.select-native:enabled[aria-invalid="true"] + .select-button {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(240, 113, 120, 0.14) !important;
}
.select-search:focus-within {
  background: var(--surface-input);
  border-color: var(--focus-border);
  box-shadow: var(--focus-ring);
}
.select-search-input:focus,
.table-search input:focus {
  background: transparent;
  outline: 0;
  box-shadow: none;
}
.onu-sub-block + .onu-sub-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bg-line-soft);
}
.onu-sub-block-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  font-size: var(--font-size-lg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.onu-sub-block-title i {
  color: var(--cyan);
}
.onu-sub-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.onu-sub-block-head .onu-sub-block-title {
  margin-bottom: 0;
}
.olt-view .panel-heading {
  gap: clamp(0.375rem, 1.88vw, 0.9375rem);
  margin-bottom: clamp(0.4375rem, 1.75vw, 0.875rem);
  padding-bottom: clamp(0.375rem, 1.38vw, 0.6875rem);
  align-items: center;
}
.title-heading {
  min-width: 0;
  padding-left: 9px;
  border-left: 2px solid rgba(79, 209, 197, 0.62);
  font-size: var(--font-size-heading);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
}
.device-detail-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  border-radius: 14px;
  background: rgba(91, 141, 239, 0.1);
  color: var(--primary);
  font-size: var(--font-size-display);
}
.device-name-cell .device-lock-status {
  color: var(--text-faint);
  font-size: var(--font-size-xs);
  display: inline-flex;
  align-items: center;
}
.device-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}
.device-meter > span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: currentColor;
  color: var(--primary);
  transition: width 0.35s var(--ease);
}
.heat-meter > span {
  color: transparent;
  background: var(--text-muted);
}
.heat-meter.is-level-1 > span {
  background: linear-gradient(90deg, #3f78dc, #58a9f5);
}
.heat-meter.is-level-2 > span {
  background: linear-gradient(90deg, #4d8dff, #57c785);
}
.heat-meter.is-level-3 > span {
  background: linear-gradient(90deg, #4d8dff, #57c785 55%, #e6c84f);
}
.heat-meter.is-level-4 > span {
  background: linear-gradient(
    90deg,
    #4d8dff,
    #57c785 38%,
    #e6c84f 68%,
    #eb6161
  );
}
.device-system-info-list {
  display: grid;
  gap: 0;
  margin: -0.625rem 0;
}
.device-system-info-list > div,
.profile {
  display: grid;
  grid-template-columns: minmax(10.5rem, 6.875rem) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-height: 39px;
  padding: 0.125rem;
  border-bottom: 1px solid var(--bg-line);
}
.device-system-info-list > div:last-child {
  border-bottom: 0;
}
.device-system-info-list > div > span:first-child {
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-left: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.device-system-info-list .device-info-value {
  min-width: 0;
  font-size: var(--font-size-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-form-narrow {
  max-width: 620px;
}
.field[hidden] {
  display: none;
}
.recent-activity-panel th {
  height: 42px;
}
.recent-activity-panel td {
  padding-top: 9px;
  padding-bottom: 9px;
}
.recent-activity-panel .table-footer,
.recent-activity-panel tfoot td {
  padding-top: 14px;
  padding-bottom: 14px;
}
.recent-activity-status {
  font-weight: 400;
}
.recent-activity-pagination {
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid var(--bg-line-soft);
  background: var(--bg-hover);
}
.recent-activity-pagination small {
  color: var(--text-muted);
}
button {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}
.onu-detail-layout .onu-sub-block-title {
  gap: clamp(0.25rem, 0.88vw, 0.4375rem);
  font-size: var(--font-size-heading) !important;
  font-weight: 600;
}
.stat-card.accent-amber {
  border-color: rgba(229, 169, 90, 0.32);
}
.add-onu-row:hover,
.sidebar nav a:hover,
select:hover {
  border-color: var(--border-hover) !important;
  background: var(--tint-blue) !important;
}
.tittle-subtitle {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 0 18px;
  border-bottom: 1px solid var(--glow-primary);
  background: var(--tint-primary);
}
.modal-header {
  background: var(--surface-deep);
}
.tittle-subtitle:where(header) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tittle-subtitle h3,
header.tittle-subtitle h2 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: 1.25;
}
header.tittle-subtitle:is(h2, h3) i {
  color: var(--cyan);
}
.tittle-subtitle p {
  margin: 8px 0 0;
  font-size: var(--font-size-xs);
  line-height: 1.5;
}
input[readonly],
input[readonly]:hover,
input[readonly]:focus {
 background-color: rgba(127, 127, 127, 0.1) !important;
  border: 1px solid var(--bg-line-soft) !important;
  color: var(--text-muted) !important;
  box-shadow: none;
}
.choice-check-mark {
  position: relative;
  display: inline-grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #3a4357;
  border-radius: 6px;
  background: #12151b;
  color: transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.choice-check-mark .bi {
  font-size: 13px;
  line-height: 1;
}
.choice-check-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.choice-check-row[hidden] {
  display: none;
}
.choice-check-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.choice-check-card > input[type="radio"],
.choice-check-card > input[type="radio"]:disabled {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}
.choice-check-card > input:checked + .choice-check-mark {
  background: rgba(91, 239, 207, 0.2);
  border-color: rgba(91, 239, 207, 0.55);
  color: var(--cyan);
}
.choice-check-card > input:focus-visible + .choice-check-mark {
  outline: 1px solid var(--cyan);
  box-shadow: var(--focus-ring);
}
.choice-check-card:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.58;
}
.pon-traffic-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pon-traffic-card {
  min-width: 0;
  padding: 0.5rem 0.6rem 0.35rem;
  border: 1px solid var(--bg-line);
  border-radius: 10px;
  background: var(--surface-raised, transparent);
}
.pon-traffic-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: var(--font-size-xs);
}
.traffic-card-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.4rem;
  color: var(--text);
  font-weight: 600;
}
.traffic-card-title i {
  color: var(--cyan);
}
.traffic-card-title .mono {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pon-traffic-values {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.7rem;
  color: var(--text-muted);
}
.pon-traffic-rx {
  color: var(--cyan);
}
.pon-traffic-tx {
  color: var(--amber, #f59e0b);
}
.pon-traffic-rx b,
.pon-traffic-tx b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.pon-traffic-rx i,
.pon-traffic-tx i {
  font-size: 0.95em;
}
.pon-traffic-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
.pon-traffic-range {
  font: inherit;
  font-size: var(--font-size-xs);
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--bg-line);
  border-radius: 6px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
}
.pon-traffic-range.is-active {
  color: var(--cyan);
  border-color: var(--cyan);
}
.pon-traffic-canvas-wrap {
  position: relative;
  margin-top: 0.35rem;
}
.pon-traffic-canvas {
  display: block;
  width: 100%;
}
.onu-traffic-card {
  margin-top: 0.25rem;
}
.traffic-tooltip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid var(--bg-line);
  border-radius: 8px;
  background: var(--bg-input, var(--surface));
  color: var(--text-primary);
  font-size: var(--font-size-xs);
  white-space: nowrap;
  pointer-events: none;
}
.traffic-tooltip[hidden] {
  display: none;
}
.traffic-tooltip > span:not(:first-child) {
  display: flex;
  align-items: center;
  gap: 7px;
}
.traffic-tooltip .bi-cloud-download {
  color: var(--cyan);
}
.traffic-tooltip .bi-cloud-upload {
  color: var(--amber, #f59e0b);
}
.pon-traffic {
  border: 1px solid var(--bg-line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  background: var(--surface, transparent);
}
.pon-traffic-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  background: var(--surface-raised, transparent);
  pointer-events: none;
}
.pon-traffic-loading[hidden] {
  display: none;
}
.serial-copy {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
  vertical-align: middle;
}
.serial-copy > [data-serial-value] {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 4px;
  transition: background-color 200ms ease;
}
.serial-copy > [data-serial-value].is-copied {
  background-color: color-mix(in srgb, var(--green) 30%, transparent);
}
.serial-copy .icon-button {
  width: 26px;
  height: 26px;
  padding: 4px;
  font-size: 12px;
}
.serial-copy-action {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  top: -2px;
}
.serial-copy-action > .linnms-toast {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 10;
  width: max-content;
  max-width: min(190px, calc(100vw - 24px));
  padding: 7px 9px;
  gap: 6px;
  border-left-width: 3px;
  border-radius: 8px;
  transform: translate(-50%, 6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.serial-copy-action > .linnms-toast.is-visible {
  transform: translate(-50%, 0);
}
.serial-copy-action > .linnms-toast > i {
  margin: 0;
  font-size: 14px;
}
.serial-copy-action > .linnms-toast .linnms-toast-message {
  font-size: var(--font-size-xs);
  line-height: 1.25;
  white-space: nowrap;
}
.serial-copy-action.is-copied .icon-button {
  color: var(--green);
  animation: serial-copy-feedback 320ms ease-out;
}
@keyframes serial-copy-feedback{0%{transform:scale(.8)}60%{transform:scale(1.18)}100%{transform:scale(1)}}
@media (prefers-reduced-motion: reduce) {
  .serial-copy-action.is-copied .icon-button {
    animation: none;
  }
}

.notice span,
.notice p,
.text-muted, .unknown__status {
  color: var(--text-muted) !important;
}
.text-secondary {
  color: var(--text-secondary) !important;
}


.text-cyan,.info  {
  color: var(--cyan) !important;
}
.text-success,.success,.ok__status {
  color: var(--green) !important;
}
.text-warning,.warning, .warn__status {
  color: var(--amber) !important;
}
.text-danger,.danger,.bad__status {
  color: var(--red) !important;
}
.text-yellow {
  color: var(--yellow) !important;
}
.text-orange {
  color: var(--orange) !important;
}
.text-faint,.neutral {
  color:var(--text-faint) !important;
}



.text-primary {
  color: var(--primary);
}
.f-sm {
  font-size: var(--font-size-sm);
}

.fw-bold {
  font-weight: 700 !important;
}

.mt-4 {
  margin-top: 1rem !important;
}
.p-3 {
  padding: 0.75rem !important;
}
.p-4 {
  padding: 1rem !important;
}
.pe-2 {
  padding: 0.75rem 0 !important;
}
.pe-3 {
  padding: 1.5rem 0 !important;
}
.pl-3 {
  padding: 0 1.5rem !important;
}
.mb-5 {
  margin-bottom: 1.25rem !important;
}
.em-2 {
  margin: 0.6rem !important;
}
.me-2 {
margin-left: 0.6rem !important; 
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
}
.empty-state > i {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
}
.empty-state > span {
  font-size: var(--font-size-sm);
  color: var(--text-faint);
}
