/* Socivanta admin: shared layout, readable content and responsive records. */
@font-face {
  font-family: Jakarta;
  src: url("../vendor/fonts/plus-jakarta-sans-latin-wght-normal.woff2")
    format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #25324a;
  --muted: #58647c;
  --purple: #635bff;
  --line: #e2e7f0;
  --canvas: #f5f7fb;
  --sidebar-width: 264px;
  --bs-body-font-family: Jakarta, system-ui, sans-serif;
  --bs-secondary-color: #58647c;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}
a {
  color: #5147cb;
  text-decoration: none;
}
a:hover {
  color: #3f35b2;
}
strong {
  font-weight: 700;
}
.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #8378f4;
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 2000;
  background: #5046c8;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
/* Navigation and workspace shell */
.sidebar {
  width: var(--sidebar-width) !important;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  background: #fff;
  border-right: 1px solid var(--line);
}
.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 16px 20px;
  overflow-y: auto;
  min-height: 0;
}
.brand {
  display: block;
  padding: 0 12px 24px;
}
.brand img {
  width: 196px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left;
}
.workspace-label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  margin-bottom: 22px;
  background: #fafbfe;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}
.workspace-label small,
.operator small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.workspace-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
  flex-shrink: 0;
}
.workspace-dot {
  width: 7px;
  height: 7px;
  background: #21885c;
  border-radius: 50%;
  margin-left: auto;
}
.nav-label {
  font-size: 12px;
  font-weight: 700;
  color: #637089;
  padding: 0 12px 8px;
  letter-spacing: 0.3px;
}
.admin-nav {
  margin-bottom: 22px;
}
.admin-nav li {
  margin-bottom: 4px;
}
.admin-nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  color: #58647c;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
}
.admin-nav a:hover {
  background: #f5f3ff;
  color: #5147cb;
}
.admin-nav a.active {
  background: #eeebff;
  color: #5147cb;
}
.admin-nav .icon {
  width: 18px;
  height: 18px;
}
.nav-count {
  margin-left: auto;
  padding: 1px 7px;
  background: #e8e2ff;
  color: #5442a6;
  border-radius: 6px;
  font-size: 12px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  display: none;
}
.operator {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.operator-avatar,
.account-avatar {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: #ece8ff;
  color: #5545b7;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
}
.small-avatar {
  width: 36px;
  height: 36px;
}
.workspace {
  margin-left: var(--sidebar-width);
  min-width: 0;
}
.topbar {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.admin-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.admin-breadcrumbs li + li::before {
  content: "/";
  margin-right: 12px;
  color: #7c879c;
}
.admin-breadcrumbs [aria-current] {
  color: var(--ink);
  font-weight: 600;
}
.preview-pill {
  padding: 5px 10px;
  background: #f0edff;
  border: 1px solid #e4defc;
  border-radius: 20px;
  font-size: 12px;
  color: #594a9b;
  white-space: nowrap;
}
.notification-link {
  display: grid;
  place-items: center;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #58647c;
}
.notification-link:hover {
  background: #f3f1ff;
}
.notification-link > span {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 6px;
  height: 6px;
  background: #d46745;
  border-radius: 50%;
}
.topbar-divider {
  height: 28px;
  width: 1px;
  background: var(--line);
}
.main-content {
  padding: 28px 32px 0;
  max-width: 1680px;
  margin: auto;
  min-width: 0;
}
.preview-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 16px;
  margin-bottom: 24px;
  border: 1px solid #e1dbf7;
  border-radius: 9px;
  background: #f1eefb;
  color: #60527d;
  font-size: 13px;
  line-height: 1.6;
}
.preview-notice > .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
h1 {
  font-size: clamp(26px, 2.2vw, 34px);
  letter-spacing: -0.8px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 10px;
}
.page-heading p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 760px;
  line-height: 1.7;
}
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.heading-date {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.heading-date .icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}
.heading-date strong {
  font-size: 14px;
  color: var(--ink);
  padding-left: 24px;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 22px;
  font-size: 12px;
  color: var(--muted);
}
/* Sections, metric cards and notices */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
}
.panel h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.25px;
  margin: 0;
}
.panel-header p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 6px 0 0;
  max-width: 720px;
}
.panel-header > .icon {
  color: #6356c4;
}
.panel-foot {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: #fafbfe;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.subtle-badge,
.platform-tag {
  display: inline-block;
  padding: 5px 9px;
  font-size: 12px;
  color: #59657d;
  background: #f0f3f8;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.5;
}
.panel h2 .subtle-badge {
  margin-left: 6px;
  vertical-align: middle;
}
.platform-tag {
  color: #614a8d;
  background: #f2eefb;
  white-space: nowrap;
}
.metric-card {
  padding: 24px;
  height: 100%;
  min-height: 166px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.metric-card span {
  font-size: 14px;
  color: var(--muted);
}
.metric-value {
  display: block;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 14px 0 10px;
}
.metric-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.metric-icon,
.attention-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
}
.purple {
  color: #6750b4;
  background: #f0ebff;
}
.blue {
  color: #356fc1;
  background: #edf4ff;
}
.amber {
  color: #a06a16;
  background: #fff3df;
}
.pink {
  color: #ab4e7b;
  background: #fff0f6;
}
.security-note {
  padding: 16px;
  background: #f5f2ff;
  border: 1px solid #e2daf9;
  border-radius: 10px;
  color: #63517f;
  font-size: 14px;
  line-height: 1.8;
}
/* Buttons, forms and visible filter labels */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn-sm {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}
.btn-primary {
  --bs-btn-bg: #635bff;
  --bs-btn-border-color: #635bff;
  --bs-btn-hover-bg: #5147d9;
  --bs-btn-hover-border-color: #5147d9;
}
.btn-outline-primary {
  --bs-btn-color: #574bba;
  --bs-btn-border-color: #cbc4ed;
  --bs-btn-hover-bg: #635bff;
  --bs-btn-hover-border-color: #635bff;
}
.btn-light {
  --bs-btn-bg: #f7f8fc;
  --bs-btn-border-color: #dfe5ef;
  --bs-btn-color: #4f5d77;
}
.btn-icon {
  min-width: 44px;
  background: #f4f1ff;
  color: #5d4eac;
}
.form-control,
.form-select {
  min-height: 44px;
  padding: 10px 12px;
  border-color: #cdd5e4;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.form-control::placeholder {
  color: #6e7b92;
  opacity: 1;
}
.form-control:focus,
.form-select:focus {
  border-color: #8a7de2;
  box-shadow: 0 0 0 3px #635bff20;
}
.form-control[readonly] {
  background: #f4f6fa;
  color: var(--muted);
}
.form-label,
.form-check-label {
  font-size: 14px;
  color: #46536b;
  line-height: 1.6;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-check-input {
  border-color: #99a6bc;
}
.form-check-input:checked {
  background-color: #635bff;
  border-color: #635bff;
}
.table-toolbar {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  padding: 0 24px 24px;
  flex-wrap: wrap;
}
.filter-field {
  min-width: 160px;
  flex: 1;
}
.filter-search {
  min-width: 240px;
  flex: 2;
}
.search-field {
  position: relative;
  width: 100%;
}
.search-field > .icon {
  position: absolute;
  left: 13px;
  top: 13px;
  width: 18px;
  height: 18px;
  color: #64728c;
}
.search-field input {
  padding-left: 40px;
}
.filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  flex-shrink: 0;
}
.result-count {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  margin-left: auto;
  padding-bottom: 10px;
}
.settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.settings-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: #574a89;
}
.settings-subnav a:hover {
  background: #f1edff;
}
[id$="settings"] {
  scroll-margin-top: 24px;
}
/* Tables and record state */
.admin-table {
  min-width: 760px;
  font-size: 14px;
  line-height: 1.65;
  --bs-table-border-color: #e7ebf2;
}
.admin-table th {
  padding: 14px 20px;
  background: #f6f8fc;
  color: #56627a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-table td {
  padding: 20px;
  color: #45536d;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.admin-table td strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.admin-table small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.admin-table .order-id {
  color: #5144b1;
}
.admin-table [data-label="Service"],
.admin-table [data-label="Product"] {
  min-width: 210px;
  max-width: 300px;
}
.admin-table tbody tr:last-child td {
  border-bottom: 0;
}
.admin-table tbody tr:hover > td {
  background: #fcfbff;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  width: fit-content;
}
.status > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-primary {
  color: #5441b8;
  background: #eeeafd;
}
.status-success {
  color: #18734e;
  background: #e7f6ee;
}
.status-warning {
  color: #8c5c05;
  background: #fff3dc;
}
.status-danger {
  color: #aa3742;
  background: #ffedf0;
}
.status-muted {
  color: #526079;
  background: #edf2f7;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 105px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}
.progress-label strong {
  font-size: 12px !important;
  color: #5d4eab !important;
}
.progress {
  min-width: 105px;
  height: 6px;
  background: #ece9f5;
  border-radius: 6px;
}
.progress-bar {
  background: #8573db;
  border-radius: 6px;
}
.progress-0 {
  width: 0;
}
.progress-12 {
  width: 12%;
}
.progress-38 {
  width: 38%;
}
.progress-64 {
  width: 64%;
}
.progress-100 {
  width: 100%;
  background: #479b73;
}
.queue-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 24px 22px;
}
.queue-tab {
  padding: 10px 13px;
  min-height: 42px;
  border: 1px solid #dce1ec;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.queue-tab span {
  padding: 2px 6px;
  margin-left: 7px;
  border-radius: 5px;
  background: #f0f2f8;
  font-size: 12px;
}
.queue-tab.active {
  color: #5442ad;
  background: #f1edff;
  border-color: #cec3f5;
}
.selection-toolbar,
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px;
  font-size: 13px;
}
.selection-toolbar {
  justify-content: flex-start;
  background: #f1edff;
  color: #5e4c97;
}
.selection-toolbar > span {
  margin-left: auto;
  font-size: 12px;
}
.table-pagination {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fafbfe;
}
.empty-results {
  padding: 36px 24px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}
