/* Canonical desktop layout for the MikroTik router registry. This page owns
   these selectors; it no longer depends on the retired phase-one stylesheet. */
body.ua-design-v2 .ua-network-admin-page{
  min-width:0;
  padding:12px 14px 18px;
  color:var(--ua-ds-text,#dce7f5);
  background:transparent !important;
}

body.ua-design-v2 .ua-network-admin-page .content-header.ua-net-hero{
  min-height:68px;
  margin:0 0 10px;
  padding:11px 14px;
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:1px solid color-mix(in srgb,var(--ua-accent,#22d3ee) 28%,var(--ua-ds-line,#29425a));
  border-radius:14px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--ua-theme-surface) 90%,var(--ua-accent) 10%),color-mix(in srgb,var(--ua-theme-surface-2) 92%,transparent));
  box-shadow:0 12px 28px rgba(0,0,0,.18);
}

.ua-network-admin-page .ua-net-hero__main{min-width:0}
.ua-network-admin-page .ua-net-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#61e7f5;
  font-size:.68rem;
  font-weight:900;
  direction:ltr;
}
.ua-network-admin-page .ua-net-hero h1{
  margin:2px 0 0;
  color:var(--ua-ds-title,#f5f8ff);
  font-size:1.15rem;
  line-height:1.25;
  font-weight:950;
}
.ua-network-admin-page .ua-net-hero p{
  margin:3px 0 0;
  color:var(--ua-ds-muted,#8fa1b8) !important;
  font-size:.72rem;
  line-height:1.45;
}
.ua-network-admin-page .ua-net-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  flex:0 0 auto;
}
.ua-network-admin-page .ua-net-action{
  min-height:34px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid rgba(34,211,238,.38);
  border-radius:10px;
  background:color-mix(in srgb,var(--ua-accent) 14%,var(--ua-theme-input));
  color:var(--ua-ds-title) !important;
  font-size:.74rem;
  font-weight:900;
  text-decoration:none !important;
}
.ua-network-admin-page .ua-net-action--ghost{border-color:rgba(245,190,45,.35);background:rgba(245,158,11,.10);color:#ffe4a3 !important}

.ua-network-admin-page > .content{padding:0 !important;background:transparent !important}
.ua-network-admin-page .alert{margin:0 0 10px;border-radius:11px;font-size:.78rem}
.ua-network-admin-page .ua-net-stats{
  margin:0 0 10px;
  display:grid;
  grid-template-columns:repeat(4,minmax(120px,1fr));
  gap:8px;
}
.ua-network-admin-page .ua-net-stat{
  min-height:48px;
  padding:7px 11px;
  display:grid;
  grid-template-columns:30px 1fr auto;
  align-items:center;
  gap:8px;
  border:1px solid var(--ua-ds-line,#29425a);
  border-radius:12px;
  background:linear-gradient(180deg,var(--ua-theme-surface),var(--ua-theme-surface-2));
  box-shadow:0 8px 18px rgba(0,0,0,.13);
}
.ua-network-admin-page .ua-net-stat i{font-size:1rem;color:#9ca3af;text-align:center}
.ua-network-admin-page .ua-net-stat span{font-size:.7rem;color:var(--ua-ds-muted,#8fa1b8);font-weight:850}
.ua-network-admin-page .ua-net-stat strong{font-size:1rem;color:var(--ua-ds-title,#f5f8ff);font-weight:950;font-variant-numeric:tabular-nums}
.ua-network-admin-page .ua-net-stat.is-green i{color:#4ade80}
.ua-network-admin-page .ua-net-stat.is-cyan i{color:#22d3ee}
.ua-network-admin-page .ua-net-stat.is-gold i{color:#fbbf24}

.ua-network-admin-page .ua-net-layout{
  margin:0 !important;
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(310px,.75fr);
  gap:10px;
  align-items:start;
}
.ua-network-admin-page .ua-net-layout > [class*="col-"]{width:auto !important;float:none !important;padding:0 !important;min-width:0}
.ua-network-admin-page .ua-net-panel{
  margin:0 !important;
  overflow:hidden;
  border:1px solid var(--ua-ds-line,#29425a) !important;
  border-radius:14px !important;
  background:linear-gradient(180deg,var(--ua-theme-surface),var(--ua-theme-surface-2)) !important;
  box-shadow:0 14px 30px rgba(0,0,0,.18) !important;
}
.ua-network-admin-page .ua-net-panel .box-header{
  min-height:44px;
  padding:10px 13px !important;
  display:flex;
  align-items:center;
  border-bottom:1px solid var(--ua-ds-line,#29425a) !important;
  background:color-mix(in srgb,var(--ua-theme-surface-2) 74%,transparent) !important;
}
.ua-network-admin-page .ua-net-panel .box-title{margin:0;color:var(--ua-ds-title,#f5f8ff);font-size:.9rem;font-weight:950}
.ua-network-admin-page .ua-net-panel .box-body{padding:10px !important;background:transparent !important}
.ua-network-admin-page .ua-net-panel .table-responsive{padding:0 !important;overflow:auto;border:0 !important;border-radius:10px;background:transparent !important;box-shadow:none !important}
.ua-network-admin-page .ua-net-table{width:100%;min-width:690px;margin:0 !important;border-collapse:separate !important;border-spacing:0;color:var(--ua-ds-text,#dce7f5) !important;font-size:.74rem}
.ua-network-admin-page .ua-net-table :is(th,td){padding:9px 8px !important;text-align:center;vertical-align:middle;border-color:var(--ua-ds-line,#29425a) !important;background:var(--ua-theme-table-row) !important}
.ua-network-admin-page .ua-net-table thead th{position:sticky;top:0;z-index:1;background:var(--ua-theme-table-head) !important;color:var(--ua-ds-title) !important;font-size:.7rem;font-weight:950;white-space:nowrap}
.ua-network-admin-page .ua-net-table tbody tr:nth-child(even) td{background:var(--ua-theme-table-row-alt) !important}
.ua-network-admin-page .ua-net-table tbody tr:hover td{background:color-mix(in srgb,var(--ua-accent) 10%,var(--ua-theme-table-row)) !important}
.ua-network-admin-page .ua-net-status{display:inline-flex;min-height:24px;align-items:center;padding:0 8px;border-radius:999px;border:1px solid rgba(148,163,184,.25);font-size:.66rem;font-weight:900;white-space:nowrap}
.ua-network-admin-page .ua-net-status.is-enabled{border-color:rgba(74,222,128,.34);background:rgba(34,197,94,.10);color:#b9f8cc}
.ua-network-admin-page .ua-net-status.is-disabled{border-color:rgba(248,113,113,.34);background:rgba(239,68,68,.10);color:#fecaca}
.ua-network-admin-page .ua-net-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px}
.ua-network-admin-page .ua-net-actions .btn{min-height:28px;padding:4px 9px !important;border-radius:8px !important;font-size:.68rem;font-weight:900}
.ua-network-admin-page .ua-net-test-result{
  flex:1 0 100%;
  padding:5px 7px;
  border:1px solid var(--ua-ds-line,#29425a);
  border-radius:7px;
  font-size:.63rem;
  line-height:1.35;
  white-space:normal;
}
.ua-network-admin-page .ua-net-test-result.is-running{background:rgba(14,116,144,.12);color:#b9f5ff}
.ua-network-admin-page .ua-net-test-result.is-success{border-color:rgba(74,222,128,.36);background:rgba(34,197,94,.10);color:#c8fbd6}
.ua-network-admin-page .ua-net-test-result.is-error{border-color:rgba(248,113,113,.36);background:rgba(239,68,68,.10);color:#fecaca}

.ua-network-admin-page .ua-net-form{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}
.ua-network-admin-page .ua-net-form .form-group{margin:0;min-width:0}
.ua-network-admin-page .ua-net-form .form-group:nth-last-of-type(2),
.ua-network-admin-page .ua-net-form .form-group:nth-last-of-type(1){grid-column:1/-1}
.ua-network-admin-page .ua-net-form label{display:block;margin:0 0 4px;color:var(--ua-ds-muted,#8fa1b8);font-size:.68rem;font-weight:850}
.ua-network-admin-page .ua-net-form :is(input.form-control,select.form-control,textarea.form-control){width:100%;min-height:36px;padding:6px 9px;border:1px solid var(--ua-ds-line,#29425a) !important;border-radius:9px;background:rgba(3,16,29,.78) !important;color:var(--ua-ds-title,#f5f8ff) !important;box-shadow:none !important;font-size:.76rem}
.ua-network-admin-page .ua-net-form textarea.form-control{min-height:58px;resize:vertical}
.ua-network-admin-page .ua-net-form input[type="checkbox"]{accent-color:#22c55e}
.ua-network-admin-page .ua-net-form > .btn{min-height:36px;border-radius:9px !important;font-size:.76rem;font-weight:950}

/* The create/edit form is a compact registry strip directly below the page hero. */
.ua-network-routers .ua-router-form-strip{margin:0 0 10px !important}
.ua-network-routers .ua-router-form-strip .box-header{min-height:38px;padding:7px 12px !important}
.ua-network-routers .ua-router-form-strip .box-body{padding:8px 10px 10px !important}
.ua-network-routers .ua-router-inline-form{
  display:grid;
  grid-template-columns:repeat(16,minmax(0,1fr));
  gap:7px 8px;
  align-items:end;
}
.ua-network-routers .ua-router-inline-form .form-group{grid-column:auto !important}
.ua-network-routers .ua-router-inline-form .form-group:nth-of-type(1){grid-column:span 2 !important}
.ua-network-routers .ua-router-inline-form .form-group:nth-of-type(2){grid-column:span 2 !important}
.ua-network-routers .ua-router-inline-form .form-group:nth-of-type(3){grid-column:span 1 !important}
.ua-network-routers .ua-router-inline-form .form-group:nth-of-type(4){grid-column:span 2 !important}
.ua-network-routers .ua-router-inline-form .form-group:nth-of-type(5){grid-column:span 2 !important}
.ua-network-routers .ua-router-inline-form .form-group:nth-of-type(6){grid-column:span 2 !important}
.ua-network-routers .ua-router-inline-form .ua-router-enabled-field{grid-column:span 1 !important;align-self:stretch;display:flex;align-items:flex-end;padding-bottom:8px}
.ua-network-routers .ua-router-inline-form .ua-router-enabled-field label{display:flex;align-items:center;gap:5px;white-space:nowrap}
.ua-network-routers .ua-router-inline-form .ua-router-notes-field{grid-column:span 2 !important}
.ua-network-routers .ua-router-inline-form textarea.form-control{height:36px;min-height:36px;resize:none}
.ua-network-routers .ua-router-inline-form > .btn{grid-column:span 2;min-width:0;margin:0 !important}
.ua-network-routers .ua-router-inline-form > .ua-router-cancel{grid-column:span 2;min-height:36px;display:flex;align-items:center;justify-content:center;margin:0;border-radius:9px;font-size:.72rem;font-weight:900}
.ua-network-routers .ua-net-layout{grid-template-columns:minmax(0,1fr)}
.ua-network-routers .ua-net-table{min-width:760px}
.ua-network-routers .ua-net-layout .table-responsive{
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  scrollbar-width:none;
}
.ua-network-routers .ua-net-layout .table-responsive::-webkit-scrollbar{display:none}

@media (max-width:1050px){
  .ua-network-admin-page .ua-net-layout{grid-template-columns:1fr}
  .ua-network-admin-page .ua-net-stats{grid-template-columns:repeat(2,minmax(120px,1fr))}
  .ua-network-routers .ua-router-inline-form{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ua-network-routers .ua-router-inline-form .form-group,
  .ua-network-routers .ua-router-inline-form .form-group:nth-of-type(n),
  .ua-network-routers .ua-router-inline-form > .btn,
  .ua-network-routers .ua-router-inline-form > .ua-router-cancel{grid-column:span 1 !important}
  .ua-network-routers .ua-router-inline-form .ua-router-notes-field{grid-column:span 2 !important}
  .ua-network-routers .ua-net-layout .table-responsive{overflow-x:auto !important;overflow-y:hidden !important}
}
@media (max-width:640px){
  body.ua-design-v2 .ua-network-admin-page{padding:8px}
  .ua-network-admin-page .ua-net-hero{align-items:stretch !important;flex-direction:column}
  .ua-network-admin-page .ua-net-stats{grid-template-columns:1fr 1fr}
  .ua-network-admin-page .ua-net-form{grid-template-columns:1fr}
  .ua-network-admin-page .ua-net-form .form-group{grid-column:1 !important}
  .ua-network-routers .ua-router-inline-form{grid-template-columns:1fr}
  .ua-network-routers .ua-router-inline-form .form-group,
  .ua-network-routers .ua-router-inline-form .form-group:nth-of-type(n),
  .ua-network-routers .ua-router-inline-form > .btn,
  .ua-network-routers .ua-router-inline-form > .ua-router-cancel{grid-column:1 !important}
}
