html {
  font-size: 14px;
}

:root {
  --app-bg: #f4f6f8;
  --app-text: #17212b;
  --sidebar-bg: #111827;
  --sidebar-text: #d8dee9;
  --sidebar-hover: #1f2937;
  --topbar-bg: #fff;
  --topbar-border: #dde3ea;
}

body[data-theme="dark"] {
  --app-bg: #0f172a;
  --app-text: #e2e8f0;
  --sidebar-bg: #020617;
  --sidebar-text: #cbd5e1;
  --sidebar-hover: #1e293b;
  --topbar-bg: #111827;
  --topbar-border: #334155;
}

body[data-theme="ocean"] {
  --app-bg: #e8f3f7;
  --app-text: #123047;
  --sidebar-bg: #123b54;
  --sidebar-text: #d6ebf5;
  --sidebar-hover: #1c5578;
  --topbar-bg: #f7fbfd;
  --topbar-border: #bfd7e5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--app-bg);
  color: var(--app-text);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
}

.app-sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px 18px;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #1f9d8a;
  color: #fff;
  font-weight: 700;
}

.brand-mark-image {
  background: #fff;
  overflow: hidden;
}

.brand-logo-frame {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  padding: 4px;
}

.brand-mark-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.logout-button {
  border: 1px solid #cfd8e3;
  background: #fff;
  color: #334155;
  min-height: 29px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: #97a6ba;
  font-size: 11px;
  font-weight: 500;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-nav a {
  text-decoration: none;
  color: #cbd5e1;
  padding: 9px 10px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13px;
}

.side-nav a:hover,
.side-nav a:focus {
  background: var(--sidebar-hover);
  color: #fff;
}

.app-main {
  min-width: 0;
}

.app-topbar {
  height: 58px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

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

.sidebar-toggle {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
}

.topbar-theme-select {
  border: 1px solid #cfd8e3;
  background: #fff;
  color: #334155;
  min-height: 29px;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 12px;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .app-sidebar {
  display: none;
}

.row-view-button {
  min-height: 28px;
  padding: 4px 10px;
}

.topbar-kicker {
  display: block;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.topbar-pill {
  border: 1px solid #cfd8e3;
  border-radius: 999px;
  color: #334155;
  background: #f8fafc;
  padding: 5px 11px;
  font-size: 12px;
}

.content-frame {
  padding: 22px 24px 42px;
}

.module-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.module-main {
  min-width: 0;
}

.module-log {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 98px);
  overflow: auto;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  padding: 13px;
}

.module-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5eaf0;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.module-log-header h2,
.module-log h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.module-log-header span {
  border-radius: 999px;
  background: #eef6f5;
  color: #0f5f55;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
}

.module-log h3 {
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 11px;
  margin-top: 12px;
}

.module-log-item {
  border-bottom: 1px solid #edf1f5;
  padding: 9px 0;
}

.module-log-item:last-child {
  border-bottom: 0;
}

.module-log-item strong,
.module-log-item span,
.module-log-item small {
  display: block;
}

.module-log-item strong {
  font-size: 12px;
}

.module-log-item span,
.module-log-item small {
  color: #64748b;
  font-size: 11px;
}

.module-log-item p {
  margin: 5px 0;
  color: #334155;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.module-log-empty {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
}

.app-footer {
  color: #64748b;
  font-size: 12px;
  padding: 0 24px 18px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

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

.page-header h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 750;
}

.page-header p {
  margin: 5px 0 0;
  color: #64748b;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card,
.panel {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.stat-card {
  padding: 15px;
}

.stat-card span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
}

.panel {
  padding: 16px;
  margin-bottom: 16px;
}

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

.builder-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 250px;
  gap: 12px;
  margin-top: 10px;
  align-items: start;
}

.builder-form {
  display: grid;
  gap: 12px;
}

.builder-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(15, 23, 42, .42);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.builder-modal-card {
  width: 100vw;
  height: 100vh;
  background: #f4f6f8;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.builder-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #dbe4ec;
  background: #111827;
  color: #fff;
}

.builder-modal-head strong {
  display: block;
  font-size: 18px;
}

.builder-modal-head span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,.74);
}

.builder-form-modal {
  display: grid;
  min-height: 0;
  padding: 16px;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
}

.readonly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px 14px;
  font-size: 13px;
  color: #1f2937;
}

