:root {
  color-scheme: light;
  --ink: #1b1e23;
  --muted: #667085;
  --line: #d9dee8;
  --soft: #f5f7fb;
  --paper: #ffffff;
  --brand: #0f766e;
  --brand-dark: #0b4f4a;
  --accent: #b45309;
  --danger: #b42318;
  --success: #047857;
  --pending: #7c3aed;
  --shadow: 0 16px 40px rgba(27, 30, 35, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #eef2f7;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sidebar {
  background: #152528;
  color: #f8fafc;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f8fafc;
  color: #152528;
  font-weight: 800;
}

.brand-block h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.brand-block p,
.side-panel p {
  margin: 2px 0 0;
  color: #cbd5e1;
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  border: 0;
  color: #dbeafe;
  background: transparent;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
}

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

.sidebar-subnav {
  display: none;
  max-height: 330px;
  overflow: auto;
  padding: 4px 0 8px 12px;
  margin: -2px 0 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-subnav.open {
  display: grid;
  gap: 4px;
}

.sidebar-designer-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 750;
}

.sidebar-designer-btn:hover,
.sidebar-designer-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sidebar-designer-count {
  min-width: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 1px 7px;
  text-align: center;
  font-size: 11px;
}

.side-panel {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: #22c55e;
}

.status-dot.cloud {
  background: #38bdf8;
}

.status-dot.warning {
  background: #f59e0b;
}

.cloud-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.mini-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
}

.mini-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cloud-note,
.cloud-error {
  margin-top: 8px;
  font-size: 12px;
}

.cloud-note {
  color: #bae6fd;
}

.cloud-error {
  color: #fecaca;
}

.setup-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.setup-list li {
  margin: 8px 0;
}

.main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 3px;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.topbar h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.top-actions,
.actions,
.row-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn,
.icon-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 14px;
  font-weight: 700;
}

.primary-btn {
  background: var(--brand);
  color: #fff;
}

.secondary-btn {
  background: #e8f5f3;
  color: var(--brand-dark);
  border-color: #bfe4de;
}

.ghost-btn,
.icon-btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.danger-btn {
  background: #fff1f0;
  color: var(--danger);
  border-color: #ffd1cc;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.kpis {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.grid.two {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 0;
}

.card-header h3,
.section-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.card-header p,
.muted {
  color: var(--muted);
}

.card-header p {
  margin: 4px 0 0;
}

.card-body {
  padding: 18px;
}

.kpi {
  padding: 18px;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.kpi small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.field label {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 11px;
  min-height: 42px;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.sizes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 10px;
}

.size-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--soft);
}

.size-box label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
}

.size-box input {
  min-height: 36px;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: #475467;
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.item-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.thumb.placeholder {
  display: grid;
  place-items: center;
  color: #64748b;
  font-weight: 800;
}

.image-edit-label {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  cursor: pointer;
}

.image-edit-label .thumb {
  width: 58px;
  height: 58px;
}

.image-edit-label::after {
  content: "Edit";
  position: absolute;
  inset: auto 4px 4px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  padding: 2px 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.image-edit-label:hover::after {
  opacity: 1;
}

.image-edit-label input {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  background: #eef2ff;
  color: #3730a3;
  white-space: nowrap;
}

.pill.success {
  background: #dcfce7;
  color: var(--success);
}

.pill.warn {
  background: #fff7ed;
  color: var(--accent);
}

.pill.danger {
  background: #fee2e2;
  color: var(--danger);
}

.pill.pending {
  background: #f3e8ff;
  color: var(--pending);
}

.size-qty {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
}

.size-qty.has-stock {
  background: #e8f5f3;
  color: var(--brand-dark);
}

.stock-input {
  width: 52px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  text-align: center;
  font-weight: 900;
}

.stock-input.has-stock {
  border-color: #cfe8e3;
  background: #e8f5f3;
  color: var(--brand-dark);
}

.size-heading {
  min-width: 58px;
  text-align: center;
}

td.size-value {
  text-align: center;
}

.article-link {
  border: 0;
  background: transparent;
  color: #182230;
  padding: 0;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.article-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.discount-input {
  width: 76px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
  font-weight: 800;
}

.price-cell {
  display: grid;
  grid-template-columns: auto minmax(74px, 1fr);
  align-items: center;
  gap: 6px;
}

.price-cell span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.price-input {
  width: 100%;
  min-width: 74px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font-weight: 800;
}

.payment-input {
  width: 110px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font-weight: 800;
}

.payment-table td {
  vertical-align: top;
}

.danger-btn {
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #b42318;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.danger-btn:hover {
  background: #ffe4e6;
}

.logo-preview {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  padding: 5px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 800;
}

.tab-btn.active {
  border-color: #8fd2ca;
  background: #e8f5f3;
  color: var(--brand-dark);
}

.inventory-layout {
  display: block;
}

.designer-filter {
  display: none;
}

.designer-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.designer-filter-head strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  color: #475467;
  letter-spacing: 0.04em;
}

.designer-filter-head span {
  color: var(--muted);
  font-size: 13px;
}

.designer-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.designer-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  padding: 9px 11px;
  text-align: left;
  font-weight: 800;
  white-space: nowrap;
}

.designer-chip:hover,
.designer-chip.active {
  border-color: #bfe4de;
  background: #e8f5f3;
  color: var(--brand-dark);
}

.designer-count {
  min-width: 26px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475467;
  padding: 2px 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.designer-chip.active .designer-count {
  background: #fff;
  color: var(--brand-dark);
}

.mobile-designer-select {
  display: none;
  margin-bottom: 14px;
}

.photo-upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #ffd79a;
  border-radius: 8px;
  background: #fff7ed;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.photo-upload-label input {
  display: none;
}

.import-zone {
  border: 1px dashed #9aa6b7;
  border-radius: 8px;
  padding: 18px;
  background: #fafcff;
}

.import-zone input {
  width: 100%;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-row + .review-row {
  margin-top: 12px;
}

.report-paper {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
}

.professional-doc {
  color: #182230;
}

.doc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 32px;
  background: #162426;
  color: #fff;
}

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

.doc-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #162426;
  font-weight: 900;
  object-fit: contain;
  padding: 5px;
}

