/* SWORLD CRM Frontend Core v1.0.0 */
body.swcrm-fc-active {
  --swcrmfc-sidebar: 232px;
  --swcrmfc-navy: #0f172a;
  --swcrmfc-navy-2: #111827;
  --swcrmfc-bg: #f5f7fb;
  --swcrmfc-card: #ffffff;
  --swcrmfc-border: #dbe3ee;
  --swcrmfc-text: #0f172a;
  --swcrmfc-muted: #64748b;
  --swcrmfc-blue: #0ea5e9;
  --swcrmfc-blue-2: #0284c7;
  --swcrmfc-green: #16a34a;
  --swcrmfc-orange: #f97316;
  background: var(--swcrmfc-bg) !important;
  color: var(--swcrmfc-text);
}

body.swcrm-fc-active.swcrm-fc-hide-wp-chrome #masthead,
body.swcrm-fc-active.swcrm-fc-hide-wp-chrome .site-header,
body.swcrm-fc-active.swcrm-fc-hide-wp-chrome .site-footer,
body.swcrm-fc-active.swcrm-fc-hide-wp-chrome footer.site-footer {
  display: none !important;
}

body.swcrm-fc-active.swcrm-fc-has-shell .site-content,
body.swcrm-fc-active.swcrm-fc-has-shell #content {
  margin-left: var(--swcrmfc-sidebar) !important;
  width: calc(100% - var(--swcrmfc-sidebar)) !important;
  min-height: 100vh;
  background: var(--swcrmfc-bg) !important;
}

body.swcrm-fc-active.swcrm-fc-has-shell.admin-bar .swcrmfc-sidebar {
  top: 32px;
  height: calc(100vh - 32px);
}

.swcrmfc-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9990;
  width: var(--swcrmfc-sidebar);
  height: 100vh;
  background: linear-gradient(180deg, #0b1220 0%, #101827 100%);
  color: #e5e7eb;
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 14px 12px 18px;
  overflow-y: auto;
  box-sizing: border-box;
}

.swcrmfc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.swcrmfc-logo {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

.swcrmfc-brand strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: .02em;
}

.swcrmfc-brand small {
  display: block;
  color: #93a4ba;
  font-size: 10px;
  margin-top: 2px;
}

.swcrmfc-nav-group {
  margin: 14px 0 18px;
}

.swcrmfc-nav-title {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0 8px 7px;
}

.swcrmfc-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin: 2px 0;
  padding: 7px 9px;
  border-radius: 9px;
  color: #dbe5f2 !important;
  text-decoration: none !important;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.25;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.swcrmfc-nav-item:hover {
  background: rgba(14, 165, 233, .13);
  color: #fff !important;
}

.swcrmfc-nav-item.is-active {
  background: rgba(14, 165, 233, .2);
  color: #fff !important;
  box-shadow: inset 3px 0 0 #38bdf8;
}

.swcrmfc-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 5px;
  background: rgba(255,255,255,.08);
  color: #cbd5e1;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.swcrmfc-mobile-toggle {
  display: none;
}

body.swcrm-fc-active .ast-container,
body.swcrm-fc-active .site-content .ast-container,
body.swcrm-fc-active .entry-content[data-ast-blocks-layout] > *,
body.swcrm-fc-active .entry-content > * {
  max-width: none !important;
}

body.swcrm-fc-active .site-content .ast-container {
  padding-left: 28px !important;
  padding-right: 28px !important;
}