.logo-thumb-wrap {
  margin-top: 6px;
  width: 220px;
  height: 110px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.template-meta-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(220px, 1fr) minmax(160px, .8fr);
  gap: 10px;
}

.builder-studio-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: 16px;
  min-height: 0;
}

.builder-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.builder-side-panel,
.builder-main-panel {
  min-height: 0;
}

.builder-main-panel {
  display: grid;
  grid-template-rows: 1fr;
}

.builder-side-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
}

.builder-side-panel-right {
  grid-template-rows: minmax(0, 1fr);
}

.builder-pane-wrap {
  position: relative;
  min-height: 0;
}

.palette-scroll {
  height: 96px;
  min-height: 96px;
  overflow-y: auto;
  overflow-x: hidden;
}

.pane-resizer {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -6px;
  height: 10px;
  cursor: ns-resize;
  z-index: 3;
}

.pane-resizer::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #94a3b8;
  margin: 3px auto 0;
}

.pane-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
}

.palette-scroll {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
}

.builder-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.builder-workspace-modal {
  display: block;
  min-height: 0;
  height: 100%;
}

.builder-palette {
  border: 1px solid #dde3ea;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  min-height: 420px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.data-fields-palette {
  height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
}

.builder-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.builder-actions-modal {
  flex-wrap: wrap;
  padding-top: 4px;
}

.builder-actions-top {
  position: sticky;
  top: 0;
  z-index: 20;
  justify-content: flex-start;
  padding: 10px 12px;
  border: 1px solid #dbe4ec;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}

.builder-palette h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #334155;
}

.builder-item {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f9fafb;
  padding: 10px 12px;
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.25;
  min-height: 40px;
  color: #1e293b;
  cursor: grab;
  user-select: none;
  width: 100%;
  white-space: normal;
}

.builder-item:hover {
  background: #eef2ff;
  border-color: #94a3b8;
}

.builder-side-list {
  display: block;
  height: 100% !important;
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.builder-side-list .builder-item {
  margin-bottom: 8px;
}

.builder-item:last-child {
  margin-bottom: 0;
}

.builder-canvas {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #eef2f6;
  min-height: calc(100vh - 250px);
  height: calc(100vh - 250px);
  padding: 24px;
  overflow: auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.builder-sheet {
  position: relative;
  transform-origin: top center;
}

.builder-a4-guide {
  position: relative;
  width: 794px;
  height: 1123px;
  border: 1px dashed #9ca3af;
  border-radius: 0;
  margin: 0 auto 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  pointer-events: none;
}

.builder-a4-guide::before,
.builder-a4-guide::after {
  content: "";
  position: absolute;
  background: rgba(15, 23, 42, .26);
}

.builder-a4-guide::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
}

.builder-a4-guide::after {
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
}

.builder-a4-guide-label {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #475569;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 3px 7px;
}

.builder-a4-guide[data-orientation="landscape"] .builder-a4-guide-label::after {
  content: " Landscape";
}

.builder-a4-guide[data-orientation="portrait"] .builder-a4-guide-label::after {
  content: " Portrait";
}

.builder-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  padding: 24px;
  text-align: center;
  font-size: 13px;
}

.builder-block {
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  position: absolute;
  min-width: 160px;
  min-height: 100px;
  box-shadow: none;
}

.builder-block:hover,
.builder-block:focus-within,
.builder-block.selected {
  border-color: #2563eb;
  background: rgba(239, 246, 255, .78);
}

.builder-block.layout-block {
  overflow: hidden;
}

.builder-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid #dbe4ec;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  cursor: move;
  display: none;
}

.builder-block.selected .builder-badge {
  display: inline-flex;
}

.block-content {
  min-height: 100%;
  height: 100%;
  background: transparent;
  padding: 32px 12px 12px;
  font-size: 14px;
  color: #0f172a;
  overflow: hidden;
  white-space: pre-wrap;
}

.block-content:focus {
  outline: none;
}

.block-content.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #64748b;
  font-weight: 700;
  border: 1px dashed #cbd5e1;
}

