/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* ============================================================================
   Skylight Web-Admin — Operations Console design system
   Skylight brand: orange primary (#E85D04), navy dark sidebar, green leaf as
   secondary/success accent. Palette mirrors mobile/lib/core/theme/app_colors.dart.
   Ported from web-admin/mockups/mockups.css (approved design mockups).
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand + surfaces */
  --bg: #fafafa;
  --panel: #ffffff;
  --panel-2: #fbfbfb;
  --ink: #1b2332;
  --ink-2: #374151;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --line-2: #f0f0f0;

  /* Brand orange */
  --accent: #e85d04;
  --accent-strong: #b84000;
  --accent-soft: #fff3ec;
  --accent-ink: #b84000;

  /* Brand green (leaf) — secondary accent */
  --green: #4a8824;
  --green-light: #68a830;
  --green-soft: #eff7e8;

  /* Status colors */
  --ok: #3f7a1f;
  --ok-soft: #eff7e8;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --info: #2563eb;
  --info-soft: #dbeafe;
  --pending: #6b5bd1;
  --pending-soft: #ece9fb;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(27, 35, 50, 0.04), 0 8px 24px rgba(27, 35, 50, 0.06);
  --shadow-sm: 0 1px 2px rgba(27, 35, 50, 0.06);

  --sidebar-w: 248px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

button {
  font: inherit;
}

/* ----------------------------------------------------------------- Layout */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ---------------------------------------------------------------- Sidebar */
.sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0d1b2a;
  color: #c7d0db;
  padding: 18px 14px;
  gap: 6px;
  overflow-y: auto;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 16px;
}

.sidebar .logo .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff8c42, #e85d04);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

.sidebar .logo .name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.sidebar .logo .sub {
  font-size: 11px;
  color: #7e8aa0;
}

.nav-group-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7689;
  padding: 14px 10px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  color: #b3bdcc;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-item.active {
  background: #e85d04;
  color: #fff;
  font-weight: 600;
}

.nav-item .ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 0.9;
  text-align: center;
}

.nav-item .pill {
  margin-left: auto;
  font-size: 11px;
  background: #b3261e;
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-weight: 600;
}

.sidebar .spacer {
  flex: 1 1;
}

.sidebar .me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #b84000;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  flex: 0 0 32px;
}

.me .who {
  font-size: 12.5px;
  color: #fff;
  font-weight: 600;
}
.me .role {
  font-size: 11px;
  color: #7e8aa0;
}

/* ------------------------------------------------------------------- Main */
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(250, 250, 250, 0.85);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
}

.topbar .crumbs {
  font-size: 13px;
  color: var(--muted);
}
.topbar .crumbs b {
  color: var(--ink);
}

.searchbox {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  width: 280px;
  color: var(--muted);
}
.searchbox input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 13px;
  color: var(--ink);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}
.icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid #fff;
}

.content {
  padding: 24px 28px 56px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.page-head h1 {
  font-size: 24px;
}
.page-head .sub {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13.5px;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-strong); }
.btn:disabled { cursor: not-allowed; opacity: 0.55; }
.btn.secondary {
  background: #fff;
  color: var(--ink-2);
  border-color: var(--line);
}
.btn.secondary:hover { background: var(--panel-2); }
.btn.ghost {
  background: transparent;
  color: var(--accent-strong);
  border-color: transparent;
}
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #8f1d17; }
.btn.warn { background: var(--warn); }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }

/* ------------------------------------------------------------------ Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 18px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-2);
}
.card-head h3 { font-size: 15px; }
.card-head .muted { font-size: 12.5px; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* --------------------------------------------------------------- Grid sys */
.grid { display: grid; grid-gap: 16px; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flexrow { display: flex; gap: 16px; }
.flexrow.wrap { flex-wrap: wrap; }
.grow { flex: 1 1; min-width: 0; }
.gap-8 { gap: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.span-2 { grid-column: span 2; }

/* -------------------------------------------------------------- KPI cards */
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.kpi .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kpi .label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi .ico-wrap {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong);
}
.kpi .value { font-size: 27px; font-weight: 800; margin-top: 10px; letter-spacing: -0.02em; }
.kpi .delta { font-size: 12.5px; margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--danger); }

/* ----------------------------------------------------------------- Badges */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--line-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.tag .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.info { background: var(--info-soft); color: var(--info); }
.tag.pending { background: var(--pending-soft); color: var(--pending); }
.tag.role { background: #eef3ef; color: var(--ink-2); }

/* ------------------------------------------------------------------ Table */
.table-wrap { overflow-x: auto; }
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.tbl th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--faint);
  font-weight: 600;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tbl td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
