:root {
  --ink: #0f2234;
  --ink2: #203b53;
  --line: #d7e0e8;
  --muted: #5e7084;
  --soft: #f6f8fa;
  --blue: #164a7a;
  --white: #fff
}

.sync-all-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.sync-all-actions form {
  margin: 0;
}

.last-sync-label {
  color: var(--gwm-muted, #70829a);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.last-sync-label strong {
  color: var(--gwm-text, #26384d);
  font-weight: 800;
}

@media (max-width: 700px) {
  .sync-all-actions {
    justify-content: stretch;
    width: 100%;
  }

  .sync-all-actions .btn,
  .sync-all-actions form {
    width: 100%;
  }

  .last-sync-label {
    white-space: normal;
  }
}

.table-wrap.no-horizontal-overflow {
  overflow-x: hidden !important;
}

.table-wrap.has-horizontal-overflow {
  overflow-x: auto !important;
}

.customer-domains-table th.domain-metric-heading {
  min-width: 210px;
  white-space: normal !important;
  line-height: 1.25;
}

.customer-domains-table th.domain-metric-heading span,
.customer-domains-table th.domain-metric-heading small {
  display: block;
}

.customer-accounts-wrap .status,
.customer-access-table .status {
  font-weight: 600 !important;
}

.customer-domains-table th.domain-metric-heading small {
  margin-top: 4px;
  color: #7890aa;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: #f7f9fb
}

.topbar {
  height: 68px;
  background: linear-gradient(90deg, #0a141e, #163a59);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 42px;
  position: relative;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.brand {
  width: 260px
}

.brand-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1
}

.brand-subtitle {
  font-size: 14px;
  font-weight: 400;
  opacity: .86;
  margin-top: 5px
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
  flex: 1;
  height: 100%
}

.nav a {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cfd8e2;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
  transition: all 0.3s ease;
}

.nav a i {
  font-size: 18px;
}

.nav a.active,
.nav a:hover {
  color: #fff;
  border-bottom-color: #dce9f7;
  transform: translateY(-1px);
}

.user-menu {
  font-size: 14px;
  white-space: nowrap
}

.page {
  padding: 16px 20px 24px
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(15, 34, 52, 0.02);
  margin-bottom: 12px;
  padding: 16px 20px;
  transition: box-shadow 0.3s ease;
}

.panel:hover {
  box-shadow: 0 4px 20px rgba(15, 34, 52, 0.05);
}

.panel h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px
}

.page-title {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 14px
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 32px
}

.summary-grid.six {
  grid-template-columns: repeat(6, 1fr)
}

.summary-grid.four {
  grid-template-columns: repeat(4, 1fr)
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 34, 52, 0.02);
  transition: all 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(15, 34, 52, 0.06);
  border-color: #b5c7d7;
}

.summary-card span {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .02em
}

.summary-card strong {
  font-size: 22px;
  color: #133b5c;
  font-weight: 600
}

.compact .summary-card {
  min-height: 68px
}

.table-wrap {
  overflow: auto
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 34, 52, 0.02);
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
  font-weight: 400
}

th {
  font-weight: 600;
  color: #183c5b;
  background: #fbfcfd
}

tr {
  transition: background-color 0.2s ease;
}

tr:hover td {
  background: #f8fafc;
}

tr:last-child td {
  border-bottom: 0
}

a {
  color: #0f62b5;
  text-decoration: none;
  font-weight: 500
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 5px;
  background: #e7edf4;
  color: #1e4b71;
  font-size: 14px;
  font-weight: 500
}

.status {
  font-weight: 500;
  color: #0f62b5
}

.status.suspend {
  color: #516171
}

.status.active {
  color: #277645
}

.footer-note {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #46586b;
  padding: 10px 2px
}

.admin-head {
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 1fr 1.3fr;
  gap: 24px;
  align-items: center
}

.admin-head div {
  border-right: 1px solid var(--line);
  min-height: 58px
}

.admin-head div:last-child {
  border-right: 0
}

.admin-head span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500
}

.admin-head strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-top: 8px
}

.threshold-strip {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: #375167;
  font-size: 14px
}

.threshold-strip span {
  padding: 10px 16px;
  text-align: center
}

.threshold-strip span:first-child {
  border-right: 1px solid var(--line)
}

.settings-tabs {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  padding: 14px 16px 0;
  display: flex;
  gap: 28px
}

.settings-tabs a {
  padding: 0 0 14px;
  color: #1b3d5d;
  border-bottom: 3px solid transparent;
  font-size: 14px
}

.settings-tabs a.active {
  border-bottom-color: #0f62b5
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px
}

.form-grid {
  display: grid;
  gap: 18px
}

.form-grid.two {
  grid-template-columns: 1fr 1fr
}

.form-grid.four {
  grid-template-columns: repeat(4, 1fr)
}

label {
  font-size: 14px;
  text-transform: uppercase;
  color: #43586d;
  font-weight: 500
}

select,
input {
  margin-top: 8px;
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #183c5b;
  background: #fff
}

.form-panel p {
  font-size: 14px;
  color: #5e7084;
  line-height: 1.6
}

.option-line {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px;
  margin: 10px 0;
  font-size: 14px
}

.option-line strong {
  font-weight: 600;
  margin: 0 8px
}

.option-line span {
  display: block;
  margin: 4px 0 0 24px;
  color: #5e7084;
  font-size: 14px
}

.section-actions {
  display: flex;
  justify-content: space-between;
  align-items: center
}

button {
  border: 0;
  border-radius: 5px;
  background: #143b5b;
  color: #fff;
  padding: 10px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  cursor: pointer
}

h3 {
  font-size: 14px;
  font-weight: 600;
  color: #173b5b;
  margin: 18px 0 10px
}

@media (max-width:1100px) {

  .summary-grid,
  .summary-grid.six,
  .summary-grid.four {
    grid-template-columns: repeat(2, 1fr)
  }

  .topbar {
    gap: 18px
  }

  .nav {
    gap: 18px
  }

  .brand {
    width: 210px
  }

  .split-grid,
  .admin-head {
    grid-template-columns: 1fr
  }

  .admin-head div {
    border-right: 0;
    border-bottom: 1px solid var(--line)
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 14px
}

.user-menu a {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 7px 10px;
  border-radius: 5px
}

.brand-subtitle.dark {
  color: #5e7084
}

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf2f8, #f7f9fb)
}

.login-card {
  width: 430px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 34px;
  box-shadow: 0 20px 60px rgba(15, 34, 52, .12)
}

.login-card h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 28px 0 12px
}

.login-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #536579
}

.notice {
  border: 1px solid #d7e0e8;
  background: #f6f8fa;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 12px 0;
  font-size: 14px
}

.notice.error {
  border-color: #e3c7c7;
  background: #fff5f5
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  background: #e7edf4;
  color: #1e4b71;
  padding: 10px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #d4e0eb;
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(180deg, #164a7a, #133b5c);
  color: #fff;
  box-shadow: 0 2px 4px rgba(22, 74, 122, 0.15);
}

.btn.primary:hover {
  background: linear-gradient(180deg, #1c5b96, #164a7a);
  box-shadow: 0 4px 8px rgba(22, 74, 122, 0.25);
}

.btn.danger {
  background: #7b3540;
  color: #fff;
  box-shadow: 0 2px 4px rgba(123, 53, 64, 0.15);
}

.btn.danger:hover {
  background: #913f4c;
  box-shadow: 0 4px 8px rgba(123, 53, 64, 0.25);
}

.btn.small {
  padding: 5px 9px;
  font-size: 14px
}

.btn.wide {
  width: 100%;
  margin-top: 12px
}

.grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.form-grid.four {
  grid-template-columns: repeat(4, 1fr)
}

.form-grid .wide {
  grid-column: 1/-1
}

.muted {
  color: #5e7084;
  font-size: 14px;
  line-height: 1.55
}

.option-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px
}

.option-row strong {
  display: block;
  font-weight: 600
}

.option-row span {
  display: block;
  color: #5e7084;
  font-size: 14px;
  margin-top: 3px
}

.option-row.selected {
  border-color: #b5c7d7;
  background: #fbfdff
}

.table.compact th,
.table.compact td {
  padding: 7px 9px
}

.inline-input {
  width: 120px;
  height: 30px;
  margin: 0
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.backup-summary .stat {
  min-height: 84px
}

.stat {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: #fff
}

.stat span {
  display: block;
  text-transform: uppercase;
  font-size: 14px;
  color: #5e7084;
  font-weight: 500
}

.stat strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-top: 8px;
  color: #133b5c
}

.stat small {
  display: block;
  color: #5e7084;
  margin-top: 4px
}

.uploaded-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 1/-1;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 6px
}

.uploaded-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain
}

.settings-tabs {
  margin-bottom: 0
}

.settings-tabs+.grid,
.settings-tabs+.panel {
  border-top-left-radius: 0;
  border-top-right-radius: 0
}

.summary-grid .stat {
  text-align: center
}

@media(max-width:1100px) {

  .grid.two,
  .form-grid.four {
    grid-template-columns: 1fr
  }

  .summary-grid {
    gap: 12px
  }
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px
}

.search-form {
  min-width: 360px
}

.search-form input {
  margin-top: 0
}

.brand-logo {
  background: transparent !important
}

.sortable th {
  cursor: pointer;
  user-select: none
}

.sortable th:after {
  content: ' â†•';
  font-size: 10px;
  color: #8aa0b5
}

.sortable th.sort-asc:after {
  content: ' â†‘'
}

.sortable th.sort-desc:after {
  content: ' â†“'
}

.settings-page {
  border-top-left-radius: 0;
  border-top-right-radius: 0
}

.form-actions {
  display: flex;
  align-items: end
}

.admin-head {
  grid-template-columns: repeat(4, 1fr)
}

.notice {
  margin: 0 0 10px
}

.table-panel h2 {
  display: flex;
  align-items: center;
  justify-content: space-between
}

@media(max-width:1200px) {
  .nav {
    gap: 16px
  }

  .nav a {
    font-size: 14px
  }

  .brand {
    width: 230px
  }

  .admin-head {
    grid-template-columns: 1fr 1fr
  }

  .search-form {
    min-width: 260px
  }
}

@media(max-width:800px) {
  .page-heading {
    align-items: stretch;
    flex-direction: column
  }

  .search-form {
    min-width: 0
  }

  .admin-head {
    grid-template-columns: 1fr
  }
}

.brand-link {
  color: #fff;
  text-decoration: none
}

.brand-link:hover {
  color: #fff
}

.brand-logo,
.uploaded-logo img,
.login-logo {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important
}

.table-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px
}

.table-title-row h2 {
  margin: 0
}

.table-search {
  width: 320px;
  max-width: 45%;
  margin-top: 0
}

.result-count {
  font-size: 14px;
  color: #5e7084;
  font-weight: 400;
  margin-left: 8px
}

.sortable th:after {
  content: ' â†•';
  font-size: 14px;
  color: #8aa0b5
}

.sortable th.sort-asc:after {
  content: ' â†‘';
  color: #143b5b;
  font-weight: 600
}

.sortable th.sort-desc:after {
  content: ' â†“';
  color: #143b5b;
  font-weight: 600
}

.sortable th.sorted {
  background: #eef4f9
}

.backup-actions {
  display: flex;
  align-items: center;
  gap: 8px
}

.backup-actions form {
  display: inline
}

.manual-doc {
  max-width: 980px
}

.manual-doc h3 {
  font-size: 17px;
  margin-top: 22px
}

.manual-doc ol,
.manual-doc ul {
  line-height: 1.75;
  color: #263f55
}

.manual-doc code {
  background: #eef4f9;
  border: 1px solid #d7e0e8;
  border-radius: 4px;
  padding: 2px 5px
}

.vi-help {
  display: block;
  color: #5e7084;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 4px
}

.settings-tabs {
  flex-wrap: wrap
}

.login-card .brand-logo {
  width: 42px;
  height: 42px
}

@media(max-width:800px) {
  .table-title-row {
    align-items: stretch;
    flex-direction: column
  }

  .table-search {
    width: 100%;
    max-width: none
  }
}

.inline-edit-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr .8fr auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 8px
}

.inline-edit-row input {
  margin-top: 0
}

.inline-delete {
  display: inline-block
}

.table-title-row h2 .result-count {
  vertical-align: middle
}

.login-card .brand-logo {
  background: transparent !important
}

.brand {
  background: transparent !important
}

@media(max-width:900px) {
  .inline-edit-row {
    grid-template-columns: 1fr
  }
}


/* Kmar GWM v1.4.2 â€” brighter energetic palette + improved Manual documentation */
:root {
  --ink: #0a1f44;
  --ink2: #12376a;
  --line: #d7e8fb;
  --muted: #60758f;
  --soft: #f3f9ff;
  --blue: #0768f6;
  --cyan: #16c7df;
  --teal: #12b8a6;
  --white: #fff;
  --warm: #ffad33
}

body {
  background: linear-gradient(180deg, #f3f9ff 0%, #f8fbff 46%, #ffffff 100%);
  color: var(--ink)
}

.topbar {
  background: linear-gradient(90deg, #0752cf 0%, #0877ff 48%, #13b8d8 100%);
  box-shadow: 0 10px 28px rgba(7, 104, 246, .14)
}

.nav a {
  color: rgba(255, 255, 255, .86)
}

.nav a.active,
.nav a:hover {
  color: #fff;
  border-bottom-color: #b9f7ff
}

.panel,
table,
.settings-tabs {
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(26, 114, 206, .04)
}

th {
  color: #104780;
  background: #f3f9ff
}

.summary-card {
  border-color: var(--line);
  background: linear-gradient(180deg, #ffffff, #f8fcff)
}

.summary-card strong,
.stat strong {
  color: #0752cf
}

a {
  color: #0768f6
}

.btn.primary,
button {
  background: linear-gradient(135deg, #075ee8, #12aee8);
  box-shadow: 0 8px 18px rgba(7, 104, 246, .16)
}

.btn {
  border-radius: 8px
}

.pill {
  background: #e8f4ff;
  color: #0752cf
}

.status.active {
  color: #0ca66b
}

.status.suspend {
  color: #7a8795
}

.settings-tabs {
  background: #fff;
  padding: 0 16px;
  gap: 10px;
  align-items: stretch;
  overflow-x: auto
}

.settings-tabs a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
  color: #193d69;
  border-bottom: 3px solid transparent;
  border-radius: 10px 10px 0 0
}

.settings-tabs a.active {
  color: #075ee8;
  border-bottom-color: #075ee8;
  background: linear-gradient(180deg, #f0f8ff, #fff)
}

.footer-note {
  background: #eef8ff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  color: #48617c
}

.brand-logo,
.uploaded-logo img,
.login-logo {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important
}

.brand {
  background: transparent !important
}

.manual-doc-v2 {
  padding: 26px 28px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%)
}

.manual-hero {
  margin-bottom: 22px
}

.manual-kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 7px;
  background: #e7f3ff;
  color: #075ee8;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em
}

.manual-hero h2 {
  font-size: 29px;
  line-height: 1.22;
  color: #071d49;
  margin: 14px 0 14px;
  font-weight: 600
}

.manual-info {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #b9dcff;
  background: linear-gradient(90deg, #eef8ff, #ffffff);
  border-radius: 11px;
  padding: 13px 16px;
  color: #17416e;
  font-size: 14px
}

.manual-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0768f6, #10b8dc);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-style: normal;
  flex: 0 0 auto
}

.manual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, .95fr);
  gap: 26px
}

.manual-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  padding: 20px;
  box-shadow: 0 12px 30px rgba(7, 104, 246, .05)
}

.manual-card+.manual-card {
  margin-top: 18px
}

.manual-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0752cf;
  font-size: 17px;
  margin: 0 0 14px;
  font-weight: 600
}

.manual-section-icon,
.check-title-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0768f6, #0fc4d8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(7, 104, 246, .18)
}

.manual-bullets {
  margin: 0 0 0 32px;
  padding: 0;
  color: #203f64;
  font-size: 14px;
  line-height: 1.9
}

.manual-bullets li::marker {
  color: #0768f6
}

.manual-steps {
  display: grid;
  gap: 11px
}

.manual-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  align-items: start
}

.manual-step p {
  margin: 2px 0 0;
  color: #203f64;
  font-size: 14px;
  line-height: 1.7
}

.step-no {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #075ee8, #11b9de);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(7, 104, 246, .2);
  margin-top: 2px
}

.manual-doc-v2 code {
  background: #edf6ff;
  border: 1px solid #cfe5fb;
  border-radius: 7px;
  color: #12466d;
  padding: 2px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  white-space: normal
}

.manual-code {
  display: block;
  margin: 8px 0 0;
  padding: 14px 16px;
  background: #f6fbff;
  border: 1px solid #cfe5fb;
  border-radius: 11px;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8)
}

.manual-code code {
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #133858;
  white-space: pre;
  font-size: 14px;
  line-height: 1.55
}

.compact-code {
  max-width: 620px
}

.sql-code {
  max-height: 420px
}

.manual-side {
  display: grid;
  align-content: start;
  gap: 18px
}

.check-card h3 {
  color: #0752cf
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: #203f64;
  font-size: 14px;
  line-height: 1.55
}

.check-list li:before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #27c77b;
  color: #15a865;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600
}

.manual-note {
  border: 1px solid #ffd99a;
  background: linear-gradient(135deg, #fff8ec, #fffdf8);
  border-radius: 14px;
  padding: 18px 18px 18px 56px;
  position: relative;
  color: #513a16
}

.manual-note:before {
  content: '!';
  position: absolute;
  left: 18px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffb22e, #ff8a00);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600
}

.manual-note strong {
  display: block;
  color: #b76100;
  font-size: 16px;
  margin-bottom: 8px
}

.manual-note p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: #344966
}

@media(max-width:1100px) {
  .manual-layout {
    grid-template-columns: 1fr
  }

  .manual-side {
    grid-template-columns: 1fr
  }

  .manual-hero h2 {
    font-size: 24px
  }
}

@media(max-width:700px) {
  .manual-doc-v2 {
    padding: 18px
  }

  .manual-step {
    grid-template-columns: 28px minmax(0, 1fr)
  }

  .manual-hero h2 {
    font-size: 22px
  }

  .manual-info {
    align-items: flex-start
  }

  .settings-tabs a {
    min-height: 48px;
    padding: 0 10px
  }

  .manual-code code {
    font-size: 14px
  }
}


/* Kmar GWM v1.4.3 â€” expanded Manual with post-Google-Workspace steps */
.manual-doc-v3 {
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fafdff 100%)
}

.manual-doc-v3 .manual-hero h2 {
  font-size: 30px;
  line-height: 1.22;
  color: #061b46;
  margin: 14px 0 14px;
  font-weight: 600
}

.manual-doc-v3 .manual-info {
  align-items: flex-start
}

.manual-doc-v3 .manual-info strong {
  color: #0752cf
}

.manual-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
  margin: 18px 0 24px
}

.flow-item {
  border: 1px solid #cfe5fb;
  background: linear-gradient(180deg, #f4fbff, #fff);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  align-items: center;
  box-shadow: 0 10px 24px rgba(7, 104, 246, .05)
}

.flow-item span {
  grid-row: 1/3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #075ee8, #11b9de);
  color: #fff;
  font-weight: 600
}

.flow-item strong {
  font-size: 14px;
  color: #083774;
  font-weight: 600
}

.flow-item small {
  font-size: 14px;
  color: #60758f;
  margin-top: 3px
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b7cea;
  font-size: 20px;
  font-weight: 600
}

.wide-manual-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .82fr)
}

.manual-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.manual-check-grid div {
  border: 1px solid #d9ecff;
  background: #fbfdff;
  border-radius: 12px;
  padding: 13px
}

.manual-check-grid strong {
  display: block;
  color: #12376a;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px
}

.manual-check-grid span {
  display: block;
  color: #496985;
  font-size: 14px;
  line-height: 1.55
}

.phase-card h4 {
  font-size: 14px;
  color: #0752cf;
  margin: 18px 0 9px;
  font-weight: 600
}

.next-action-box {
  border: 1px solid #9ee7f0;
  background: linear-gradient(135deg, #ebfbff, #ffffff);
  border-radius: 14px;
  padding: 15px 16px;
  margin: 8px 0 16px;
  color: #234a67
}

.next-action-box strong {
  color: #0476a9
}

.next-action-box p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.75
}

.manual-ordered {
  margin: 8px 0 14px 22px;
  padding: 0;
  color: #203f64;
  font-size: 14px;
  line-height: 1.75
}

.manual-muted {
  color: #60758f !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  margin: 8px 0 !important
}

.manual-mini-table {
  margin: 10px 0 16px;
  border-radius: 12px;
  overflow: hidden
}

.manual-mini-table th,
.manual-mini-table td {
  white-space: normal;
  font-size: 14px;
  line-height: 1.5;
  vertical-align: top
}

.manual-mini-table th {
  background: #eef8ff;
  color: #0752cf
}

.manual-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px
}

.manual-two-cols>div {
  border: 1px solid #d9ecff;
  border-radius: 14px;
  background: #fbfdff;
  padding: 15px
}

.manual-two-cols strong {
  display: block;
  color: #12376a;
  margin-bottom: 8px
}

.manual-two-cols ul {
  margin: 0 0 0 18px;
  padding: 0;
  color: #203f64;
  font-size: 14px;
  line-height: 1.75
}

.manual-doc-v3 .manual-code code {
  white-space: pre-wrap
}

.sticky-manual-side {
  position: sticky;
  top: 18px
}

.troubleshoot-card {
  margin-top: 0
}

.trouble-item {
  border-top: 1px solid #e0efff;
  padding: 11px 0
}

.trouble-item:first-of-type {
  border-top: 0
}

.trouble-item strong {
  display: block;
  color: #0a3872;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin-bottom: 4px
}

.trouble-item span {
  display: block;
  color: #526e88;
  font-size: 14px;
  line-height: 1.55
}

.manual-doc-v3 .check-list code {
  font-size: 14px
}

.manual-doc-v3 .manual-note {
  margin-top: 0
}

@media(max-width:1180px) {
  .manual-flow {
    grid-template-columns: 1fr
  }

  .flow-arrow {
    display: none
  }

  .wide-manual-layout {
    grid-template-columns: 1fr
  }

  .sticky-manual-side {
    position: static
  }

  .manual-check-grid,
  .manual-two-cols {
    grid-template-columns: 1fr
  }
}

@media(max-width:760px) {
  .manual-doc-v3 {
    padding: 18px
  }

  .manual-doc-v3 .manual-hero h2 {
    font-size: 23px
  }

  .flow-item {
    grid-template-columns: 30px 1fr
  }

  .manual-mini-table th,
  .manual-mini-table td {
    font-size: 14px
  }

  .manual-card {
    padding: 16px
  }
}


/* Kmar GWM v1.4.4 â€” Apple Spatial UI refresh + copyable Manual + cleaner Changelog */
:root {
  --ink: #071a3f;
  --ink2: #12376a;
  --line: rgba(56, 117, 190, .18);
  --muted: #6a7d96;
  --soft: #f5faff;
  --blue: #007aff;
  --cyan: #32d5ff;
  --teal: #30d5c8;
  --white: #fff;
  --warm: #ffb340;
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .88);
  --spatial-shadow: 0 22px 60px rgba(20, 70, 140, .13), 0 2px 8px rgba(6, 28, 70, .05);
}

body {
  background:
    radial-gradient(circle at 8% -8%, rgba(50, 213, 255, .24), transparent 34%),
    radial-gradient(circle at 92% 2%, rgba(0, 122, 255, .18), transparent 30%),
    linear-gradient(180deg, #f3f9ff 0%, #fbfdff 58%, #ffffff 100%);
}

.topbar {
  background: rgba(255, 255, 255, .72) !important;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .78);
  border-left: 0;
  border-right: 0;
  box-shadow: 0 18px 45px rgba(18, 75, 160, .12);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35)
}

.brand-link,
.brand-link:hover {
  color: var(--ink)
}

.brand-title {
  color: #006ee6
}

.brand-subtitle {
  color: #60758f;
  opacity: 1
}

.nav a {
  color: #274466;
  background: transparent;
  border-bottom: 0;
  border-radius: 999px;
  height: auto;
  padding: 10px 13px;
  text-transform: none;
  letter-spacing: 0
}

.nav a.active,
.nav a:hover {
  color: #006ee6;
  background: rgba(0, 122, 255, .09);
  border-bottom-color: transparent
}

.user-menu {
  color: #274466
}

.user-menu a {
  color: #006ee6;
  border-color: rgba(0, 122, 255, .22);
  background: rgba(0, 122, 255, .07)
}

.panel,
.settings-tabs,
table,
.summary-card,
.stat,
.manual-card,
.login-card {
  background: var(--glass-strong);
  border-color: var(--line);
  border-radius: 18px;
  box-shadow: var(--spatial-shadow);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25)
}

.settings-tabs {
  padding: 8px;
  gap: 6px
}

.settings-tabs a {
  border-bottom: 0;
  border-radius: 14px;
  min-height: 44px;
  color: #244566
}

.settings-tabs a.active {
  background: linear-gradient(180deg, rgba(0, 122, 255, .13), rgba(50, 213, 255, .07));
  color: #006ee6;
  box-shadow: inset 0 0 0 1px rgba(0, 122, 255, .17)
}

.btn.primary,
button {
  background: linear-gradient(135deg, #007aff, #31c8ff);
  box-shadow: 0 12px 26px rgba(0, 122, 255, .18);
  border-radius: 12px
}

.btn {
  border-radius: 12px
}

.btn.danger {
  background: linear-gradient(135deg, #ff5f6d, #ff8a5b);
  color: #fff
}

.btn:hover,
button:hover {
  filter: brightness(1.02);
  transform: translateY(-1px)
}

.table.compact th,
.table.compact td,
th,
td {
  border-bottom-color: rgba(56, 117, 190, .13)
}

th {
  background: rgba(245, 250, 255, .86);
  color: #103d77
}

.sortable th.sorted {
  background: rgba(0, 122, 255, .12)
}

input,
select {
  border-color: rgba(56, 117, 190, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82)
}

.footer-note {
  background: rgba(255, 255, 255, .62);
  border-color: var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(18, 75, 160, .08);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25)
}

.manual-doc-v3 {
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(248, 252, 255, .72));
  border-radius: 22px
}