.builder-live-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.builder-remove {
  position: absolute;
  top: 5px;
  right: 6px;
  border: 1px solid #cbd5e1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  line-height: 14px;
  text-align: center;
  background: #fff;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: none;
}

.builder-block.selected .builder-remove {
  display: inline-block;
}

.builder-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid #2563eb;
  background: #fff;
  z-index: 6;
  display: none;
}

.builder-block.selected .builder-handle {
  display: block;
}

.handle-nw { left: -5px; top: -5px; cursor: nwse-resize; }
.handle-n { left: calc(50% - 5px); top: -5px; cursor: ns-resize; }
.handle-ne { right: -5px; top: -5px; cursor: nesw-resize; }
.handle-e { right: -5px; top: calc(50% - 5px); cursor: ew-resize; }
.handle-se { right: -5px; bottom: -5px; cursor: nwse-resize; }
.handle-s { left: calc(50% - 5px); bottom: -5px; cursor: ns-resize; }
.handle-sw { left: -5px; bottom: -5px; cursor: nesw-resize; }
.handle-w { left: -5px; top: calc(50% - 5px); cursor: ew-resize; }

.line-endpoint {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  top: calc(50% - 6px);
  z-index: 6;
}

.handle-start { left: -6px; cursor: ew-resize; }
.handle-end { right: -6px; cursor: ew-resize; }

.builder-preview-mode .builder-handle {
  display: none !important;
}

.table-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  position: absolute;
  top: 8px;
  left: 8px;
  right: 34px;
  z-index: 1;
}

.table-meta label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #475569;
  padding: 3px 8px;
  border: 1px solid #dbe4ec;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
}

.table-meta input {
  width: 54px;
  height: 24px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 11px;
}

.table-canvas {
  position: absolute;
  inset: 38px 0 16px 0;
  z-index: 1;
  min-height: 84px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  background: #fff;
}

.builder-table-grid {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.builder-table-grid td {
  border: 1px solid #cbd5e1;
  min-width: 80px;
  min-height: 26px;
  padding: 0;
  vertical-align: top;
  white-space: pre-wrap;
  position: relative;
}

.builder-table-grid tr:first-child td {
  background: #f3f4f6;
  font-weight: 700;
}

.builder-table-grid td:hover {
  cursor: cell;
}

.builder-table-grid td.serial-cell {
  background: #f8fafc;
}

.builder-table-grid td.serial-cell:hover {
  cursor: default;
}

.builder-table-grid td.serial-cell .cell-text {
  color: #334155;
  font-weight: 700;
  cursor: default;
}

.builder-table-grid td::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 100%;
  cursor: col-resize;
}

.builder-table-grid td::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  cursor: row-resize;
}

.cell-text {
  min-height: 24px;
  padding: 8px;
  outline: none;
  white-space: pre-wrap;
  font-size: 13px;
}

.shape-box {
  border: 2px solid #0f5f55;
  background: rgba(31, 157, 138, .08);
}

.shape-node {
  min-width: 60px;
  min-height: 20px;
}

.shape-body {
  width: 100%;
  height: 100%;
  cursor: move;
  position: relative;
  z-index: 1;
}

.shape-body.shape_line {
  height: 0;
  margin-top: 50%;
  border-top: 3px solid #0f5f55;
  background: transparent;
}

.builder-preview-mode .builder-badge,
.builder-preview-mode .builder-remove,
.builder-preview-mode .builder-resize,
.builder-preview-mode .table-meta,
.builder-preview-mode .builder-empty {
  display: none !important;
}

.builder-preview-mode .builder-block,
.builder-preview-mode .builder-block:hover,
.builder-preview-mode .builder-block:focus-within {
  border-color: transparent !important;
  background: transparent !important;
}

.builder-preview-mode .block-content.logo-box {
  border: 0;
}

.builder-preview-mode .table-canvas {
  inset: 0;
  border: 0;
}

.shape-body.shape_rectangle {
  border: 2px solid #0f5f55;
  background: rgba(31, 157, 138, .08);
}

.shape-body.shape_circle {
  border: 2px solid #0f5f55;
  background: rgba(31, 157, 138, .08);
  border-radius: 50%;
}