body.swcrm-fc-active .entry-content > .swcrm11m-page,
body.swcrm-fc-active .entry-content > .swcrm-front-page,
body.swcrm-fc-active .entry-content > .swcrm-form-page,
body.swcrm-fc-active .entry-content > .swcrm-detail-page,
body.swcrm-fc-active .entry-content > .swcrm-report-page,
body.swcrm-fc-active .entry-content > .swps,
body.swcrm-fc-active .entry-content > .swps-wrap,
body.swcrm-fc-active .entry-content > .swcrm-quick-intake,
body.swcrm-fc-active .entry-content > .swcrmfc-page {
  width: min(100%, 1180px) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.swcrm-fc-route-hoa-don .entry-content > .swps,
body.swcrm-fc-route-hoa-don .entry-content > .swps-wrap,
body.swcrm-fc-route-khach-hang .entry-content > .swcrm-front-page,
body.swcrm-fc-route-xep-hang-sales .entry-content > .swcrm-sales-rank-page,
body.swcrm-fc-route-xep-hang-dai-su .entry-content > .swcrm-sales-rank-page {
  width: min(100%, 1280px) !important;
  max-width: 1280px !important;
}

body.swcrm-fc-active .swcrm11m-hero,
body.swcrm-fc-active .swcrm-filter-box,
body.swcrm-fc-active .swcrm-table-card,
body.swcrm-fc-active .swcrm-form-card,
body.swcrm-fc-active .swcrm-section,
body.swcrm-fc-active .swcrm-panel,
body.swcrm-fc-active .swps-card,
body.swcrm-fc-active .swps-filter,
body.swcrm-fc-active .swcrmfc-card {
  background: #fff !important;
  border: 1px solid var(--swcrmfc-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .055) !important;
}

body.swcrm-fc-active .swcrm11m-hero {
  padding: 24px 26px !important;
  background: linear-gradient(135deg, #0369a1, #0ea5e9) !important;
}

body.swcrm-fc-active .swcrm11m-hero h1,
body.swcrm-fc-active .swcrm11m-hero p,
body.swcrm-fc-active .swcrm11m-date {
  color: #fff !important;
}

body.swcrm-fc-active a.swcrm11m-action-primary,
body.swcrm-fc-active a[href*="chot-don-nhanh"].swcrm11m-action-primary,
body.swcrm-fc-active .swcrm-primary-btn,
body.swcrm-fc-active .swcrm-submit-btn,
body.swcrm-fc-active input[type="submit"] {
  background: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  color: #fff !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

body.swcrm-fc-active a.swcrm11m-action-primary:hover,
body.swcrm-fc-active .swcrm-primary-btn:hover,
body.swcrm-fc-active .swcrm-submit-btn:hover,
body.swcrm-fc-active input[type="submit"]:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
}

body.swcrm-fc-active table {
  border-collapse: collapse;
}

body.swcrm-fc-active table th {
  color: #475569 !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.swcrm-fc-active table td,
body.swcrm-fc-active table th {
  vertical-align: middle !important;
}

body.swcrm-fc-active .swcrm-table-card,
body.swcrm-fc-active .swps-card {
  overflow: hidden !important;
}

body.swcrm-fc-active .swps-scroll,
body.swcrm-fc-active .swcrm-table-scroll,
body.swcrm-fc-active .swcrm-ui-scroll-wrap {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

body.swcrm-fc-active .swps-table,
body.swcrm-fc-active .swcrm-table-card table {
  min-width: max-content;
}

body.swcrm-fc-active .swcrm-status-pill,
body.swcrm-fc-active .swcrm-payment-pill,
body.swcrm-fc-active .swcrm-pill,
body.swcrm-fc-active .swps-status {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  min-height: 22px !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

body.swcrm-fc-active .swcrm-fc-hidden-legacy-link {
  display: none !important;
}

@media (max-width: 960px) {
  body.swcrm-fc-active.swcrm-fc-has-shell .site-content,
  body.swcrm-fc-active.swcrm-fc-has-shell #content {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .swcrmfc-sidebar {
    transform: translateX(-100%);
    transition: transform .18s ease;
  }
  body.swcrmfc-mobile-menu-open .swcrmfc-sidebar {
    transform: translateX(0);
  }
  .swcrmfc-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9995;
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    background: #0ea5e9;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(14, 165, 233, .35);
  }
  body.swcrm-fc-active .site-content .ast-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* SWORLD CRM Frontend Core v1.0.2 — Dashboard polish after legacy UX removal */
body.swcrm-fc-active.swcrm-fc-route-dashboard .site-content .ast-container {
  padding-top: 28px !important;
  padding-bottom: 48px !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .entry-content > .swcrm11m-page {
  width: min(100%, 1280px) !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-page {
  display: block !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-hero {
  padding: 24px 28px !important;
  margin: 0 0 16px !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 36px rgba(2, 132, 199, .18) !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-date {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.16) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  margin-bottom: 10px !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-hero h1 {
  margin: 0 0 6px !important;
  font-size: 26px !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-hero p {
  margin: 0 !important;
  max-width: 860px !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  opacity: .96 !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 16px !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-actions a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  padding: 7px 11px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255,255,255,.42) !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-actions a:hover {
  background: rgba(255,255,255,.2) !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-actions a[href*="chot-don-nhanh"] {
  background: #fff !important;
  color: #0369a1 !important;
  border-color: #fff !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-kpis {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 0 16px !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-kpi {
  background: #fff !important;
  border: 1px solid var(--swcrmfc-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .045) !important;
  padding: 15px 16px !important;
  min-height: 94px !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-kpi small {
  display: block !important;
  color: #64748b !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin-bottom: 8px !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-kpi strong {
  display: block !important;
  color: #0f172a !important;
  font-size: 28px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  margin-bottom: 7px !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-kpi span,
body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-kpi div:not(:first-child) {
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 0 0 16px !important;
  align-items: stretch !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-panel {
  background: #fff !important;
  border: 1px solid var(--swcrmfc-border) !important;
  border-radius: 15px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .045) !important;
  padding: 16px !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-panel-head,
body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-panel-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-panel h2,
body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-panel h3 {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  color: #0f172a !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-panel a[href*="/"] {
  font-size: 11.5px !important;
  font-weight: 850 !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-panel table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto !important;
  font-size: 12px !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-panel th,
body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-panel td {
  padding: 9px 10px !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  vertical-align: middle !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-panel th {
  background: #f8fafc !important;
  color: #475569 !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-name {
  font-weight: 850 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-muted {
  color: #64748b !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  margin-top: 2px !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-row-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #7dd3fc !important;
  font-size: 11.5px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  min-height: 22px !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-empty,
body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm-empty,
body.swcrm-fc-active.swcrm-fc-route-dashboard td[colspan] {
  color: #64748b !important;
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 10px !important;
  text-align: center !important;
  padding: 18px !important;
}

/* Prevent old dashboard/class panels from creating large vertical gaps on the dashboard only. */
body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm-class-overview,
body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm-class-add-box {
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1180px) {
  body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-kpis,
  body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-kpis,
  body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-grid {
    grid-template-columns: 1fr !important;
  }
  body.swcrm-fc-active.swcrm-fc-route-dashboard .swcrm11m-hero {
    padding: 20px !important;
  }
}


/* -------------------------------------------------------------------------
 * SWORLD CRM Frontend Core v1.0.7 — Business workspace density pass
 * Scope: layout shell only. No CRM/LMS data writes, no permission changes.
 * Goal: desktop 100% zoom uses the available workspace instead of centering
 *       narrow 1180/1280px blocks with excessive empty space.
 * ------------------------------------------------------------------------- */
body.swcrm-fc-active {
  --swcrmfc-sidebar: 224px;
  --swcrmfc-page-gap: 20px;
  --swcrmfc-page-top: 18px;
}

body.swcrm-fc-active.swcrm-fc-has-shell .site-content,
body.swcrm-fc-active.swcrm-fc-has-shell #content {
  margin-left: var(--swcrmfc-sidebar) !important;
  width: calc(100% - var(--swcrmfc-sidebar)) !important;
}

body.swcrm-fc-active .site-content .ast-container {
  width: 100% !important;
  max-width: none !important;
  padding-left: var(--swcrmfc-page-gap) !important;
  padding-right: var(--swcrmfc-page-gap) !important;
  padding-top: var(--swcrmfc-page-top) !important;
  padding-bottom: 28px !important;
  box-sizing: border-box !important;
}

body.swcrm-fc-active .entry-content,
body.swcrm-fc-active #primary,
body.swcrm-fc-active article,
body.swcrm-fc-active .ast-article-single {
  width: 100% !important;
  max-width: none !important;
}

body.swcrm-fc-active .entry-content > .swcrm11m-page,
body.swcrm-fc-active .entry-content > .swcrm-front-page,
body.swcrm-fc-active .entry-content > .swcrm-form-page,
body.swcrm-fc-active .entry-content > .swcrm-detail-page,
body.swcrm-fc-active .entry-content > .swcrm-report-page,
body.swcrm-fc-active .entry-content > .swps,
body.swcrm-fc-active .entry-content > .swps-wrap,
body.swcrm-fc-active .entry-content > .swcrm-quick-intake,
body.swcrm-fc-active .entry-content > .swcrmfc-page,
body.swcrm-fc-active .entry-content > .swcrm-cp3-page,
body.swcrm-fc-active .entry-content > .swpayu-wrap,
body.swcrm-fc-active .entry-content > .swcrm-class-page,
body.swcrm-fc-active .entry-content > .swcrm-dh-page,
body.swcrm-fc-active .entry-content > .swk21-page,
body.swcrm-fc-active .entry-content > .swfix-page {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Dashboard still has a designed reading width, but uses more desktop room. */
body.swcrm-fc-route-dashboard .entry-content > .swcrm11m-page,
body.swcrm-fc-route-tong-quan .entry-content > .swcrm11m-page {
  max-width: 1480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.swcrmfc-sidebar {
  padding: 12px 10px 16px !important;
}
.swcrmfc-brand {
  padding: 4px 6px 14px !important;
  margin-bottom: 8px !important;
}
.swcrmfc-nav-group {
  margin: 12px 0 14px !important;
}
.swcrmfc-nav-item {
  min-height: 32px !important;
  padding: 6px 8px !important;
  border-radius: 10px !important;
  gap: 8px !important;
  font-size: 12px !important;
}
.swcrmfc-nav-title {
  padding: 0 8px 6px !important;
  font-size: 9.5px !important;
}
.swcrmfc-nav-icon {
  width: 19px !important;
  height: 19px !important;
  flex-basis: 19px !important;
}

@media (min-width: 1440px) {
  body.swcrm-fc-active {
    --swcrmfc-page-gap: 24px;
  }
}

@media (max-width: 960px) {
  body.swcrm-fc-active {
    --swcrmfc-sidebar: 224px;
    --swcrmfc-page-gap: 14px;
  }
}

/* ==========================================================================
 * SWORLD CRM Frontend Core 1.6.3 — Responsive Layout Foundation
 * --------------------------------------------------------------------------
 * Frontend Core is the single owner of CRM shell geometry.
 * Modern UI Kit may skin the shell, but must not create a second page offset.
 * Dashboard/list/table routes are fluid; form/detail components may keep their
 * own reading width. Browser zoom is handled as an effective viewport change.
 * ========================================================================== */
body.swcrm-fc-active{
  --swcrmfc-sidebar-width:216px;
  --swcrmfc-sidebar-inset:0px;
  --swcrmfc-sidebar-gap:0px;
  --swcrmfc-shell-offset:var(--swcrmfc-sidebar-width);
  --swcrmfc-content-gutter:clamp(14px,1.55vw,28px);
  --swcrmfc-content-top:clamp(14px,1.15vw,22px);
  --swcrmfc-reading-max:1180px;
  --swcrmfc-sidebar:var(--swcrmfc-sidebar-width);
}
body.swcrm-fc-active.swcrm-mui-active{
  --swcrmfc-sidebar-inset:14px;
  --swcrmfc-sidebar-gap:16px;
  --swcrmfc-shell-offset:calc(var(--swcrmfc-sidebar-inset) + var(--swcrmfc-sidebar-width) + var(--swcrmfc-sidebar-gap));
}
body.swcrm-fc-active.swcrm-fc-has-shell .site-content,
body.swcrm-fc-active.swcrm-fc-has-shell #content{
  margin-left:var(--swcrmfc-shell-offset)!important;
  width:calc(100% - var(--swcrmfc-shell-offset))!important;
  min-width:0!important;
  max-width:none!important;
  padding:0!important;
}
body.swcrm-fc-active .swcrmfc-sidebar{
  left:var(--swcrmfc-sidebar-inset)!important;
  width:var(--swcrmfc-sidebar-width)!important;
}
body.swcrm-fc-active .site-content .ast-container{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:var(--swcrmfc-content-top) var(--swcrmfc-content-gutter) 32px!important;
  box-sizing:border-box!important;
}
body.swcrm-fc-active #primary,
body.swcrm-fc-active #main,
body.swcrm-fc-active article,
body.swcrm-fc-active .ast-article-single,
body.swcrm-fc-active .entry-content{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
body.swcrm-fc-active #primary{
  container-type:inline-size;
  container-name:swcrm-canvas;
}
body.swcrm-fc-active .entry-content > .swcrm11m-page,
body.swcrm-fc-active .entry-content > .swcrm-front-page,
body.swcrm-fc-active .entry-content > .swcrm-report-page,
body.swcrm-fc-active .entry-content > .swps,
body.swcrm-fc-active .entry-content > .swps-wrap,
body.swcrm-fc-active .entry-content > .swcrmfc-page,
body.swcrm-fc-active .entry-content > .swcrm-cp3-page,
body.swcrm-fc-active .entry-content > .swpayu-wrap,
body.swcrm-fc-active .entry-content > .swcrm-class-page,
body.swcrm-fc-active .entry-content > .swcrm-dh-page,
body.swcrm-fc-active .entry-content > .swk21-page,
body.swcrm-fc-active .entry-content > .swfix-page{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
}
body.swcrm-fc-route-dashboard .entry-content > .swcrm11m-page,
body.swcrm-fc-route-tong-quan .entry-content > .swcrm11m-page,
body.swcrm-fc-route-dashboard .swcrm-class-overview,
body.swcrm-fc-route-dashboard .swcrm-class-add-box{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}
body.swcrm-fc-active :is(.swcrm-form-page,.swcrm-detail-page,.swcrm-v13-wrap)[data-layout="reading"]{
  width:min(100%,var(--swcrmfc-reading-max))!important;
  max-width:var(--swcrmfc-reading-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
@media (max-width:1280px){
  body.swcrm-fc-active{
    --swcrmfc-sidebar-width:200px;
    --swcrmfc-content-gutter:16px;
  }
  body.swcrm-fc-active.swcrm-mui-active{
    --swcrmfc-sidebar-inset:10px;
    --swcrmfc-sidebar-gap:12px;
  }
}
@media (max-width:960px){
  body.swcrm-fc-active{
    --swcrmfc-sidebar-width:min(292px,calc(100vw - 30px));
    --swcrmfc-sidebar-inset:0px;
    --swcrmfc-sidebar-gap:0px;
    --swcrmfc-shell-offset:0px;
    --swcrmfc-content-gutter:14px;
    --swcrmfc-content-top:14px;
  }
  body.swcrm-fc-active.swcrm-fc-has-shell .site-content,
  body.swcrm-fc-active.swcrm-fc-has-shell #content{
    margin-left:0!important;
    width:100%!important;
  }
  body.swcrm-fc-active .swcrmfc-sidebar{left:0!important;}
}