.manual-info {
  background: linear-gradient(90deg, rgba(232, 247, 255, .9), rgba(255, 255, 255, .72));
  border-color: rgba(0, 122, 255, .22)
}

.manual-kicker {
  background: rgba(0, 122, 255, .10);
  color: #006ee6
}

.manual-section-icon,
.check-title-icon,
.step-no,
.flow-item span,
.manual-icon {
  background: linear-gradient(135deg, #007aff, #32d5ff);
  box-shadow: 0 12px 24px rgba(0, 122, 255, .2)
}

.flow-item,
.manual-check-grid div,
.manual-two-cols>div {
  background: rgba(255, 255, 255, .68);
  border-color: rgba(0, 122, 255, .16)
}

.manual-code {
  position: relative;
  padding-right: 58px;
  background: rgba(246, 251, 255, .82);
  border-color: rgba(0, 122, 255, .2);
  border-radius: 14px
}

.copy-code-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 30px;
  padding: 0;
  border-radius: 10px;
  background: rgba(0, 122, 255, .10);
  color: #006ee6;
  border: 1px solid rgba(0, 122, 255, .18);
  box-shadow: none;
  font-size: 14px
}

.copy-code-btn:hover {
  background: rgba(0, 122, 255, .18);
  transform: none
}

.copy-code-btn.copied {
  background: #15c784;
  color: #fff;
  border-color: #15c784
}

.manual-doc-v3 code.manual-inline-copy {
  cursor: pointer;
  transition: .16s
}

.manual-doc-v3 code.manual-inline-copy:hover {
  background: #dff3ff;
  border-color: #99dafb
}

.copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(7, 26, 63, .92);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 18px 50px rgba(7, 26, 63, .22)
}

.changelog-page {
  padding: 26px
}

.changelog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px
}

.changelog-head h2 {
  font-size: 26px;
  color: #071a3f;
  margin: 8px 0 6px
}

.changelog-head p {
  margin: 0;
  color: #60758f;
  font-size: 14px;
  line-height: 1.6
}

.changelog-count {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0, 122, 255, .10);
  color: #006ee6;
  font-size: 14px;
  font-weight: 600
}

.changelog-timeline {
  position: relative;
  display: grid;
  gap: 16px
}

.changelog-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid rgba(0, 122, 255, .14);
  background: rgba(255, 255, 255, .72);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 38px rgba(20, 70, 140, .08)
}

.changelog-version {
  display: grid;
  align-content: start;
  gap: 7px;
  border-right: 1px solid rgba(0, 122, 255, .13);
  padding-right: 16px
}

.changelog-version strong {
  font-size: 20px;
  color: #006ee6
}

.changelog-version span {
  font-size: 14px;
  color: #60758f
}

.changelog-version em {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e9f9f0;
  color: #0aa669;
  font-style: normal;
  font-size: 14px;
  font-weight: 600
}

.changelog-body ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none
}

.changelog-body li {
  position: relative;
  padding-left: 20px;
  color: #244566;
  font-size: 14px;
  line-height: 1.65
}

.changelog-body li:before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: #13b978;
  font-weight: 600
}

.empty-state {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: #60758f;
  text-align: center
}

@media(max-width:900px) {
  .changelog-card {
    grid-template-columns: 1fr
  }

  .changelog-version {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 122, 255, .13);
    padding: 0 0 12px
  }

  .changelog-head {
    flex-direction: column
  }

  .topbar {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px
  }

  .nav {
    width: 100%;
    overflow: auto;
    gap: 8px
  }

  .brand {
    width: auto
  }

  .user-menu {
    width: 100%;
    justify-content: space-between
  }
}

/* Kmar GWM v1.4.5 responsive metrics, meters, charts, customer modal, undo popup */
:root {
  --kmar-red: #ef4444;
  --kmar-amber: #f59e0b;
  --kmar-green: #16a34a;
  --kmar-blue: #0b6bff;
  --spatial-bg: #f6fbff;
}

th.sort-asc::after {
  content: " â†‘";
  color: var(--kmar-blue);
  font-weight: 600;
}

th.sort-desc::after {
  content: " â†“";
  color: var(--kmar-blue);
  font-weight: 600;
}

th:not(.sort-asc):not(.sort-desc)::after {
  content: " â†•";
  color: #94a3b8;
  font-weight: 400;
}

.value-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap
}

.mini-meter {
  display: inline-block;
  width: 92px;
  height: 5px;
  border-radius: 999px;
  background: #c3c9d1;
  overflow: hidden;
  vertical-align: middle
}

.mini-meter i {
  display: block;
  height: 100%;
  border-radius: 999px
}

.mini-meter.ok i {
  background: var(--kmar-blue)
}

.mini-meter.warning i {
  background: var(--kmar-amber)
}

.mini-meter.critical i {
  background: var(--kmar-red)
}

.admin-chart-grid {
  align-items: stretch
}

.chart-card {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.donut {
  --a: 0;
  --b: 100;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 10px auto;
  background: conic-gradient(var(--kmar-blue) calc(var(--a)*1%), #dbe3ee 0);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05)
}

.donut:after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px)
}

.donut span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 26px;
  color: #0f172a;
  z-index: 2
}

.bar-stack {
  height: 18px;
  border-radius: 999px;
  background: #dbe3ee;
  position: relative;
  overflow: hidden
}

.bar-stack span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px
}

.bar-stack .sold {
  background: var(--kmar-amber);
  opacity: .9
}

.bar-stack .used {
  background: linear-gradient(90deg, #fb7185, var(--kmar-red));
  height: 8px;
  top: 5px;
  bottom: auto
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: #475569
}

.chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px
}

.chart-legend .blue {
  background: var(--kmar-blue)
}

.chart-legend .amber {
  background: var(--kmar-amber)
}

.chart-legend .red {
  background: var(--kmar-red)
}

.chart-legend .gray {
  background: #cbd5e1
}

.backup-checkbox,
#checkAllBackups {
  width: 16px !important;
  height: 16px !important;
  accent-color: var(--kmar-blue)
}

.backup-head {
  margin-bottom: 18px
}

.backup-scope small {
  line-height: 1.45;
  max-width: 360px;
  display: block
}

.row-actions,
.backup-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end
}

.package-edit-row {
  display: contents
}

.package-row-form input {
  width: 100%
}

.inline-delete {
  display: inline-flex;
  margin: 0
}

.date-suggestions {
  display: flex;
  gap: 6px;
  margin-top: 7px;
  flex-wrap: wrap
}

.date-suggestions button {
  border: 1px solid rgba(11, 107, 255, .22);
  background: #eef6ff;
  color: #0b4fb8;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 14px;
  cursor: pointer
}

.date-suggestions button:hover {
  background: #dbeafe
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .28);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
  backdrop-filter: blur(8px)
}

.modal.open {
  display: flex
}

.modal-card {
  width: min(640px, 100%);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .22);
  padding: 24px;
  position: relative
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  border: 0;
  background: #eef2f7;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  cursor: pointer
}

.domain-checks {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 16px;
  padding: 12px;
  background: #f8fbff
}

.domain-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px
}

.undo-toast {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: rgba(15, 23, 42, .94);
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .35);
  z-index: 100400;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 14px;
  min-width: 310px
}

.undo-toast strong {
  grid-column: 1/2
}

.undo-toast span {
  color: #cbd5e1;
  font-size: 14px
}

.undo-toast button {
  grid-column: 2;
  grid-row: 1/3;
  border: 0;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 600;
  cursor: pointer
}

@media (max-width:1200px) {
  .page {
    padding: 16px
  }

  .table-wrap {
    overflow-x: auto
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .grid.two {
    grid-template-columns: 1fr !important
  }

  .topbar {
    flex-wrap: wrap
  }

  .nav {
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 6px
  }

  .mini-meter {
    width: 70px
  }
}

@media (max-width:720px) {

  .summary-grid,
  .form-grid.four,
  .form-grid.two {
    grid-template-columns: 1fr !important
  }

  .table-title-row {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px
  }

  .table-search {
    width: 100% !important
  }

  .brand-subtitle {
    display: none
  }

  .user-menu {
    width: 100%;
    justify-content: space-between
  }

  .page-title {
    font-size: 24px
  }

  .admin-head {
    grid-template-columns: 1fr !important
  }

  .mini-meter {
    width: 55px
  }

  .value-meter {
    gap: 5px
  }

  .footer-note {
    flex-direction: column;
    gap: 4px
  }

  .undo-toast {
    left: 12px;
    right: 12px;
    min-width: 0
  }
}


/* Kmar GWM v1.4.6 alignment, customer editing and Admin Package table fixes */
.number-col {
  text-align: right !important;
  font-variant-numeric: tabular-nums lining-nums;
}

.decimal-col,
.metric-value {
  font-variant-numeric: tabular-nums lining-nums;
}

.meter-col {
  min-width: 190px;
}

.value-meter {
  display: grid !important;
  grid-template-columns: minmax(64px, 84px) 98px;
  align-items: center;
  justify-content: end;
  gap: 10px;
  width: 100%;
}

.metric-value {
  display: block;
  text-align: right;
  white-space: nowrap;
}

.mini-meter {
  width: 98px !important;
  flex: 0 0 98px;
}

.admin-package-table td {
  vertical-align: middle;
}

.admin-package-table .number-input {
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}

.admin-package-create-form .form-actions {
  align-self: end;
}

.action-col {
  width: 160px;
  text-align: right !important;
}

.customers-table .action-col {
  width: 120px;
}

.customer-insights-panel {
  display: grid;
  grid-template-columns: minmax(520px, 46%) minmax(640px, 1fr);
  gap: 32px;
  align-items: stretch;
  padding: 24px 26px;
}

.customer-pie-side {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-pie-chart {
  width: 100%;
  height: 540px;
}

.customer-table-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.customer-table-side .table-title-row {
  margin-bottom: 12px;
}

.customer-table-wrap {
  flex: 1;
  max-height: 500px !important;
  min-height: 0;
}

.customer-table-side .customers-table {
  min-width: 760px;
}

@media (max-width: 1280px) {
  .customer-insights-panel {
    grid-template-columns: 1fr;
  }

  .customer-pie-side {
    min-height: 460px;
  }

  .customer-pie-chart {
    height: 440px;
  }

  .customer-table-wrap {
    max-height: none !important;
  }
}

@media (max-width: 700px) {
  .customer-insights-panel {
    padding: 18px;
  }

  .customer-pie-side {
    min-height: 340px;
  }

  .customer-pie-chart {
    height: 320px;
  }
}

.customer-modal-card {
  width: min(760px, 96vw);
}

.customer-form {
  gap: 16px;
}

.account-detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.account-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-title-row .page-title {
  margin: 0;
}

.account-status-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.account-status-label.active {
  color: #059669;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

.account-status-label.suspend {
  color: #e11d48;
  background: #ffe4e6;
  border: 1px solid #fecdd3;
}

.account-actions-panel {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px;
}

.account-actions-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.account-actions-group h2 {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--ent-700);
  letter-spacing: 0;
}

.account-actions-group form {
  margin: 0;
}

.action-wide {
  width: 100%;
  min-height: 36px;
  justify-content: center;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.account-detail-main {
  min-width: 0;
}

.account-action-flash {
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46;
  padding: 16px 18px;
  margin-bottom: 12px;
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.account-action-flash.error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.account-action-flash strong {
  font-size: 18px;
}

.account-action-flash input {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-line input {
  width: auto;
}

.account-actions-panel .btn {
  background: #fff !important;
  border: 1px solid var(--ent-200) !important;
  color: var(--ent-700) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 8px 10px !important;
}

.account-actions-panel .btn:hover {
  background: var(--ent-50) !important;
  border-color: var(--ent-300) !important;
  color: var(--ent-800) !important;
  transform: none !important;
}

.account-actions-panel .btn.primary {
  background: var(--ent-600) !important;
  border-color: var(--ent-600) !important;
  color: #fff !important;
}

.account-actions-panel .btn.danger {
  background: #fff !important;
  border-color: #fecdd3 !important;
  color: var(--rose-600) !important;
}

.account-actions-panel .btn.danger:hover {
  background: var(--rose-100) !important;
  border-color: #fda4af !important;
}

.account-op-modal {
  width: min(560px, calc(100vw - 32px)) !important;
  padding: 28px 28px 24px !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 1px solid var(--ent-200) !important;
  box-shadow: 0 24px 70px rgba(38, 56, 77, .22) !important;
}

.account-op-modal h2 {
  margin: 0 0 18px !important;
  font-size: 24px !important;
  color: var(--ink) !important;
}

.account-op-modal .form-grid {
  gap: 14px !important;
}

.account-op-modal label {
  color: var(--ink2) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.account-op-modal input[type="radio"],
.account-op-modal input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: initial !important;
  box-shadow: none !important;
}

.account-op-modal form > label:has(input[type="radio"]) {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--ent-100);
  border-radius: 8px;
  background: var(--ent-50);
}

.account-op-modal .check-line {
  min-height: 36px;
  align-items: center;
  color: var(--stone-600) !important;
}

.account-op-modal input[type="text"],
.account-op-modal input[type="password"],
.account-op-modal input:not([type]),
.account-op-modal select {
  min-height: 40px !important;
  border-radius: 8px !important;
}

.account-op-modal .modal-actions {
  margin-top: 8px;
  gap: 10px;
}

.account-op-modal .modal-actions .btn {
  min-width: 92px;
  min-height: 40px;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.account-confirm-modal {
  width: min(460px, calc(100vw - 32px)) !important;
  padding: 26px 26px 22px !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 1px solid var(--ent-200) !important;
  box-shadow: 0 24px 70px rgba(38, 56, 77, .24) !important;
}

.account-confirm-modal h2 {
  margin: 0 0 10px !important;
  font-size: 21px !important;
  color: var(--ink) !important;
}

.account-confirm-modal p {
  margin: 0;
  color: var(--stone-600) !important;
  font-size: 14px;
  line-height: 1.55;
}

.account-confirm-modal .modal-actions {
  margin-top: 22px;
  gap: 10px;
}

.account-confirm-modal .modal-actions .btn {
  min-width: 92px;
  min-height: 40px;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.account-confirm-modal .btn.danger {
  background: var(--rose-600) !important;
  border-color: var(--rose-600) !important;
  color: #fff !important;
}

@media (max-width: 1100px) {
  .account-detail-layout {
    grid-template-columns: 1fr;
  }

  .account-actions-panel {
    position: static;
  }
}

.domain-picker {
  display: grid;
  gap: 10px;
  grid-column: 1/-1;
}

.domain-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.domain-picker-head strong {
  color: #12365f;
  font-size: 14px;
}

.domain-search {
  width: min(280px, 48vw);
  height: 38px;
  padding: 8px 12px;
}

.domain-checks {
  gap: 6px;
  max-height: 310px;
  padding: 10px;
}

.domain-check-row {
  display: grid !important;
  grid-template-columns: 18px minmax(160px, 1fr) auto;
  gap: 10px !important;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .68);
}

.domain-check-row input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  accent-color: var(--kmar-blue);
  margin: 0;
}

.domain-name {
  font-weight: 500;
  color: #14365e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-meta {
  color: #64748b;
  font-size: 14px;
  white-space: nowrap;
}

.modal-close {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, .16) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12) !important;
  display: grid;
  place-items: center;
  line-height: 1;
}

.modal-close:hover,
.btn.ghost:hover {
  background: #eaf4ff !important;
  color: #006ee6 !important;
}

.btn.ghost {
  background: #fff !important;
  color: #17405f !important;
  border: 1px solid rgba(23, 64, 95, .18) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06) !important;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  grid-column: 1/-1;
  margin-top: 4px;
}

@media(max-width:900px) {
  .value-meter {
    grid-template-columns: minmax(54px, 72px) 76px
  }

  .mini-meter {
    width: 76px !important
  }

  .meter-col {
    min-width: 150px
  }

  .domain-picker-head {
    align-items: stretch;
    flex-direction: column
  }

  .domain-search {
    width: 100%
  }

  .domain-check-row {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .domain-meta {
    grid-column: 2;
    white-space: normal
  }

  .action-col {
    width: auto
  }
}

@media(max-width:640px) {
  .value-meter {
    grid-template-columns: 1fr;
    justify-items: end;
    gap: 5px
  }

  .mini-meter {
    width: 100% !important
  }

  .meter-col {
    min-width: 120px
  }

  .modal {
    padding: 10px
  }

  .customer-modal-card {
    padding: 18px
  }

  .domain-checks {
    max-height: 260px
  }
}

.package-cell-form {
  margin: 0
}

.package-cell-form input,
.admin-package-table input {
  width: 100%;
}


/* Kmar GWM v1.4.7 fixes: customer domain search/count, modal close, suspend status */
.status.suspend,
.status.suspended,
.status[data-status="Suspend"] {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, .09);
  border: 1px solid rgba(239, 68, 68, .18);
  border-radius: 999px;
  padding: 3px 8px;
}

.domain-picker-head strong {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.domain-result-count {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.domain-check-row.is-hidden {
  display: none !important;
}

.domain-check-row mark {
  background: #fff4bf;
  color: inherit;
  padding: 0 1px;
  border-radius: 3px;
}

.modal-card {
  padding-top: 30px;
}

.modal-close {
  top: 16px !important;
  right: 16px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, .14) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .13) !important;
}

.modal-close:hover {
  background: #eff6ff !important;
  color: #006ee6 !important;
  transform: none !important;
}

@media(max-width:640px) {
  .domain-picker-head {
    gap: 10px;
  }

  .domain-result-count {
    display: inline-block;
  }
}


/* Kmar GWM v1.4.8: prevent selecting domains already owned by another customer */
.domain-check-row.is-owned-other {
  opacity: .48;
  background: rgba(241, 245, 249, .72) !important;
  border-style: dashed;
  cursor: not-allowed;
}

.domain-check-row.is-owned-other .domain-checkbox-slot {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.domain-check-row.is-owned-other .domain-checkbox-slot input {
  display: none !important;
}

.domain-check-row.is-owned-other .domain-checkbox-slot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .12);
}

.domain-check-row.is-owned-other .domain-name,
.domain-check-row.is-owned-other .domain-meta {
  color: #64748b !important;
}

.domain-owner-chip {
  color: #0b6bff;
  font-size: 14px;
  font-weight: 600;
  margin-left: 4px;
  white-space: nowrap;
}

.domain-check-row.is-owned-other .domain-owner-chip {
  color: #475569;
}

.domain-check-row.is-owned-current {
  border-color: rgba(11, 107, 255, .32) !important;
  background: rgba(239, 246, 255, .8) !important;
}

/* Kmar GWM v1.4.8 Melon Palette + Admin filter/domain table refinements */
:root {
  --melon-mint: #97DBAE;
  --melon-green: #C3E5AE;
  --melon-cream: #F1E1A6;
  --melon-pink: #F4BBBB;
  --melon-ink: #314055;
  --melon-muted: #718197;
  --melon-line: #dbe9e2;
  --melon-soft: #f7fcf8;
  --melon-card: rgba(255, 255, 255, .86);
  --kmar-blue: #6aaed6;
  --kmar-green: #97DBAE;
  --kmar-amber: #F1E1A6;
  --kmar-red: #d9788a;
}