.shape-body.shape_triangle {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  clip-path: polygon(50% 4%, 96% 96%, 4% 96%);
  border: 2px solid #0f5f55;
  background: rgba(31, 157, 138, .20);
}

.shape_line {
  border-top: 3px solid #0f5f55 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
}

.shape_rectangle {
  border: 2px solid #0f5f55 !important;
  background: rgba(31, 157, 138, .08) !important;
}

.shape_circle {
  border: 2px solid #0f5f55 !important;
  background: rgba(31, 157, 138, .08) !important;
  border-radius: 50% !important;
}

.shape_triangle {
  width: 0 !important;
  height: 0 !important;
  border-left: 60px solid transparent !important;
  border-right: 60px solid transparent !important;
  border-bottom: 90px solid rgba(31, 157, 138, .45) !important;
  background: transparent !important;
}

.a4-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.a4-modal[hidden] {
  display: none !important;
}

.a4-modal-card {
  width: min(95vw, 1200px);
  height: min(95vh, 860px);
  background: #fff;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  display: grid;
  grid-template-rows: auto 1fr;
}

.a4-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.a4-preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1100px) {
  .builder-modal-shell {
    padding: 10px;
  }

  .builder-modal-card {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .template-meta-grid {
    grid-template-columns: 1fr;
  }

  .builder-studio-grid,
  .builder-grid,
  .builder-top-row,
  .builder-workspace {
    grid-template-columns: 1fr;
  }

  .builder-palette,
  .builder-canvas {
    min-height: 280px;
  }
}

.panel-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
}

.compact-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 11px 13px;
  align-items: end;
}

.compact-form.form-wide {
  grid-template-columns: repeat(5, minmax(210px, 1fr));
}

.field {
  display: grid;
  gap: 4px;
}

.field label {
  font-size: 11px;
  color: #475569;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  min-height: 40px;
  height: 40px;
  padding: 8px 10px;
  line-height: 1.2;
}

.field input[type="file"] {
  height: auto;
  min-height: 40px;
  padding: 7px 10px;
}

.field textarea {
  min-height: 110px;
  height: auto;
  padding-top: 8px;
  resize: vertical;
}

.sample-csv {
  margin: 0;
  border: 1px solid #dbe4ec;
  border-radius: 6px;
  background: #f8fafc;
  color: #17212b;
  padding: 12px;
  font-size: 12px;
  line-height: 1.55;
  overflow: auto;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbe4ec;
  border-radius: 6px;
  background: #f8fafc;
}

.permission-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #334155;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.field.notes-wide {
  grid-column: span 2;
}

.field.notes-tall textarea {
  min-height: 112px;
}

.field-full {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  min-height: 40px;
}

.form-actions-row {
  align-self: end;
}

.followup-field {
  min-width: 210px;
}

.sales-opportunity-form .field.notes-wide {
  grid-column: span 3;
}

.sales-opportunity-form .followup-field,
.sales-opportunity-form .form-actions-row {
  grid-column: span 1;
}

.sales-opportunity-form .form-actions-row {
  justify-content: flex-start;
}

.sales-opportunity-form {
  display: grid;
  gap: 16px;
}

.opportunity-summary-card {
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
}

.opportunity-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.opportunity-summary-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.opportunity-summary-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
}

.currency-chip {
  border: 1px solid #cfe2de;
  border-radius: 999px;
  background: #fff;
  color: #0f5f55;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  white-space: nowrap;
}

.opportunity-summary-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.opportunity-summary-grid .field {
  min-width: 0;
}

.opportunity-summary-grid.admin-grid {
  grid-template-columns: minmax(140px, 2fr) minmax(140px, 2fr) repeat(8, minmax(80px, 1fr));
}

.opportunity-summary-grid.reseller-grid {
  grid-template-columns: minmax(150px, 2.15fr) minmax(150px, 2.15fr) repeat(6, minmax(80px, 1fr));
}

.field-owner,
.field-customer,
.field-compact {
  grid-column: auto;
}

.line-items-section {
  display: grid;
  gap: 6px;
}

.line-items-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.line-items-toolbar-actions {
  display: flex;
  justify-content: flex-end;
}