.doc-brand strong,
.doc-designer-brand strong {
  display: block;
  font-size: 17px;
}

.doc-brand span,
.doc-designer-brand span {
  display: block;
  color: #d7dee8;
  font-size: 12px;
  margin-top: 2px;
}

.doc-designer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-align: right;
}

.designer-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  color: #162426;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.designer-logo.placeholder {
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #162426;
}

.doc-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 32px 0;
}

.info-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.info-block span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.info-block strong {
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.doc-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 32px 0;
}

.doc-metric {
  border: 1px solid #cfe0dd;
  border-radius: 8px;
  padding: 14px;
  background: #f1faf8;
}

.doc-metric span {
  display: block;
  color: #42625e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.doc-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.doc-section {
  padding: 22px 32px;
}

.doc-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.doc-section-title h3 {
  margin: 0;
  font-size: 18px;
}

.doc-section-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.report-thumb {
  width: 46px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #e2e8f0;
}

.report-thumb.placeholder {
  display: inline-grid;
  place-items: center;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.report-table th,
.report-table td {
  font-size: 12px;
  border: 1px solid #e1e7f0;
  padding: 7px 6px;
}

.report-table .size-heading,
.report-table .size-value {
  text-align: center;
}

.report-table {
  border: 1px solid #d8e0ea;
  border-collapse: collapse;
  table-layout: fixed;
}

.stock-statement-table th {
  background: #f7f9fc;
  color: #3d4a5c;
  font-size: 11px;
  line-height: 1.15;
}

.stock-statement-table td {
  vertical-align: middle;
}

.stock-statement-table tbody tr:nth-child(even) {
  background: #fcfdff;
}

.stock-statement-table th:nth-child(1),
.stock-statement-table td:nth-child(1) {
  width: 62px;
}

.stock-statement-table th:nth-child(2),
.stock-statement-table td:nth-child(2) {
  width: 190px;
}

.stock-statement-table th:nth-last-child(1),
.stock-statement-table td:nth-last-child(1),
.stock-statement-table th:nth-last-child(2),
.stock-statement-table td:nth-last-child(2) {
  width: 58px;
  text-align: center;
}

.stock-statement-table .size-heading,
.stock-statement-table .size-value {
  width: 42px;
}

.print-table-heading {
  display: none;
}

.invoice-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 32px 0;
  padding: 18px;
  border-radius: 8px;
  background: #f1faf8;
  border: 1px solid #cfe0dd;
}

.invoice-hero span {
  display: block;
  color: #42625e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-hero strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
}

.invoice-hero p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.summary-table td:last-child {
  text-align: right;
  font-weight: 800;
}

.summary-table .negative {
  color: var(--danger);
}

.summary-table .grand-total td {
  border-top: 2px solid #111827;
  font-size: 16px;
  font-weight: 900;
}


.totals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.total-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.total-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.total-box strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  transform: translateY(20px);
  opacity: 0;
  background: #111827;
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 10;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  padding: 42px 18px;
  z-index: 20;
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: min(980px, 100%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.28);
  border: 1px solid var(--line);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
}