html,
body {
  background: linear-gradient(135deg, #f5fbf7 0%, #eef9f2 45%, #fbf5f5 100%) !important;
  color: var(--melon-ink) !important;
}

.topbar {
  background: rgba(255, 255, 255, .82) !important;
  color: var(--melon-ink) !important;
  border: 1px solid rgba(151, 219, 174, .32);
  box-shadow: 0 18px 55px rgba(77, 116, 91, .13);
  backdrop-filter: blur(18px);
  border-radius: 0 0 24px 24px;
}

.brand-title,
.nav a,
.user-menu {
  color: var(--melon-ink) !important
}

.brand-subtitle {
  color: var(--melon-muted) !important
}

.brand-link {
  color: var(--melon-ink) !important
}

.nav a {
  border-radius: 999px;
  padding: 0 14px;
  height: 44px;
  border-bottom: 0 !important
}

.nav a.active,
.nav a:hover {
  background: linear-gradient(135deg, rgba(151, 219, 174, .34), rgba(195, 229, 174, .42));
  color: #244534 !important;
  box-shadow: inset 0 0 0 1px rgba(151, 219, 174, .35)
}

.panel,
.settings-tabs,
.login-card,
.modal-card {
  background: var(--melon-card) !important;
  border-color: rgba(151, 219, 174, .32) !important;
  box-shadow: 0 20px 60px rgba(71, 105, 84, .10) !important;
  backdrop-filter: blur(18px)
}

.panel {
  border-radius: 22px !important
}

.settings-tabs {
  border-radius: 22px 22px 0 0 !important;
  background: rgba(255, 255, 255, .78) !important
}

.settings-tabs a.active {
  color: #2b7651 !important;
  border-bottom-color: var(--melon-mint) !important;
  background: rgba(151, 219, 174, .18);
  border-radius: 14px 14px 0 0;
  padding-left: 10px;
  padding-right: 10px
}

.settings-tabs a {
  color: #4f6278 !important
}

button,
.btn.primary {
  background: linear-gradient(135deg, #97DBAE, #C3E5AE) !important;
  color: #1f3d2f !important;
  box-shadow: 0 12px 28px rgba(151, 219, 174, .26) !important
}

.btn.danger {
  background: linear-gradient(135deg, #F4BBBB, #d9788a) !important;
  color: #5b2730 !important
}

.btn.ghost,
.modal-close {
  background: rgba(255, 255, 255, .88) !important;
  color: var(--melon-ink) !important;
  border-color: rgba(151, 219, 174, .38) !important
}

input,
select,
textarea {
  background: rgba(255, 255, 255, .86) !important;
  border-color: rgba(151, 219, 174, .42) !important;
  color: var(--melon-ink) !important;
  border-radius: 14px !important
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: #97DBAE !important;
  box-shadow: 0 0 0 4px rgba(151, 219, 174, .22) !important
}

table {
  border-color: rgba(151, 219, 174, .34) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .78) !important
}

th {
  background: linear-gradient(180deg, rgba(195, 229, 174, .22), rgba(255, 255, 255, .8)) !important;
  color: #314055 !important
}

td {
  border-bottom-color: rgba(151, 219, 174, .24) !important
}

.sortable th.sorted {
  background: rgba(241, 225, 166, .35) !important
}

.pill {
  background: rgba(195, 229, 174, .35) !important;
  color: #31533c !important;
  border: 1px solid rgba(151, 219, 174, .36)
}

a {
  color: #2a8b5b !important
}

.page-title,
h1,
h2,
h3 {
  color: #253649 !important
}

.muted,
.result-count {
  color: var(--melon-muted) !important
}

.summary-card,
.stat {
  background: rgba(255, 255, 255, .72) !important;
  border-color: rgba(151, 219, 174, .30) !important;
  border-radius: 18px !important
}

.summary-card strong,
.stat strong {
  color: #2d5140 !important
}

.notice,
.manual-info {
  background: linear-gradient(135deg, rgba(151, 219, 174, .18), rgba(241, 225, 166, .20)) !important;
  border-color: rgba(151, 219, 174, .32) !important;
  color: #314055 !important
}

.mini-meter {
  background: #ecf5ee !important
}

.mini-meter.ok i {
  background: linear-gradient(90deg, #97DBAE, #70c891) !important
}

.mini-meter.warning i {
  background: linear-gradient(90deg, #F1E1A6, #e4c95c) !important
}

.mini-meter.critical i {
  background: linear-gradient(90deg, #F4BBBB, #d9788a) !important
}

.bar-stack {
  background: #edf5ef !important
}

.bar-stack .sold {
  background: #F1E1A6 !important
}

.bar-stack .used {
  background: linear-gradient(90deg, #F4BBBB, #d9788a) !important
}

.donut {
  background: conic-gradient(#97DBAE calc(var(--a)*1%), #edf5ef 0) !important
}

.chart-legend .blue {
  background: #97DBAE !important
}

.chart-legend .amber {
  background: #F1E1A6 !important
}

.chart-legend .red {
  background: #F4BBBB !important
}

.status.active {
  color: #267348 !important;
  background: rgba(151, 219, 174, .22);
  border: 1px solid rgba(151, 219, 174, .35);
  border-radius: 999px;
  padding: 3px 8px
}

.status.suspend,
.status.suspended {
  color: #c24f63 !important;
  background: rgba(244, 187, 187, .24) !important;
  border-color: rgba(217, 120, 138, .28) !important
}

.status-suspend-text {
  color: #c24f63 !important
}

.footer-note {
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(151, 219, 174, .25);
  border-radius: 18px;
  padding: 12px 16px !important;
  margin-top: 12px;
  color: #4b6075 !important
}

.table-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(560px, 60%)
}

.table-tools .table-search {
  max-width: none;
  width: 320px
}

.admin-filter {
  position: relative;
  z-index: 20
}

.admin-filter-toggle {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(151, 219, 174, .42) !important;
  background: rgba(255, 255, 255, .82) !important;
  color: #314055 !important;
  border-radius: 14px !important;
  padding: 0 12px !important;
  box-shadow: none !important;
  font-size: 14px;
  white-space: nowrap
}

.admin-filter-toggle b {
  font-size: 14px;
  color: #718197
}

.admin-filter-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  display: none;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(151, 219, 174, .36);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(49, 64, 85, .16);
  padding: 8px;
  z-index: 50
}

.admin-filter.open .admin-filter-menu {
  display: grid;
  gap: 3px
}

.admin-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 10px;
  font-size: 14px;
  text-transform: none;
  color: #314055;
  cursor: pointer
}

.admin-filter-option:hover {
  background: rgba(151, 219, 174, .18)
}

.admin-filter-option input {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  accent-color: #97DBAE
}

.admin-filter-option.all-option {
  font-weight: 600;
  border-bottom: 1px solid rgba(151, 219, 174, .24);
  border-radius: 10px 10px 4px 4px;
  margin-bottom: 4px
}

.admin-domains-panel {
  margin-top: 10px
}

.admin-domains-panel th,
.admin-domains-panel td {
  font-variant-numeric: tabular-nums lining-nums
}

@media(max-width:900px) {
  .table-title-row {
    align-items: stretch !important
  }

  .table-tools {
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: stretch
  }

  .table-tools .table-search {
    width: 100% !important
  }

  .admin-filter-toggle {
    width: 100%;
    justify-content: space-between
  }

  .admin-filter-menu {
    left: 0;
    right: auto;
    width: 100%
  }
}


/* Kmar GWM v1.4.9 Caribbean palette + refined admin dropdowns */
:root {
  --caribbean-mint: #53D2DC;
  --caribbean-blue: #3196E2;
  --caribbean-coral: #FF826C;
  --caribbean-sun: #FFC05F;
  --caribbean-ink: #263748;
  --caribbean-muted: #6b7b8d;
  --caribbean-line: rgba(49, 150, 226, .22);
  --caribbean-soft: #f6fcfd;
}

body {
  background: linear-gradient(135deg, #f7feff 0%, #f4fbff 42%, #fffaf0 100%) !important;
  color: var(--caribbean-ink) !important;
}

.topbar {
  background: rgba(255, 255, 255, .88) !important;
  border: 1px solid rgba(83, 210, 220, .35) !important;
  box-shadow: 0 18px 55px rgba(49, 150, 226, .12) !important;
  color: var(--caribbean-ink) !important;
}

.brand-title {
  color: #1f6fb2 !important
}

.brand-subtitle,
.muted {
  color: var(--caribbean-muted) !important
}

.brand-link,
.brand-link:hover {
  color: var(--caribbean-ink) !important
}

.nav a {
  color: #42566b !important
}

.nav a.active,
.nav a:hover {
  color: #1f6fb2 !important;
  border-bottom-color: var(--caribbean-blue) !important;
  background: rgba(83, 210, 220, .12)
}

.panel,
.settings-tabs,
.login-card,
.modal-card,
table,
.summary-card,
.stat {
  background: rgba(255, 255, 255, .86) !important;
  border-color: var(--caribbean-line) !important;
  box-shadow: 0 20px 55px rgba(49, 150, 226, .09) !important;
}

.summary-card {
  background: linear-gradient(180deg, #ffffff, #f6fdff) !important
}

.summary-card strong,
.stat strong,
.page-title,
.panel h2,
h3 {
  color: #263748 !important
}

th {
  background: #f1fbff !important;
  color: #23658e !important;
  border-bottom-color: rgba(49, 150, 226, .18) !important
}

td {
  border-bottom-color: rgba(49, 150, 226, .14) !important
}

a {
  color: #1d84cf !important
}

.btn.primary,
button,
.admin-filter-toggle {
  background: linear-gradient(135deg, var(--caribbean-blue), var(--caribbean-mint)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 12px 28px rgba(49, 150, 226, .20) !important
}

.btn {
  border-radius: 13px !important
}

.btn.ghost {
  background: #fff !important;
  color: #263748 !important;
  border: 1px solid rgba(49, 150, 226, .22) !important;
  box-shadow: none !important
}

.btn.danger {
  background: linear-gradient(135deg, var(--caribbean-coral), #ff5f79) !important;
  color: #fff !important
}

input,
select {
  border-color: rgba(49, 150, 226, .25) !important;
  background: rgba(255, 255, 255, .93) !important;
  color: #263748 !important;
  border-radius: 14px !important
}

input:focus,
select:focus {
  outline: 2px solid rgba(83, 210, 220, .25);
  border-color: var(--caribbean-blue) !important
}

.status.active {
  color: #24785a !important;
  background: rgba(83, 210, 220, .12)
}

.status.suspend {
  color: #d6423c !important;
  background: rgba(255, 130, 108, .14)
}

.status {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500
}

.mini-bar,
.meter-track {
  background: #edf6f8 !important
}

.meter-fill.ok {
  background: var(--caribbean-mint) !important
}

.meter-fill.warn {
  background: var(--caribbean-sun) !important
}

.meter-fill.critical {
  background: var(--caribbean-coral) !important
}

.admin-filter {
  position: relative;
  z-index: 60
}

.admin-filter-toggle {
  height: 40px;
  min-width: 148px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px 0 14px !important;
  border-radius: 999px !important;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease
}

.admin-filter-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(49, 150, 226, .24) !important
}

.admin-filter-label {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 132px
}

.admin-filter-caret {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  position: relative;
  flex: 0 0 auto
}

.admin-filter-caret:before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease
}

.admin-filter.open .admin-filter-caret:before {
  transform: rotate(225deg) translate(-1px, -1px)
}

.admin-filter-menu {
  right: 0;
  top: calc(100% + 10px);
  min-width: 224px;
  padding: 10px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .98) !important;
  border: 1px solid rgba(49, 150, 226, .22) !important;
  box-shadow: 0 24px 65px rgba(38, 55, 72, .18) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px)
}

.admin-filter-option {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 34px;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  color: #263748 !important;
  font-size: 14px !important;
  line-height: 1.2
}

.admin-filter-option:hover {
  background: rgba(83, 210, 220, .14) !important
}

.admin-filter-option input {
  width: 16px !important;
  height: 16px !important;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(38, 55, 72, .35) !important;
  border-radius: 5px !important;
  background: #fff !important;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  margin: 0 !important
}

.admin-filter-option input:checked {
  background: var(--caribbean-mint) !important;
  border-color: #3bbac7 !important
}

.admin-filter-option input:checked:after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: -1px
}

.admin-filter-option.all-option {
  font-weight: 600;
  border-bottom: 1px solid rgba(49, 150, 226, .16);
  margin-bottom: 5px;
  padding-bottom: 10px !important
}

.table-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px
}

.table-tools .table-search {
  width: 320px;
  max-width: none
}

.table-title-row h2 {
  gap: 6px
}

.result-count {
  color: #6b7b8d !important
}

.number-col {
  text-align: right !important;
  font-variant-numeric: tabular-nums lining-nums
}

.sortable th.sort-asc:after,
.sortable th.sort-desc:after {
  color: var(--caribbean-blue) !important
}

.sortable th.sorted {
  background: #eaf9fc !important
}

.footer-note {
  background: rgba(255, 255, 255, .78) !important;
  border: 1px solid var(--caribbean-line);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(49, 150, 226, .08);
  padding: 12px 14px !important
}

@media(max-width:900px) {
  .table-tools {
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: stretch
  }

  .table-tools .table-search {
    width: 100% !important
  }

  .admin-filter-toggle {
    width: 100%;
    max-width: none
  }

  .admin-filter-menu {
    left: 0;
    right: auto;
    width: 100%
  }

  .nav {
    gap: 8px
  }

  .nav a {
    white-space: nowrap
  }

  .topbar {
    border-radius: 0 0 20px 20px !important
  }
}



/* Kmar GWM v1.5.2 Enterprise Blue UI Overhaul */
:root {
  --ent-50: #f4f8fd;
  --ent-100: #e6f0fa;
  --ent-200: #c9e0f6;
  --ent-300: #9cc6ef;
  --ent-400: #67a6e6;
  --ent-500: #4286f5;
  /* Secondary blue */
  --ent-600: #296adb;
  --ent-700: #1967d3;
  /* Primary blue */
  --ent-800: #1a499d;
  --ent-900: #193e7d;

  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;

  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;

  --rose-100: #ffe4e6;
  --rose-600: #e11d48;

  --kmar-blue: var(--ent-700);
}

body {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
  background: var(--ent-50) !important;
  color: var(--stone-900) !important;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  background: #ffffff !important;
  border-bottom: 1px solid var(--ent-200) !important;
  box-shadow: 0 4px 12px rgba(25, 103, 211, 0.05) !important;
  color: var(--stone-900) !important;
}

.brand-title {
  color: var(--ent-700) !important;
  font-weight: 700;
}

.brand-subtitle,
.muted {
  color: var(--stone-500) !important;
}

.nav a {
  color: var(--stone-500) !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a i {
  font-size: 18px;
}

.nav a.active,
.nav a:hover {
  background: var(--ent-100) !important;
  color: var(--ent-700) !important;
  border-bottom: none !important;
}

.panel,
.settings-tabs,
.login-card,
.modal-card,
table,
.summary-card,
.stat {
  background: #ffffff !important;
  border: 1px solid var(--ent-200) !important;
  box-shadow: 0 4px 20px rgba(25, 103, 211, 0.04) !important;
  border-radius: 12px !important;
}

.panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ent-800) !important;
}

th {
  background: #ffffff !important;
  color: var(--stone-500) !important;
  font-weight: 700;
  border-bottom: 2px solid var(--ent-200) !important;
  text-transform: uppercase;
  font-size: 13px !important;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 10;
}

td {
  border-bottom: 1px solid var(--ent-100) !important;
  color: var(--stone-800) !important;
  font-weight: 500;
}

tbody tr:nth-child(even) {
  background-color: #ffffff;
}

tbody tr:nth-child(odd) {
  background-color: var(--ent-50);
}

tbody tr:hover {
  background-color: var(--ent-100) !important;
}

/* FIX CORRUPTED SORT ARROWS */
.sortable th:after,
th:not(.sort-asc):not(.sort-desc)::after {
  content: ' \2195' !important;
  /* Up down arrow */
  color: var(--ent-300) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.sortable th.sort-asc:after,
th.sort-asc::after {
  content: ' \2191' !important;
  /* Up arrow */
  color: var(--ent-700) !important;
  font-weight: 700 !important;
}

.sortable th.sort-desc:after,
th.sort-desc::after {
  content: ' \2193' !important;
  /* Down arrow */
  color: var(--ent-700) !important;
  font-weight: 700 !important;
}

.sortable th.sorted {
  background: var(--ent-50) !important;
  color: var(--ent-700) !important;
}

a {
  color: var(--ent-600) !important;
  font-weight: 600;
}

a:hover {
  color: var(--ent-700) !important;
  text-decoration: underline;
}

.btn.primary,
button,
.admin-filter-toggle {
  background: #fff !important;
  color: var(--ent-700) !important;
  border: 1px solid var(--ent-300) !important;
  box-shadow: 0 2px 4px rgba(25, 103, 211, 0.05) !important;
  border-radius: 8px !important;
  font-weight: 600;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.primary:hover,
button:hover,
.admin-filter-toggle:hover {
  background: var(--ent-50) !important;
  color: var(--ent-800) !important;
  border-color: var(--ent-400) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 103, 211, 0.1) !important;
}

.btn.ghost {
  background: #fff !important;
  color: var(--ent-700) !important;
  border: 1px solid var(--ent-200) !important;
  box-shadow: 0 2px 4px rgba(25, 103, 211, 0.05) !important;
}

.btn.ghost:hover {
  background: var(--ent-50) !important;
  color: var(--ent-800) !important;
}

.btn.danger {
  background: #fff !important;
  color: var(--rose-600) !important;
  border: 1px solid rgba(225, 29, 72, 0.4) !important;
  box-shadow: 0 2px 4px rgba(225, 29, 72, 0.05) !important;
}

.btn.danger:hover {
  background: var(--rose-100) !important;
  border-color: rgba(225, 29, 72, 0.6) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.1) !important;
}

input,
select {
  border: 1px solid var(--ent-200) !important;
  background: #ffffff !important;
  color: var(--stone-900) !important;
  border-radius: 8px !important;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
}

input:focus,
select:focus {
  outline: 2px solid var(--ent-400);
  outline-offset: -1px;
  border-color: var(--ent-400) !important;
}

.status.active {
  color: var(--emerald-600) !important;
  background: var(--emerald-100) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  font-weight: 500;
}

.status.suspend {
  color: var(--rose-600) !important;
  background: var(--rose-100) !important;
  border: 1px solid rgba(225, 29, 72, 0.1) !important;
  font-weight: 500;
}

.number-col,
.decimal-col,
.metric-value,
td {
  font-variant-numeric: tabular-nums lining-nums;
}

/* Adjust padding for 14px size to keep tables compact */
.table.compact th,
.table.compact td,
th,
td {
  padding: 10px 14px !important;
}

/* Admin filter drop down adjustment */
.admin-filter-menu {
  background: #ffffff !important;
  border: 1px solid var(--ent-200) !important;
  box-shadow: 0 10px 25px rgba(25, 103, 211, 0.1) !important;
}

.admin-filter-option:hover {
  background: var(--ent-50) !important;
  color: var(--ent-700) !important;
}

.admin-filter-option input {
  accent-color: var(--ent-700) !important;
}

/* Meters */
.mini-meter {
  background: var(--ent-200) !important;
}

.mini-meter.ok i {
  background: linear-gradient(90deg, var(--emerald-500), var(--emerald-600)) !important;
}

.mini-meter.warning i {
  background: linear-gradient(90deg, var(--orange-500), var(--orange-600)) !important;
}

.mini-meter.critical i {
  background: var(--rose-600) !important;
}

.meter-fill.ok {
  background: var(--emerald-600) !important;
}

/* Custom Scrollbar for better integration */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ent-50);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--ent-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ent-400);
}

/* === KMAR GWM PHASE 4 - USER FEEDBACK FIXES === */

/* 1. Ghost style for Status Badges */
.status.active,
.status.suspend,
.pill {
  border-radius: 6px !important;
  padding: 4px 10px !important;
}

.status.active {
  background: var(--ent-50) !important;
  color: var(--emerald-600) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.status.suspend {
  background: var(--rose-100) !important;
  color: var(--rose-600) !important;
  border: 1px solid rgba(225, 29, 72, 0.2) !important;
}

/* 2. Ghost Style for Admin Filter Toggle (All Admins) */
.admin-filter-toggle {
  background: var(--ent-50) !important;
  color: var(--ent-700) !important;
  border: 1px solid var(--ent-200) !important;
  box-shadow: 0 2px 4px rgba(25, 103, 211, 0.05) !important;
  border-radius: 6px !important;
}

.admin-filter-toggle:hover {
  background: var(--ent-100) !important;
  border-color: var(--ent-300) !important;
  transform: translateY(0) !important;
}

.admin-filter-toggle i.ph-caret-down {
  margin-left: 4px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* 3. Dropdown Menu Styling & Custom Checkboxes */
.admin-filter-menu {
  border-radius: 8px !important;
  padding: 8px 0 !important;
}

.admin-filter-menu label.admin-filter-option {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
}

.admin-filter-option input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  border: 1.5px solid var(--ent-300) !important;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  transition: all 0.2s !important;
  background: #fff !important;
}

.admin-filter-option input[type="checkbox"]::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  transform: scale(0) !important;
  transition: 120ms transform ease-in-out !important;
  box-shadow: inset 1em 1em white !important;
  background-color: transparent !important;
  transform-origin: bottom left !important;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%) !important;
}

.admin-filter-option input[type="checkbox"]:checked {
  background-color: var(--ent-700) !important;
  border-color: var(--ent-700) !important;
}

.admin-filter-option input[type="checkbox"]:checked::before {
  transform: scale(1) !important;
}

/* 4. Center Sort Arrows */
.sortable th:after,
th:not(.sort-asc):not(.sort-desc)::after,
.sortable th.sort-asc:after,
th.sort-asc::after,
.sortable th.sort-desc:after,
th.sort-desc::after {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
  margin-left: 6px !important;
  line-height: 1 !important;
  position: relative !important;
  top: -1px !important;
}

/* 5. Pure Line Tables (No Zebra) */
tbody tr:nth-child(even) {
  background-color: #ffffff !important;
}

tbody tr:nth-child(odd) {
  background-color: #ffffff !important;
}

tbody tr:hover {
  background-color: var(--ent-50) !important;
}

/* 6. Fix Copy Button Alignment in Manual */
.manual-code {
  position: relative !important;
}

.copy-code-btn {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
  font-size: 16px !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--stone-500) !important;
  border: 1px solid var(--stone-200) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s !important;
}

.copy-code-btn i {
  font-size: 16px;
  margin: 0;
}

.copy-code-btn:hover {
  background: var(--ent-50) !important;
  color: var(--ent-700) !important;
}

.copy-code-btn.copied {
  background: var(--emerald-500) !important;
  color: #fff !important;
  border-color: var(--emerald-500) !important;
}

/* 7. Global Quick Search */
.global-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.search-input-box {
  position: relative;
  width: 280px;
}

.search-input-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stone-400);
  font-size: 16px;
  pointer-events: none;
}

.search-input-box input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px !important;
  border-radius: 8px !important;
  border: 1px solid var(--ent-200) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: var(--stone-900) !important;
  font-size: 14px;
  transition: all 0.2s;
  margin-top: 0 !important;
}

.search-input-box input:focus {
  background: #ffffff !important;
  border-color: var(--ent-400) !important;
  box-shadow: 0 0 0 3px rgba(25, 103, 211, 0.1) !important;
  outline: none;
}

.global-search-dropdown {
  position: absolute;
  top: 46px;
  left: 0;
  width: 320px;
  background: #ffffff;
  border: 1px solid var(--ent-200);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(25, 103, 211, 0.15);
  z-index: 9999;
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 0;
}

.global-search-dropdown .search-category {
  padding: 8px 14px 4px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--stone-400);
  letter-spacing: 0.5px;
}

.global-search-dropdown .search-item {
  display: block;
  padding: 8px 14px;
  color: var(--stone-700) !important;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  transition: all 0.1s;
}

.global-search-dropdown .search-item:hover {
  background: var(--ent-50);
  color: var(--ent-800) !important;
  text-decoration: none !important;
}

.global-search-dropdown .search-item strong {
  color: var(--stone-900);
  font-weight: 600;
  display: block;
}

.global-search-dropdown .search-item span {
  display: block;
  color: var(--stone-500);
  font-size: 12px;
  margin-top: 2px;
}

.global-search-dropdown .search-empty {
  padding: 14px;
  text-align: center;
  color: var(--stone-500);
  font-size: 13px;
}

/* 8. Fix Sticky Z-Index for Checklist */
.sticky-manual-side,
.manual-card.check-card {
  z-index: 99 !important;
}

/* 9. Mega Menu Search Override */
.global-search-dropdown {
  width: 640px !important;
  display: flex;
  gap: 20px;
  padding: 16px !important;
  max-height: none !important;
  overflow: visible !important;
}

.search-dropdown-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-group {
  display: flex;
  flex-direction: column;
}

.global-search-dropdown .search-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 8px 14px;
  border-bottom: 1px solid var(--ent-100);
  margin-bottom: 8px;
}

.search-category-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--stone-500);
  letter-spacing: 0.5px;
}

.search-category-title i {
  font-size: 14px;
  color: var(--stone-400);
}

.search-category-count {
  font-size: 11px;
  color: var(--ent-600);
  background: var(--ent-100);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.search-view-all {
  display: block;
  text-align: center;
  padding: 10px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ent-600) !important;
  background: var(--ent-50);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.search-view-all:hover {
  background: var(--ent-100);
  color: var(--ent-800) !important;
}
/* 10. Sticky Table Headers */
.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 180px);
}
.table-wrap table th {
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 var(--line);
  background: #fbfcfd;
}

/* 11. Fix Backup Description Width */
.stat.backup-scope small {
  white-space: normal !important;
  max-width: none !important;
  display: block;
}
.backup-summary .stat {
  flex: 1;
}

/* 12. Responsive Optimizations */

/* Large screens (24-32 inch) */
@media (min-width: 1600px) {
  .main-content {
    max-width: 1600px;
    margin: 0 auto;
  }
  .summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  }
}

/* Tablets & Small Laptops (768px - 1100px) */
@media (max-width: 1100px) {
  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .admin-head {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (under 768px) */
@media (max-width: 768px) {
  .admin-head {
    grid-template-columns: 1fr;
  }
  .admin-head div {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    min-height: auto;
  }
  .admin-head div:last-child {
    border-bottom: none;
  }
  .summary-grid, .summary-grid.four, .summary-grid.six {
    grid-template-columns: 1fr !important;
  }
  .table-title-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .table-tools {
    flex-direction: column;
  }
  .table-tools input.table-search, .table-tools select {
    width: 100% !important;
  }
  .global-search-dropdown {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 70px) !important;
    overflow-y: auto !important;
  }
}

/* 13. Topbar User Avatar and Responsive Menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ent-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  cursor: default;
}
.logout-btn {
  color: var(--stone-500) !important;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
}
.logout-btn:hover {
  background: var(--ent-50);
  color: var(--rose-600) !important;
}

/* 14. Responsive Topbar Menu */
@media (max-width: 1400px) {
  .nav a {
    padding: 6px 12px;
    font-size: 13px;
  }
}
@media (max-width: 1200px) {
  .nav {
    gap: 5px;
  }
  .nav a {
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    padding: 8px;
    justify-content: center;
  }
  .nav a i {
    font-size: 18px;
    margin-right: 0 !important;
  }
  .brand-title { font-size: 18px !important; }
  .brand-subtitle { display: none !important; }
}

/* 15. Summary Grid Layout (8 cols or 4 cols) */
@media (min-width: 1401px) {
  .summary-grid {
    grid-template-columns: repeat(8, 1fr) !important;
  }
}
@media (max-width: 1400px) and (min-width: 769px) {
  .summary-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* 16. Body Font Size Reduction */
@media (max-width: 1600px) {
  body {
    font-size: 13px;
  }
  table th, table td {
    font-size: 13px;
  }
}

/* 17. Settings Page Tables Wrap */
.settings-page table td, .settings-page table th {
  white-space: normal !important;
  word-break: break-word;
}

/* 18. Fixes for Layout */
.logout-btn {
  border-radius: 50% !important;
  width: 32px;
  height: 32px;
}
.summary-card span i {
  font-size: 16px;
  vertical-align: middle;
}
@media (min-width: 1601px) {
  .summary-grid {
    grid-template-columns: repeat(8, 1fr) !important;
  }
}
@media (max-width: 1600px) and (min-width: 769px) {
  .summary-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
.summary-grid.backup-summary {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 1050px) {
  .nav { gap: 5px; }
  .nav a { flex-direction: column; gap: 4px; font-size: 11px; padding: 8px; justify-content: center; }
  .nav a i { font-size: 18px; margin-right: 0 !important; }
}
@media (min-width: 1051px) {
  .nav { gap: initial; }
  .nav a { flex-direction: row; gap: initial; font-size: 13px; padding: 6px 12px; justify-content: initial; }
  .nav a i { font-size: initial; margin-right: 6px !important; }
}

/* 19. Fixes for 1.4.10 */
.summary-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr !important;
  }
}
.summary-card span i {
  font-size: 18px !important;
  vertical-align: text-bottom;
}
.brand-title {
  font-size: 20px;
}
@media (max-width: 1400px) {
  .brand-title { font-size: 18px !important; }
}

/* 20. Brand and Modal Fixes */
.brand {
  width: max-content !important;
  padding-right: 20px;
}
.brand-subtitle {
  white-space: nowrap;
}
.modal-card {
  max-height: 90vh;
  overflow-y: auto;
}

/* 21. Topbar Responsive Fixes */
.topbar {
  flex-wrap: nowrap !important;
  overflow: visible;
  justify-content: flex-start;
  gap: 20px;
}
.brand {
  flex-shrink: 0;
}
.global-search-wrap {
  position: relative;
  flex-shrink: 0;
  margin-left: 0;
  z-index: 1001;
}
.search-input-box {
  width: 150px !important; /* increased slightly so it's not suffocating */
}
.search-input-box input {
  padding: 0 16px 0 32px !important;
}
.nav {
  flex: 1;
  justify-content: center; /* Center the menu items in the available space */
  gap: 10px;
  overflow: hidden;
}

@media (max-width: 1500px) {
  .search-input-box { width: 130px !important; }
  .topbar { gap: 10px; }
  .nav { gap: 5px; }
}

@media (max-width: 1350px) {
  .nav a {
    flex-direction: column !important;
    gap: 2px !important;
    font-size: 11px !important;
    padding: 6px !important;
    justify-content: center !important;
    text-align: center;
  }
  .nav a i {
    font-size: 18px !important;
    margin-right: 0 !important;
  }
}

.modal {
  z-index: 9999 !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background: rgba(15, 23, 42, 0.4) !important;
}

/* 22. Alert Rules Table */
.settings-page table.alert-rules-table {
  table-layout: auto !important;
  width: 100% !important;
}
.settings-page table.alert-rules-table td:nth-child(1),
.settings-page table.alert-rules-table td:nth-child(4),
.settings-page table.alert-rules-table td:nth-child(5),
.settings-page table.alert-rules-table th:nth-child(1),
.settings-page table.alert-rules-table th:nth-child(4),
.settings-page table.alert-rules-table th:nth-child(5) {
  white-space: nowrap !important;
  width: 1% !important;
}
.settings-page table.alert-rules-table td:nth-child(2),
.settings-page table.alert-rules-table td:nth-child(3) {
  white-space: normal !important;
  width: auto !important;
}

/* 23. Kmar GWM global polish pass */
:root {
  --gwm-bg: #f4f8fd;
  --gwm-panel: #ffffff;
  --gwm-panel-soft: #f8fbff;
  --gwm-border: #cfe4fb;
  --gwm-border-soft: #e5f0fb;
  --gwm-text: #26384d;
  --gwm-muted: #70829a;
  --gwm-blue: #1967d3;
  --gwm-blue-dark: #1559b8;
  --gwm-shadow: 0 12px 30px rgba(25, 103, 211, .07);
  --gwm-shadow-soft: 0 6px 18px rgba(38, 56, 77, .05);
}

body {
  background: var(--gwm-bg) !important;
  color: var(--gwm-text) !important;
  font-feature-settings: "kern";
}

a {
  color: var(--gwm-blue);
}

a:hover {
  color: var(--gwm-blue-dark);
}

.page {
  padding: 14px 16px 22px !important;
}

.topbar {
  height: 66px !important;
  padding: 0 18px !important;
  background: rgba(255, 255, 255, .94) !important;
  border-bottom: 1px solid var(--gwm-border) !important;
  box-shadow: 0 8px 26px rgba(25, 103, 211, .08) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  padding-right: 12px !important;
}

.brand-title {
  color: var(--gwm-blue) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
}

.brand-subtitle {
  color: var(--gwm-muted) !important;
  opacity: 1 !important;
  font-size: 12px !important;
}

.brand-logo {
  width: 34px !important;
  height: 34px !important;
}

.search-input-box {
  width: 180px !important;
}

.search-input-box input,
input.table-search,
.table-search,
.domain-search {
  min-height: 38px !important;
  border: 1px solid var(--gwm-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--gwm-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8) !important;
}

.search-input-box input:focus,
input.table-search:focus,
.table-search:focus,
.domain-search:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #7bb8ff !important;
  box-shadow: 0 0 0 3px rgba(25, 103, 211, .10) !important;
  outline: none !important;
}