.line-items-grid th:nth-child(1),
.line-items-grid td:nth-child(1) { width: 18%; }
.line-items-grid th:nth-child(2),
.line-items-grid td:nth-child(2) { width: 16%; }
.line-items-grid th:nth-child(3),
.line-items-grid td:nth-child(3) { width: 13%; }
.line-items-grid th:nth-child(4),
.line-items-grid td:nth-child(4) { width: 29%; }
.line-items-grid th:nth-child(5),
.line-items-grid td:nth-child(5) { width: 5%; }
.line-items-grid th:nth-child(6),
.line-items-grid td:nth-child(6) { width: 7%; }
.line-items-grid th:nth-child(7),
.line-items-grid td:nth-child(7) { width: 6%; }
.line-items-grid th:nth-child(8),
.line-items-grid td:nth-child(8) { width: 6%; }

.followup-panel {
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
  align-content: start;
}

.followup-panel .form-actions-row {
  margin-top: 12px;
}

.opportunity-date-row {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

.opportunity-date-row .field {
  min-width: 280px;
}

.inline-save-row {
  min-height: 40px;
}

.opportunity-followup-grid {
  display: grid;
  gap: 14px;
  align-items: start;
}

.opportunity-followup-grid.edit-mode {
  grid-template-columns: minmax(0, 1.3fr) minmax(190px, .62fr) minmax(0, 1.3fr) minmax(190px, .62fr);
}

.opportunity-followup-grid.new-mode {
  grid-template-columns: minmax(0, 1.75fr) minmax(220px, .75fr);
}

.compact-notes-panel textarea {
  min-height: 96px;
}

.opportunity-action-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.field-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 0;
  align-items: stretch;
}

.customer-search-input {
  min-height: 40px;
  height: 40px;
  border-radius: 8px 0 0 8px;
}

.inline-add-button {
  width: 44px;
  height: 40px;
  border-radius: 0 8px 8px 0;
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
  margin-left: -1px;
}

.inline-add-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.search-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  min-height: 30px;
  padding: 5px 8px;
}

.stable-form .actions {
  align-self: end;
}

.customers-form {
  grid-template-columns: repeat(3, minmax(230px, 1fr));
}

.customer-license-panel {
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.customer-license-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.customer-license-header > label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.customer-license-rows {
  display: grid;
  gap: 12px;
}

.customer-license-row {
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.customer-license-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.6fr .55fr .9fr .85fr .85fr .8fr .9fr .9fr;
  gap: 12px;
  align-items: end;
}

.customer-license-grid .field-compact {
  min-width: 0;
}

.customer-license-smc-toggle .checkbox-line {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.customer-license-smc-toggle .checkbox-line input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
}

.customer-license-smc-toggle .checkbox-line label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}

.resellers-form {
  grid-template-columns: repeat(3, minmax(230px, 1fr));
}

.reseller-price-form,
.preferences-template-form {
  grid-template-columns: repeat(3, minmax(230px, 1fr));
}

.preferences-billing-form {
  grid-template-columns: repeat(4, minmax(200px, 1fr));
}

.pricing-custom-form {
  grid-template-columns: repeat(3, minmax(210px, 1fr));
}