.empty-results img {
  display: block;
  width: 112px;
  height: auto;
  margin: 0 auto 12px;
}
/* Dashboard chart and priorities */
.activity-chart {
  display: flex;
  height: 230px;
  margin: 8px 24px 20px 18px;
  gap: 16px;
}
.chart-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  padding-bottom: 36px;
  font-size: 12px;
  color: var(--muted);
}
.chart-bars {
  display: flex;
  gap: 20px;
  flex: 1;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 56px,
    #edf0f6 57px,
    #edf0f6 58px
  );
}
.chart-column {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.chart-column > strong {
  margin-bottom: 8px;
  font-size: 12px;
  color: #6653a7;
}
.chart-track {
  display: flex;
  align-items: flex-end;
  height: 170px;
  width: 100%;
}
.chart-bar {
  width: 100%;
  max-width: 36px;
  margin: auto auto 0;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(#9989ed, #d7cff8);
}
.chart-column:nth-child(6) .chart-bar {
  background: linear-gradient(#6753d7, #b5a5ed);
}
.chart-column > span {
  padding: 12px 0;
}
.chart-value-5 {
  height: 41.67%;
}
.chart-value-6 {
  height: 50%;
}
.chart-value-7 {
  height: 58.33%;
}
.chart-value-8 {
  height: 66.67%;
}
.chart-value-10 {
  height: 83.33%;
}
.chart-value-12 {
  height: 100%;
}
.chart-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 12px;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #806bd4;
}
.attention-list {
  padding: 0 24px;
}
.attention-list a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.attention-list a:last-child {
  border-bottom: 0;
}
.attention-icon {
  width: 38px;
  height: 38px;
}
.attention-icon .icon {
  width: 18px;
  height: 18px;
}
.attention-list strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
.attention-list small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.attention-list a > .icon {
  width: 14px;
  margin-left: auto;
  color: #6a7890;
}
.attention-foot {
  padding: 16px 24px;
  color: var(--muted);
  background: #fafbfe;
  font-size: 12px;
  line-height: 1.7;
}
.attention-foot .icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}
/* Details, content and settings */
.order-drawer {
  --bs-offcanvas-width: 480px;
}
.order-drawer .offcanvas-body {
  padding: 24px;
}
.order-drawer .offcanvas-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.record-details {
  margin-bottom: 24px;
}
.record-details > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.record-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 5px;
}
.record-details dd {
  color: var(--ink);
  font-size: 15px;
  margin: 0;
  overflow-wrap: anywhere;
}
.tier-preview {
  padding: 18px;
  background: #faf9ff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.modal-content {
  border: 1px solid var(--line);
  border-radius: 14px;
}
.modal-body {
  padding: 24px;
}
.modal-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.modal-header,
.modal-footer {
  padding: 18px 24px;
  border-color: var(--line);
}
.support-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border-top: 1px solid var(--line);
}
.support-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.5;
}
.support-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 12px;
}
.support-item small {
  font-size: 12px;
  color: var(--muted);
}
.platform-card {
  background: #fff url("../images/growth-wave.svg") center bottom / 100% auto
    no-repeat;
}
.platform-card p,
.platform-totals,
.workflow-steps p,
.activity-timeline p {
  font-size: 14px;
  line-height: 1.8;
}
.platform-totals {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
}
.platform-totals strong {
  color: #5d4cb0;
}
.workflow-steps article {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.workflow-steps article > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eeebff;
  color: #5d4ab0;
  font-weight: 700;
}
.workflow-steps h3,
.activity-timeline h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}
.workflow-steps p,
.activity-timeline p {
  color: var(--muted);
  margin-bottom: 0;
}
.activity-timeline li {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.activity-timeline time {
  min-width: 48px;
  color: #6754a0;
  font-size: 13px;
}
.activity-timeline .subtle-badge {
  margin-bottom: 8px;
}
.activity-timeline small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.brand-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 24px 24px;
}
.brand-preview-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  min-height: 130px;
  padding: 24px;
  border-radius: 10px;
  background: #f5f7fb;
}
.brand-preview-grid img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-preview-grid span {
  font-size: 12px;
  color: var(--muted);
}
.brand-preview-grid .brand-preview-dark {
  background: #25203f;
}
.brand-preview-dark span {
  color: #d2cce4;
}
/* Tablet and phone layouts */
@media (min-width: 992px) {
  .offcanvas-lg.sidebar {
    position: fixed !important;
    top: 0;
    bottom: 0;
    height: 100dvh;
    background: #fff !important;
  }
}
@media (max-width: 1199px) {
  .main-content {
    padding: 24px 24px 0;
  }
  .topbar {
    padding: 0 24px;
  }
  .heading-date {
    display: none;
  }
  .panel-header {
    flex-wrap: wrap;
  }
  .metric-card {
    padding: 20px;
  }
  .chart-bars {
    gap: 14px;
  }
}
@media (max-width: 991px) {
  .workspace {
    margin-left: 0;
  }
  .sidebar {
    --bs-offcanvas-width: 288px;
    width: 288px !important;
  }
  .sidebar .offcanvas-header {
    height: 64px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar-inner {
    height: calc(100% - 64px);
    padding-top: 24px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
}
@media (max-width: 767px) {
  .admin-table {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
  }
  .admin-table tbody {
    display: grid;
    width: 100%;
    gap: 16px;
    padding: 16px;
  }
  .admin-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid #dce3ef;
    border-radius: 12px;
  }
  .admin-table tbody td {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 0;
    min-width: 0;
    max-width: none;
    background: transparent;
    font-size: 14px;
    align-items: flex-start;
  }
  .admin-table td::before {
    content: attr(data-label);
    display: block;
    color: #64718a;
    font-size: 12px;
    font-weight: 600;
  }
  .admin-table td[data-label="Order"],
  .admin-table td[data-label="Service"],
  .admin-table td[data-label="Product"],
  .admin-table td[data-label="Account"],
  .admin-table td[data-label="Page"],
  .admin-table td[data-label="Category"],
  .admin-table td[data-label="Role"] {
    grid-column: 1 / -1;
  }
  .admin-table [data-label="Service"],
  .admin-table [data-label="Product"] {
    min-width: 0;
  }
  .admin-table td[data-label="Select"] {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .admin-table td[data-label="Select"]::before {
    content: "Select this order";
  }
  .admin-table small {
    margin-top: 2px;
  }
  .admin-table td strong {
    white-space: normal;
  }
  .admin-table tbody tr:hover > td {
    background: transparent;
  }
  .table-responsive {
    overflow: visible;
  }
  .support-item {
    flex-wrap: wrap;
  }
  .support-item > .flex-grow-1 {
    flex-basis: calc(100% - 60px);
  }
  .support-item > .btn {
    margin-left: 56px;
  }
  .brand-preview-grid {
    grid-template-columns: 1fr;
  }
  .selection-toolbar {
    flex-wrap: wrap;
  }
  .selection-toolbar > span {
    margin-left: 0;
  }
}
@media (max-width: 575px) {
  .main-content {
    padding: 20px 16px 0;
  }
  .topbar {
    height: 68px;
    padding: 0 16px;
    gap: 10px;
  }
  .admin-breadcrumbs li:first-child {
    display: none;
  }
  .admin-breadcrumbs li + li::before {
    display: none;
  }
  .admin-breadcrumbs {
    font-size: 12px;
  }
  .preview-pill {
    display: none;
  }
  .topbar-divider {
    display: none;
  }
  .topbar .gap-3 {
    gap: 8px !important;
  }
  .preview-notice {
    padding: 12px;
    font-size: 12px;
    margin-bottom: 22px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .panel-header {
    padding: 20px 18px;
    gap: 14px;
  }
  .panel h2 {
    font-size: 17px;
  }
  .panel-header p {
    font-size: 13px;
  }
  .table-toolbar {
    gap: 14px;
    padding: 0 18px 20px;
  }
  .filter-field,
  .filter-search {
    flex-basis: 100%;
    min-width: 0;
  }
  .filter-actions {
    flex: 1;
  }
  .result-count {
    padding-bottom: 10px;
  }
  .queue-tabs {
    padding: 0 18px 20px;
  }
  .queue-tab {
    font-size: 12px;
  }
  .selection-toolbar,
  .table-pagination {
    padding: 14px 18px;
    flex-wrap: wrap;
  }
  .table-pagination > div {
    width: 100%;
  }
  .table-pagination .btn {
    flex: 1;
  }
  .workspace-footer {
    flex-direction: column;
    font-size: 12px;
    gap: 4px;
  }
  .chart-bars {
    gap: 8px;
    padding: 0 2px;
  }
  .activity-chart {
    gap: 8px;
    margin-left: 12px;
    margin-right: 18px;
  }
  .chart-column,
  .chart-grid,
  .chart-column > strong {
    font-size: 11px;
  }
  .chart-footer {
    flex-wrap: wrap;
    padding: 0 18px 20px;
  }
  .chart-footer .ms-auto {
    margin-left: 0 !important;
    flex-basis: 100%;
    padding-left: 16px;
  }
  .attention-list {
    padding: 0 18px;
  }
  .attention-foot,
  .panel-foot {
    padding: 16px 18px;
  }
  .metric-card {
    min-height: 150px;
  }
  .metric-value {
    font-size: 30px;
  }
  .support-item {
    padding: 20px 18px;
  }
  .brand-preview-grid {
    padding: 0 18px 18px;
  }
  .order-drawer .offcanvas-header,
  .order-drawer .offcanvas-body,
  .modal-body {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile navigation must remain above Bootstrap's offcanvas backdrop. */
@media (max-width: 991px) {
  .sidebar {
    z-index: 1045;
  }
}
.demo-form-feedback {
  margin: 20px 24px;
  padding: 14px 16px;
  background: #e9f6ef;
  color: #226343;
  border: 1px solid #c6e5d3;
  border-radius: 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.message-preview {
  padding: 16px;
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  white-space: pre-wrap;
}
.export-preview {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  white-space: pre;
}
.toast-container {
  z-index: 1090;
  max-width: 100%;
}

.demo-form-feedback {
  white-space: pre-line;
}

/* Extended admin navigation and record workspaces. */
.sidebar-group-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin-bottom: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #58647c;
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  text-align: left;
}
.sidebar-group-toggle:hover {
  background: #f5f3ff;
}
.sidebar-group-toggle .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.15s;
}
.sidebar-group-toggle[aria-expanded="true"] .icon {
  transform: rotate(90deg);
}
.admin-nav {
  margin-bottom: 14px;
}
.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.local-media-preview {
  display: block;
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.context-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.context-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #574a89;
  font-size: 13px;
}
.access-preview-body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.access-preview-card {
  width: 100%;
  max-width: 520px;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 60px #25324a0a;
}
.access-preview-card h1 {
  font-size: 28px;
}
.access-brand {
  display: block;
  margin-bottom: 28px;
}
.access-brand img {
  max-width: 100%;
  height: auto;
}
.access-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  font-size: 13px;
}
.password-control {
  display: flex;
  gap: 8px;
}
@media (max-width: 575px) {
  .access-preview-card {
    padding: 24px;
  }
}

@media (max-width: 767px) {
  .admin-table td[data-label="Actions"] {
    grid-column: 1 / -1;
  }
}