.nav {
  gap: 8px !important;
}

.nav a {
  height: 42px !important;
  padding: 0 11px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  color: #66788d !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.nav a:hover,
.nav a.active {
  background: #eaf6ff !important;
  border-color: var(--gwm-border) !important;
  color: var(--gwm-blue) !important;
  transform: none !important;
}

.nav a i {
  color: currentColor !important;
}

.user-avatar {
  background: var(--gwm-blue) !important;
  box-shadow: 0 8px 18px rgba(25, 103, 211, .18);
}

.logout-btn {
  border: 1px solid var(--gwm-border) !important;
  background: #fff !important;
}

.panel,
.notice,
.footer-note {
  border: 1px solid var(--gwm-border) !important;
  border-radius: 8px !important;
  background: var(--gwm-panel) !important;
  box-shadow: var(--gwm-shadow-soft) !important;
}

.page-heading {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px !important;
}

.page-title {
  color: var(--gwm-text) !important;
  font-size: 23px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

.muted {
  color: var(--gwm-muted) !important;
}

.panel h2 {
  color: #225bb0 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.summary-grid {
  gap: 12px !important;
}

.summary-card,
.stat {
  min-height: 78px !important;
  border: 1px solid var(--gwm-border) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #fff, var(--gwm-panel-soft)) !important;
  box-shadow: none !important;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.summary-card:hover,
.stat:hover {
  border-color: #a8cef8 !important;
  box-shadow: var(--gwm-shadow-soft) !important;
  transform: translateY(-1px);
}

.summary-card span,
.stat span,
table th {
  color: #7b8da3 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.summary-card strong,
.stat strong {
  color: var(--gwm-text) !important;
  font-size: 21px !important;
  font-weight: 800 !important;
}

.table-title-row {
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.table-title-row h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
}

.result-count {
  border-radius: 999px !important;
  background: #eef6ff !important;
  color: var(--gwm-muted) !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.table-wrap {
  border: 1px solid var(--gwm-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  overflow: auto;
}

table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #fff !important;
}

table th,
table td {
  border-bottom: 1px solid var(--gwm-border-soft) !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
}

table th {
  background: #fbfdff !important;
  color: #77889b !important;
  white-space: nowrap;
}

table tbody tr:hover td {
  background: #f8fbff !important;
}

table tbody tr:last-child td {
  border-bottom: none !important;
}

.table-tools {
  gap: 10px !important;
}

.btn,
button,
.admin-filter-toggle {
  min-height: 38px;
  border-radius: 8px !important;
  border: 1px solid var(--gwm-border) !important;
  box-shadow: none !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.btn.primary,
button.btn.primary {
  background: var(--gwm-blue) !important;
  border-color: var(--gwm-blue) !important;
  color: #fff !important;
}

.btn.primary:hover,
button.btn.primary:hover {
  background: var(--gwm-blue-dark) !important;
  border-color: var(--gwm-blue-dark) !important;
}

.btn:not(.primary):not(.danger),
.btn.ghost,
.admin-filter-toggle {
  background: #fff !important;
  color: var(--gwm-blue) !important;
}

.btn:not(.primary):not(.danger):hover,
.btn.ghost:hover,
.admin-filter-toggle:hover {
  background: #eef6ff !important;
  color: var(--gwm-blue-dark) !important;
  transform: none !important;
}

.btn.danger {
  background: #fff !important;
  color: var(--rose-600) !important;
  border-color: #fecdd3 !important;
}

.btn.danger:hover {
  background: var(--rose-100) !important;
  border-color: #fda4af !important;
}

label {
  color: #53677f !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

input,
select,
textarea {
  border: 1px solid var(--gwm-border) !important;
  border-radius: 8px !important;
  color: var(--gwm-text) !important;
}

.status {
  border-radius: 7px !important;
  padding: 4px 9px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.status.active {
  background: #d1fae5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
}

.status.suspend,
.status.suspended {
  background: #ffe4e6 !important;
  color: #e11d48 !important;
  border: 1px solid #fecdd3 !important;
}

.modal {
  background: rgba(28, 42, 58, .42) !important;
  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;
}

.modal-card {
  border: 1px solid var(--gwm-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 24px 70px rgba(38, 56, 77, .24) !important;
}

.modal-close {
  width: 34px !important;
  height: 34px !important;
  border: 1px solid var(--gwm-border) !important;
  color: var(--gwm-text) !important;
}

/* 24. Targeted polish fixes */
.modal-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  border-radius: 999px !important;
  font-size: 18px !important;
}

.settings-tabs a,
.settings-tabs a.active {
  border-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

.settings-tabs a.active {
  border-bottom-color: transparent !important;
}

.settings-page input[type="file"] {
  min-height: 40px !important;
  padding: 6px !important;
  border-radius: 8px !important;
  background: #fff !important;
}

.settings-page input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  padding: 0 14px;
  border: 1px solid var(--gwm-blue-2);
  border-radius: 7px;
  background: #eef6ff;
  color: var(--gwm-blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.settings-page input[type="file"]::file-selector-button:hover {
  background: #dfeeff;
}

.account-op-modal .modal-field-note {
  display: block;
  margin-top: 7px;
  font-size: 12px !important;
  line-height: 1.45;
  font-weight: 500 !important;
}

.audit-table td:nth-child(2),
.audit-table td:nth-child(3) {
  min-width: 220px;
  white-space: normal;
  line-height: 1.45;
}

/* 29. Final modal close and floating dropdown override */
.gwm-select-menu.is-floating {
  position: fixed !important;
  z-index: 10050 !important;
  margin: 0 !important;
  right: auto !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  border-radius: 10px !important;
  box-shadow: 0 18px 44px rgba(31, 80, 135, .22) !important;
}

.modal-close,
button.modal-close {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  border: 1px solid #fecaca !important;
  background: #fee2e2 !important;
  color: #b91c1c !important;
  font-size: 0 !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(220, 38, 38, .14) !important;
}

.modal-close::before {
  content: "\00d7";
  display: block;
  width: 100%;
  text-align: center;
  font-size: 20px;
  line-height: 30px;
  transform: translateY(-1px);
}

.modal-close:hover,
button.modal-close:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}

.modal-close:hover::before,
button.modal-close:hover::before {
  color: #fff !important;
}

/* 38. EOF mobile header final override */
@media (max-width: 768px) {
  body .topbar {
    display: grid !important;
    grid-template-columns: minmax(36px, 1fr) auto !important;
    grid-template-rows: 44px !important;
    align-items: center !important;
    column-gap: 8px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 6px 10px !important;
  }

  body .topbar .brand.brand-link {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body .topbar .brand-logo {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
  }

  body .topbar .brand-title,
  body .topbar .brand-subtitle {
    display: none !important;
  }

  body .topbar .topbar-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    width: auto !important;
    margin: 0 !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }

  body .topbar .mobile-menu-toggle {
    order: 1 !important;
  }

  body .topbar .mobile-search-toggle {
    order: 2 !important;
  }

  body .topbar .user-menu {
    order: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }

  body .topbar .settings-icon-link {
    order: 1 !important;
  }

  body .topbar .kccc-slot {
    order: 2 !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body .topbar .avatar-menu-wrap {
    order: 3 !important;
  }

  body .topbar .mobile-icon-btn,
  body .topbar .header-icon-link,
  body .topbar .kccc-slot .kccc-button,
  body .topbar .avatar-menu-toggle.user-avatar {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }

  body .topbar .mobile-icon-btn,
  body .topbar .header-icon-link {
    border: 1px solid #dbeafe !important;
  }

  body .topbar .kccc-slot .kccc-button img {
    width: 30px !important;
    height: 30px !important;
  }

  body .topbar .avatar-menu-toggle.user-avatar img {
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    object-fit: contain !important;
  }
}

/* 37. Mobile header order refinement */
@media (max-width: 768px) {
  body .topbar {
    display: grid !important;
    grid-template-columns: minmax(36px, 1fr) auto !important;
    grid-template-rows: 44px !important;
    align-items: center !important;
    column-gap: 8px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 6px 10px !important;
  }

  body .topbar .brand.brand-link {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body .topbar .brand-logo {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
  }

  body .topbar .brand-title,
  body .topbar .brand-subtitle {
    display: none !important;
  }

  body .topbar .topbar-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    width: auto !important;
    margin: 0 !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }

  body .topbar .mobile-menu-toggle {
    order: 1 !important;
  }

  body .topbar .mobile-search-toggle {
    order: 2 !important;
  }

  body .topbar .user-menu {
    order: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }

  body .topbar .settings-icon-link {
    order: 1 !important;
  }

  body .topbar .kccc-slot {
    order: 2 !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body .topbar .avatar-menu-wrap {
    order: 3 !important;
  }

  body .topbar .mobile-icon-btn,
  body .topbar .header-icon-link,
  body .topbar .kccc-slot .kccc-button,
  body .topbar .avatar-menu-toggle.user-avatar {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }

  body .topbar .mobile-icon-btn,
  body .topbar .header-icon-link {
    border: 1px solid #dbeafe !important;
  }

  body .topbar .kccc-slot .kccc-button img {
    width: 30px !important;
    height: 30px !important;
  }

  body .topbar .avatar-menu-toggle.user-avatar img {
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    object-fit: contain !important;
  }
}

/* 36. Final mobile header lock */
@media (max-width: 768px) {
  body .topbar {
    display: grid !important;
    grid-template-columns: minmax(118px, 1fr) auto !important;
    grid-template-rows: 44px !important;
    align-items: center !important;
    column-gap: 6px !important;
    min-height: 56px !important;
    height: 56px !important;
    padding: 6px 10px !important;
    flex-wrap: nowrap !important;
  }

  body .topbar .brand.brand-link {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    gap: 7px !important;
  }

  body .topbar .brand-logo {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
  }

  body .topbar .brand-title {
    font-size: 15px !important;
    line-height: 1 !important;
  }

  body .topbar .topbar-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }

  body .topbar .user-menu {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }

  body .topbar .mobile-icon-btn,
  body .topbar .header-icon-link,
  body .topbar .user-menu .kccc-button,
  body .topbar .avatar-menu-toggle.user-avatar {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body .topbar .mobile-icon-btn i,
  body .topbar .header-icon-link i {
    font-size: 18px !important;
  }

  body .topbar .user-menu .kccc-button img,
  body .topbar .avatar-menu-toggle.user-avatar img {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
  }
}

@media (max-width: 380px) {
  body .topbar {
    grid-template-columns: minmax(42px, 1fr) auto !important;
  }

  body .topbar .brand-title {
    display: none !important;
  }
}

/* 35. Mobile navigation and dashboard layout */
.mobile-icon-btn {
  display: none;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .topbar {
    min-height: 58px !important;
    height: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    position: sticky !important;
    top: 0;
    z-index: 10020 !important;
    overflow: visible !important;
  }

  .brand,
  .brand.brand-link {
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    max-width: calc(100vw - 220px) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-right: auto !important;
    margin-left: 0 !important;
  }

  .brand-logo {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
  }

  .brand-title {
    font-size: 15px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .brand-subtitle {
    display: none !important;
  }

  .mobile-icon-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #fff;
    color: var(--gwm-blue);
    box-shadow: 0 8px 18px rgba(31, 80, 135, .08);
  }

  .mobile-icon-btn i {
    font-size: 20px;
  }

  .user-menu {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: 0 !important;
    order: 5 !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }

  .topbar-actions {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    margin-left: auto !important;
    order: 2 !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }

  .avatar-menu-wrap {
    flex: 0 0 34px !important;
  }

  .topbar > * {
    min-width: 0;
  }

  .mobile-search-toggle {
    order: 1 !important;
  }

  .mobile-menu-toggle {
    order: 2 !important;
  }

  .brand {
    order: 1 !important;
  }

  .global-search-wrap {
    order: 6 !important;
  }

  .user-menu .kccc-button {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }

  .user-menu .kccc-button img {
    width: 30px !important;
    height: 30px !important;
  }

  .header-icon-link {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
  }

  .avatar-menu-toggle.user-avatar {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    flex-basis: 34px !important;
  }

  .avatar-menu-toggle.user-avatar img {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }

  .global-search-wrap {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    margin: 0 !important;
    z-index: 10050 !important;
  }

  .topbar.search-open .global-search-wrap {
    display: block !important;
  }

  .search-input-box {
    width: 100% !important;
    height: 42px !important;
    background: #fff !important;
    border: 1px solid #bfdbfe !important;
    box-shadow: 0 14px 34px rgba(31, 80, 135, .16) !important;
  }

  .search-input-box input {
    width: 100% !important;
    font-size: 14px !important;
  }

  .global-search-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: min(70vh, 520px) !important;
    overflow-y: auto !important;
    display: none;
    flex-direction: column !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 44px rgba(31, 80, 135, .18) !important;
  }

  .global-search-dropdown .search-dropdown-col {
    width: 100% !important;
  }

  .nav {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    height: auto !important;
    max-height: calc(100vh - 82px) !important;
    overflow-y: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 8px !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 18px 44px rgba(31, 80, 135, .18) !important;
    z-index: 10045 !important;
  }

  .topbar.nav-open .nav {
    display: flex !important;
  }

  .nav a {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    justify-content: flex-start !important;
    flex-direction: row !important;
    gap: 10px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #48637f !important;
    background: transparent !important;
    font-size: 13px !important;
    text-transform: none !important;
  }

  .nav a i {
    font-size: 18px !important;
    margin-right: 0 !important;
  }

  .nav a.active,
  .nav a:hover {
    color: var(--gwm-blue) !important;
    background: #eef6ff !important;
    transform: none !important;
  }

  .page {
    padding: 10px !important;
  }

  .panel {
    padding: 12px !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
  }

  .page-heading {
    display: block !important;
    min-height: auto !important;
  }

  .page-title {
    font-size: 20px !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
  }

  .summary-grid,
  .summary-grid.four,
  .summary-grid.six,
  .backup-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .summary-card,
  .stat {
    min-height: 76px !important;
    padding: 10px !important;
  }

  .summary-card span,
  .stat span {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  .summary-card strong,
  .stat strong {
    font-size: 17px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
  }

  .table-title-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .table-tools {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .table-search,
  .admin-filter select,
  .gwm-select {
    width: 100% !important;
    min-width: 0 !important;
  }

  .table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap table {
    min-width: 760px;
  }

  .accounts-table {
    min-width: 980px !important;
  }

  .admins-table,
  .admin-package-table,
  .alert-center-table {
    min-width: 900px !important;
  }

  .grid.two,
  .grid.three,
  .form-grid.two,
  .form-grid.four,
  .form-grid.five {
    grid-template-columns: 1fr !important;
  }

  .avatar-dropdown {
    right: 0 !important;
    min-width: 230px !important;
  }
}

/* 30. Operational status and filter utilities */
.sync-status-cell {
  min-width: 150px;
  vertical-align: top;
}

.sync-status-cell small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  line-height: 1.25;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.sync-badge.success,
.sync-badge.ok {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.sync-badge.failed,
.sync-badge.error {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.sync-badge.pending {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}

.sync-badge.disabled {
  background: rgba(148, 163, 184, 0.16);
  color: #64748b;
}

.sync-error {
  max-width: 220px;
  color: #b91c1c !important;
}

.audit-filter-form {
  margin-bottom: 16px;
}

/* 31. Accounts storage package readability */
.storage-tier-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.storage-tier-badge.sm {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.storage-tier-badge.md {
  background: rgba(14, 165, 233, 0.15);
  color: #0369a1;
}

.storage-tier-badge.lg {
  background: rgba(8, 145, 178, 0.18);
  color: #0e7490;
}

.storage-tier-badge.xl {
  background: rgba(15, 118, 110, 0.2);
  color: #0f766e;
}

.value-meter { position:relative; grid-template-columns:minmax(42px,56px) 70px 14px !important; gap:6px !important; }
.value-meter .mini-meter { width:70px !important; }
.storage-insight-trigger { display:inline-grid; place-items:center; width:14px; height:18px; margin:0; padding:0; border:0; border-radius:0; background:transparent; color:#64748b; cursor:pointer; vertical-align:middle; }
.storage-insight-trigger i { font-size:14px; line-height:1; }
.storage-insight-trigger:hover, .storage-insight-trigger:focus-visible { color:#1677ff; background:transparent; outline:none; }
.storage-insight-popover { position:fixed; z-index:100500; width:330px; padding:14px; border:1px solid #dbe7f5; border-radius:14px; background:#fff; box-shadow:0 18px 48px rgba(15,23,42,.18); pointer-events:none; }
.storage-insight-modal[hidden], .storage-insight-popover[hidden] { display:none !important; }
.storage-insight-modal { position:fixed; inset:0; z-index:100600; display:grid; place-items:center; padding:20px; background:rgba(15,23,42,.38); backdrop-filter:blur(5px); }
.storage-insight-dialog { position:relative; width:min(620px,calc(100vw - 32px)); padding:24px; border-radius:20px; background:#fff; box-shadow:0 24px 80px rgba(15,23,42,.25); }
.storage-insight-dialog h2 { margin:0 0 18px; font-size:21px; }
.storage-insight-close { position:absolute; top:14px; right:14px; width:32px; height:32px; border:0; border-radius:50%; background:#f1f5f9; color:#475569; font-size:24px; line-height:1; cursor:pointer; }
.storage-insight { display:flex; align-items:center; gap:22px; }
.storage-insight-chart { flex:0 0 210px; width:210px; height:210px; display:grid; place-items:center; border-radius:50%; }
.storage-insight-chart::before { content:""; grid-area:1/1; width:132px; height:132px; border-radius:50%; background:#fff; box-shadow:0 0 0 1px rgba(148,163,184,.12); }
.storage-insight-chart span { position:relative; grid-area:1/1; display:grid; text-align:center; }
.storage-insight-chart strong { font-size:25px; color:#1e293b; }
.storage-insight-chart small { color:#64748b; }
.storage-insight-copy { min-width:0; flex:1; display:grid; gap:7px; color:#475569; }
.storage-insight-copy > strong { overflow-wrap:anywhere; color:#1e293b; }
.storage-insight-legend { display:grid; gap:8px; margin-top:7px; }
.storage-insight-legend span { display:grid; grid-template-columns:10px 1fr auto; align-items:center; gap:7px; }
.storage-insight-legend i { width:9px; height:9px; border-radius:50%; }
.storage-insight-legend i.drive { background:#4285f4; }.storage-insight-legend i.photos { background:#fbbc04; }.storage-insight-legend i.gmail { background:#ea4335; }.storage-insight-legend i.unused { background:#d1d5db; }
.storage-insight-legend b { color:#334155; font-weight:600; }
.storage-insight.is-compact { gap:14px; }
.storage-insight.is-compact .storage-insight-chart { flex-basis:112px; width:112px; height:112px; }
.storage-insight.is-compact .storage-insight-chart::before { width:70px; height:70px; }
.storage-insight.is-compact .storage-insight-chart strong { font-size:17px; }
.storage-insight.is-compact .storage-insight-chart small { font-size:10px; }
.storage-insight.is-compact .storage-insight-copy { font-size:12px; }
.storage-insight.is-compact .storage-insight-legend { gap:4px; }
@media (max-width:600px) { .storage-insight { flex-direction:column; align-items:stretch; }.storage-insight-chart { align-self:center; }.storage-insight-popover { width:min(330px,calc(100vw - 24px)); } }

.used-value.warning {
  color: #ea580c;
  font-weight: 800;
}

.used-value.critical {
  color: #dc2626;
  font-weight: 800;
}

/* 32. Subtle table row alternation */
.table-wrap table tbody tr:nth-child(even):not(.empty-row),
.table-wrap table tbody tr:nth-child(even):not(.empty-row) > td {
  background: #f7fbff !important;
}

.table-wrap table tbody tr:nth-child(even):not(.empty-row):hover,
.table-wrap table tbody tr:nth-child(even):not(.empty-row):hover > td,
.table-wrap table tbody tr:hover,
.table-wrap table tbody tr:hover > td {
  background: #eef7ff !important;
}

/* 33. KCCC header button */
.user-menu .kccc-button,
.kccc-slot .kccc-button {
  min-width: 34px !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}

.user-menu .kccc-button span,
.kccc-slot .kccc-button span {
  display: none;
}

.user-menu .kccc-button img,
.kccc-slot .kccc-button img {
  width: 34px !important;
  height: 34px !important;
}

.user-menu .kccc-button:hover,
.kccc-slot .kccc-button:hover {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.kccc-slot {
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.header-icon-link {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 1px solid #dbeafe !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--gwm-blue) !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(31, 80, 135, .08) !important;
}

.header-icon-link i {
  font-size: 18px !important;
}

.header-icon-link:hover,
.header-icon-link.active {
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  color: var(--gwm-blue) !important;
  transform: none !important;
}

/* 34. Compact Google avatar menu */
.avatar-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.avatar-menu-toggle.user-avatar {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 38px !important;
  box-sizing: border-box !important;
  border: 1px solid #dbeafe !important;
  padding: 1px !important;
  overflow: hidden;
  border-radius: 50% !important;
  background: #fff !important;
  color: var(--gwm-blue) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .12);
  line-height: 1 !important;
}

.avatar-menu-toggle.user-avatar img {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  aspect-ratio: 1 / 1 !important;
  display: block;
  object-fit: contain;
  border-radius: 50% !important;
  flex: 0 0 30px !important;
}

.avatar-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(31, 80, 135, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: .16s ease;
  z-index: 10030;
}

.avatar-menu-wrap.is-open .avatar-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.avatar-dropdown-user {
  padding: 8px 10px 10px;
  border-bottom: 1px solid #edf4ff;
  margin-bottom: 6px;
}

.avatar-dropdown-user strong,
.avatar-dropdown-user span {
  display: block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-dropdown-user strong {
  color: #163b63;
  font-size: 13px;
}

.avatar-dropdown-user span {
  margin-top: 3px;
  color: #7187a3;
  font-size: 12px;
}

.avatar-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #b91c1c !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.avatar-dropdown a:hover {
  background: #fee2e2;
}

.avatar-customers {
  padding: 6px 0;
  margin: 2px 0 6px;
  border-bottom: 1px solid #edf4ff;
}

.avatar-customers-title {
  padding: 4px 10px 6px;
  color: #7890ad;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.avatar-dropdown .avatar-customers a {
  color: #1d63d8 !important;
  font-weight: 800;
  border-radius: 0;
  padding: 9px 10px;
  margin: 0;
}

.avatar-dropdown .avatar-customers a:hover,
.avatar-dropdown .avatar-customers a.active {
  background: #f3f8ff;
}

.avatar-dropdown .avatar-customers a.active {
  color: #0f4fb8 !important;
}

.customer-activity-table .select-col,
.customer-activity-table th.select-col {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  text-align: center;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.table-wrap table.customer-activity-table th.select-col,
.table-wrap table.customer-activity-table td.select-col,
.table-wrap table.customer-activity-table tr > .select-col,
.table-wrap table.customer-activity-table tr > :first-child.select-col {
  position: static !important;
  left: auto !important;
  z-index: auto !important;
  box-shadow: none !important;
}

.customer-activity-table .select-col input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  accent-color: var(--kmar-blue);
}

/* 32. Body-portal dropdowns */
.gwm-select-menu.is-floating {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  z-index: 100000 !important;
  right: auto !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

.user-audit-table td {
  vertical-align: top;
  white-space: normal;
}

.user-audit-table td:last-child {
  min-width: 360px;
  line-height: 1.45;
}

/* 33. Account right-click action menu */
.account-context-menu {
  position: fixed;
  z-index: 100200;
  display: none;
  width: 226px;
  padding: 6px 0;
  border: 1px solid rgba(209, 226, 246, .9);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(31, 80, 135, .22);
}

.account-context-menu.open {
  display: grid;
  gap: 0;
}

.account-context-menu button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gwm-text);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.account-context-menu button:hover,
.account-context-menu button:focus {
  background: #f3f8ff;
  color: var(--gwm-blue);
  outline: none;
}

.account-context-menu button.danger {
  color: #e11d48;
}

.account-context-menu button.danger:hover,
.account-context-menu button.danger:focus {
  background: #fff5f7;
  color: #be123c;
}

/* 31. Final dropdown containment override */
.gwm-select-menu.is-floating {
  right: auto !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  border-radius: 10px !important;
  box-shadow: 0 18px 44px rgba(31, 80, 135, .22) !important;
}

/* 29. Final modal close and floating dropdown override */
.gwm-select-menu.is-floating {
  position: fixed !important;
  z-index: 10050 !important;
  margin: 0 !important;
}

.modal-close,
button.modal-close {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  border: 1px solid #fecaca !important;
  background: #fee2e2 !important;
  color: #b91c1c !important;
  font-size: 0 !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(220, 38, 38, .14) !important;
}

.modal-close::before {
  content: "\00d7";
  display: block;
  width: 100%;
  text-align: center;
  font-size: 20px;
  line-height: 30px;
  transform: translateY(-1px);
}

.modal-close:hover,
button.modal-close:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}

.modal-close:hover::before,
button.modal-close:hover::before {
  color: #fff !important;
}

/* 30. Alert Center */
.form-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.alert-filter-form .form-actions {
  align-items: end;
}

.alert-center-table td {
  vertical-align: top;
}

.alert-summary {
  display: block;
  margin-top: 4px;
  max-width: 520px;
  white-space: normal;
  line-height: 1.4;
}

.alert-summary-vi {
  display: block;
  margin-top: 6px;
  max-width: 620px;
  color: #31506f;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  white-space: normal;
}

.pill.severity {
  text-transform: uppercase;
}

.pill.severity.high,
.pill.severity.critical {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.pill.severity.medium {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.pill.severity.low,
.pill.severity.unknown {
  background: #e0f2fe;
  color: #075985;
  border-color: #bae6fd;
}

@media (max-width: 1200px) {
  .form-grid.five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .form-grid.five {
    grid-template-columns: 1fr;
  }
}

/* 28. Modal dropdown and close button hardening */
.gwm-select-menu.is-floating {
  position: fixed !important;
  z-index: 10050 !important;
  margin: 0 !important;
}

.modal-close,
button.modal-close {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  border: 1px solid #fecaca !important;
  background: #fee2e2 !important;
  color: #b91c1c !important;
  font-size: 0 !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(220, 38, 38, .14) !important;
}

.modal-close::before {
  content: "\00d7";
  display: block;
  width: 100%;
  text-align: center;
  font-size: 20px;
  line-height: 30px;
  transform: translateY(-1px);
}

.modal-close:hover,
button.modal-close:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}

.modal-close:hover::before,
button.modal-close:hover::before {
  color: #fff !important;
}

/* 26. Friendly custom dropdowns */
.gwm-select {
  position: relative;
  width: 100%;
  margin-top: 8px;
}

.gwm-select .gwm-native-select {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gwm-select-trigger {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--gwm-border);
  border-radius: 9px;
  background: #fff;
  color: var(--gwm-text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.gwm-select-trigger:hover {
  border-color: #9fcbff;
  background: #fbfdff;
}

.gwm-select.open .gwm-select-trigger {
  border-color: #7bb8ff;
  box-shadow: 0 0 0 3px rgba(25, 103, 211, .10);
}

.gwm-select.is-disabled .gwm-select-trigger {
  cursor: not-allowed;
  opacity: .68;
  background: #f6f8fb;
}

.gwm-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gwm-select-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid #53677f;
  border-bottom: 2px solid #53677f;
  transform: rotate(45deg) translateY(-2px);
  flex: 0 0 auto;
  transition: transform .16s ease;
}

.gwm-select.open .gwm-select-arrow {
  transform: rotate(225deg) translate(-2px, -1px);
}

.gwm-select-menu {
  position: absolute;
  z-index: 2000;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  padding: 6px 0;
  border: 1px solid rgba(148, 163, 184, .38);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}

.gwm-select.open .gwm-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gwm-select-option {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 7px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gwm-text);
  font: inherit;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  user-select: none;
}

.gwm-select-option:hover,
.gwm-select-option:focus {
  background: #f3f6f9;
  color: var(--gwm-text);
  outline: none;
}

.gwm-select-option.selected {
  background: #eef4ff;
  color: #075ee8;
  font-weight: 600;
}

.gwm-select-option:disabled,
.gwm-select-option.is-disabled {
  cursor: not-allowed;
  opacity: .5;
}

/* 27. Suspended account emphasis */
.page-title.suspended-email,
.account-email-link.is-suspended,
.search-item-suspended strong {
  color: #dc2626 !important;
}

.search-item-deleted strong {
  color: #b45309 !important;
}

.account-email-link.is-suspended:hover {
  color: #b91c1c !important;
}

.global-search-dropdown {
  border-radius: 10px !important;
  border-color: var(--gwm-border) !important;
  box-shadow: 0 18px 50px rgba(38, 56, 77, .16) !important;
}

.copy-toast,
.undo-toast {
  border-radius: 8px !important;
  box-shadow: 0 18px 42px rgba(38, 56, 77, .18) !important;
}

.login-card {
  border-radius: 10px !important;
  border: 1px solid var(--gwm-border) !important;
  box-shadow: var(--gwm-shadow) !important;
}

@media (max-width: 1350px) {
  .topbar {
    gap: 8px !important;
  }

  .nav a {
    height: 42px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
  }

  .search-input-box {
    width: 150px !important;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 10px !important;
  }

  .page-heading {
    align-items: stretch;
    min-height: auto;
  }

  .summary-card,
  .stat {
    min-height: 70px !important;
  }
}

/* 25. Final targeted UI fixes */
.modal-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  border-radius: 999px !important;
  font-size: 18px !important;
}

.settings-tabs a,
.settings-tabs a.active {
  border-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

.settings-tabs a.active {
  border-bottom-color: transparent !important;
}

.settings-page input[type="file"] {
  min-height: 40px !important;
  padding: 6px !important;
  border-radius: 8px !important;
  background: #fff !important;
}

.settings-page input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  padding: 0 14px;
  border: 1px solid var(--gwm-blue-2);
  border-radius: 7px;
  background: #eef6ff;
  color: var(--gwm-blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.settings-page input[type="file"]::file-selector-button:hover {
  background: #dfeeff;
}

.account-op-modal .modal-field-note {
  display: block;
  margin-top: 7px;
  font-size: 12px !important;
  line-height: 1.45;
  font-weight: 500 !important;
}

.audit-table td:nth-child(2),
.audit-table td:nth-child(3) {
  min-width: 220px;
  white-space: normal;
  line-height: 1.45;
}

/* 29. Final modal close and floating dropdown override */
.gwm-select-menu.is-floating {
  position: fixed !important;
  z-index: 10050 !important;
  margin: 0 !important;
  right: auto !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  border-radius: 10px !important;
  box-shadow: 0 18px 44px rgba(31, 80, 135, .22) !important;
}

.modal-close,
button.modal-close {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  border: 1px solid #fecaca !important;
  background: #fee2e2 !important;
  color: #b91c1c !important;
  font-size: 0 !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(220, 38, 38, .14) !important;
}

.modal-close::before {
  content: "\00d7";
  display: block;
  width: 100%;
  text-align: center;
  font-size: 20px;
  line-height: 30px;
  transform: translateY(-1px);
}

.modal-close:hover,
button.modal-close:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}

.modal-close:hover::before,
button.modal-close:hover::before {
  color: #fff !important;
}

/* 39. True EOF mobile header override */
@media (max-width: 768px) {
  body .topbar {
    display: grid !important;
    grid-template-columns: minmax(36px, 1fr) auto !important;
    grid-template-rows: 44px !important;
    align-items: center !important;
    column-gap: 8px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 6px 10px !important;
  }

  body .topbar .brand.brand-link {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body .topbar .brand-logo {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
  }

  body .topbar .brand-title,
  body .topbar .brand-subtitle {
    display: none !important;
  }

  body .topbar .topbar-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    width: auto !important;
    margin: 0 !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }

  body .topbar .mobile-menu-toggle {
    order: 1 !important;
  }

  body .topbar .mobile-search-toggle {
    order: 2 !important;
  }

  body .topbar .user-menu {
    order: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }

  body .topbar .settings-icon-link {
    order: 1 !important;
  }

  body .topbar .kccc-slot {
    order: 2 !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body .topbar .avatar-menu-wrap {
    order: 3 !important;
  }

  body .topbar .mobile-icon-btn,
  body .topbar .header-icon-link,
  body .topbar .kccc-slot .kccc-button,
  body .topbar .avatar-menu-toggle.user-avatar {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }

  body .topbar .mobile-icon-btn,
  body .topbar .header-icon-link {
    border: 1px solid #dbeafe !important;
  }

  body .topbar .kccc-slot .kccc-button img {
    width: 30px !important;
    height: 30px !important;
  }

  body .topbar .avatar-menu-toggle.user-avatar img {
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    object-fit: contain !important;
  }
}

/* 40. True EOF compact mobile actions */
@media (max-width: 768px) {
  body .topbar {
    grid-template-columns: minmax(112px, 1fr) auto !important;
  }

  body .topbar .topbar-actions {
    justify-self: end !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    gap: 4px !important;
  }

  body .topbar .user-menu {
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
    gap: 4px !important;
  }

  body .topbar .mobile-icon-btn,
  body .topbar .header-icon-link,
  body .topbar .kccc-slot,
  body .topbar .kccc-slot .kccc-button,
  body .topbar .avatar-menu-wrap,
  body .topbar .avatar-menu-toggle.user-avatar {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    flex: 0 0 34px !important;
    border-radius: 999px !important;
  }

  body .topbar .kccc-slot .kccc-button img {
    width: 32px !important;
    height: 32px !important;
  }

  body .topbar .avatar-menu-toggle.user-avatar img {
    width: 27px !important;
    min-width: 27px !important;
    max-width: 27px !important;
    height: 27px !important;
    min-height: 27px !important;
    max-height: 27px !important;
  }

  body .topbar .brand.brand-link {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  body .topbar .brand-logo {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
  }

  body .topbar .brand-title {
    display: block !important;
    max-width: 74px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
  }

  body .topbar .brand-subtitle {
    display: none !important;
  }
}

/* 41. Sticky large table header and first column */
.table-wrap {
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.table-wrap table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 30 !important;
  background: #fbfcfd !important;
  box-shadow: 0 1px 0 var(--line), 0 6px 14px rgba(31, 80, 135, .04) !important;
}

.table-wrap table th:first-child,
.table-wrap table td:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 20 !important;
  background: #fff !important;
  box-shadow: 1px 0 0 var(--line), 8px 0 14px rgba(31, 80, 135, .04) !important;
}

.table-wrap table thead th:first-child {
  z-index: 40 !important;
  background: #fbfcfd !important;
}

.table-wrap table tbody tr:nth-child(even):not(.empty-row) > td:first-child {
  background: #f7fbff !important;
}

.table-wrap table tbody tr:hover > td:first-child,
.table-wrap table tbody tr:nth-child(even):not(.empty-row):hover > td:first-child {
  background: #eef7ff !important;
}

@media (max-width: 768px) {
  .table-wrap table th:first-child,
  .table-wrap table td:first-child {
    min-width: 142px;
    max-width: 190px;
  }
}

/* 42. Robust sticky table cells */
.table-wrap {
  position: relative !important;
  overflow: auto !important;
  max-height: calc(100vh - 180px) !important;
  isolation: isolate;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  overflow: visible !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.table-wrap table thead,
.table-wrap table thead tr {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
}

.table-wrap table thead th {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
  background: #fbfcfd !important;
  background-clip: padding-box !important;
}

.table-wrap table tr > :first-child {
  position: -webkit-sticky !important;
  position: sticky !important;
  left: 0 !important;
  inset-inline-start: 0 !important;
  z-index: 55 !important;
  min-width: 160px;
  background: #fff !important;
  background-clip: padding-box !important;
  box-shadow: 1px 0 0 var(--line), 10px 0 18px rgba(31, 80, 135, .06) !important;
}

.table-wrap table thead tr > :first-child {
  z-index: 80 !important;
  background: #fbfcfd !important;
}

.table-wrap table tbody tr:nth-child(even):not(.empty-row) > :first-child {
  background: #f7fbff !important;
}

.table-wrap table tbody tr:hover > :first-child,
.table-wrap table tbody tr:nth-child(even):not(.empty-row):hover > :first-child {
  background: #eef7ff !important;
}

@media (max-width: 768px) {
  .table-wrap {
    max-height: calc(100vh - 170px) !important;
  }

  .table-wrap table tr > :first-child {
    min-width: 150px;
    max-width: 210px;
  }
}

/* 44. Mobile sticky first-column clipping */
@media (max-width: 768px) {
  .table-wrap table tr > :first-child {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .table-wrap table tr > :first-child a,
  .table-wrap table tr > :first-child strong,
  .table-wrap table tr > :first-child span {
    display: block;
    max-width: 100%;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* 43. Sticky table corner fix */
.table-wrap table tbody tr > :first-child {
  z-index: 25 !important;
}

.table-wrap table thead {
  z-index: 90 !important;
}

.table-wrap table thead th {
  z-index: 95 !important;
}

.table-wrap table thead tr > :first-child,
.table-wrap table thead th:first-child {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  inset-inline-start: 0 !important;
  z-index: 120 !important;
  background: #fbfcfd !important;
  background-clip: padding-box !important;
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line), 10px 0 18px rgba(31, 80, 135, .06) !important;
}

/* 45. Footer single-line alignment */
.footer-note {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
}

.footer-note span:first-child {
  text-align: left !important;
}

.footer-note span:last-child {
  margin-left: auto !important;
  text-align: right !important;
}

@media (max-width: 768px) {
  .footer-note {
    flex-direction: row !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  .footer-note span {
    min-width: 0 !important;
  }
}

/* 46. Minimal custom dropdown menu */
.gwm-select-menu,
.gwm-select-menu.is-floating {
  padding: 6px 0 !important;
  border-radius: 4px !important;
  border: 1px solid rgba(148, 163, 184, .38) !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .16) !important;
}

body .gwm-select-menu .gwm-select-option,
body .gwm-select-menu button.gwm-select-option,
.gwm-select-option {
  width: 100% !important;
  min-height: 32px !important;
  display: flex !important;
  align-items: center !important;
  padding: 7px 14px !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  appearance: none !important;
  background-image: none !important;
  background: transparent !important;
  color: var(--gwm-text) !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  box-shadow: none !important;
  cursor: pointer !important;
  user-select: none !important;
}

body .gwm-select-menu .gwm-select-option:hover,
body .gwm-select-menu .gwm-select-option:focus,
body .gwm-select-menu button.gwm-select-option:hover,
body .gwm-select-menu button.gwm-select-option:focus,
.gwm-select-option:hover,
.gwm-select-option:focus {
  background: #f3f6f9 !important;
  color: var(--gwm-text) !important;
  outline: none !important;
}

body .gwm-select-menu .gwm-select-option.selected,
body .gwm-select-menu button.gwm-select-option.selected,
.gwm-select-option.selected {
  background: #eef4ff !important;
  color: #075ee8 !important;
  font-weight: 600 !important;
}

body .gwm-select-menu .gwm-select-option.is-disabled,
.gwm-select-option.is-disabled {
  cursor: not-allowed !important;
  opacity: .5 !important;
}

/* 47. Dropdown text size and true-centered modal close */
body .gwm-select-menu .gwm-select-option,
.gwm-select-option {
  font-size: 14px !important;
}

body .modal-close,
body button.modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid #fecaca !important;
  background: #fee2e2 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-align: center !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 24px rgba(220, 38, 38, .14) !important;
}

body .modal-close::before,
body button.modal-close::before,
body .modal-close::after,
body button.modal-close::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 12px !important;
  height: 2px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #b91c1c !important;
  transform-origin: center !important;
}

body .modal-close::before,
body button.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

body .modal-close::after,
body button.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

body .modal-close:hover,
body button.modal-close:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: transparent !important;
}

body .modal-close:hover::before,
body button.modal-close:hover::before,
body .modal-close:hover::after,
body button.modal-close:hover::after {
  background: #fff !important;
}

/* 48. Mobile two-column detail panels and clipped data tables */
@media (max-width: 768px) {
  .admin-head {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
  }

  .admin-head div {
    min-width: 0 !important;
    padding: 12px 10px !important;
  }

  .admin-head span,
  .admin-head strong {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .admin-head div:nth-child(odd) {
    border-right: 1px solid var(--line) !important;
  }

  .alert-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .alert-filter-form label,
  .alert-filter-form .gwm-select {
    min-width: 0 !important;
  }

  .alert-filter-form .form-actions {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .alert-filter-form .form-actions .btn {
    width: 100% !important;
  }

  .account-actions-panel {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .account-actions-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .account-actions-group h2 {
    grid-column: 1 / -1 !important;
    margin-bottom: 0 !important;
  }

  .account-actions-group form,
  .account-actions-group > .btn {
    min-width: 0 !important;
  }

  .account-actions-panel .btn,
  .account-actions-panel .action-wide {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 8px !important;
    white-space: normal !important;
  }

  .account-detail-main,
  .account-detail-main .panel {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .account-detail-main .table.compact {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }

  .account-detail-main .table.compact th,
  .account-detail-main .table.compact td {
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .account-detail-main .table.compact th {
    width: 38% !important;
  }

  .account-detail-main .table.compact td {
    width: 62% !important;
  }

  .account-detail-main > .grid.two > .panel:nth-child(2) .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .account-detail-main > .grid.two > .panel:nth-child(2) .form-grid label,
  .account-detail-main > .grid.two > .panel:nth-child(2) .form-grid .gwm-select,
  .account-detail-main > .grid.two > .panel:nth-child(2) .form-grid input {
    min-width: 0 !important;
  }

  .account-detail-main > .grid.two > .panel:nth-child(2) .form-grid > button {
    grid-column: 1 / -1 !important;
  }

  .account-detail-main > .grid.two > .panel:nth-child(2) .date-suggestions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .account-detail-main > .grid.two > .panel:nth-child(2) .date-suggestions button {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 6px !important;
  }
}

/* 49. Mobile settings/report forms and management tables */
@media (max-width: 768px) {
  .alert-filter-panel > .alert-filter-form,
  .form-panel > .form-grid.four,
  .settings-page > form.form-grid.two,
  .settings-page > form.form-grid.four,
  .settings-page .admin-package-create-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .alert-filter-panel > .alert-filter-form > label,
  .form-panel > .form-grid.four > label,
  .settings-page > form.form-grid.two > label,
  .settings-page > form.form-grid.four > label,
  .settings-page .admin-package-create-form > label {
    min-width: 0 !important;
  }

  .alert-filter-panel > .alert-filter-form .gwm-select,
  .form-panel > .form-grid.four .gwm-select,
  .settings-page > form.form-grid.two .gwm-select,
  .settings-page > form.form-grid.four .gwm-select,
  .settings-page input,
  .settings-page .gwm-select {
    min-width: 0 !important;
    width: 100% !important;
  }

  .alert-filter-panel > .alert-filter-form > .form-actions,
  .settings-page > form.form-grid.two > .form-actions,
  .settings-page > form.form-grid.four > .form-actions,
  .settings-page .admin-package-create-form > .form-actions {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .settings-page > form.form-grid.four > label.wide,
  .settings-page > form.form-grid.four > .uploaded-logo,
  .settings-page > form.form-grid.four > button {
    grid-column: 1 / -1 !important;
  }

  .settings-page .backup-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .settings-page .backup-head h2 {
    margin: 0 !important;
    min-width: 0 !important;
  }

  .settings-page .backup-head form,
  .settings-page .backup-head .btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  .summary-grid.backup-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .backup-summary .stat {
    min-width: 0 !important;
    min-height: 112px !important;
    padding: 10px !important;
  }

  .backup-summary .stat strong,
  .backup-summary .stat small {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .backup-summary .stat strong {
    white-space: nowrap !important;
    font-size: 17px !important;
  }

  .backup-summary .stat small {
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .settings-page .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .settings-page .storage-package-table,
  .settings-page .backup-history-table,
  .settings-page .admin-package-table,
  .reports-page .table-wrap table,
  .table-panel .table-wrap table {
    table-layout: auto !important;
    min-width: 720px !important;
  }

  .settings-page .storage-package-table th,
  .settings-page .storage-package-table td,
  .settings-page .backup-history-table th,
  .settings-page .backup-history-table td,
  .settings-page .admin-package-table th,
  .settings-page .admin-package-table td {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .settings-page .storage-package-table input,
  .settings-page .admin-package-table input {
    width: 120px !important;
    min-width: 120px !important;
  }

  .settings-page .storage-package-table .row-actions,
  .settings-page .backup-history-table .backup-actions,
  .settings-page .admin-package-table .row-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
    white-space: nowrap !important;
  }

  .settings-page .storage-package-table .btn,
  .settings-page .backup-history-table .btn,
  .settings-page .admin-package-table .btn {
    min-width: 76px !important;
    width: auto !important;
    white-space: nowrap !important;
    padding-inline: 10px !important;
  }

  .settings-page .backup-history-table {
    min-width: 860px !important;
  }
}

/* 50. Settings users, audit logs, and manual library */
@media (max-width: 768px) {
  .settings-page .authorized-users-table,
  .settings-page .audit-table {
    table-layout: auto !important;
    min-width: 760px !important;
  }

  .settings-page .authorized-users-table th,
  .settings-page .authorized-users-table td,
  .settings-page .audit-table th,
  .settings-page .audit-table td {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .settings-page .authorized-users-table .pill {
    white-space: nowrap !important;
  }

  .audit-filter-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .audit-filter-form label,
  .audit-filter-form input,
  .audit-filter-form .gwm-select {
    min-width: 0 !important;
    width: 100% !important;
  }

  .audit-filter-form .form-actions {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .audit-filter-form .btn {
    width: 100% !important;
  }
}

.manual-library {
  display: grid;
  gap: 18px;
}

.manual-library-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.manual-article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.manual-article-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--gwm-border);
  border-radius: 8px;
  background: #fff;
  color: var(--gwm-text);
  text-decoration: none;
}

.manual-article-card:hover {
  background: #f8fbff;
  text-decoration: none;
}

.manual-article-card span {
  color: var(--gwm-blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.manual-article-card strong {
  font-size: 18px;
  line-height: 1.25;
}

.manual-article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.manual-article-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.manual-doc-v3,
.manual-doc-v3 * {
  max-width: 100%;
}

.manual-doc-v3 pre,
.manual-doc-v3 code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .manual-article-list {
    grid-template-columns: 1fr !important;
  }

  .manual-article-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .manual-article-actions .btn {
    width: 100% !important;
  }

  .manual-layout,
  .wide-manual-layout,
  .manual-two-cols,
  .manual-check-grid {
    grid-template-columns: 1fr !important;
  }

  .manual-flow {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .manual-flow .flow-arrow {
    display: none !important;
  }

  .manual-card,
  .manual-hero,
  .manual-info,
  .manual-step,
  .next-action-box {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .manual-mini-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }
}

@media print {
  .topbar,
  .settings-tabs,
  .footer-note,
  .manual-article-actions,
  .global-search-dropdown,
  .avatar-dropdown {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  .page {
    padding: 0 !important;
  }

  .manual-doc-v3 {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .manual-layout,
  .wide-manual-layout {
    display: block !important;
  }

  .manual-side {
    margin-top: 16px !important;
  }

  .manual-card,
  .manual-hero {
    break-inside: avoid;
    box-shadow: none !important;
  }
}

/* 51. Final overrides for Audit Logs mobile filters and Manual cross-links */
.manual-link-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid var(--gwm-border);
  border-radius: 8px;
  background: #f8fbff;
}

.manual-link-callout .btn {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  form.audit-filter-form.form-grid.five {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  form.audit-filter-form.form-grid.five > label {
    grid-column: auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  form.audit-filter-form.form-grid.five > label > input,
  form.audit-filter-form.form-grid.five > label > select,
  form.audit-filter-form.form-grid.five > label > .gwm-select,
  form.audit-filter-form.form-grid.five > label .gwm-select,
  form.audit-filter-form.form-grid.five > label .gwm-select-button {
    min-width: 0 !important;
    width: 100% !important;
  }

  form.audit-filter-form.form-grid.five > .form-actions {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  form.audit-filter-form.form-grid.five > .form-actions .btn {
    width: 100% !important;
  }

  .manual-link-callout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .manual-link-callout .btn {
    width: 100%;
  }
}

/* 55. Login refresh and Admin add-account modal */
.login-card.login-card-centered {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 6px !important;
}

.login-brand-logo {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain !important;
  margin-bottom: 8px !important;
}

.login-card-centered .brand-title {
  font-size: 22px !important;
  line-height: 1.2 !important;
}

.login-card-centered .brand-subtitle {
  margin-bottom: 22px !important;
}

.social-button.google-login-button {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 300px !important;
  padding: .75em 1.25em !important;
  margin-top: 8px !important;
  border: 1px solid #dadce0 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #26384d !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05) !important;
  transition: all .2s cubic-bezier(.4, 0, .2, 1) !important;
}

.social-button.google-login-button:hover {
  border-color: #d2e3fc !important;
  background: #f8faff !important;
  box-shadow: 0 1px 3px rgba(66, 133, 244, .15) !important;
}

.admin-heading-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.add-account-modal {
  width: min(760px, calc(100vw - 32px)) !important;
}

.create-account-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  min-height: 34px !important;
  margin-bottom: 18px !important;
}

.create-account-modal-header h2 {
  margin: 0 !important;
  line-height: 1.2 !important;
}

.create-account-modal-controls {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
}

body .add-account-modal .create-account-modal-controls .modal-close,
body .add-account-modal .create-account-modal-controls button.modal-close {
  position: relative !important;
  top: auto !important;
  right: auto !important;
}

.create-account-guide {
  position: relative !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .12) !important;
}

.create-account-guide:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
}

.create-account-guide::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  padding: 6px 9px;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  pointer-events: none;
}

.create-account-guide:hover::after,
.create-account-guide:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.add-account-modal .email-local-field input,
.add-account-modal .email-domain-field select,
.add-account-modal .email-domain-field input {
  font-weight: 700 !important;
}

.password-choice-stack {
  display: grid !important;
  gap: 10px !important;
  padding: 12px !important;
  border: 1px solid var(--ent-100) !important;
  border-radius: 8px !important;
  background: var(--ent-50) !important;
}

.password-choice-stack > label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.password-choice-stack > label[data-new-user-manual-password] {
  display: block !important;
  padding-left: 26px !important;
}

.add-account-modal .btn[disabled] {
  opacity: .48 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.add-account-modal .field-error input,
.add-account-modal .field-error .gwm-select-trigger {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, .15) !important;
}

.add-account-modal .field-error {
  color: #b91c1c !important;
}

.modal-field-error,
.add-account-form-error {
  display: block !important;
  margin-top: 6px !important;
  color: #dc2626 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}

.modal-field-error[style*="display:none"],
.modal-field-error[style*="display: none"] {
  display: none !important;
}

.add-account-form-error {
  padding: 10px 12px !important;
  border: 1px solid #fecaca !important;
  border-radius: 8px !important;
  background: #fff5f5 !important;
}

.add-account-modal .auto-password-field input[readonly] {
  background: #f8fbff !important;
  color: #075ee8 !important;
  font-weight: 800 !important;
  cursor: text !important;
}

.created-account-modal {
  text-align: center !important;
}

.created-user-avatar {
  color: #94a3b8 !important;
  font-size: 58px !important;
  line-height: 1 !important;
  margin-top: 6px !important;
}

.created-account-modal h2 {
  color: var(--blue-700) !important;
  margin-bottom: 18px !important;
}

.created-account-modal p {
  margin: 10px 0 !important;
  color: var(--ink) !important;
}

.created-user-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  position: relative !important;
  margin: 16px 0 20px !important;
}

.created-credential-row {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
}

.credential-icon-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 1px solid #cfe5fb !important;
  border-radius: 50% !important;
  background: #f8fbff !important;
  color: #075ee8 !important;
  box-shadow: none !important;
  font-size: 16px !important;
}

.credential-icon-btn:hover {
  background: #e8f4ff !important;
}

.credential-icon-btn.share {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  font-size: 18px !important;
}

.share-options {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2 !important;
  min-width: 160px !important;
  padding: 6px !important;
  border: 1px solid var(--ent-200) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 14px 35px rgba(38, 56, 77, .18) !important;
}

.share-options.open {
  display: grid !important;
}

.share-options a {
  padding: 8px 10px !important;
  color: var(--blue-700) !important;
  text-decoration: none !important;
  border-radius: 6px !important;
}

.share-options button {
  width: 100% !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: var(--blue-700) !important;
  box-shadow: none !important;
  text-align: left !important;
  font-size: 14px !important;
}

.share-options a:hover,
.share-options button:hover {
  background: var(--blue-50) !important;
}

@media (max-width: 720px) {
  .admin-heading-actions,
  .admin-heading-actions form,
  .admin-heading-actions .btn {
    width: 100% !important;
  }
  .add-account-modal form.form-grid.two {
    grid-template-columns: 1fr !important;
  }
}

/* 56. SYNC ALL progress tooltip */
.sync-confirm-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 4900 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
  background: rgba(15, 34, 52, .45) !important;
  backdrop-filter: blur(3px) !important;
}

.sync-confirm-backdrop.open {
  display: flex !important;
}

.sync-confirm-modal {
  position: relative !important;
  width: min(460px, calc(100vw - 32px)) !important;
  padding: 26px !important;
  border: 1px solid #cfe5fb !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #26384d !important;
  box-shadow: 0 24px 70px rgba(15, 34, 52, .26) !important;
  text-align: center !important;
}

.sync-confirm-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  aspect-ratio: 1 / 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #cfe5fb !important;
  border-radius: 50% !important;
  background: #eef4ff !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: none !important;
}

.sync-confirm-close::before,
.sync-confirm-close::after,
.root-note-close::before,
.root-note-close::after,
.root-note-image-close::before,
.root-note-image-close::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 11px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  transform-origin: center !important;
}

.sync-confirm-close::before,
.root-note-close::before,
.root-note-image-close::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.sync-confirm-close::after,
.root-note-close::after,
.root-note-image-close::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.sync-confirm-close {
  color: #075ee8 !important;
}

.sync-confirm-icon {
  width: 56px !important;
  height: 56px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 14px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #075ee8, #12aee8) !important;
  color: #fff !important;
  font-size: 25px !important;
  box-shadow: 0 14px 28px rgba(7, 104, 246, .18) !important;
}

.sync-confirm-modal h2 {
  margin: 0 0 8px !important;
  color: #133858 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

.sync-confirm-modal p {
  margin: 0 !important;
  color: #60758f !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.sync-confirm-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-top: 22px !important;
}

.sync-confirm-actions .btn {
  min-width: 118px !important;
}

.sync-progress-toast {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  z-index: 5000 !important;
  width: min(390px, calc(100vw - 28px)) !important;
  padding: 14px !important;
  border: 1px solid #cfe5fb !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #26384d !important;
  box-shadow: 0 18px 44px rgba(15, 34, 52, .18) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(12px) !important;
  transition: opacity .18s ease, transform .18s ease !important;
}

.sync-progress-toast.open {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.sync-progress-head {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
}

.sync-progress-icon {
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #e8f4ff !important;
  color: #075ee8 !important;
  font-size: 18px !important;
}

.sync-progress-toast.open:not(.done):not(.error) .sync-progress-icon i,
.btn.is-syncing i {
  animation: gwm-spin .9s linear infinite !important;
}

.sync-progress-head strong,
.sync-progress-head small,
.sync-progress-message,
.sync-progress-meta,
.sync-progress-errors {
  display: block !important;
  min-width: 0 !important;
}

.sync-progress-head strong {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #133858 !important;
}

.sync-progress-head small {
  margin-top: 2px !important;
  font-size: 12px !important;
  color: #60758f !important;
}

.sync-progress-message {
  margin-top: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.sync-progress-bar {
  height: 7px !important;
  margin-top: 10px !important;
  border-radius: 999px !important;
  background: #e7edf4 !important;
  overflow: hidden !important;
}

.sync-progress-bar span {
  display: block !important;
  width: 0;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #075ee8, #12aee8) !important;
  transition: width .2s ease !important;
}

.sync-progress-meta {
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-top: 9px !important;
  color: #60758f !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.sync-progress-errors {
  margin-top: 8px !important;
  color: #b42318 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  max-height: 48px !important;
  overflow: hidden !important;
}

.sync-progress-toast.done .sync-progress-icon {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.sync-progress-toast.done .sync-progress-bar span {
  background: #16a34a !important;
}

.sync-progress-toast.error {
  border-color: #fecaca !important;
}

.sync-progress-toast.error .sync-progress-icon {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.sync-progress-toast.error .sync-progress-bar span {
  background: #dc2626 !important;
}

@keyframes gwm-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .sync-progress-toast {
    right: 14px !important;
    bottom: 14px !important;
  }

  .sync-progress-meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }
}

/* 57. Root-only Note */
body.root-note-open {
  overflow: hidden !important;
}

.root-note-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 39980 !important;
  display: none !important;
  background: rgba(8, 16, 28, .72) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

.root-note-backdrop.open {
  display: block !important;
}

.root-note-toggle {
  border: 0 !important;
  padding: 0 !important;
}

.root-note-panel {
  position: fixed !important;
  top: 82px !important;
  right: 18px !important;
  z-index: 39990 !important;
  width: min(520px, calc(100vw - 28px)) !important;
  max-height: calc(100vh - 104px) !important;
  display: none !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  gap: 12px !important;
  padding: 14px !important;
  border: 1px solid #cfe5fb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 22px 62px rgba(15, 34, 52, .2) !important;
}

.root-note-panel.open {
  display: grid !important;
}

.root-note-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.root-note-head strong {
  display: block !important;
  color: #133858 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.root-note-head span {
  display: block !important;
  margin-top: 2px !important;
  color: #60758f !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.root-note-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.root-note-switch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #60758f !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

.root-note-switch input {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
}

.root-note-close,
.root-note-image-close {
  position: relative !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  aspect-ratio: 1 / 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #fecaca !important;
  border-radius: 50% !important;
  background: #fee2e2 !important;
  color: #b91c1c !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: none !important;
}

.root-note-add {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 40px !important;
  gap: 8px !important;
}

.root-note-add input {
  margin: 0 !important;
}

.root-note-list {
  min-height: 150px !important;
  overflow: auto !important;
  display: grid !important;
  align-content: start !important;
  gap: 7px !important;
  padding-right: 2px !important;
}

.root-note-task {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) 32px 32px !important;
  gap: 8px !important;
  align-items: start !important;
  padding: 9px !important;
  border: 1px solid #d7e8fb !important;
  border-radius: 8px !important;
  background: #f8fbff !important;
}

.root-note-task input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  margin: 2px 0 0 !important;
}

.root-note-task-text {
  min-width: 0 !important;
  color: #203f64 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
}

.root-note-task.is-completed .root-note-task-text {
  color: #7a8795 !important;
  text-decoration: line-through !important;
  opacity: .64 !important;
}

.root-note-task textarea {
  width: 100% !important;
  min-height: 58px !important;
  margin: 0 !important;
  resize: vertical !important;
}

.root-note-row-btn {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 7px !important;
  background: #e8f4ff !important;
  color: #075ee8 !important;
  box-shadow: none !important;
}

.root-note-row-btn.danger {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.root-note-row-btn.save {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.root-note-empty {
  padding: 18px !important;
  border: 1px dashed #cfe5fb !important;
  border-radius: 8px !important;
  color: #60758f !important;
  text-align: center !important;
  font-size: 14px !important;
}

.root-note-images {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding-top: 8px !important;
  border-top: 1px solid #d7e8fb !important;
}

.root-note-images-title {
  width: 100% !important;
  color: #60758f !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.root-note-thumb {
  width: 72px !important;
  height: 54px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #cfe5fb !important;
  border-radius: 8px !important;
  background: #f8fbff !important;
  box-shadow: none !important;
}

.root-note-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.root-note-confirm,
.root-note-image-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 5100 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
  background: rgba(15, 34, 52, .48) !important;
  backdrop-filter: blur(3px) !important;
}

.root-note-confirm.open,
.root-note-image-modal.open {
  display: flex !important;
}

.root-note-confirm > div {
  width: min(380px, calc(100vw - 32px)) !important;
  padding: 22px !important;
  border-radius: 8px !important;
  background: #fff !important;
  text-align: center !important;
  box-shadow: 0 24px 70px rgba(15, 34, 52, .25) !important;
}

.root-note-confirm strong {
  color: #133858 !important;
  font-size: 18px !important;
}

.root-note-confirm p {
  margin: 8px 0 18px !important;
  color: #60758f !important;
}

.root-note-confirm > div > div {
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
}

.root-note-undo {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  z-index: 5200 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 2px 12px !important;
  align-items: center !important;
  width: min(320px, calc(100vw - 28px)) !important;
  padding: 12px !important;
  border: 1px solid #cfe5fb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 18px 44px rgba(15, 34, 52, .18) !important;
}

.root-note-undo strong,
.root-note-undo span {
  min-width: 0 !important;
}

.root-note-undo span {
  color: #60758f !important;
  font-size: 12px !important;
}

.root-note-undo button {
  grid-row: 1 / span 2 !important;
  grid-column: 2 !important;
  padding: 7px 10px !important;
}

.root-note-image-modal img {
  max-width: min(1000px, calc(100vw - 54px)) !important;
  max-height: calc(100vh - 54px) !important;
  border-radius: 8px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35) !important;
}

.root-note-image-close {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
}

button.sync-confirm-close,
button.root-note-close,
button.root-note-image-close {
  flex: 0 0 30px !important;
  overflow: hidden !important;
  text-indent: -9999px !important;
}

@media (max-width: 720px) {
  .root-note-panel {
    top: 50% !important;
    right: 10px !important;
    left: 10px !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    max-height: calc(100vh - 52px) !important;
  }

  .root-note-head {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .root-note-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
  }
}

/* 58. Modal stacking and mobile overlay lock */
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body .modal,
body .modal.open {
  z-index: 40000 !important;
  overflow: hidden !important;
  overscroll-behavior: contain !important;
}

body .modal-card {
  position: relative !important;
  z-index: 40001 !important;
  max-height: calc(100dvh - 36px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

body .gwm-select-menu.is-floating {
  z-index: 90000 !important;
}

.gwm-select-search {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  padding: 8px !important;
  background: #fff !important;
  border-bottom: 1px solid #e5eef8 !important;
}

.gwm-select-search input {
  width: 100% !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 1px solid #cfe5fb !important;
  border-radius: 7px !important;
  font-size: 14px !important;
  background: #f8fbff !important;
}

body .gwm-select-menu .gwm-select-option.is-filtered-out,
body .gwm-select-menu .gwm-select-option[hidden],
.gwm-select-menu .gwm-select-option.is-filtered-out,
.gwm-select-menu .gwm-select-option[hidden],
.gwm-select-option.is-filtered-out,
.gwm-select-option[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  body .modal {
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
  }

  body .modal-card {
    max-height: calc(100dvh - 28px) !important;
  }

  body .add-account-modal {
    width: min(760px, calc(100vw - 32px)) !important;
    max-height: calc(100dvh - 28px) !important;
    padding: 28px 18px 18px !important;
  }

  body .add-account-modal h2 {
    font-size: 26px !important;
    line-height: 1.16 !important;
    padding-right: 48px !important;
    margin-bottom: 18px !important;
  }

  body .created-account-modal {
    width: min(520px, calc(100vw - 32px)) !important;
  }

  .created-user-actions {
    margin: 10px 0 18px !important;
  }

  .created-credential-row {
    flex-wrap: nowrap !important;
  }

  .created-credential-row span,
  .created-credential-row strong {
    font-size: 18px !important;
  }
}

/* 59. Exo font trial, compact account modals, and elevated copy toasts */
body,
button,
input,
select,
textarea {
  font-family: 'Exo', sans-serif !important;
}

i[class^="ph"],
i[class*=" ph"] {
  font-family: "Phosphor" !important;
}

.copy-toast {
  z-index: 99999 !important;
}

.copy-toast.near-click {
  right: auto !important;
  bottom: auto !important;
}

body .add-account-modal h2 {
  font-size: 28px !important;
  line-height: 1.18 !important;
  margin: 0 0 18px !important;
  padding-right: 48px !important;
}

body .created-account-modal {
  width: min(540px, calc(100vw - 32px)) !important;
  padding: 30px 34px 26px !important;
}

.created-account-modal .created-user-avatar {
  margin-top: 0 !important;
  font-size: 54px !important;
}

.created-account-modal h2 {
  margin: 8px 0 20px !important;
  font-size: 28px !important;
  line-height: 1.15 !important;
}

.created-account-modal p.created-credential-row {
  display: grid !important;
  grid-template-columns: auto minmax(0, auto) 34px !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 11px 0 !important;
}

.created-credential-row span,
.created-credential-row strong {
  min-width: 0 !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
}

.created-credential-row strong {
  overflow-wrap: anywhere !important;
}

.credential-icon-btn,
button.credential-icon-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  line-height: 1 !important;
}

.credential-icon-btn i {
  line-height: 1 !important;
}

.credential-icon-btn.share,
button.credential-icon-btn.share {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 8px auto 2px !important;
}

@media (max-width: 768px) {
  body .add-account-modal h2 {
    font-size: 28px !important;
    line-height: 1.14 !important;
  }

  body .created-account-modal {
    padding: 28px 20px 22px !important;
  }

  .created-account-modal h2 {
    font-size: 25px !important;
  }

  .created-account-modal p.created-credential-row {
    grid-template-columns: auto minmax(0, 1fr) 34px !important;
    justify-content: stretch !important;
  }

  .created-credential-row span,
  .created-credential-row strong {
    font-size: 16px !important;
  }
}

/* 60. Polish Exo trial and account modal interactions */
body.modal-open,
body.root-note-open {
  touch-action: none !important;
}

body .gwm-select-menu.is-floating,
body .share-options,
body .copy-toast,
body .undo-toast {
  z-index: 100400 !important;
}

body .gwm-select-menu,
body .gwm-select-menu.is-floating {
  min-width: 220px !important;
}

.domain-default-ou-card .gwm-select-menu,
.domain-default-ou-card .gwm-select-menu.is-floating {
  min-width: 260px !important;
}

body .add-account-modal h2 {
  font-size: 26px !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
}

body .created-account-modal {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0 !important;
}

.created-account-modal p.created-credential-row {
  width: min(100%, 390px) !important;
  grid-template-columns: 82px minmax(0, 1fr) 36px !important;
  justify-content: stretch !important;
  text-align: left !important;
}

.created-credential-row span {
  color: #415875 !important;
  text-align: right !important;
}

.credential-icon-btn,
button.credential-icon-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  flex-basis: 36px !important;
  border-radius: 999px !important;
}

.credential-icon-btn.share,
button.credential-icon-btn.share {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  flex-basis: 44px !important;
}

@media (max-width: 768px) {
  body .add-account-modal h2 {
    font-size: 24px !important;
    line-height: 1.18 !important;
    margin-bottom: 16px !important;
  }

  .created-account-modal p.created-credential-row {
    grid-template-columns: 76px minmax(0, 1fr) 36px !important;
    width: 100% !important;
  }

  .created-credential-row span,
  .created-credential-row strong {
    font-size: 15px !important;
  }
}

/* 61. Restore icon contrast after Exo font trial */
.topbar i[class^="ph"],
.topbar i[class*=" ph"],
.nav a i,
.search-input-box i,
.mobile-icon-btn i,
.header-icon-link i {
  opacity: 1 !important;
  color: currentColor !important;
  --ph-duotone-opacity: .72;
}

.nav a {
  color: #526985 !important;
}

.nav a:hover,
.nav a.active {
  color: #075ee8 !important;
}

.nav-item.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
}

.topbar .nav {
  overflow: visible !important;
}

.nav-item.nav-dropdown > a {
  height: 42px !important;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, 32px);
  grid-auto-columns: minmax(104px, 1fr);
  gap: 6px 10px;
  background: #fff;
  border: 1px solid var(--gwm-border);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(38, 56, 77, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
  z-index: 10020;
}

.nav-item.nav-dropdown:hover .nav-dropdown-menu,
.nav-item.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav .nav-dropdown-menu a {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: #274466 !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap;
  transform: none !important;
}

.nav .nav-dropdown-menu a:hover,
.nav .nav-dropdown-menu a:focus {
  color: #075ee8 !important;
  background: #eef6ff !important;
}

@media (max-width: 768px) {
  .topbar .nav {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .nav-item.nav-dropdown {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 260px;
    margin-top: 4px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item.nav-dropdown:hover .nav-dropdown-menu,
  .nav-item.nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
  }
}

.deleted-accounts-table .deleted-account-row,
.deleted-accounts-table .deleted-account-row > td {
  color: #29394d !important;
  opacity: 1;
}

.deleted-accounts-table .deleted-account-row td:not(:last-child) {
  text-decoration: none;
}

.deleted-accounts-table .deleted-account-row:hover,
.deleted-accounts-table .deleted-account-row:hover > td {
  opacity: 1;
}

.deleted-accounts-table form {
  margin: 0;
}

.deleted-accounts-table {
  table-layout: fixed !important;
  min-width: 680px !important;
}

.deleted-accounts-table th:nth-child(1),
.deleted-accounts-table td:nth-child(1) {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  text-align: center !important;
}

.deleted-accounts-table th:nth-child(2),
.deleted-accounts-table td:nth-child(2) {
  width: 360px !important;
  max-width: 420px !important;
}

.deleted-accounts-table th:nth-child(3),
.deleted-accounts-table td:nth-child(3) {
  width: 148px !important;
  min-width: 148px !important;
  max-width: 148px !important;
  text-align: right !important;
}

.deleted-accounts-table th:nth-child(4),
.deleted-accounts-table td:nth-child(4) {
  width: 86px !important;
  min-width: 86px !important;
  max-width: 86px !important;
  text-align: center !important;
}

.deleted-accounts-table .deleted-account-row td,
.deleted-accounts-table .deleted-account-row span {
  text-decoration: none !important;
  color: inherit;
}

.recover-icon-btn {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px !important;
}

.recover-icon-btn i {
  font-size: 18px !important;
  line-height: 1 !important;
}

.account-email-with-role {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

.account-role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eaf4ff;
  border: 1px solid #b9dcff;
  color: #1768c5;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.gwm-role-pill {
  background: #eaf4ff !important;
  border-color: #b9dcff !important;
  color: #1768c5 !important;
}

.google-role-pill {
  background: #eafaf0 !important;
  border-color: #a9e6bf !important;
  color: #0b7a3b !important;
}

.admin-account-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--gwm-border, #cfe3fb);
  border-radius: 8px;
  background: #fff;
  color: var(--gwm-text, #24364d);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.admin-account-filter input {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: var(--gwm-blue, #1f6fd6);
}

.admin-account-filter:hover {
  background: #eef6ff;
}

.admin-filter.open {
  z-index: 120000 !important;
}

body .admin-filter-menu {
  z-index: 120001 !important;
}

.table-panel {
  position: relative;
  z-index: 5;
  overflow: visible !important;
}

.footer-note {
  position: relative;
  z-index: 0;
}

.accounts-sync-actions {
  order: 2;
  margin-left: auto;
}

.accounts-sync-actions + .table-tools {
  order: 3;
  flex-basis: 100%;
  justify-content: flex-end;
  margin-left: 0;
}

.accounts-heading-sync-actions {
  margin-left: auto;
  align-self: center;
}

body,
body *:not(i):not([class^="ph"]):not([class*=" ph"]) {
  font-family: 'Exo', sans-serif !important;
}

i[class^="ph"],
i[class*=" ph"] {
  font-family: "Phosphor" !important;
}

.search-input-box i {
  color: #70829a !important;
}

.search-input-box:focus-within i {
  color: #075ee8 !important;
}

.header-icon-link,
.mobile-icon-btn {
  color: #2563c9 !important;
}

.page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.add-account-helper {
  margin-top: -6px !important;
  margin-bottom: 14px !important;
}

.new-user-password-label,
[data-new-user-password-field],
[data-manual-password-wrap],
[data-reset-password-wrap] {
  max-width: 520px !important;
}

[data-manual-password-wrap] {
  display: block !important;
}

.new-user-password-label input,
[data-new-user-password-field] input,
[data-manual-password-wrap] input,
[data-reset-password-wrap] input {
  max-width: 420px !important;
}

.password-choice-stack .new-user-password-label,
.password-box .new-user-password-label,
[data-manual-password-wrap],
[data-reset-password-wrap] {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
}

.password-choice-stack .new-user-password-label input,
.password-box .new-user-password-label input,
[data-manual-password-wrap] input,
[data-reset-password-wrap] input {
  min-width: 220px !important;
  width: min(420px, 100%) !important;
}

.credential-result-modal .created-credential-row,
.created-account-modal .created-credential-row {
  justify-content: center !important;
  text-align: center !important;
  cursor: pointer !important;
  gap: 8px !important;
}

.credential-result-modal p.created-credential-row,
.created-account-modal.credential-result-modal p.created-credential-row {
  display: grid !important;
  grid-template-columns: auto auto !important;
  width: max-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
  text-align: center !important;
}

.credential-result-modal .created-credential-row span,
.credential-result-modal .created-credential-row strong {
  text-align: center !important;
}

.credential-result-modal .created-credential-row:hover,
.created-account-modal .created-credential-row:hover {
  color: var(--blue-700, #1f6fd6) !important;
}

.domain-default-ou-card strong {
  display: grid !important;
  gap: 6px !important;
  font-size: 13px !important;
}

.domain-default-ou-form {
  display: grid !important;
  grid-template-columns: auto minmax(120px, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

.domain-default-ou-form span {
  color: var(--text-muted, #7387a0) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.domain-default-ou-form select {
  min-height: 34px !important;
  padding: 4px 8px !important;
  font-size: 13px !important;
}

.customer-plan-summary.summary-grid,
.customer-plan-summary.summary-grid.six,
.customer-plan-summary.summary-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.customer-plan-summary .summary-card {
  min-width: 0 !important;
  padding: 12px 8px !important;
}

.customer-plan-summary .summary-card span {
  font-size: 11px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}

.customer-plan-summary .summary-card strong {
  font-size: clamp(16px, 1.25vw, 22px) !important;
  line-height: 1.15 !important;
  word-break: break-word;
}

@media (max-width: 900px) {
  .customer-plan-summary.summary-grid,
  .customer-plan-summary.summary-grid.six,
  .customer-plan-summary.summary-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.customer-add-account-form.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px 22px !important;
}

#customerAddAccountModal .account-op-modal {
  width: min(760px, calc(100vw - 40px)) !important;
  padding: 34px 36px !important;
}

.customer-password-box {
  border: 1px solid var(--ent-100) !important;
  border-radius: 8px !important;
  background: var(--ent-50) !important;
  padding: 12px !important;
  display: grid !important;
  gap: 10px !important;
  grid-column: 1 / -1 !important;
  margin-top: 2px !important;
}

.customer-password-box > label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
}

.customer-password-box .new-user-password-label {
  margin-top: 2px !important;
}

.customer-password-box .checkbox-row {
  grid-column: 1 / -1 !important;
  max-width: none !important;
}

.customer-add-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 22px !important;
  grid-column: 1 / -1 !important;
  margin-top: 10px !important;
}

.account-limit-btn {
  background: #e5e7eb !important;
  color: #9ca3af !important;
  border-color: #e5e7eb !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
}

.account-limit-tooltip {
  position: fixed;
  z-index: 100000;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(7, 26, 63, .94);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 16px 38px rgba(12, 28, 54, .22);
}

.section-title-icon {
  margin-right: 9px;
  color: #1d78df;
  font-size: 30px;
  vertical-align: -7px;
}

.account-delete-confirm {
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 24px !important;
  background: rgba(12, 28, 44, .58) !important;
}

body.modal-scroll-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.account-delete-modal {
  width: min(960px, calc(100vw - 36px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border: 1px solid #bfd9f6;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(13, 31, 58, .28);
  padding: 24px 34px 22px;
  color: #102746;
  position: relative;
}

.account-delete-modal .sync-confirm-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  left: auto !important;
  transform: none !important;
  z-index: 5 !important;
}

.account-delete-head {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-right: 42px;
}

.account-delete-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff3cd;
  color: #d97706;
  font-size: 24px;
  flex: 0 0 auto;
}

.account-delete-modal h2 {
  margin: 0 0 4px;
  font-size: 23px;
}

.account-delete-subtitle {
  margin: 0;
  color: #60758f;
}

.account-delete-subtitle strong {
  color: #0f2a4a;
}

.account-delete-zone {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #d4e7fa;
  border-radius: 8px;
  background: #fbfdff;
}

.account-delete-zone h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #102746;
}

.account-delete-zone p,
.account-delete-zone li {
  color: #273b52;
  font-weight: 500;
  line-height: 1.48;
}

.delete-bilingual-block {
  display: grid;
  gap: 5px;
}

.delete-bilingual-block + .delete-bilingual-block {
  margin-top: 14px;
}

.delete-bilingual-block p {
  margin: 0;
}

.delete-en {
  color: #7b8fa8 !important;
  font-size: calc(1em - 2px);
}

.account-delete-zone a {
  color: #1267d7;
  font-weight: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.delete-info-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.delete-link-icon {
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.account-delete-warning {
  background: #fffaf0;
  border-color: #f8d88a;
  padding: 14px 18px;
}

.delete-transfer-row {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid #e3eef9;
}

.delete-transfer-row:first-of-type {
  border-top: 0;
  padding-top: 2px;
}

.delete-product {
  display: grid;
  align-items: start;
  gap: 12px;
  font-weight: 900;
  color: #102746;
}

.delete-product strong {
  display: grid;
  gap: 2px;
}

.delete-product small,
.delete-transfer-email small,
.delete-transfer-row li span {
  display: block;
  color: #7890aa;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.delete-product img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.delete-product-icons {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 8px;
}

.delete-product-two-icons {
  grid-template-columns: repeat(2, 34px);
}

.delete-product-icons span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
}

.delete-product-icons strong {
  grid-column: 1 / -1;
  min-width: 230px;
}

.delete-transfer-apps-content {
  display: grid;
  gap: 14px;
}

.delete-transfer-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
  max-width: 360px;
  margin-bottom: 12px;
}

.delete-transfer-choice label {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #cfe3f8;
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.delete-transfer-choice input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.delete-transfer-choice span {
  display: grid;
  gap: 1px;
}

.delete-transfer-choice small {
  color: #7890aa;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.delete-transfer-email {
  position: relative;
  display: grid;
  gap: 8px;
  max-width: 460px;
  color: #516982;
  font-weight: 800;
}

.delete-transfer-email input {
  height: 42px;
  border: 1px solid #b9d8f5;
  border-radius: 8px;
  padding: 0 12px;
  color: #102746;
  font-weight: 700;
}

.delete-transfer-note {
  margin: 12px 0 0;
  font-size: 13px;
}

.delete-transfer-error {
  margin: 4px 0 0;
  color: #dc1f4c !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.delete-transfer-error span,
.delete-transfer-error small {
  display: block;
}

.delete-transfer-error small {
  margin-top: 1px;
  color: #e36a83;
  font-size: 12px;
  font-weight: 600;
}

.delete-transfer-suggestions {
  position: fixed;
  z-index: 10030;
  max-height: 260px;
  overflow: auto;
  border: 1px solid #bfd9f6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(18, 48, 86, .16);
  padding: 0;
}

.delete-transfer-suggestions > button,
.delete-transfer-suggestions button {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 38px;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  box-shadow: none !important;
  background: transparent !important;
  color: #102746;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  padding: 9px 14px;
  cursor: pointer;
}

.delete-transfer-suggestions > button + button,
.delete-transfer-suggestions button + button {
  border-top: 1px solid #edf4fc !important;
}

.delete-transfer-suggestions > button:hover,
.delete-transfer-suggestions button:hover {
  background: #eef5ff !important;
  color: #1267d7;
}

.account-delete-final-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef6ff;
  color: #516982;
  font-weight: 700;
}

.account-delete-final-note i {
  color: #1d78df;
  font-size: 20px;
}

.account-delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 22px;
}

.account-delete-actions .btn {
  min-width: 160px;
}

@media (max-width: 720px) {
  .account-delete-confirm {
    padding: 12px !important;
  }

  .account-delete-modal {
    width: calc(100vw - 24px);
    padding: 22px 18px 18px;
  }

  .delete-transfer-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .account-delete-actions {
    flex-direction: column;
  }

  .account-delete-actions .btn {
    width: 100%;
  }
}

.customer-domains-table th,
.customer-domains-table td,
.customer-domains-table .number-col {
  text-align: left !important;
}

.customer-domains-table th {
  justify-content: flex-start !important;
}

.login-divider {
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 8px;
  color: var(--muted, #7387a0);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d9e8f7;
}

.customer-login-form {
  width: 100%;
  max-width: 320px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.customer-login-form label {
  display: grid;
  gap: 6px;
  color: var(--blue-900, #12396b);
  font-size: 12px;
  font-weight: 800;
}

.customer-login-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #b9daf8;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink, #26384d);
  font: inherit;
}

.customer-login-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.customer-access-form.form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.customer-access-form .form-actions {
  justify-content: flex-end;
}

.customer-access-table th,
.customer-access-table td,
.customer-activity-table th,
.customer-activity-table td {
  text-align: left !important;
}

.customer-access-table form {
  margin: 0;
}

.customer-access-delete-btn,
button.customer-access-delete-btn {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px !important;
}

.customer-activity-table td {
  vertical-align: top;
}

.customer-activity-table td:nth-child(1) {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  white-space: nowrap;
}

.customer-domains-wrap {
  max-height: 526px;
}

.customer-accounts-wrap {
  max-height: 526px;
}

.customer-activity-wrap {
  max-height: 526px;
}

.customer-domains-wrap table,
.customer-accounts-wrap table,
.customer-activity-wrap table {
  margin-bottom: 0;
}

.customer-activity-table td:nth-child(4),
.customer-activity-table td:nth-child(5),
.customer-activity-table td:nth-child(6) {
  white-space: nowrap;
}

.account-reset-confirm .sync-confirm-modal {
  width: min(620px, calc(100vw - 40px)) !important;
  padding: 30px 40px !important;
}

.account-reset-confirm .sync-confirm-modal p {
  max-width: none !important;
  text-align: center !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.account-update-modal {
  width: min(640px, calc(100vw - 40px)) !important;
  padding: 30px 36px !important;
}

.customer-inline-update-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px 18px !important;
  margin-top: 18px !important;
  text-align: left !important;
}

.customer-inline-update-form label {
  display: grid !important;
  gap: 7px !important;
  color: var(--blue-900, #12396b) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.customer-inline-update-form input {
  margin-top: 0 !important;
}

.customer-inline-update-form .sync-confirm-actions {
  grid-column: 1 / -1 !important;
  justify-content: flex-end !important;
  margin-top: 8px !important;
}

@media (max-width: 640px) {
  .customer-inline-update-form {
    grid-template-columns: 1fr !important;
  }
}

body .topbar .avatar-dropdown {
  z-index: 10050;
}

@media (max-width: 720px) {
  .customer-add-account-form.form-grid.two {
    grid-template-columns: 1fr !important;
  }

  .customer-access-form.form-grid.four {
    grid-template-columns: 1fr !important;
  }
}

/* 62. Login Exo polish and Google CTA refresh */
body.login-body,
body.login-body *:not(i):not([class^="ph"]):not([class*=" ph"]) {
  font-family: 'Exo', sans-serif !important;
}

body.login-body {
  min-height: 100dvh !important;
  background:
    radial-gradient(circle at 50% 16%, rgba(31, 111, 214, .12), transparent 34%),
    linear-gradient(180deg, #f3f9ff 0%, #eef6ff 46%, #f9fcff 100%) !important;
}

body.login-body .login-card.login-card-centered {
  width: min(430px, calc(100vw - 36px)) !important;
  padding: 36px 38px 34px !important;
  border: 1px solid #c7e1fb !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 28px 80px rgba(28, 91, 150, .12), 0 10px 30px rgba(20, 62, 104, .08) !important;
  backdrop-filter: blur(12px);
}

body.login-body .login-brand-logo {
  width: 66px !important;
  height: 66px !important;
  margin-bottom: 10px !important;
  filter: drop-shadow(0 10px 18px rgba(31, 111, 214, .16));
}

body.login-body .login-card-centered .brand-title {
  color: #1f6fd6 !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

body.login-body .login-card-centered .brand-subtitle {
  color: #60758f !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin: 6px 0 26px !important;
}

body.login-body .social-button.google-login-button {
  position: relative !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 318px !important;
  min-height: 54px !important;
  padding: 0 22px !important;
  border: 1px solid #b9daf8 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
  color: #1f344d !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 28px rgba(31, 111, 214, .11), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  overflow: hidden !important;
}

body.login-body .social-button.google-login-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .72) 48%, transparent 100%);
  transform: translateX(-120%);
  transition: transform .42s ease;
  pointer-events: none;
}

body.login-body .social-button.google-login-button:hover {
  border-color: #7db8f3 !important;
  background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%) !important;
  color: #0f4fa8 !important;
  box-shadow: 0 18px 40px rgba(31, 111, 214, .18), inset 0 1px 0 rgba(255, 255, 255, .95) !important;
  text-decoration: none !important;
  transform: translateY(-2px);
}

body.login-body .social-button.google-login-button:hover::before {
  transform: translateX(120%);
}

body.login-body .social-button.google-login-button svg {
  width: 25px !important;
  height: 25px !important;
  flex: 0 0 25px !important;
  filter: drop-shadow(0 2px 3px rgba(15, 34, 52, .08));
}

body.login-body .notice {
  width: 100%;
  max-width: 318px;
  text-align: left;
}

/* 63. Final clean menu overrides */
body .topbar .avatar-dropdown {
  padding: 10px !important;
  border-radius: 14px !important;
}

body .topbar .avatar-dropdown .avatar-customers {
  display: grid !important;
  gap: 0 !important;
  padding: 6px 0 8px !important;
  margin: 4px 0 8px !important;
  border-top: 1px solid #edf4ff !important;
  border-bottom: 1px solid #edf4ff !important;
}

body .topbar .avatar-dropdown .avatar-customers-title {
  padding: 4px 8px 7px !important;
}

body .topbar .avatar-dropdown .avatar-customers a,
body .topbar .avatar-dropdown .avatar-customers a:link,
body .topbar .avatar-dropdown .avatar-customers a:visited {
  min-height: 32px !important;
  padding: 7px 8px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #1d63d8 !important;
}

body .topbar .avatar-dropdown .avatar-customers a + a {
  margin-top: 1px !important;
}

body .topbar .avatar-dropdown .avatar-customers a:hover,
body .topbar .avatar-dropdown .avatar-customers a.active {
  background: #f3f8ff !important;
  border: 0 !important;
  box-shadow: none !important;
}

body .topbar .avatar-dropdown > a[href*="logout"] {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 7px !important;
}

body .topbar .avatar-dropdown > a[href*="logout"]:hover {
  background: #fff5f5 !important;
}

body .topbar .avatar-switch-block {
  padding: 6px 0 8px !important;
  margin: 4px 0 8px !important;
  border-top: 1px solid #edf4ff !important;
  border-bottom: 1px solid #edf4ff !important;
}

body .topbar .avatar-switch-list {
  max-height: 270px !important;
  overflow: auto !important;
}

body .topbar .avatar-switch-block form {
  margin: 0 !important;
}

body .topbar .avatar-switch-user,
body .topbar .avatar-switch-back {
  width: 100% !important;
  min-height: 34px !important;
  display: block !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  padding: 8px !important;
  color: #1d63d8 !important;
  cursor: pointer !important;
  text-align: left !important;
  font-family: inherit !important;
}

body .topbar .avatar-switch-user:hover,
body .topbar .avatar-switch-back:hover {
  background: #f3f8ff !important;
}

body .topbar .avatar-switch-user span,
body .topbar .avatar-switch-user small {
  display: block !important;
  max-width: 210px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body .topbar .avatar-switch-user span {
  font-size: 13px !important;
  font-weight: 800 !important;
}

body .topbar .avatar-switch-user small {
  margin-top: 2px !important;
  color: #7890ad !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

body .topbar .avatar-switch-back {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #0f766e !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

body .account-context-menu {
  width: 224px !important;
  padding: 6px !important;
  border: 1px solid #d8e8fa !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 20px 52px rgba(31, 80, 135, .18) !important;
  gap: 0 !important;
}

body .account-context-menu button,
body .account-context-menu button.btn,
body .account-context-menu button.small,
body .account-context-menu button.danger {
  min-height: 33px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 7px !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #145fc6 !important;
  justify-content: flex-start !important;
}

body .account-context-menu button + button {
  margin-top: 1px !important;
}

body .account-context-menu button:hover,
body .account-context-menu button:focus {
  border: 0 !important;
  background: #f3f8ff !important;
  box-shadow: none !important;
  color: #0f4fb8 !important;
}

body .account-context-menu button.danger {
  color: #d51b45 !important;
}

body .account-context-menu button.danger:hover,
body .account-context-menu button.danger:focus {
  background: #fff5f7 !important;
  color: #be123c !important;
}

/* 64. GWM User Guide */
.user-guide-icon-link i {
  font-size: 19px;
}

.user-guide-hero .eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.user-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.user-guide-content {
  display: grid;
  gap: 16px;
}

.guide-section {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 24px;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.06);
  scroll-margin-top: 96px;
}

.guide-step {
  width: 34px;
  height: 34px;
  margin: 0 0 12px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  font-weight: 900;
}

.guide-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.15;
}

.guide-vi-title {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.guide-lang-block {
  margin-top: 18px;
}

.guide-lang-block h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 15px;
}

.guide-section p,
.guide-section li {
  color: #31445f;
  font-size: 15px;
  line-height: 1.7;
}

.guide-section ol {
  margin: 0;
  padding-left: 20px;
}

.guide-section li + li {
  margin-top: 8px;
}

.guide-note {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  color: #0f3c66;
  background: #f0f9ff;
  line-height: 1.7;
}

.user-guide-toc {
  position: sticky;
  top: 92px;
}

.user-guide-toc-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  padding: 16px;
  box-shadow: 0 18px 34px rgba(30, 64, 175, 0.10);
}

.user-guide-toc-box p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-guide-toc-box p + p {
  margin-bottom: 10px;
  color: #94a3b8;
}

.user-guide-toc-box a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(191, 219, 254, 0.75);
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.user-guide-toc-box a:hover {
  color: #0f4fb8;
}

.last-signin-value.last-signin-stale-warning {
  color: #d97706 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

.last-signin-value.last-signin-stale-critical {
  color: #dc2626 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

.ou-default-cell {
  display: inline-block;
  white-space: nowrap;
}

.ou-default-inline-form {
  display: inline-block;
  width: 170px;
  max-width: 170px;
  margin: 0;
  vertical-align: middle;
}

.ou-default-inline-form .gwm-select,
.ou-default-inline-gwm-select {
  width: 170px !important;
  min-width: 0 !important;
  max-width: 170px !important;
  display: inline-flex !important;
  vertical-align: middle;
}

.ou-default-inline-gwm-select .gwm-select-trigger {
  width: 170px !important;
  max-width: 170px !important;
  min-height: 0 !important;
  height: auto !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--blue) !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

.ou-default-inline-gwm-select .gwm-select-trigger:hover,
.ou-default-inline-gwm-select.open .gwm-select-trigger {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.ou-default-inline-gwm-select .gwm-select-value {
  display: inline-block;
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ou-default-inline-gwm-select .gwm-select-arrow {
  width: 7px;
  height: 7px;
  border-color: #53677f;
}

.gwm-select-menu.ou-default-inline-menu,
.gwm-select-menu.ou-default-inline-menu.is-floating {
  min-width: 320px !important;
  overflow-x: hidden !important;
}

.gwm-select-menu.ou-default-inline-menu .gwm-select-option {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.ou-default-inline-form > select.ou-default-inline-select {
  appearance: none;
  -webkit-appearance: none;
  width: 170px !important;
  max-width: 170px !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 16px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--blue) !important;
  font: inherit !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-stt-col {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  text-align: center !important;
  color: #64748b;
}

.table-wrap table tr > .table-stt-col,
.table-wrap table thead tr > .table-stt-col,
.table-wrap table tbody tr > .table-stt-col {
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  padding-right: 6px !important;
  padding-left: 6px !important;
}

.table-wrap.table-wrap-max20 {
  max-height: var(--table-visible-height, 506px) !important;
  overflow-y: auto !important;
}

.table-wrap.table-wrap-max20 table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
}

.sync-confirm-submessage {
  display: inline-block;
  margin-top: 6px;
  color: #7a8faa;
  font-size: 13px;
  line-height: 1.5;
}

.delete-transfer-suggestions button {
  display: block;
  width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 11px 14px;
  color: var(--blue);
  text-align: left;
  font-weight: 800;
}

.delete-transfer-suggestions button + button {
  border-top: 1px solid rgba(191, 219, 254, .7) !important;
}

.delete-transfer-suggestions button:hover {
  background: #eef6ff !important;
}

.column-tools-ready {
  table-layout: auto;
}

.column-tool-header {
  position: relative;
}

.column-draggable {
  cursor: grab;
}

.column-draggable:active {
  cursor: grabbing;
}

.column-resize-handle {
  position: absolute;
  top: 0;
  right: -3px;
  z-index: 3;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
}

.column-resize-handle::after {
  content: "";
  position: absolute;
  top: 25%;
  bottom: 25%;
  left: 3px;
  width: 2px;
  border-radius: 999px;
  background: rgba(29, 120, 223, 0);
  transition: background .12s ease;
}

.column-tool-header:hover .column-resize-handle::after,
.is-resizing-column .column-resize-handle::after {
  background: rgba(29, 120, 223, .45);
}

.is-dragging-column {
  opacity: .55;
}

.is-column-drop-target {
  box-shadow: inset 3px 0 0 #1d78df;
  background: #eef6ff !important;
}

@media (max-width: 960px) {
  .user-guide-layout {
    grid-template-columns: 1fr;
  }

  .user-guide-toc {
    position: static;
    order: -1;
  }

  .user-guide-toc-box {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px;
  }

  .user-guide-toc-box p {
    display: none;
  }

  .user-guide-toc-box a {
    flex: 0 0 auto;
    border-top: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 12px;
    background: #fff;
  }

  .guide-section {
    padding: 18px;
  }
}

/* GWM Bottom-Left Toast Notification with 5s Countdown */
.gwm-toast-bottom-left {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 340px;
  max-width: 460px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(0, 122, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(7, 26, 63, 0.18), 0 4px 14px rgba(0, 110, 230, 0.1);
  animation: gwmToastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow: hidden;
}

.gwm-toast-bottom-left.success {
  border-left: 5px solid #10b981;
}

.gwm-toast-bottom-left.error {
  border-left: 5px solid #ef4444;
}

.gwm-toast-bottom-left .toast-icon {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  flex-shrink: 0;
}

.gwm-toast-bottom-left.error .toast-icon {
  color: #ef4444;
}

.gwm-toast-bottom-left .toast-body {
  flex: 1;
  min-width: 0;
}

.gwm-toast-bottom-left .toast-title {
  font-weight: 700;
  font-size: 15px;
  color: #071a3f;
  margin-bottom: 3px;
  line-height: 1.25;
}

.gwm-toast-bottom-left .toast-message {
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
  word-break: break-word;
}

.gwm-toast-bottom-left .toast-meta {
  font-size: 11px;
  color: #059669;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.gwm-toast-bottom-left .toast-countdown {
  font-family: monospace, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.gwm-toast-bottom-left .toast-close {
  background: none;
  border: none;
  font-size: 16px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.gwm-toast-bottom-left .toast-close:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.05);
}

.gwm-toast-bottom-left .toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 122, 255, 0.12);
}

.gwm-toast-bottom-left .toast-progress-inner {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10b981, #007aff);
  transition: width 0.1s linear;
}

@keyframes gwmToastSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gwmToastSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
}

/* Kalert notification policy center */
.kalert-settings-page {
  display: grid;
  gap: 20px;
}

.kalert-settings-head,
.kalert-category-title,
.kalert-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.kalert-settings-head h2 {
  margin: 4px 0 8px;
}

.kalert-settings-head p {
  margin: 0;
}

.kalert-settings-head .pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.kalert-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.kalert-comparison-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.kalert-level-guide {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.kalert-level-guide article {
  min-height: 112px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px;
  border: 1px solid rgba(115, 139, 170, .22);
  border-radius: 16px;
  background: rgba(255, 255, 255, .64);
}

.kalert-level-guide article > i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 122, 255, .09);
  color: #087af5;
  font-size: 21px;
}

.kalert-level-guide article strong,
.kalert-level-guide article span {
  display: block;
}

.kalert-level-guide article span {
  margin-top: 5px;
  color: #52657d;
  font-size: 13px;
  line-height: 1.45;
}

.kalert-level-guide .critical > i {
  color: #dc2626;
  background: #fee2e2;
}

.kalert-level-guide .warning > i {
  color: #b45309;
  background: #fef3c7;
}

.kalert-level-guide .recovery > i {
  color: #16834a;
  background: #dcfce7;
}

.kalert-level-guide .disabled > i {
  color: #64748b;
  background: #e9eef5;
}

.kalert-action-category {
  height: fit-content !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(110, 138, 172, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
}

.kalert-category-title {
  padding: 15px 17px;
  border-bottom: 1px solid rgba(110, 138, 172, .18);
}

.kalert-category-title h3 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 16px;
}

.kalert-category-title h3 i {
  color: #087af5;
  font-size: 20px;
}

.kalert-category-title > span {
  color: #64748b;
  font-size: 13px;
}

.kalert-actions-table {
  width: 100%;
  min-width: 1260px;
  height: auto !important;
  border-collapse: collapse;
}

.kalert-actions-table th,
.kalert-actions-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(110, 138, 172, .14);
  text-align: left;
  vertical-align: middle;
}

.kalert-actions-table th {
  color: #64748b;
  background: rgba(243, 247, 252, .7);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kalert-actions-table td {
  font-size: 13px;
}

.kalert-actions-table .kalert-action-name {
  width: 220px;
}

.kalert-actions-table .kalert-action-name strong,
.kalert-actions-table .kalert-action-name code {
  display: block;
}

.kalert-actions-table .kalert-action-name code {
  width: fit-content;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 6px;
  color: #52657d;
  background: rgba(99, 120, 149, .09);
  font-size: 11px;
}

.kalert-actions-table td:nth-child(2) {
  width: 260px;
  color: #52657d;
}

.kalert-actions-table .kalert-template-summary {
  width: 280px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #60748d;
}

.kalert-level-select {
  min-width: 118px;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.kalert-level-select.level-critical { color: #b91c1c; background: #fff0f0; }
.kalert-level-select.level-warning { color: #a25405; background: #fff8df; }
.kalert-level-select.level-info { color: #075dcc; background: #eaf4ff; }
.kalert-level-select.level-recovery { color: #167443; background: #e9f9ef; }
.kalert-level-select.level-disabled { color: #64748b; background: #eef2f6; }

.kalert-delivery-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 30px;
}

.kalert-channel-icon {
  position: relative;
  display: none;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.kalert-channel-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.kalert-delivery-icons.level-disabled .gwm,
.kalert-delivery-icons.level-info .zalo,
.kalert-delivery-icons.level-warning .zalo,
.kalert-delivery-icons.level-warning .ntfy,
.kalert-delivery-icons.level-critical .zalo,
.kalert-delivery-icons.level-critical .ntfy,
.kalert-delivery-icons.level-recovery .zalo,
.kalert-delivery-icons.level-recovery .ntfy {
  display: inline-block;
}

.kalert-channel-icon.ntfy b {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  font-size: 10px;
  line-height: 1;
}

.kalert-repeat-select {
  min-width: 92px;
  padding: 8px 9px;
  border-radius: 10px;
  font-weight: 600;
}

.kalert-action-category .table-wrap {
  display: block !important;
  block-size: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-y: none;
}

.kalert-action-buttons {
  display: flex;
  gap: 7px;
  width: 137px;
}

.kalert-action-buttons .icon-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
}

.kalert-save-bar {
  position: sticky;
  bottom: 14px;
  z-index: 3;
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 16px;
  background: rgba(239, 246, 255, .9);
  box-shadow: 0 14px 40px rgba(30, 75, 135, .15);
  backdrop-filter: blur(16px);
}

.kalert-save-bar .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kalert-save-bar span {
  color: #52657d;
  font-size: 13px;
}

.kalert-template-modal[hidden] {
  display: none !important;
}

.kalert-template-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, .3);
  backdrop-filter: blur(8px);
}

.kalert-template-dialog {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: min(680px, 100%);
  max-height: calc(100vh - 44px);
  padding: 26px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
}

.kalert-template-dialog form {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 14px;
}

.kalert-template-dialog form > *,
.kalert-template-dialog label,
.kalert-template-dialog textarea,
.kalert-template-dialog select {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.kalert-template-heading {
  padding-right: 44px;
}

.kalert-template-heading h2 {
  margin: 8px 0 2px;
}

.kalert-template-dialog .kalert-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(110, 138, 172, .28);
  border-radius: 50%;
  color: #52657d;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(30, 64, 105, .1);
}

.kalert-template-dialog .kalert-modal-close:hover {
  color: #075dcc;
  border-color: rgba(8, 122, 245, .35);
  background: #eef6ff;
}

.kalert-template-dialog label {
  display: grid;
  gap: 7px;
  font-weight: 600;
}

.kalert-template-dialog fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.kalert-template-dialog legend {
  margin-bottom: 8px;
  padding: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.kalert-level-options {
  display: grid;
  grid-template-columns: repeat(5, 44px);
  gap: 9px;
}

.kalert-level-options label {
  display: block;
  cursor: pointer;
}

.kalert-level-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kalert-level-options label > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(110, 138, 172, .24);
  border-radius: 13px;
  color: #64748b;
  background: #f8fafc;
  font-size: 22px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.kalert-level-options label:hover > span {
  transform: translateY(-1px);
}

.kalert-level-options label.disabled input:checked + span { color: #52657d; border-color: #64748b; background: #eef2f6; }
.kalert-level-options label.info input:checked + span { color: #075dcc; border-color: #3b82f6; background: #eaf4ff; }
.kalert-level-options label.warning input:checked + span { color: #a25405; border-color: #f59e0b; background: #fff8df; }
.kalert-level-options label.critical input:checked + span { color: #b91c1c; border-color: #ef4444; background: #fff0f0; }
.kalert-level-options label.recovery input:checked + span { color: #167443; border-color: #22a861; background: #e9f9ef; }

.kalert-level-options input:checked + span {
  box-shadow: 0 0 0 3px rgba(8, 122, 245, .1);
}

.kalert-level-description {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-height: 38px;
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  color: #52657d;
  background: rgba(239, 246, 255, .72);
  font-size: 13px;
}

.kalert-level-description strong {
  flex: 0 0 auto;
  color: #1e3a5f;
}

.kalert-delivery-options {
  display: flex;
  gap: 9px;
}

.kalert-delivery-options button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 50px;
  height: 46px;
  padding: 6px 10px;
  border: 1px solid rgba(110, 138, 172, .24);
  border-radius: 13px;
  background: #f8fafc;
  cursor: pointer;
}

.kalert-delivery-options button:not(.active) {
  color: #64748b;
  background: #f8fafc;
}

.kalert-delivery-options button:not(.active) .kalert-channel-icon {
  filter: grayscale(1);
  opacity: .38;
}

.kalert-delivery-options button.active {
  border-color: #3b82f6;
  background: #eaf4ff;
  box-shadow: 0 0 0 3px rgba(8, 122, 245, .1);
}

.kalert-delivery-options button.active .kalert-channel-icon {
  filter: none;
  opacity: 1;
}

.kalert-delivery-options .kalert-channel-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.kalert-delivery-options .kalert-channel-icon.ntfy b {
  right: -6px;
  bottom: -5px;
}

.kalert-delivery-picker small {
  display: block;
  min-height: 18px;
  margin-top: 7px;
  color: #60748d;
}

.kalert-repeat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kalert-repeat-options label {
  display: block;
  cursor: pointer;
}

.kalert-repeat-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kalert-repeat-options span {
  display: grid;
  place-items: center;
  min-width: 72px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(110, 138, 172, .24);
  border-radius: 10px;
  color: #52657d;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
}

.kalert-repeat-options input:checked + span {
  color: #075dcc;
  border-color: #3b82f6;
  background: #eaf4ff;
  box-shadow: 0 0 0 3px rgba(8, 122, 245, .1);
}

.kalert-template-dialog textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

.kalert-placeholder-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(235, 243, 253, .74);
}

.kalert-placeholder-help strong {
  width: 100%;
  margin-bottom: 3px;
}

.kalert-placeholder-help button {
  padding: 4px 7px;
  border: 0;
  border-radius: 6px;
  color: #075dcc;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.kalert-placeholder-help button:hover,
.kalert-placeholder-help button:focus-visible {
  color: #fff;
  background: #087af5;
  outline: none;
}

.kalert-message-preview {
  padding: 15px;
  border: 1px solid rgba(110, 138, 172, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.kalert-message-preview span,
.kalert-message-preview strong,
.kalert-message-preview p {
  display: block;
}

.kalert-message-preview span {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
}

.kalert-message-preview p {
  margin: 8px 0 0;
  color: #52657d;
}

.kalert-comparison-modal[hidden] {
  display: none !important;
}

.kalert-comparison-modal {
  position: fixed;
  inset: 0;
  z-index: 5100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, .34);
  backdrop-filter: blur(8px);
}

.kalert-comparison-dialog {
  position: relative;
  box-sizing: border-box;
  width: min(1080px, 100%);
  max-height: calc(100vh - 44px);
  padding: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 20px;
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .26);
}

.kalert-comparison-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(110, 138, 172, .28);
  border-radius: 50%;
  color: #52657d;
  background: #fff;
  cursor: pointer;
}

.kalert-comparison-close:hover {
  color: #075dcc;
  border-color: rgba(8, 122, 245, .35);
  background: #eef6ff;
}

.kalert-comparison-heading {
  padding-right: 44px;
}

.kalert-comparison-heading h2 {
  margin: 8px 0 7px;
}

.kalert-comparison-heading p {
  max-width: 920px;
  margin: 0;
  color: #52657d;
  line-height: 1.55;
}

.kalert-comparison-grid {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(110, 138, 172, .22);
  border-radius: 16px;
}

.kalert-comparison-row {
  display: grid;
  grid-template-columns: 135px 1fr 1.15fr 1.15fr;
}

.kalert-comparison-row > * {
  min-width: 0;
  padding: 13px 14px;
  overflow-wrap: anywhere;
  border-right: 1px solid rgba(110, 138, 172, .15);
  border-bottom: 1px solid rgba(110, 138, 172, .15);
  color: #52657d;
  font-size: 13px;
  line-height: 1.48;
}

.kalert-comparison-row > *:last-child {
  border-right: 0;
}

.kalert-comparison-row:last-child > * {
  border-bottom: 0;
}

.kalert-comparison-header > * {
  color: #60748d;
  background: #f2f6fb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.kalert-comparison-row > strong {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #263b55;
  background: rgba(248, 250, 252, .72);
  font-size: 14px;
}

.kalert-comparison-row > strong i {
  margin-top: 2px;
  font-size: 18px;
}

.kalert-comparison-row.warning > strong i { color: #b45309; }
.kalert-comparison-row.critical > strong i { color: #dc2626; }
.kalert-comparison-row.recovery > strong i { color: #16834a; }
.kalert-comparison-row.info > strong i { color: #087af5; }
.kalert-comparison-row.disabled > strong i { color: #64748b; }

.kalert-comparison-row code {
  padding: 2px 5px;
  border-radius: 5px;
  color: #075dcc;
  background: #eef6ff;
  font-size: 11px;
}

.kalert-warning-critical-example {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(245, 158, 11, .25);
  border-radius: 13px;
  color: #52657d;
  background: #fffbeb;
}

.kalert-warning-critical-example > i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #d97706;
  font-size: 20px;
}

.kalert-warning-critical-example p {
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .kalert-template-dialog {
    padding: 22px 18px;
  }

  .kalert-level-options {
    grid-template-columns: repeat(5, minmax(40px, 1fr));
  }

  .kalert-level-options label > span {
    width: 100%;
  }

  .kalert-level-description {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 820px) {
  .kalert-comparison-modal {
    padding: 12px;
  }

  .kalert-comparison-dialog {
    max-height: calc(100vh - 24px);
    padding: 24px 18px;
  }

  .kalert-comparison-header {
    display: none;
  }

  .kalert-comparison-row {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(110, 138, 172, .18);
  }

  .kalert-comparison-row:last-child {
    border-bottom: 0;
  }

  .kalert-comparison-row > * {
    display: block;
    padding: 6px 0;
    border: 0;
  }

  .kalert-comparison-row > strong {
    display: flex;
    padding-bottom: 8px;
    background: transparent;
  }

  .kalert-comparison-row [data-label]::before {
    display: block;
    margin-bottom: 2px;
    color: #7a8da5;
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
}

@media (max-width: 1180px) {
  .kalert-level-guide {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 680px) {
  .kalert-settings-head,
  .kalert-save-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .kalert-level-guide {
    grid-template-columns: 1fr;
  }
}

/* Configurable hourly Auto Sync schedule */
.sync-schedule-settings {
  min-width: 0;
  margin: 4px 0 0;
  padding: 16px;
  border: 1px solid rgba(110, 138, 172, .22);
  border-radius: 16px;
  background: rgba(244, 249, 255, .72);
}

.sync-schedule-settings legend {
  padding: 0 8px;
  color: #243b55;
  font-weight: 700;
}

.sync-schedule-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sync-schedule-summary > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sync-schedule-settings p {
  margin: 10px 0 14px;
  color: #5d7088;
  font-size: 13px;
  line-height: 1.5;
}

.sync-hour-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(72px, 1fr));
  gap: 8px;
}

.sync-hour-option {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px !important;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid rgba(110, 138, 172, .2);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650 !important;
}

.sync-hour-option:has(input:checked) {
  border-color: rgba(0, 122, 255, .38);
  color: #0767c8;
  background: #eaf5ff;
}

.sync-hour-option input {
  width: 15px;
  height: 15px;
  margin: 0;
}

@media (max-width: 900px) {
  .sync-hour-grid {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
  }
}

@media (max-width: 520px) {
  .sync-schedule-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .sync-hour-grid {
    grid-template-columns: repeat(3, minmax(70px, 1fr));
  }
}

/* Customer detail language selector */
.customer-language-menu {
  position: relative;
}

.customer-language-menu > summary {
  list-style: none;
}

.customer-language-menu > summary::-webkit-details-marker {
  display: none;
}

.customer-language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.customer-language-toggle img {
  width: 25px;
  height: 25px;
  display: block;
}

.customer-language-dropdown {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 205px;
  min-width: 205px;
  padding: 7px;
  border: 1px solid rgba(95, 119, 148, .2);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(30, 55, 84, .18);
}

.customer-language-dropdown a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  padding: 5px;
  border-radius: 8px;
  color: #263f5c;
  text-decoration: none;
}

.customer-language-dropdown img {
  display: block;
  width: 31px;
  height: 31px;
}

.customer-language-dropdown a:hover,
.customer-language-dropdown a.active {
  color: #0868c8;
  background: #edf6ff;
}

/* Compact Accounts package/domain filters, aligned with the Admin filter. */
.table-tools select.account-domain-filter,
.table-tools select.account-package-filter {
  flex: 0 0 148px !important;
  width: 148px !important;
  max-width: 148px !important;
  min-width: 148px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  margin: 0 !important;
  padding: 0 30px 0 12px !important;
  box-sizing: border-box;
  border: 1px solid var(--gwm-border, #cfe3fb) !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  color: var(--gwm-blue, #1f6fd6) !important;
  font-family: 'Exo', sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.table-tools select.account-package-filter {
  flex-basis: 174px !important;
  width: 174px !important;
  max-width: 174px !important;
  min-width: 174px !important;
}

@media (max-width: 700px) {
  .table-tools select.account-domain-filter,
  .table-tools select.account-package-filter {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}
/* Admin sync chooser and quick-sync actions. */
.sync-now-menu { position: relative; }
.sync-now-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sync-now-menu > summary::-webkit-details-marker { display: none; }
.sync-now-dropdown { position: absolute; z-index: 80; right: 0; top: calc(100% + 8px); width: 184px; max-height: 370px; overflow-y: auto; padding: 5px; border: 1px solid #d7e4f3; border-radius: 11px; background: #fff; box-shadow: 0 16px 38px rgba(31, 61, 96, .16); scrollbar-width: thin; scrollbar-color: #b8d2f0 transparent; }
.sync-now-dropdown form { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.sync-now-dropdown form + form { border-top: 1px solid #edf2f8 !important; }
.sync-now-dropdown button { box-sizing: border-box !important; width: 100% !important; min-width: 0 !important; max-width: none !important; height: 34px !important; min-height: 34px !important; max-height: 34px !important; margin: 0 !important; padding: 0 9px 0 10px !important; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; color: #334b68 !important; border-radius: 6px !important; display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px; cursor: pointer; font: inherit; font-size: 13px !important; font-weight: 600 !important; line-height: 1 !important; text-align: left; transform: none !important; }
.sync-now-dropdown button i { color: #8aa7c8; font-size: 14px; transition: color .12s ease, transform .18s ease; }
.sync-now-dropdown button:hover { background: #f1f6fc !important; color: #1262c9 !important; }
.sync-now-dropdown button:hover i { color: #126ee4; transform: rotate(35deg); }
.sync-now-dropdown form:first-child { margin-bottom: 4px !important; padding-bottom: 4px !important; border-bottom: 1px solid #dce8f5 !important; }
.sync-now-dropdown form:first-child + form { border-top: 0 !important; }
.sync-now-dropdown form:first-child button { background: #edf5ff !important; color: #075fd1 !important; font-weight: 750 !important; }
.nav-admin-row { display: flex; align-items: center; gap: 6px; min-width: 0; height: 32px; }
.nav .nav-dropdown-menu .nav-admin-row > a { flex: 1 1 auto; min-width: 0; }
.nav-admin-row form { flex: 0 0 24px; width: 24px; height: 24px; margin: 0 6px 0 0; padding: 0; }
.nav-admin-sync { box-sizing: border-box !important; width: 24px !important; min-width: 24px !important; max-width: 24px !important; height: 24px !important; min-height: 24px !important; max-height: 24px !important; aspect-ratio: 1 / 1; padding: 0 !important; margin: 0 !important; border: 1px solid #cfe0f6; border-radius: 6px; background: #f4f9ff; color: #1467d8; display: grid !important; place-items: center; line-height: 1 !important; cursor: pointer; }
.nav-admin-sync i { font-size: 13px; line-height: 1; }
.nav-admin-sync:hover { background: #1467d8; color: #fff; }
.nav-admin-all { color: #075fd1; font-weight: 750; background: #edf5ff; border-radius: 6px; }
.nav-admin-all-label { flex: 1 1 auto; min-width: 0; padding-left: 10px; font-size: 13px; }
.nav-admin-all .nav-admin-sync { background: #fff; border-color: #bcd6f4; color: #075fd1; }
.nav-admin-all .nav-admin-sync:hover { background: #1467d8; color: #fff; }
.ou-quota-cell { min-width: 185px; }
.ou-quota-display { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 7px; }
.ou-quota-display small { grid-column: 1; color: #72839a; font-size: 11px; font-weight: 500; }
.ou-quota-value { color: #174f9e; font-weight: 700; }
.ou-quota-value.is-unknown { color: #bb6a13; }
.ou-quota-cell .icon-btn { width: 27px; height: 27px; padding: 0; border: 1px solid #cfe0f6; border-radius: 8px; background: #f5f9ff; color: #1768d3; display: inline-grid; place-items: center; cursor: pointer; }
.ou-quota-cell .icon-btn:hover { background: #1768d3; color: #fff; }
.ou-quota-form { grid-template-columns: minmax(76px, 1fr) auto auto; align-items: center; gap: 5px; }
.ou-quota-form:not([hidden]) { display: grid; }
.ou-quota-form input { min-width: 76px; width: 100%; padding: 7px 8px; border: 1px solid #bdd2ec; border-radius: 8px; }
.ou-quota-form small { grid-column: 1 / -1; color: #72839a; font-size: 10px; text-align: left; }
.ou-quota-cell .icon-btn.is-save { background: #eaf8ef; border-color: #bce6ca; color: #18864b; }
.ou-compact-table th,
.ou-compact-table td { padding-top: 6px !important; padding-bottom: 6px !important; line-height: 1.2; }
.ou-compact-table .ou-quota-display small { line-height: 1.1; }
.ou-quota-cell { transition: background-color .2s ease; }
.ou-quota-cell.is-saved { background: #eaf8ef !important; }
.ou-quota-form button:disabled { opacity: .55; cursor: wait; }
.ou-quota-source.is-derived { color: #18864b !important; font-weight: 700; }
.ou-compact-table .ou-path-col { width: 280px; min-width: 190px; max-width: 280px; }
.ou-path-text { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #5e7084; }
.customer-plan-tiers { border: 1px solid #d9e6f5; border-radius: 12px; padding: 11px 12px; background: #f8fbff; }
.customer-domain-quota-toggle { align-self: end; min-height: 42px; display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; }
.customer-domain-quota-toggle input { width: 17px; height: 17px; margin: 0; }
.customer-domain-quotas { border: 1px solid #d9e6f5; border-radius: 12px; padding: 11px 12px; background: #f8fbff; }
.customer-domain-quota-group { margin-top: 10px; padding: 10px; border: 1px solid #dce7f3; border-radius: 10px; background: #fff; }
.customer-domain-quota-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.customer-domain-quota-head > div { display: grid; gap: 2px; }
.customer-domain-quota-head small { color: #718299; font-size: 11px; }
.customer-domain-suggestion { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 8px; border: 1px dashed #b9d3f0; border-radius: 8px; color: #355b84; font-size: 11px; }
.customer-domain-suggestion[hidden] { display: none; }
.customer-domain-quota-warning { margin-top: 12px; display: grid; gap: 4px; }
.customer-plan-tiers-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.customer-plan-tiers-head > div { display: grid; gap: 2px; }
.customer-plan-tiers-head small { color: #75879d; font-size: 11px; font-weight: 500; }
.customer-plan-tier-labels,.customer-plan-tier-row { display: grid; grid-template-columns: minmax(90px,1fr) minmax(100px,1fr) 30px; gap: 8px; align-items: center; }
.customer-plan-tier-labels { margin-top: 9px; padding: 0 7px; color: #75879d; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.customer-plan-tier-row { margin-top: 5px; }
.customer-plan-tier-row input { min-width: 0; height: 36px; padding: 7px 9px; }
.customer-plan-tier-row .icon-btn { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; color: #b44; }
.customer-plan-tier-total { display: flex; justify-content: flex-end; align-items: center; gap: 5px; margin-top: 8px; color: #718299; font-size: 11px; }
.customer-plan-tier-total.is-over { color: #c63b3b; }
.customer-plan-suggestion { margin-top: 10px; padding: 9px 10px; border: 1px dashed #b9d3f0; border-radius: 9px; background: #fff; display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; align-items: center; }
.customer-plan-suggestion[hidden] { display: none; }
.customer-plan-suggestion > div:first-child { display: grid; gap: 2px; }
.customer-plan-suggestion small { color: #74869c; font-size: 10px; }
.customer-plan-suggestion-lines { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px 12px; color: #355b84; font-size: 12px; }
.customer-plan-conflicts { margin-top: 8px; display: grid; gap: 5px; }
.customer-plan-conflicts[hidden] { display: none; }
.customer-plan-conflicts > div { display: flex; gap: 7px; padding: 7px 8px; border-radius: 8px; background: #fff0f0; color: #b52f2f; font-size: 11px; line-height: 1.35; }
.customer-plan-mini > div.is-conflict { color: #c43131; }
.customer-plan-mini > div.is-conflict b { color: #c43131; }
.customer-account-plan-card { height: auto !important; min-height: 96px; }
.customer-plan-mini { width: min(240px,100%); margin: 7px auto 0; padding-top: 6px; border-top: 1px solid #dce8f5; display: grid; gap: 3px; }
.customer-plan-summary .summary-card .customer-plan-mini > div,
.customer-plan-summary .summary-card .customer-plan-mini > div > span,
.customer-plan-summary .summary-card .customer-plan-mini > div > b {
  font-size: 13px !important;
}
.customer-plan-mini > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; color: #657991; line-height: 1.25; }
.customer-plan-mini > div > span { text-align: left; font-weight: 650; }
.customer-plan-tier-count { display: grid; grid-template-columns: 36px 66px; align-items: baseline; column-gap: 8px; }
.customer-plan-summary .summary-card .customer-plan-tier-value { font-size: 13px !important; text-align: right; }
.customer-plan-summary .summary-card .customer-plan-tier-unit { font-size: 11px !important; text-align: left; }
.customer-plan-mini b { color: #245f9f; font-weight: 700; }
.customer-domain-plan-mini { width: min(280px,100%); margin: 7px auto 0; padding-top: 6px; border-top: 1px solid #dce8f5; display: grid; gap: 8px; text-align: left; }
.customer-domain-plan-group + .customer-domain-plan-group { padding-top: 7px; border-top: 1px dashed #dce8f5; }
.customer-domain-plan-title { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
.customer-plan-summary .summary-card .customer-domain-plan-title > span { overflow: hidden; color: #18283b; font-size: 13px !important; font-weight: 750; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.customer-plan-summary .summary-card .customer-domain-plan-title > strong { color: #18283b; font-size: 13px !important; font-weight: 750; }
.customer-plan-summary .summary-card .customer-domain-plan-mini .customer-plan-tier-value,
.customer-plan-summary .summary-card .customer-domain-plan-mini .customer-plan-mini b { color: #18283b !important; }
.customer-plan-summary .summary-card .customer-domain-plan-mini .customer-plan-tier-unit { color: #657991; font-size: 11px !important; font-weight: 600; text-transform: lowercase; }
.customer-domain-plan-group .customer-plan-mini { width: 100%; margin-top: 4px; padding-top: 0; border-top: 0; }
.customer-name-with-priority { display: inline-flex; align-items: center; gap: 6px; }
.customer-priority-form { display: inline-flex; margin: 0; }
.customer-priority-toggle { display: inline-grid; width: 20px; height: 20px; padding: 0; place-items: center; border: 0; background: transparent; color: #c6dcf5; cursor: pointer; }
.customer-priority-toggle i { font-size: 16px; line-height: 1; }
.customer-priority-toggle:hover { color: #f2ad18; transform: scale(1.08); }
.customer-priority-toggle.is-starred { color: #f2ad18; }
.customer-priority-toggle:focus-visible { border-radius: 4px; outline: 2px solid #91bfff; outline-offset: 2px; }
body .customers-table .customer-priority-toggle,
body .customers-table .customer-priority-toggle:hover,
body .customers-table .customer-priority-toggle:active { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; filter: none !important; }
body .customers-table .customer-priority-toggle:hover { transform: scale(1.08); }
body .customers-table .customer-priority-toggle:not(.is-starred) { color: #c6dcf5 !important; }
body .customers-table .customer-priority-toggle.is-starred { color: #f2ad18 !important; }

/* Compact table typography and keep the storage insight action icon-only. */
.table-wrap table th,
.table-wrap table td {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  font-size: 13px !important;
}

.table-wrap .storage-insight-trigger,
.table-wrap .storage-insight-trigger:hover,
.table-wrap .storage-insight-trigger:focus,
.table-wrap .storage-insight-trigger:focus-visible {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.table-wrap table td :where(a, span, b, strong, small, time),
.table-wrap table th :where(a, span, b, strong, small, time) {
  font-size: 13px !important;
}

.table-wrap table .status.active,
.table-wrap table .status.suspend,
.table-wrap table .status.suspended {
  font-weight: 500 !important;
}

.storage-insight-close,
.storage-insight-close:hover,
.storage-insight-close:focus,
.storage-insight-close:focus-visible {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transform: none !important;
}

.storage-insight-close::before,
.storage-insight-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.storage-insight-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.account-storage-insight-panel .storage-insight-embedded {
  max-width: 620px;
  margin: 8px auto 0;
}
.customer-domain-add-settings,.customer-domain-self-service{display:grid;gap:12px}
.customer-domain-add-settings{padding:14px;border:1px solid #c5cbd3;border-radius:12px;background:#e6e9ed}
.customer-domain-add-settings>div{display:flex;flex-direction:column;gap:3px}
.customer-domain-add-settings small{color:#747b85;font-weight:400}
.customer-domain-features-paused:not([hidden]){display:grid;gap:9px;padding:14px;border:1px solid #c8cdd4;border-radius:12px;background:#dfe3e8}
.customer-domain-features-paused-content{display:grid;gap:12px;filter:grayscale(1) blur(.3px);opacity:.55;pointer-events:none;user-select:none}
.customer-domain-features-paused-note{margin:0;color:#737a84;font-size:12px;font-weight:600}
.customer-form:has([data-domain-features-paused]:not([hidden])) [data-domain-quota-section]{filter:grayscale(1) blur(.3px);opacity:.55;pointer-events:none;user-select:none}
.domain-verification-row{display:grid;grid-template-columns:minmax(160px,1fr) auto minmax(260px,2fr) auto;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #e2eaf4}
.domain-verification-row code{overflow-wrap:anywhere;white-space:normal}
@media(max-width:760px){.domain-verification-row{grid-template-columns:1fr}.customer-domain-self-service .form-grid{grid-template-columns:1fr}}
.backup-config-form{margin:14px 0 20px;padding:14px;border:1px solid #d6e5f7;border-radius:12px;background:#f8fbff}
.backup-now-modal{max-width:620px}
.backup-progress:not([hidden]){display:grid;gap:8px;margin-top:14px;padding:12px;border-radius:10px;background:#f2f7fd}
.backup-progress>div{display:flex;justify-content:space-between;gap:12px}.backup-progress progress{width:100%;height:10px}
.backup-history-table td:first-of-type+td small{display:block;color:#7a8aa0;font-size:11px;margin-top:3px}
.backup-icon-cell{text-align:center}.backup-meta-icon,.backup-location-icons{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:32px;min-height:32px}
.backup-meta-icon i,.backup-location-icons i{font-size:25px;color:#256fd5}.backup-location-icons img,.backup-action-icon img{width:27px;height:24px;object-fit:contain}
.backup-actions .backup-action-icon{width:40px;height:40px;padding:0;display:inline-flex;align-items:center;justify-content:center}.backup-actions .backup-action-icon i{font-size:22px}.backup-actions .backup-action-icon.drive{padding:6px}