.btn-primary,
.btn-secondary,
.btn-soft,
.btn-danger-soft {
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 31px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-primary {
  background: #136f63;
  border-color: #136f63;
  color: #fff;
}

.btn-secondary {
  background: #17212b;
  border-color: #17212b;
  color: #fff;
}

.btn-soft {
  background: #eef6f5;
  border-color: #bddbd5;
  color: #0f5f55;
}

.btn-danger-soft {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #fff;
}

.line-items-box {
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.line-items-grid {
  width: 100%;
  border-collapse: collapse;
}

.line-items-grid th,
.line-items-grid td {
  border-bottom: 1px solid #e2e8f0;
  padding: 8px;
  vertical-align: top;
}

.line-items-grid th {
  background: #fff;
  color: #475569;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.line-items-grid td textarea,
.line-items-grid td input,
.line-items-grid td select {
  width: 100%;
}

.line-items-grid td:nth-child(1) .search-input,
.line-items-grid td:nth-child(1) .line-item-product-search {
  min-width: 100%;
}

.line-item-description {
  min-height: 68px !important;
  height: auto !important;
  resize: vertical;
}

.line-item-total[readonly] {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.line-items-actions {
  display: flex;
  justify-content: flex-start;
  padding: 10px;
  background: #f8fafc;
}

.btn-small {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 11px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #e5eaf0;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.data-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  user-select: none;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.product-description-cell {
  display: block;
  max-width: 320px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 750;
  background: #eef2ff;
  color: #3730a3;
}

.badge.ad-hoc {
  background: #fff7ed;
  color: #9a3412;
}

.badge.covered {
  background: #ecfdf5;
  color: #047857;
}

.badge.neutral {
  background: #f1f5f9;
  color: #475569;
}

.validation-summary-errors,
.field-validation-error {
  color: #b42318;
  font-size: 12px;
}

.list-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.list-search {
  width: min(320px, 100%);
  min-height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  background: #fff;
}

.list-page-size {
  min-height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  background: #fff;
}

.list-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
}

.list-page-status {
  color: #475569;
  font-size: 12px;
  min-width: 90px;
  text-align: center;
}

.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.row-actions form {
  margin: 0;
}

.inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-form input {
  width: 160px;
  min-height: 40px;
  height: 40px;
}

.reset-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.reset-modal-card {
  width: min(640px, 92vw);
  background: #fff;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.reset-modal-card .inline-form input {
  width: min(440px, 70vw);
}

.proposal-shell {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
}

.proposal-template-row select {
  width: min(520px, 100%);
}

.proposal-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.proposal-actions .btn-primary,
.proposal-actions .btn-secondary,
.proposal-actions .btn-soft {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.proposal-readonly-block {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  background: #fff;
  min-height: 420px;
  overflow: auto;
}

.proposal-readonly-block.proposal-fit-enabled {
  overflow: hidden;
  min-height: 640px;
}

.proposal-fit-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.proposal-fit-content {
  width: max-content;
  max-width: none;
  transform-origin: top center;
}

.proposal-readonly-block[contenteditable="true"] {
  outline: 2px solid #2f7d68;
  outline-offset: 2px;
  cursor: text;
}

@media (max-width: 900px) {
  .proposal-shell {
    grid-template-columns: 1fr;
  }

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

.proposal-preview-wrap {
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #fff;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.builder-preview-wrap {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.builder-preview-wrap .proposal-preview-frame {
  min-height: 0;
  height: 100%;
}

.builder-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
}

.proposal-preview-frame {
  width: 100%;
  min-height: 680px;
  border: 0;
}

.saved-proposals-wrap {
  display: grid;
  gap: 10px;
}

.saved-proposals-header strong {
  font-size: 13px;
  color: #334155;
}

.saved-proposals-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  padding: 14px;
  font-size: 12px;
}

.proposal-popup-page {
  background: #e5e7eb;
}

.proposal-popup-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: 12px;
}

.proposal-popup-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.proposal-popup-toolbar strong,
.proposal-popup-toolbar span {
  display: block;
}

.proposal-popup-toolbar span {
  color: #64748b;
  font-size: 12px;
  margin-top: 3px;
}

.proposal-popup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.proposal-toolbar-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.proposal-popup-canvas {
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.proposal-popup-canvas .proposal-readonly-block {
  min-height: calc(100vh - 140px);
}

@media (max-width: 1500px) {
  .opportunity-summary-grid.admin-grid,
  .opportunity-summary-grid.reseller-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }

  .opportunity-followup-grid.edit-mode,
  .opportunity-followup-grid.new-mode {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

.sales-pipeline-page {
  display: flex;
  flex-direction: column;
}

.inline-editor-row td {
  padding: 0;
  background: #f8fafc;
}

.inline-edit-panel {
  margin: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: inset 0 1px 0 #dbe4ec;
  scroll-margin-top: 14px;
}

.selected-opportunity-row td {
  background: #f0f9f7;
}

.icon-button {
  width: 29px;
  height: 29px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button.danger {
  color: #be123c;
  border-color: #fecdd3;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #f7fafc 0%, #e8f4f1 48%, #f4f6f8 100%);
}

.auth-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  background: #fff;
  border: 1px solid #dbe4ec;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
  overflow: hidden;
}

.auth-brand {
  background: #111827;
  color: #fff;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
}

.company-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.company-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #1f9d8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.company-logo-image {
  background: #fff;
  padding: 4px;
  overflow: hidden;
}

.company-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-logo strong,
.company-logo small {
  display: block;
  line-height: 1.1;
}

.company-logo small {
  color: #9fb0c3;
  margin-top: 4px;
}

.auth-brand h1 {
  margin: 34px 0 10px;
  font-size: 30px;
  font-weight: 800;
}

.auth-brand p {
  color: #b7c4d4;
  margin: 0;
  line-height: 1.5;
}

.auth-form {
  padding: 42px;
}

.auth-form h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
}

.auth-form .muted {
  margin: 0 0 22px;
  color: #64748b;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 42px;
}

.eye-button {
  position: absolute;
  right: 6px;
  bottom: 5px;
  width: 32px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eye-button svg {
  width: 18px;
  height: 18px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
}

.auth-links a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.auth-status {
  border: 1px solid #bbf7d0;
  color: #166534;
  background: #f0fdf4;
  padding: 9px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 12px;
}

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-filter-form {
  align-items: end;
}

.dashboard-header {
  margin-bottom: 18px;
}

.dashboard-filter-panel {
  margin-bottom: 18px;
}

.dashboard-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-hero-card {
  border-radius: 10px;
  padding: 18px;
  color: #fff;
  display: grid;
  gap: 12px;
  min-height: 136px;
}

.dashboard-hero-card.sales {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.dashboard-hero-card.smc {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

.dashboard-hero-card.neutral {
  background: linear-gradient(135deg, #334155, #475569);
}

.dashboard-hero-copy {
  display: grid;
  gap: 6px;
}

.dashboard-hero-copy strong {
  font-size: 34px;
  line-height: 1;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  opacity: .85;
}

.hero-caption {
  font-size: 13px;
  opacity: .85;
}

.dashboard-hero-value {
  font-size: 18px;
  font-weight: 700;
}

.dashboard-hero-subvalue {
  font-size: 13px;
  font-weight: 600;
  opacity: .88;
  margin-top: 4px;
}

.dashboard-chart-panel {
  min-height: 420px;
}

.dashboard-bar-list {
  display: grid;
  gap: 14px;
}

.dashboard-bar-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d9e4ec;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.dashboard-bar-row:hover {
  border-color: #94a3b8;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.dashboard-bar-head,
.dashboard-bar-foot,
.filter-summary-text {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.dashboard-bar-label {
  font-weight: 700;
}

.dashboard-bar-meta,
.dashboard-bar-foot {
  font-size: 13px;
  color: #475569;
}

.dashboard-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e8eef3;
  overflow: hidden;
}

.dashboard-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.dashboard-bar-fill.sales {
  background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.dashboard-bar-fill.smc {
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.filter-summary-panel {
  margin-bottom: 18px;
}

.filter-summary-text {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: #475569;
  font-size: 13px;
}

.dashboard-period-label {
  align-self: center;
  padding-bottom: 10px;
}

.report-export-form {
  display: grid;
  gap: 14px;
}

.report-column-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d7e1ea;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fbfd;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
  }

  .side-nav {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .compact-form,
  .compact-form.form-wide,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .customers-form {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .resellers-form,
  .reseller-price-form,
  .preferences-template-form,
  .preferences-billing-form,
  .pricing-custom-form {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .module-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-grid,
  .report-column-grid,
  .dashboard-hero-grid {
    grid-template-columns: 1fr;
  }

  .module-log {
    position: static;
    max-height: none;
  }
}

@media (max-width: 680px) {
  .content-frame,
  .app-topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .compact-form,
  .compact-form.form-wide,
  .stat-grid,
  .side-nav {
    grid-template-columns: 1fr;
  }

  .customers-form {
    grid-template-columns: 1fr;
  }

  .resellers-form,
  .reseller-price-form,
  .preferences-template-form,
  .preferences-billing-form,
  .pricing-custom-form {
    grid-template-columns: 1fr;
  }

  .field.notes-wide {
    grid-column: span 1;
  }

  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: auto;
  }
}