table.tbl tbody tr:hover { background: var(--panel-2); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
.cell-main { font-weight: 600; color: var(--ink); }
.cell-sub { color: var(--muted); font-size: 12px; }
.num { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.right { text-align: right; }

.uavatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-strong);
  display: grid; place-items: center; font-weight: 700; font-size: 11.5px;
  flex: 0 0 30px;
}
.u-cell { display: flex; align-items: center; gap: 10px; }

/* --------------------------------------------------------- Toolbar/filter */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.input, .select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
}
.input:focus, .select:focus { border-color: var(--accent); }
.seg {
  display: inline-flex;
  background: var(--line-2);
  border-radius: 9px;
  padding: 3px;
}
.seg button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 13px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted);
}
.seg button.on { background: #fff; color: var(--accent-strong); box-shadow: var(--shadow-sm); }

/* -------------------------------------------------------------------- Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.tab {
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex; align-items: center; gap: 7px;
  background: transparent;
}
.tab.on { color: var(--accent-strong); border-bottom-color: var(--accent); }
.tab .count {
  font-size: 11px; background: var(--line-2); color: var(--ink-2);
  border-radius: 999px; padding: 1px 7px; font-weight: 700;
}

/* ------------------------------------------------------------------ Charts */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 170px;
  padding-top: 8px;
}
.bars .bar {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.bars .bar .fill {
  width: 100%;
  max-width: 34px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #ff8c42, #e85d04);
}
.bars .bar .fill.alt { background: linear-gradient(180deg, #cde7b8, #a9d488); }
.bars .bar .lbl { font-size: 11px; color: var(--faint); }

.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend .k { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.legend .sw.alt { background: #a9d488; }

.report-panel {
  min-width: 0;
  padding: 4px 0 12px;
}
.report-panel h4 {
  font-size: 13px;
  margin-bottom: 10px;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  grid-gap: 10px;
  gap: 10px;
}
.region-card {
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.region-card.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-sm);
}
.region-title {
  font-weight: 700;
  color: var(--ink);
}
.region-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-strong);
}
.region-sub {
  font-size: 12px;
  color: var(--muted);
}

.donut {
  width: 150px; height: 150px; border-radius: 50%;
  background: conic-gradient(var(--accent) 0 62%, #ff8c42 62% 82%, #ffd9c2 82% 100%);
  display: grid; place-items: center;
}
.donut .hole {
  width: 96px; height: 96px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; text-align: center;
}
.donut .hole b { font-size: 20px; }
.donut .hole span { font-size: 11px; color: var(--muted); }

/* ----------------------------------------------------------------- Alerts */
.alert {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  align-items: flex-start;
}
.alert.danger { border-left-color: var(--danger); }
.alert.warn { border-left-color: var(--warn); }
.alert.info { border-left-color: var(--info); }
.alert.ok { border-left-color: var(--ok); }
.alert .a-title { font-weight: 600; font-size: 13.5px; }
.alert .a-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* --------------------------------------------------------------- Activity */
.feed { display: flex; flex-direction: column; }
.feed .item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.feed .item:last-child { border-bottom: 0; }
.feed .dotcol {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong);
}
.feed .t { font-size: 13px; }
.feed .ts { font-size: 11.5px; color: var(--faint); margin-top: 2px; }

/* ----------------------------------------------------------------- Drawer */
.kv { display: grid; grid-template-columns: 140px 1fr; grid-gap: 8px 14px; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

/* ---------------------------------------------------------- Auth / fields */
.field { display: grid; grid-gap: 6px; gap: 6px; color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  padding: 8px 11px;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }

.email-check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  cursor: pointer;
}
.email-check-row input { margin-top: 3px; accent-color: var(--accent); }
.email-check-row span { display: grid; grid-gap: 3px; gap: 3px; }
.email-check-row small { color: var(--muted); font-weight: 400; }
.email-check-row.danger-zone { border-left: 3px solid var(--danger); }
.dns-record-editor {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) 90px minmax(180px, 1fr) minmax(240px, 1.5fr) 100px auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
}
.dns-result {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(260px, 2fr);
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
}
.break-all { overflow-wrap: anywhere; }

.banner-warn {
  background: #fff7e8;
  color: #8a5a00;
  border: 1px solid #f0dcb0;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  padding: 9px 14px;
  margin-bottom: 16px;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
}

.status { min-height: 20px; font-size: 13px; color: var(--warn); }

hr.sep { border: 0; border-top: 1px solid var(--line-2); margin: 16px 0; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dns-record-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dns-record-editor .dns-value { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .sidebar .spacer, .sidebar .me, .nav-group-label { display: none; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .searchbox { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .dns-record-editor, .dns-result { grid-template-columns: 1fr; }
}