.modal-body {
  padding: 18px;
}

.edit-size-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.edit-size-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.edit-size-card strong {
  display: block;
  margin-bottom: 8px;
}

.edit-size-card .field + .field {
  margin-top: 8px;
}

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

  .sidebar {
    position: static;
    padding: 16px;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sidebar-subnav.open {
    grid-column: 1 / -1;
    max-height: 180px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel {
    display: none;
  }

  .grid.kpis,
  .grid.two,
  .grid.three,
  .inventory-layout {
    grid-template-columns: 1fr;
  }

  .designer-filter,
  .mobile-designer-select {
    display: none;
  }
}

@media (max-width: 720px) {
  .main {
    padding: 16px;
  }

  .topbar,
  .report-head {
    align-items: stretch;
    flex-direction: column;
  }

  .report-meta {
    text-align: left;
  }

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

  .form-grid,
  .form-grid.three-col,
  .sizes-grid,
  .edit-size-grid,
  .totals-grid,
  .review-row {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: landscape;
    margin: 0;
  }

  html,
  body {
    background: #fff;
    margin: 0;
  }

  .sidebar,
  .topbar,
  .no-print,
  .toast {
    display: none !important;
  }

  .app-shell,
  .main {
    display: block;
    padding: 0;
  }

  .view {
    display: none !important;
  }

  .view.active {
    display: block !important;
  }

  .card {
    box-shadow: none;
    border: 0;
  }

  .report-paper {
    border: 0;
    padding: 5mm 6mm;
    max-width: none;
    width: 100%;
  }

  .doc-header {
    padding: 8px 12px;
    gap: 10px;
  }

  .doc-brand,
  .designer-brand {
    gap: 8px;
  }

  .doc-logo,
  .designer-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 11px;
  }

  .doc-brand h2,
  .designer-brand h2 {
    font-size: 16px;
    line-height: 1.05;
  }

  .doc-brand p,
  .designer-brand p {
    font-size: 10px;
    line-height: 1.15;
    margin-top: 1px;
  }

  .doc-info-grid,
  .doc-summary-grid,
  .doc-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .report-table th,
  .report-table td {
    font-size: 8px;
    line-height: 1.08;
    padding: 2px 3px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-thumb {
    width: 26px;
    height: 31px;
    border-radius: 4px;
  }

  .stock-statement-table thead {
    display: none;
  }

  .stock-statement-heading {
    display: grid;
    grid-template-columns: 44px minmax(145px, 1.7fr) repeat(8, minmax(30px, 0.42fr)) 40px 48px;
    align-items: center;
    border: 1px solid #d8e0ea;
    border-bottom: 0;
    background: #f7f9fc;
  }

  .stock-statement-heading span {
    min-height: 18px;
    display: grid;
    place-items: center;
    border-right: 1px solid #e1e7f0;
    color: #3d4a5c;
    font-size: 7.6px;
    line-height: 1.05;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
    text-align: center;
  }

  .stock-statement-heading span:nth-child(2) {
    justify-content: start;
    padding-left: 5px;
  }

  .stock-statement-heading span:last-child {
    border-right: 0;
  }

  .report-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .doc-summary-grid {
    gap: 6px;
    padding-top: 6px;
  }

  .doc-metric {
    padding: 6px 8px;
    border-radius: 5px;
  }

  .doc-metric span {
    font-size: 8px;
    line-height: 1.05;
    letter-spacing: 0;
  }

  .doc-metric strong {
    margin-top: 2px;
    font-size: 15px;
    line-height: 1;
  }

  .doc-section {
    padding-top: 7px;
    padding-bottom: 4px;
  }

  .doc-section-title {
    margin-bottom: 5px;
  }

  .doc-section-title h3 {
    font-size: 13px;
    line-height: 1.1;
  }

  .doc-section-title span {
    display: none;
  }

  .stock-statement-table th:nth-child(2),
  .stock-statement-table td:nth-child(2) {
    width: 145px;
  }

  .stock-statement-table th:nth-child(1),
  .stock-statement-table td:nth-child(1) {
    width: 44px;
  }

  .stock-statement-table th:nth-last-child(1),
  .stock-statement-table td:nth-last-child(1),
  .stock-statement-table th:nth-last-child(2),
  .stock-statement-table td:nth-last-child(2) {
    width: 48px;
  }

  .stock-statement-table .size-heading,
  .stock-statement-table .size-value {
    width: 30px;
  }

  .stock-statement-table td:nth-child(2) {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .stock-statement-table td:nth-child(2) strong {
    font-size: 8.2px;
    line-height: 1.05;
  }
}
