/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[15].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"src\\app\\layout.tsx","import":"Nunito_Sans","arguments":[{"subsets":["latin"],"weight":["400","500","600","700","800"],"display":"swap","variable":"--font-admin"}],"variableName":"adminFont"} ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/aa1b27f9e325731f-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/c126d80dc21dff90-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/e850464f9dfbb75b-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/357067f10075d686-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/68180864d7f93f02-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/aa1b27f9e325731f-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/c126d80dc21dff90-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/e850464f9dfbb75b-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/357067f10075d686-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/68180864d7f93f02-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/aa1b27f9e325731f-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/c126d80dc21dff90-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/e850464f9dfbb75b-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/357067f10075d686-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/68180864d7f93f02-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/aa1b27f9e325731f-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/c126d80dc21dff90-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/e850464f9dfbb75b-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/357067f10075d686-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/68180864d7f93f02-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/aa1b27f9e325731f-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/c126d80dc21dff90-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/e850464f9dfbb75b-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/357067f10075d686-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/_next/static/media/68180864d7f93f02-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'Nunito Sans Fallback';src: local("Arial");ascent-override: 99.71%;descent-override: 34.82%;line-gap-override: 0.00%;size-adjust: 101.39%
}.__className_6e9594 {font-family: 'Nunito Sans', 'Nunito Sans Fallback';font-style: normal
}.__variable_6e9594 {--font-admin: 'Nunito Sans', 'Nunito Sans Fallback'
}

/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #edf4ff;
  --card: #ffffff;
  --line: #e3e6f0;
  --text: #5a5c69;
  --muted: #858796;
  --brand: #405fc4;
  --brand-dark: #29469d;
  --accent: #f6c23e;
  --ink-strong: #25304a;
  --text-soft: #64748b;
  --muted-foreground: #64748b;
  --stroke: #e3e6f0;
  --stroke-strong: #c8d3ee;
  --sidebar-start: #4e73df;
  --sidebar-end: #224abe;
  --sidebar-text: rgba(255, 255, 255, 0.88);
  --sidebar-muted: rgba(255, 255, 255, 0.45);
  --heading: #3a3b45;
  --shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  --field-bg: #fbfdff;
  --field-border: #b9c7e9;
  --field-border-hover: #7892df;
  --field-focus: rgba(78, 115, 223, 0.2);
  --field-disabled: #f3f5fb;
  --border-color: var(--line);
  --muted-text: var(--muted);
  --soft-shadow: var(--shadow);
  --surface-soft: #f8fafc;
  --text-color: var(--ink-strong);
  --admin-ui-surface: #fff;
  --admin-ui-border: #d9e4f5;
  --admin-ui-border-muted: #dfe8f6;
  --admin-ui-border-soft: #e3eaf6;
  --admin-ui-border-brand: #c8d7ff;
  --admin-ui-text: #5a5c69;
  --admin-ui-heading: #25304a;
  --admin-ui-muted: #64748b;
  --admin-ui-brand: #405fc4;
  --admin-ui-table-head: #475569;
  --admin-ui-neutral: #64748b;
  --admin-ui-muted-tone: #94a3b8;
  --admin-ui-success: #15803d;
  --admin-ui-warning: #b45309;
  --admin-ui-danger: #b91c1c;
  --admin-ui-info: #2563eb;
  --admin-ui-badge-neutral-bg: #eef2ff;
  --admin-ui-badge-neutral-text: #31538f;
  --admin-ui-badge-success-bg: #dcfce7;
  --admin-ui-badge-success-text: #166534;
  --admin-ui-badge-warning-bg: #fef3c7;
  --admin-ui-badge-warning-text: #92400e;
  --admin-ui-badge-danger-bg: #fee2e2;
  --admin-ui-badge-danger-text: #991b1b;
  --admin-ui-badge-info-bg: #dbeafe;
  --admin-ui-badge-info-text: #1d4ed8;
  --admin-ui-badge-muted-bg: #eef2f7;
  --admin-ui-hover-bg: #f8fbff;
  --admin-ui-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
  --admin-ui-shadow-lg: 0 24px 80px rgba(15, 23, 42, 0.24);
  --admin-ui-overlay: rgba(15, 23, 42, 0.46);
  --admin-content-max-width: 100rem;
  --admin-content-padding: 1.5rem;
  --admin-content-gap: 1.5rem;
  --admin-table-cell-y: 0.42rem;
  --admin-table-cell-x: 0.52rem;
  --admin-control-height: 34px;
  --admin-control-radius: 0.48rem;
  --admin-control-padding-y: 0.42rem;
  --admin-control-padding-x: 0.55rem;
  --admin-control-font-size: 0.84rem;
  --admin-compact-button-y: 0.42rem;
  --admin-compact-button-x: 0.68rem;
}

/* DIAN received/outgoing navigation and outgoing invoice workspace. */
.dian-direction-nav {
  align-items: center;
  align-self: flex-start;
  background: #eef2f7;
  border: 1px solid #d8e0ea;
  border-radius: 0.5rem;
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
}

.dian-direction-nav a {
  border-radius: 0.35rem;
  color: #536174;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.44rem 0.8rem;
  text-decoration: none;
}

.dian-direction-nav a:hover,
.dian-direction-nav a:focus-visible {
  color: #174f7a;
  outline: none;
}

.dian-direction-nav a.is-active {
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 10%);
  color: #173d5c;
}

.outgoing-invoices-head .table-toolbar {
  align-items: flex-start;
}

.outgoing-head-actions {
  align-items: flex-end;
  display: grid;
  gap: 0.5rem;
  justify-items: end;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.outgoing-invoices-summary {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
}

.outgoing-invoices-summary > div,
.outgoing-invoices-summary > a {
  border-left: 1px solid #dce3ec;
  display: grid;
  gap: 0.1rem;
  min-width: 104px;
  padding: 0.22rem 0.72rem;
  text-decoration: none;
}

.outgoing-invoices-summary span {
  color: #66758a;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.outgoing-invoices-summary strong {
  color: #25334a;
  font-size: 1.12rem;
}

.outgoing-invoices-summary .is-exact strong {
  color: #17643e;
}

.outgoing-invoices-summary .is-review strong {
  color: #8a5b07;
}

.outgoing-invoices-summary .is-pending strong {
  color: #225b87;
}

.outgoing-invoices-summary .is-unmatched strong {
  color: #596676;
}

.outgoing-invoices-summary .needs-resend strong,
.outgoing-invoices-summary .needs-repair strong {
  color: #a63825;
}

.outgoing-invoices-filters {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(128px, 0.8fr)) repeat(2, minmax(122px, 0.7fr)) auto auto;
  margin-top: 0.85rem;
}

.outgoing-invoices-filters input,
.outgoing-invoices-filters select {
  min-width: 0;
  width: 100%;
}

.outgoing-invoices-filters .table-link {
  text-align: center;
  white-space: nowrap;
}

.panel-card.outgoing-invoices-list {
  padding: 0;
}

.outgoing-invoices-list .table-wrap {
  border: 0;
  border-radius: inherit;
}

.outgoing-pagination {
  align-items: center;
  border-top: 1px solid #dce3ec;
  color: #66758a;
  display: flex;
  font-size: 0.74rem;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
}

.outgoing-pagination > div {
  display: flex;
  gap: 0.4rem;
}

.outgoing-invoices-table {
  min-width: 1240px;
  table-layout: fixed;
}

.outgoing-invoices-table th:nth-child(1) { width: 14%; }
.outgoing-invoices-table th:nth-child(2),
.outgoing-invoices-table th:nth-child(3) { width: 15%; }
.outgoing-invoices-table th:nth-child(4),
.outgoing-invoices-table th:nth-child(5) { width: 9%; }
.outgoing-invoices-table th:nth-child(6) { width: 14%; }
.outgoing-invoices-table th:nth-child(7) { width: 10%; }
.outgoing-invoices-table th:nth-child(8) { width: 9%; }
.outgoing-invoices-table th:nth-child(9) { width: 5%; }

.outgoing-invoices-table td {
  vertical-align: middle;
}

.outgoing-invoices-table td > strong,
.outgoing-invoices-table td > small {
  display: block;
  overflow-wrap: anywhere;
}

.outgoing-invoices-table td > small {
  color: #748196;
  font-size: 0.72rem;
  margin-top: 0.12rem;
}

.outgoing-fiscal-relation > strong,
.outgoing-fiscal-relation > small {
  display: block;
  overflow-wrap: anywhere;
}

.outgoing-fiscal-relation > small {
  color: #748196;
  font-size: 0.72rem;
  margin-top: 0.12rem;
}

.outgoing-money,
.outgoing-number {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.outgoing-money {
  font-weight: 800;
}

.outgoing-status-pill,
.outgoing-match-pill,
.outgoing-source-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.28rem 0.52rem;
  white-space: nowrap;
}

.outgoing-source-pill {
  margin-left: 0.25rem;
  margin-top: 0.22rem;
}

.outgoing-source-pill.needs-resend,
.outgoing-source-pill.needs-repair {
  background: #fff0ed;
  color: #a63825;
}

.outgoing-source-alert {
  align-items: center;
  background: #fff7ed;
  border-left: 3px solid #e77716;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.8rem 1rem;
}

.outgoing-source-alert strong,
.outgoing-source-alert p,
.outgoing-source-alert small {
  display: block;
}

.outgoing-source-alert p {
  margin: 0.18rem 0 0;
}

.outgoing-source-alert small {
  color: #7a4b16;
  max-width: 36rem;
}

.outgoing-source-alert-action {
  align-items: flex-end;
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

.outgoing-status-pill {
  margin-top: 0.22rem;
}

.outgoing-status-pill.is-neutral {
  background: #eef1f5;
  color: #526071;
}

.outgoing-status-pill.is-pending,
.outgoing-match-pill.is-review {
  background: #fff3d6;
  color: #8a5b07;
}

.outgoing-status-pill.is-info {
  background: #e8f2fb;
  color: #225b87;
}

.outgoing-status-pill.is-error {
  background: #fff0ed;
  color: #a63825;
}

.outgoing-match-pill.is-exact {
  background: #e4f7ec;
  color: #17643e;
}

.outgoing-match-pill.is-pending {
  background: #e8f2fb;
  color: #225b87;
}

.outgoing-match-pill.is-unmatched {
  background: #edf0f4;
  color: #596676;
}

.outgoing-match-pill.is-credited {
  background: #fbe9e7;
  color: #9f2f24;
}

.outgoing-match-pill.is-partial-credit {
  background: #fff3d6;
  color: #8a5b07;
}

.outgoing-match-pill.is-adjustment {
  background: #e8f4ef;
  color: #17643e;
}

.outgoing-invoices-table .invoice-type-pill {
  display: flex;
}

.outgoing-invoice-modal-overlay {
  padding: 1rem;
}

.modal-card.outgoing-invoice-modal {
  max-height: calc(100vh - 2rem);
  overflow: auto;
  width: min(1380px, calc(100vw - 2rem));
}

.modal-head.outgoing-invoice-modal-head {
  align-items: flex-start;
  position: sticky;
  top: 0;
  z-index: 4;
}

.outgoing-invoice-title-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin-top: 0.28rem;
}

.outgoing-invoice-title-meta > span:first-child {
  color: #66758a;
  font-size: 0.78rem;
}

.outgoing-invoice-title-meta .outgoing-status-pill {
  margin-top: 0;
}

.outgoing-invoice-title-meta > strong {
  color: #25334a;
  font-size: 0.92rem;
}

.outgoing-invoice-facts {
  border-bottom: 1px solid #e0e6ee;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.outgoing-invoice-facts > div {
  border-right: 1px solid #e0e6ee;
  min-width: 0;
  padding: 0.65rem 0.8rem;
}

.outgoing-invoice-facts > div:last-child {
  border-right: 0;
}

.outgoing-invoice-facts span,
.outgoing-invoice-facts small {
  color: #6c788a;
  display: block;
  font-size: 0.7rem;
}

.outgoing-invoice-facts span {
  font-weight: 800;
  margin-bottom: 0.18rem;
  text-transform: uppercase;
}

.outgoing-invoice-facts strong,
.outgoing-invoice-facts a {
  color: #26364d;
  display: block;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.outgoing-invoice-links a {
  color: #176ba0;
  font-weight: 800;
  margin-bottom: 0.12rem;
  text-decoration: none;
}

.outgoing-party-comparison {
  border-bottom: 1px solid #d8e0e9;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.outgoing-party-comparison > div {
  min-width: 0;
  padding: 0.72rem 0.82rem;
}

.outgoing-party-comparison > div + div {
  border-left: 1px solid #d8e0e9;
}

.outgoing-party-comparison .eyebrow,
.outgoing-correction-head .eyebrow {
  margin: 0 0 0.12rem;
}

.outgoing-party-comparison h3,
.outgoing-correction-head h3 {
  color: #26364d;
  font-size: 0.92rem;
  margin: 0 0 0.32rem;
}

.outgoing-party-comparison > div > strong,
.outgoing-party-comparison > div > small,
.outgoing-party-comparison > div > span {
  display: block;
}

.outgoing-party-comparison > div > strong {
  color: #26364d;
  font-size: 0.84rem;
}

.outgoing-party-comparison > div > small,
.outgoing-party-comparison > div > span {
  color: #6b788b;
  font-size: 0.72rem;
  margin-top: 0.12rem;
}

.outgoing-candidate-parties {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.outgoing-candidate-parties > div {
  min-width: 0;
}

.outgoing-candidate-parties span,
.outgoing-field-label {
  color: #69768a;
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.outgoing-candidate-parties strong,
.outgoing-candidate-parties small {
  display: block;
  overflow-wrap: anywhere;
}

.outgoing-candidate-parties strong {
  color: #293a52;
  font-size: 0.8rem;
  margin-top: 0.12rem;
}

.outgoing-candidate-parties small {
  color: #6d798b;
  font-size: 0.7rem;
}

.outgoing-candidate-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  margin-top: 0.45rem;
}

.outgoing-candidate-links a {
  color: #176ba0;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.outgoing-match-reasons {
  border-bottom: 1px solid #e0e6ee;
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem 0.8rem;
}

.outgoing-match-reasons.is-exact { background: #f0faf4; }
.outgoing-match-reasons.is-review { background: #fffaed; }
.outgoing-match-reasons.is-pending { background: #eef7fd; }
.outgoing-match-reasons.is-unmatched { background: #f6f7f9; }

.outgoing-match-reasons > strong {
  color: #26364d;
  font-size: 0.86rem;
}

.outgoing-match-reasons ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin: 0;
  padding-left: 1rem;
}

.outgoing-match-reasons li,
.outgoing-match-reasons p,
.outgoing-match-reasons > div span {
  color: #566579;
  font-size: 0.76rem;
}

.outgoing-match-reasons > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.outgoing-correction-section {
  background: #fbfcfe;
  border-bottom: 1px solid #d8e0e9;
  padding: 0.78rem 0.82rem;
}

.outgoing-correction-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.outgoing-correction-head .outgoing-candidate-links {
  justify-content: flex-end;
  margin-top: 0;
}

.outgoing-correction-grid {
  align-items: start;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.75fr);
}

.outgoing-correction-lines {
  border-top: 1px solid #dfe5ed;
}

.outgoing-correction-labels,
.outgoing-correction-row {
  align-items: center;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(190px, 0.85fr);
}

.outgoing-correction-labels {
  color: #6a7789;
  font-size: 0.67rem;
  font-weight: 800;
  padding: 0.38rem 0.42rem;
  text-transform: uppercase;
}

.outgoing-correction-row {
  border-top: 1px solid #e3e8ef;
  padding: 0.42rem;
}

.outgoing-correction-row > div,
.outgoing-correction-row select,
.outgoing-correction-row input {
  min-width: 0;
}

.outgoing-split-allocations,
.outgoing-split-price-review {
  display: grid;
  gap: 0.42rem;
}

.outgoing-split-allocation {
  align-items: center;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: minmax(0, 1fr) 88px 28px;
}

.outgoing-split-allocation input {
  text-align: right;
}

.outgoing-remove-allocation {
  align-items: center;
  background: #fff;
  border: 1px solid #e1a7a7;
  color: #a83232;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.outgoing-remove-allocation:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.outgoing-add-allocation {
  justify-self: start;
}

.outgoing-allocation-price + .outgoing-allocation-price {
  border-top: 1px dashed #d8e0e9;
  padding-top: 0.42rem;
}

.outgoing-correction-row strong,
.outgoing-correction-row small {
  display: block;
  overflow-wrap: anywhere;
}

.outgoing-correction-row strong {
  color: #293a52;
  font-size: 0.77rem;
}

.outgoing-correction-row small {
  color: #6f7b8e;
  font-size: 0.69rem;
}

.outgoing-price-toggle {
  align-items: center;
  color: #4f5e72;
  display: grid;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.42rem;
  grid-template-columns: auto minmax(0, 1fr);
}

.outgoing-price-toggle input {
  margin: 0;
  width: auto;
}

.outgoing-price-review {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
}

.outgoing-price-comparison {
  background: #f6f8fb;
  border: 1px solid #dce3ec;
  display: grid;
  gap: 0.28rem 0.55rem;
  grid-template-columns: 1fr 1fr;
  padding: 0.42rem 0.5rem;
}

.outgoing-price-comparison.is-different {
  background: #fff8ed;
  border-color: #efc98f;
}

.outgoing-price-comparison.is-equal {
  background: #eff9f3;
  border-color: #a9d7b8;
}

.outgoing-price-comparison div {
  min-width: 0;
}

.outgoing-price-comparison span,
.outgoing-price-comparison strong {
  display: block;
  overflow-wrap: anywhere;
}

.outgoing-price-comparison span {
  color: #68768a;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.outgoing-price-comparison strong {
  color: #273951;
  font-size: 0.72rem;
}

.outgoing-price-comparison > small {
  color: #69788b;
  font-size: 0.65rem;
  grid-column: 1 / -1;
}

.outgoing-price-empty {
  color: #6f7b8e;
  font-size: 0.69rem;
}

.outgoing-fiscal-party-editor {
  display: grid;
  gap: 0.48rem;
  min-width: 0;
}

.outgoing-fiscal-party-editor > div > small {
  color: #6d798b;
  display: block;
  font-size: 0.71rem;
  margin-top: 0.12rem;
}

.outgoing-invoice-third-party-action {
  align-items: start;
  border-left: 3px solid #2f7da9;
  display: grid;
  gap: 0.2rem;
  padding: 0.4rem 0.5rem;
}

.outgoing-invoice-third-party-action > small {
  color: #627186;
  font-size: 0.69rem;
}

.outgoing-invoice-third-party-action > .primary-button {
  justify-self: start;
}

.outgoing-invoice-third-party-confirm {
  display: grid;
  gap: 0.5rem;
}

.outgoing-invoice-third-party-summary {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(100px, 0.8fr) minmax(54px, 0.35fr);
}

.outgoing-invoice-third-party-summary > div {
  min-width: 0;
}

.outgoing-invoice-third-party-summary span,
.outgoing-invoice-third-party-summary strong {
  display: block;
  overflow-wrap: anywhere;
}

.outgoing-invoice-third-party-summary span {
  color: #677589;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.outgoing-invoice-third-party-summary strong {
  color: #273950;
  font-size: 0.76rem;
}

.outgoing-invoice-third-party-confirm p {
  color: #536277;
  font-size: 0.71rem;
  margin: 0;
}

.outgoing-invoice-third-party-confirm .table-row-actions {
  justify-content: flex-start;
}

.outgoing-third-party-search {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.outgoing-third-party-search input {
  min-width: 0;
  width: 100%;
}

.outgoing-selected-third-party {
  border-left: 3px solid #2f7da9;
  padding: 0.35rem 0.5rem;
}

.outgoing-selected-third-party span,
.outgoing-selected-third-party strong,
.outgoing-selected-third-party small {
  display: block;
}

.outgoing-selected-third-party span {
  color: #647388;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.outgoing-selected-third-party strong {
  color: #263a53;
  font-size: 0.78rem;
}

.outgoing-selected-third-party small {
  color: #6b788b;
  font-size: 0.7rem;
}

.outgoing-third-party-results {
  border: 1px solid #d6dee8;
  max-height: 180px;
  overflow-y: auto;
}

.outgoing-third-party-results button {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e3e8ef;
  cursor: pointer;
  display: block;
  padding: 0.4rem 0.5rem;
  text-align: left;
  width: 100%;
}

.outgoing-third-party-results button:hover,
.outgoing-third-party-results button:focus-visible {
  background: #f2f7fb;
  outline: none;
}

.outgoing-third-party-results strong,
.outgoing-third-party-results small {
  display: block;
}

.outgoing-third-party-results strong {
  color: #293a52;
  font-size: 0.76rem;
}

.outgoing-third-party-results small {
  color: #6d798b;
  font-size: 0.68rem;
}

.outgoing-third-party-empty {
  background: #fff8e8;
  border-left: 3px solid #c58a19;
  padding: 0.5rem 0.55rem;
}

.outgoing-third-party-empty strong,
.outgoing-third-party-empty p {
  color: #674a15;
  font-size: 0.74rem;
  margin: 0;
}

.outgoing-third-party-empty p {
  margin: 0.18rem 0 0.45rem;
}

.outgoing-correction-notes span {
  color: #59677b;
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.outgoing-correction-notes textarea {
  min-height: 58px;
  resize: vertical;
  width: 100%;
}

.outgoing-correction-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.6rem;
}

.outgoing-correction-confirm {
  align-items: center;
  background: #fff3d6;
  border-left: 3px solid #c48612;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 0.5rem 0.58rem;
  width: 100%;
}

.outgoing-correction-confirm strong,
.outgoing-correction-confirm span {
  color: #674a15;
  display: block;
}

.outgoing-correction-confirm strong {
  font-size: 0.78rem;
}

.outgoing-correction-confirm span {
  font-size: 0.7rem;
}

.outgoing-lines-section {
  padding: 0.8rem;
}

.outgoing-lines-section .section-heading {
  margin-bottom: 0.55rem;
}

.outgoing-lines-section .section-heading h3 {
  font-size: 0.96rem;
  margin: 0.1rem 0 0;
}

.outgoing-lines-table {
  min-width: 980px;
}

.outgoing-lines-table th:nth-child(1) { width: 4%; }
.outgoing-lines-table th:nth-child(2) { width: 24%; }
.outgoing-lines-table th:nth-child(3) { width: 8%; }
.outgoing-lines-table th:nth-child(4) { width: 13%; }
.outgoing-lines-table th:nth-child(5) { width: 29%; }
.outgoing-lines-table th:nth-child(6) { width: 9%; }
.outgoing-lines-table th:nth-child(7) { width: 13%; }

.outgoing-lines-table td > strong,
.outgoing-lines-table td > small,
.outgoing-allocation-line strong,
.outgoing-allocation-line small {
  display: block;
}

.outgoing-allocation-line + .outgoing-allocation-line {
  border-top: 1px dashed #d9e0e9;
  margin-top: 0.25rem;
  padding-top: 0.25rem;
}

.outgoing-line-empty {
  color: #8a5b07;
  font-size: 0.76rem;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .outgoing-invoices-head .table-toolbar {
    display: grid;
    gap: 0.75rem;
  }

  .outgoing-head-actions {
    justify-items: stretch;
  }

  .outgoing-invoices-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .outgoing-invoice-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outgoing-correction-grid {
    grid-template-columns: 1fr;
  }

  .outgoing-invoice-facts > div:nth-child(2) {
    border-right: 0;
  }

  .outgoing-invoice-facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e0e6ee;
  }
}

@media (max-width: 680px) {
  .dian-direction-nav {
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dian-direction-nav a {
    text-align: center;
  }

  .outgoing-invoices-summary,
  .outgoing-invoices-filters,
  .outgoing-invoice-facts,
  .outgoing-party-comparison,
  .outgoing-candidate-parties {
    grid-template-columns: 1fr;
  }

  .outgoing-party-comparison > div + div {
    border-left: 0;
    border-top: 1px solid #d8e0e9;
  }

  .outgoing-correction-labels {
    display: none;
  }

  .outgoing-correction-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .outgoing-correction-head {
    display: grid;
    gap: 0.35rem;
  }

  .outgoing-correction-head .outgoing-candidate-links {
    justify-content: flex-start;
  }

  .outgoing-correction-confirm {
    grid-template-columns: 1fr 1fr;
  }

  .outgoing-invoice-third-party-summary {
    grid-template-columns: 1fr 1fr;
  }

  .outgoing-invoice-third-party-summary > div:first-child {
    grid-column: 1 / -1;
  }

  .outgoing-correction-confirm > div {
    grid-column: 1 / -1;
  }

  .outgoing-invoices-summary > div,
  .outgoing-invoices-summary > a {
    align-items: center;
    grid-template-columns: 1fr auto;
  }

  .outgoing-source-alert {
    align-items: flex-start;
    display: grid;
  }

  .outgoing-source-alert-action {
    justify-items: stretch;
  }

  .outgoing-pagination {
    align-items: stretch;
    display: grid;
    gap: 0.5rem;
  }

  .outgoing-invoice-facts > div {
    border-bottom: 1px solid #e0e6ee;
    border-right: 0;
  }

  .outgoing-invoice-modal-overlay {
    padding: 0.4rem;
  }

  .modal-card.outgoing-invoice-modal {
    max-height: calc(100vh - 0.8rem);
    width: calc(100vw - 0.8rem);
  }

  .modal-head.outgoing-invoice-modal-head {
    display: grid;
    gap: 0.55rem;
  }
}

.admin-permissions-page {
  display: grid;
  gap: 12px;
}

.admin-permissions-head .primary-button,
.admin-permissions-toolbar .primary-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-permissions-head .primary-button svg {
  width: 16px;
  height: 16px;
}

.admin-permissions-message,
.admin-permissions-lock {
  margin-top: 10px;
  border: 1px solid #f6c9a7;
  background: #fff8ed;
  color: #9a4b0b;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
}

.admin-permissions-message.is-ok {
  border-color: #b8e7c8;
  background: #effcf4;
  color: #126b3b;
}

.admin-permissions-toolbar {
  align-items: end;
}

.admin-permissions-toolbar select {
  min-width: 260px;
  height: 38px;
  border: 1px solid #bfd0f5;
  border-radius: 7px;
  color: #12315f;
  font-weight: 700;
  padding: 0 11px;
  background: #fff;
}

.admin-users-table td {
  vertical-align: middle;
}

.admin-permissions-table-wrap {
  max-height: calc(100vh - 330px);
  overflow: auto;
}

.admin-permissions-table {
  min-width: 1120px;
}

.admin-permissions-table th,
.admin-permissions-table td {
  white-space: normal;
}

.admin-permissions-table th:not(:first-child),
.admin-permissions-table td:not(:first-child) {
  text-align: center;
  width: 86px;
}

.admin-permissions-table th:first-child,
.admin-permissions-table td:first-child {
  min-width: 330px;
}

.admin-permissions-group-row td {
  background: #eef4ff;
  color: #3158bd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-permission-toggle {
  position: relative;
  display: inline-flex;
  width: 36px;
  height: 20px;
  cursor: pointer;
}

.admin-permission-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.admin-permission-toggle span {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #dce4f1;
  border: 1px solid #c8d3e4;
  transition: background .15s ease, border-color .15s ease;
}

.admin-permission-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .18);
  transition: transform .15s ease;
}

.admin-permission-toggle input:checked + span {
  background: #4f73df;
  border-color: #4f73df;
}

.admin-permission-toggle input:checked + span::after {
  transform: translateX(16px);
}

.admin-permission-toggle input:disabled + span {
  opacity: .55;
  cursor: not-allowed;
}

.status-pill--neutral {
  background: #eef2ff;
  color: #31538f;
}

.status-pill--success {
  background: #dcfce7;
  color: #166534;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-admin), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

textarea,
select,
button {
  font: inherit;
}

input:not([type]),
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea {
  border: 1px solid var(--field-border);
  background-color: var(--field-bg);
  color: var(--ink-strong);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

select {
  appearance: none;
  padding-right: 2.35rem !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #3f5fc9 50%),
    linear-gradient(135deg, #3f5fc9 50%, transparent 50%),
    linear-gradient(to right, rgba(78, 115, 223, 0.18), rgba(78, 115, 223, 0.18));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 2.1rem) 50%;
  background-size:
    6px 6px,
    6px 6px,
    1px 60%;
  background-repeat: no-repeat;
}

select[multiple],
select[size]:not([size="1"]) {
  appearance: auto;
  padding-right: 0.75rem !important;
  background-image: none;
}

input:not([type]):hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="date"]:hover,
select:hover,
textarea:hover {
  border-color: var(--field-border-hover);
  background-color: #ffffff;
}

input:not([type]):focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px var(--field-focus);
}

input:disabled,
select:disabled,
textarea:disabled,
input[readonly],
textarea[readonly] {
  cursor: not-allowed;
  color: var(--muted);
  border-color: var(--line);
  background-color: var(--field-disabled);
  box-shadow: none;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(15, 36, 77, 0.05), rgba(22, 149, 211, 0.08)),
    #edf4ff;
}

.login-shell {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 0.8fr);
  overflow: hidden;
  border: 1px solid #d9e4f5;
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
}

.login-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  align-content: space-between;
  gap: 2rem;
  padding: 2rem;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(13, 45, 95, 0.98), rgba(20, 80, 148, 0.96) 58%, rgba(15, 115, 170, 0.92)),
    #123a72;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 16px);
  opacity: 0.22;
}

.login-visual-brand,
.login-visual-card {
  position: relative;
  z-index: 1;
}

.login-visual-brand {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.login-visual-brand img {
  width: min(260px, 100%);
  height: auto;
  object-fit: contain;
}

.login-visual-brand span {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 800;
}

.login-visual-card {
  width: min(100%, 430px);
  display: grid;
  gap: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 45px rgba(3, 16, 42, 0.18);
}

.login-visual-card p {
  margin: 0;
  color: #9ce2ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-visual-card strong {
  color: #fff;
  font-size: 1.12rem;
  line-height: 1.28;
}

.login-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.login-visual-grid span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.42rem;
  color: #e8f7ff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 900;
}

.login-brand-panel {
  display: grid;
  justify-items: start;
}

.login-brand-panel img {
  width: min(245px, 100%);
  height: auto;
  object-fit: contain;
}

.login-card,
.panel-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  box-shadow: var(--shadow);
}

.login-card {
  width: min(100%, 460px);
  padding: 32px;
  display: grid;
  gap: 20px;
}

.login-card--admin {
  width: 100%;
  align-content: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 2.2rem;
}

.login-card--admin .field input {
  min-height: 42px;
}

.login-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
}

.login-submit-button span {
  display: grid;
  place-items: center;
  width: 1.08rem;
  height: 1.08rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  line-height: 1;
}

.login-footnote {
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.form-card {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span,
.eyebrow {
  font-family: var(--font-admin), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 800;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 14px 16px;
  background: white;
  color: var(--text);
}

.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 14px 16px;
  background: white;
  color: var(--text);
}

.muted {
  color: var(--muted);
  line-height: 1.5;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.table-link {
  align-items: center;
  appearance: none;
  border-radius: 0.35rem;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 0.38rem;
  justify-content: center;
  min-height: 36px;
  padding: 0.52rem 0.78rem;
  text-decoration: none;
}

.primary-button {
  background: var(--brand);
  color: white;
  border: 1px solid var(--brand);
}

.secondary-button {
  background: #fff;
  border: 1px solid #c8d7ff;
  color: #31538f;
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.secondary-button--tiny,
.danger-button--tiny {
  border-radius: 999px;
  font-size: 11px;
  min-height: 28px;
  padding: 5px 9px;
}

.ghost-button {
  background: #64748b;
  color: white;
  border: 1px solid #64748b;
}

.compact-action {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.65rem;
  white-space: nowrap;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 15.5rem 1fr;
}

.admin-sidebar {
  background: linear-gradient(180deg, var(--sidebar-start) 10%, var(--sidebar-end) 100%);
  color: var(--sidebar-text);
  padding: 0.75rem 0 1.25rem;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.admin-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.1rem;
  padding: 0.55rem 1rem 0.45rem;
  margin-bottom: 0.35rem;
  font-weight: 800;
  color: white;
}

.admin-brand-mark {
  width: 11.2rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  font-size: 1.15rem;
  overflow: hidden;
}

.admin-brand-mark img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.admin-nav-group {
  margin-top: 0.55rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand + .admin-nav-group {
  border-top: 0;
}

.admin-nav-heading {
  padding: 0.7rem 1rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
}

.admin-nav-accordion {
  padding: 0.15rem 0.45rem 0.2rem;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.admin-nav-accordion + .admin-nav-accordion {
  margin-top: 0.12rem;
}

.admin-dashboard-link {
  margin: 0.15rem 0.45rem 0.45rem;
  padding-left: 0.55rem;
}

.admin-nav-accordion.is-open {
  background: rgba(9, 22, 62, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.admin-nav-heading-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-left: 0.25rem solid transparent;
  border-radius: 0;
  color: var(--sidebar-text);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 0.72rem;
  line-height: 1.15;
  min-height: 2.45rem;
  padding: 0.62rem 0.55rem;
  text-align: left;
  width: 100%;
}

.admin-nav-heading-button:hover,
.admin-nav-accordion.has-active .admin-nav-heading-button {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.admin-nav-accordion.has-active .admin-nav-heading-button {
  border-left-color: #f6c23e;
}

.admin-nav-heading-button > span:nth-child(2) {
  flex: 1 1;
}

.admin-nav-chevron {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.7rem;
  font-weight: 800;
  transform: rotate(-90deg);
  transition: transform 0.16s ease;
}

.admin-nav-accordion.is-open .admin-nav-chevron {
  transform: rotate(0deg);
}

.admin-nav-accordion .admin-nav {
  gap: 0.04rem;
  padding: 0.12rem 0 0.28rem;
}

.admin-nav-section-label {
  color: rgba(255, 255, 255, 0.56);
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 0.72rem 0.7rem 0.28rem 1.15rem;
  text-transform: uppercase;
}

.admin-nav-section-label:first-child {
  padding-top: 0.42rem;
}

.admin-nav {
  display: grid;
  gap: 0.1rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 2.35rem;
  padding: 0.6rem 0.55rem 0.6rem 1.1rem;
  border-left: 0.25rem solid transparent;
  color: var(--sidebar-text);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.15;
}

.admin-nav-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 1.55rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0.95;
}

.admin-nav-link__icon svg {
  width: 1rem;
  height: 1rem;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.admin-nav-link.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-left-color: #f6c23e;
  color: #fff;
}

.admin-nav-link.is-active .admin-nav-link__icon {
  background: rgba(246, 194, 62, 0.2);
  color: #ffe7a3;
}

.admin-nav-sublink {
  align-items: center;
  display: flex;
  gap: 0.62rem;
  min-height: 2.2rem;
  padding: 0.45rem 0.75rem 0.45rem 1.55rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  border-left: 0.25rem solid transparent;
}

.admin-nav-sublink .admin-nav-link__icon {
  width: 1.28rem;
  height: 1.28rem;
  flex-basis: 1.28rem;
  border-radius: 0.42rem;
  opacity: 0.72;
}

.admin-nav-sublink .admin-nav-link__icon svg {
  width: 0.82rem;
  height: 0.82rem;
}

.admin-nav-sublink:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-nav-sublink.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.admin-main {
  display: grid;
  grid-template-rows: auto 1fr;
}

.admin-header {
  background: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 0.15rem 0.3rem 0 rgba(58, 59, 69, 0.08);
}

.admin-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1;
  gap: 1rem;
}

.admin-header h1,
.admin-header-title,
.login-card h1,
.panel-card h2 {
  margin: 0.15rem 0 0;
  color: var(--heading);
}

.admin-header h1,
.admin-header-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-header-date {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
}

.admin-quick-payment-button {
  white-space: nowrap;
}

.quick-payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.48);
}

.quick-payment-modal {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.quick-payment-header,
.quick-payment-list-head,
.quick-payment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quick-payment-header h2,
.quick-payment-panel h3 {
  margin: 0;
}

.quick-payment-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 14px;
}

.quick-payment-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quick-payment-panel label {
  display: grid;
  gap: 6px;
}

.quick-payment-panel label span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.quick-payment-dropzone {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 110px;
  align-content: center;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
}

.quick-payment-dropzone.has-file {
  border-color: var(--brand);
  background: #f0fdf4;
}

.quick-payment-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.quick-payment-dropzone strong {
  color: var(--text);
}

.quick-payment-ocr-box {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 13px;
}

.quick-payment-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.quick-payment-notes textarea {
  min-height: 68px;
}

.quick-payment-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

@media (max-width: 900px) {
  .quick-payment-grid {
    grid-template-columns: 1fr;
  }

  .quick-payment-header,
  .quick-payment-list-head,
  .quick-payment-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.store-chat-alert-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.store-chat-alert {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, auto);
  align-items: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  border: 1px solid #dbe7f5;
  border-radius: 999px;
  padding: 0.35rem 0.75rem 0.35rem 0.42rem;
  color: #172b55;
  background: #f8fbff;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 8px 22px rgba(23, 43, 85, 0.08);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.store-chat-alert:hover {
  border-color: #9ccff0;
  box-shadow: 0 10px 26px rgba(23, 43, 85, 0.12);
  transform: translateY(-1px);
}

.store-chat-alert.has-pending {
  border-color: #fecaca;
  background: #fff7f7;
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.15);
  animation: chatBellPulse 1.8s ease-in-out infinite;
}

.store-chat-alert-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #1d4f91;
  background: #eaf4ff;
}

.store-chat-alert.has-pending .store-chat-alert-icon {
  color: #fff;
  background: #dc2626;
}

.store-chat-alert-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.store-chat-alert-text {
  display: grid;
  min-width: 0;
  line-height: 1.05;
}

.store-chat-alert-text strong {
  color: #172b55;
  font-size: 0.78rem;
}

.store-chat-alert-text small {
  max-width: 10rem;
  overflow: hidden;
  color: #64748b;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-chat-alert em {
  position: absolute;
  top: -0.38rem;
  right: -0.25rem;
  display: grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #dc2626;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.store-chat-sound-button {
  display: grid;
  place-items: center;
  width: 2.32rem;
  height: 2.32rem;
  border: 1px solid #dbe7f5;
  border-radius: 999px;
  color: #1d4f91;
  background: #f8fbff;
  box-shadow: 0 8px 22px rgba(23, 43, 85, 0.08);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.store-chat-sound-button:hover {
  border-color: #9ccff0;
  transform: translateY(-1px);
}

.store-chat-sound-button.is-ready {
  border-color: #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.store-chat-sound-button.is-muted {
  border-color: #e5e7eb;
  color: #6b7280;
  background: #f9fafb;
}

.store-chat-sound-button svg {
  width: 1rem;
  height: 1rem;
}

@keyframes chatBellPulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

.admin-content {
  padding: var(--admin-content-padding);
  display: grid;
  gap: var(--admin-content-gap);
  background: linear-gradient(180deg, #edf4ff 0%, #f6f9ff 100%);
}

.admin-content > * {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--admin-content-max-width);
  min-width: 0;
  width: 100%;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.panel-card {
  padding: 1rem;
  border-left: 0.25rem solid var(--brand);
  min-width: 0;
  max-width: 100%;
}

.panel-card p {
  margin-bottom: 0;
}

.panel-card > .eyebrow {
  margin: 0 0 0.2rem;
}

.panel-card > h3 {
  margin: 0;
  color: var(--heading);
  font-size: 1rem;
  line-height: 1.24;
}

.panel-card > h3 + .table-helper,
.panel-card > h2 + .table-helper,
.panel-card > .eyebrow + .table-helper {
  margin-top: 0.15rem;
}

.dashboard-stack {
  display: grid;
  gap: 1rem;
}

.operations-dashboard {
  display: grid;
  gap: 0.85rem;
}

.ops-hero,
.ops-card,
.ops-alert,
.ops-kpi {
  background: #fff;
  border: 1px solid #d7e2f3;
  border-radius: 0.55rem;
  box-shadow: 0 0.45rem 1.4rem rgba(28, 48, 87, 0.08);
}

.ops-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.4rem;
  padding: 0.85rem 1rem;
  border-top: 0.2rem solid #1d4ed8;
}

.ops-hero--administracion {
  border-top-color: #0f766e;
}

.ops-hero--gerencia {
  border-top-color: #7c3aed;
}

.ops-hero--administracion .eyebrow,
.ops-hero--administracion + .ops-kpi-grid .ops-kpi__label {
  color: #0f766e;
}

.ops-hero--gerencia .eyebrow,
.ops-hero--gerencia + .ops-kpi-grid .ops-kpi__label {
  color: #6d28d9;
}

.ops-hero h1,
.ops-card h2 {
  margin: 0;
  color: #101b33;
  font-size: 1.05rem;
  line-height: 1.2;
}

.ops-hero p:not(.eyebrow) {
  margin: 0.18rem 0 0;
  max-width: 58rem;
  color: #63708a;
  font-size: 0.82rem;
}

.ops-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.ops-button,
.ops-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2rem;
  border: 1px solid #b9cdf4;
  border-radius: 0.4rem;
  padding: 0.38rem 0.65rem;
  color: #174592;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.ops-button--primary,
.ops-action-link {
  border-color: #2563eb;
  color: #fff;
  background: #2563eb;
}

.ops-icon {
  width: 0.92rem;
  height: 0.92rem;
  flex: 0 0 auto;
}

.ops-alert {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border-color: #fecaca;
  background: #fff7f7;
  color: #991b1b;
}

.ops-alert span {
  color: #7f1d1d;
  font-size: 0.78rem;
}

.ops-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.ops-kpi {
  position: relative;
  display: grid;
  gap: 0.22rem;
  min-height: 6.1rem;
  padding: 0.78rem 0.85rem;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.ops-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.22rem;
  background: #64748b;
}

.ops-kpi--success::before { background: #16a34a; }
.ops-kpi--warning::before { background: #d97706; }
.ops-kpi--danger::before { background: #dc2626; }
.ops-kpi--neutral::before { background: #2563eb; }

.ops-kpi__label,
.ops-card-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  color: #4f6fe8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ops-kpi strong {
  color: #0f172a;
  font-size: 1.6rem;
  line-height: 1;
}

.ops-kpi small,
.ops-kpi em {
  color: #63708a;
  font-size: 0.74rem;
  font-style: normal;
  line-height: 1.25;
}

.ops-kpi em {
  justify-self: start;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  background: #eef4ff;
  color: #174592;
  font-weight: 800;
}

.ops-main-grid,
.ops-chart-grid {
  display: grid;
  gap: 0.75rem;
}

.ops-main-grid {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.32fr);
}

.ops-chart-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-side-stack {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.ops-card {
  min-width: 0;
  padding: 0.75rem;
}

.ops-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.ops-card-head span {
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.ops-task-table {
  display: grid;
}

.ops-task-table__head,
.ops-task-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) 8rem 6rem;
  align-items: center;
  gap: 0.65rem;
}

.ops-task-table__head {
  min-height: 2rem;
  border-radius: 0.38rem 0.38rem 0 0;
  padding: 0 0.55rem;
  color: #fff;
  background: #475569;
  font-size: 0.72rem;
  font-weight: 800;
}

.ops-task-row {
  min-height: 3.6rem;
  border-bottom: 1px solid #dbe5f3;
  padding: 0.48rem 0.55rem;
}

.ops-task-row:last-child {
  border-bottom: 0;
}

.ops-task-row strong,
.ops-link-list strong {
  display: block;
  color: #14213d;
  font-size: 0.82rem;
  line-height: 1.2;
}

.ops-task-row small,
.ops-link-list span,
.ops-task-area {
  color: #667085;
  font-size: 0.73rem;
  line-height: 1.25;
}

.ops-task-area {
  font-weight: 800;
}

.ops-task-state {
  display: grid;
  justify-items: start;
  gap: 0.18rem;
}

.ops-priority {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  background: #edf2f7;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: capitalize;
}

.ops-priority--alta {
  background: #fee2e2;
  color: #b91c1c;
}

.ops-priority--media {
  background: #fef3c7;
  color: #92400e;
}

.ops-priority--baja {
  background: #dcfce7;
  color: #166534;
}

.ops-bars {
  display: grid;
  gap: 0.45rem;
}

.ops-bar-row {
  display: grid;
  grid-template-columns: minmax(5rem, 8rem) minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: 0.45rem;
}

.ops-bar-row span,
.ops-bar-row strong {
  color: #334155;
  font-size: 0.73rem;
  font-weight: 800;
}

.ops-bar-row strong {
  text-align: right;
}

.ops-bar-track {
  height: 0.45rem;
  border-radius: 999px;
  background: #edf2fb;
  overflow: hidden;
}

.ops-bar-track i {
  display: block;
  width: var(--ops-bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d4ed8, #23a6d5);
}

.ops-load-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.ops-load-grid div {
  display: grid;
  gap: 0.15rem;
  border: 1px solid #dce7f7;
  border-radius: 0.45rem;
  padding: 0.52rem;
  background: #f8fbff;
}

.ops-load-grid strong {
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1;
}

.ops-load-grid span {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 700;
}

.ops-link-list {
  display: grid;
  gap: 0.38rem;
}

.ops-link-list a {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #dbe5f3;
  border-radius: 0.42rem;
  padding: 0.45rem 0.55rem;
  text-decoration: none;
}

.ops-empty {
  margin: 0;
  color: #667085;
  font-size: 0.8rem;
}

@media (max-width: 1400px) {
  .ops-kpi-grid,
  .ops-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ops-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-hero__actions {
    justify-content: flex-start;
  }

  .ops-kpi-grid,
  .ops-chart-grid,
  .ops-load-grid {
    grid-template-columns: 1fr;
  }

  .ops-task-table__head {
    display: none;
  }

  .ops-task-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.products-header-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.products-header-card h1 {
  margin: 0.1rem 0 0.25rem;
  color: var(--heading);
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.products-header-card p {
  margin: 0;
  color: var(--muted);
}

.simple-list {
  display: grid;
  gap: 0.5rem;
}

.simple-list > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.simple-list > div:last-child {
  border-bottom: 0;
}

.simple-list strong {
  color: var(--heading);
}

.simple-list span {
  color: var(--muted);
  text-align: right;
}

.store-analytics-page {
  gap: 0.7rem;
}

.store-analytics-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
}

.store-analytics-hero h1 {
  font-size: 1.35rem;
  line-height: 1.05;
  margin-bottom: 0.1rem;
}

.store-analytics-hero p,
.store-analytics-hero span,
.analytics-card p,
.analytics-card span,
.analytics-card small,
.analytics-table {
  font-size: 0.78rem;
}

.store-analytics-hero > span {
  color: #63708a;
  font-weight: 700;
  white-space: nowrap;
}

.analytics-kpi-grid,
.analytics-main-grid {
  display: grid;
  gap: 0.7rem;
}

.analytics-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-main-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.analytics-kpi,
.analytics-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 0.58rem;
  box-shadow: var(--shadow-sm);
}

.analytics-kpi {
  display: grid;
  gap: 0.15rem;
  padding: 0.62rem 0.75rem;
}

.analytics-kpi span,
.analytics-card-head span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

.analytics-kpi strong {
  color: #172b55;
  font-size: 1.28rem;
  line-height: 1;
}

.analytics-kpi small {
  color: #72819b;
  font-size: 0.72rem;
}

.analytics-kpi--warn {
  border-color: #ffd8ae;
  background: #fff9f0;
}

.analytics-card {
  padding: 0.75rem;
}

.analytics-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.analytics-card-head .eyebrow {
  margin: 0;
}

.analytics-funnel,
.analytics-ranked-list,
.analytics-session-list {
  display: grid;
  gap: 0.48rem;
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 0.55rem;
}

.analytics-bar-row span,
.analytics-ranked-row span,
.analytics-session-list span {
  color: #59687f;
}

.analytics-bar-row strong {
  color: #1e3a6d;
  font-size: 0.78rem;
  text-align: right;
}

.analytics-bar-track {
  height: 9px;
  overflow: hidden;
  background: #edf3fb;
  border-radius: 999px;
}

.analytics-bar-track i,
.analytics-ranked-row i {
  display: block;
  width: var(--bar);
  height: 100%;
  background: linear-gradient(90deg, #1a91d1, #66c7f3);
  border-radius: inherit;
}

.analytics-ranked-row {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.48rem;
  border-bottom: 1px solid #edf1f7;
}

.analytics-ranked-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.analytics-ranked-row > div,
.analytics-session-list > div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.analytics-ranked-row strong,
.analytics-session-list strong {
  color: #162a52;
  font-size: 0.82rem;
  line-height: 1.2;
}

.analytics-ranked-row i {
  height: 5px;
  background: linear-gradient(90deg, #1d4f91, #1796d2);
}

.analytics-session-list > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.3fr) auto;
  align-items: center;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #edf1f7;
}

.analytics-session-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.analytics-session-list small {
  color: #7a879d;
  text-align: right;
}

.analytics-trend-card {
  padding-bottom: 0.68rem;
}

.analytics-trend-card .analytics-card-head strong {
  display: block;
  color: #162a52;
  font-size: 0.98rem;
  line-height: 1.15;
}

.analytics-trend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 0.9rem;
  align-items: stretch;
}

.analytics-trend-chart {
  display: grid;
  gap: 0.32rem;
  min-height: 150px;
}

.analytics-trend-chart svg {
  width: 100%;
  height: 118px;
  overflow: visible;
}

.analytics-trend-chart svg line {
  stroke: #edf2f8;
  stroke-width: 0.5;
}

.analytics-trend-chart svg polygon {
  fill: url(#analyticsTrendFill);
}

.analytics-trend-chart svg polyline {
  fill: none;
  stroke: #168fd0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.analytics-trend-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4px, 1fr));
  gap: 3px;
  align-items: end;
  height: 22px;
}

.analytics-trend-bars span {
  display: block;
  height: var(--bar);
  min-height: 2px;
  border-radius: 999px 999px 0 0;
  background: #cfe9f8;
}

.analytics-trend-axis {
  display: flex;
  justify-content: space-between;
  color: #7a879d;
  font-size: 0.7rem;
  font-weight: 700;
}

.analytics-month-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.analytics-month-grid span {
  display: grid;
  gap: 0.08rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #e4edf7;
  border-radius: 0.5rem;
  background: #f8fbff;
  color: #66758e;
  font-size: 0.75rem;
}

.analytics-month-grid strong {
  color: #172b55;
  font-size: 0.92rem;
}

.analytics-table th,
.analytics-table td {
  font-size: 0.76rem;
  padding: 0.42rem 0.5rem;
}

.analytics-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.14rem 0.45rem;
  background: #eaf4ff;
  color: #175b98;
  font-size: 0.7rem;
  font-weight: 800;
}

.analytics-status--abandoned {
  background: #fff0e1;
  color: #b4570a;
}

.analytics-status--active {
  background: #e8f8ee;
  color: #19733c;
}

.store-chat-page {
  gap: 0.72rem;
}

.store-banners-page {
  gap: 0.72rem;
}

.analytics-tabs {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  border-bottom: 1px solid var(--line, #d9e2ef);
  overflow-x: auto;
}

.analytics-tabs a {
  color: #41577c;
  font-weight: 700;
  padding: 0.7rem 0.9rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.analytics-tabs a.is-active {
  color: #176ed1;
  border-bottom-color: #176ed1;
}

.store-search-actions,
.table-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.store-search-message {
  padding: 0.75rem 1rem;
}

.search-evidence,
.search-warning {
  display: block;
  margin-top: 0.2rem;
  color: #75839a;
}

.search-warning {
  color: #a75b00;
}

.search-review-note {
  margin: 0.75rem 0 0;
  color: #64748b;
}

.whitelabel-page {
  display: grid;
  gap: 0.78rem;
}

.whitelabel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.08rem;
  border: 1px solid #d9e4f2;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf8 55%, #eef6ff 100%);
  box-shadow: 0 12px 28px rgba(17, 42, 78, 0.06);
}

.whitelabel-hero__copy {
  display: grid;
  gap: 0.32rem;
}

.whitelabel-hero__copy h1,
.whitelabel-panel__head h2,
.whitelabel-form-section h3 {
  margin: 0;
}

.whitelabel-hero__copy p:last-child {
  max-width: 780px;
  margin: 0;
  color: #516174;
  line-height: 1.45;
}

.whitelabel-hero__stats {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.whitelabel-hero__stats > span {
  display: grid;
  min-width: 88px;
  gap: 0.12rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid #d9e4f2;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.82);
  color: #5b687a;
  font-size: 0.78rem;
}

.whitelabel-hero__stats strong {
  color: #142338;
  font-size: 1.15rem;
}

.whitelabel-admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: 0.78rem;
  align-items: start;
}

.whitelabel-panel,
.whitelabel-editor {
  display: grid;
  gap: 0.72rem;
  padding: 0.9rem;
  border: 1px solid #dfe7f1;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 36, 63, 0.05);
}

.whitelabel-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.whitelabel-panel__head > span {
  color: #66758a;
  font-size: 0.8rem;
  font-weight: 700;
}

.whitelabel-site-list {
  display: grid;
  gap: 0.58rem;
}

.whitelabel-site-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.72rem;
  border: 1px solid #dfe7f1;
  border-radius: 0.55rem;
  background: #fbfdff;
}

.whitelabel-site-card.is-selected {
  border-color: #176b87;
  box-shadow: 0 0 0 2px rgba(23, 107, 135, 0.1);
}

.whitelabel-site-card__main {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.whitelabel-site-card__main strong,
.whitelabel-preview-box strong {
  color: #17263a;
}

.whitelabel-site-card__main small {
  color: #64748b;
}

.whitelabel-site-card__main code {
  overflow: hidden;
  color: #34506f;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whitelabel-site-card__actions,
.whitelabel-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.whitelabel-status {
  width: fit-content;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.whitelabel-status.is-live {
  background: #e5f7eb;
  color: #16743a;
}

.whitelabel-status.is-draft {
  background: #fff5df;
  color: #936416;
}

.whitelabel-preview-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.78rem;
  border: 1px solid #cfe2f3;
  border-radius: 0.58rem;
  background: #f7fbff;
}

.whitelabel-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.whitelabel-preview-box--public {
  border-color: #d6e4d4;
  background: #fbfef8;
}

.whitelabel-preview-box > div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.whitelabel-preview-box span,
.whitelabel-form-section .eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.whitelabel-preview-box small,
.whitelabel-publish-box small {
  color: #68778b;
  line-height: 1.35;
}

.whitelabel-form-section {
  display: grid;
  gap: 0.62rem;
  padding-top: 0.72rem;
  border-top: 1px solid #edf2f7;
}

.whitelabel-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.whitelabel-form-grid--compact {
  grid-template-columns: repeat(2, minmax(130px, 180px));
}

.whitelabel-form-grid label,
.whitelabel-publish-box {
  display: grid;
  gap: 0.32rem;
}

.whitelabel-form-grid label span {
  color: #42526a;
  font-size: 0.8rem;
  font-weight: 800;
}

.whitelabel-form-grid input,
.whitelabel-form-grid select,
.whitelabel-form-grid textarea {
  min-width: 0;
  min-height: 36px;
  border: 1px solid #cad6e4;
  border-radius: 0.48rem;
  background: #fff;
  color: #1f2f46;
}

.whitelabel-form-grid input:not([type="color"]),
.whitelabel-form-grid select,
.whitelabel-form-grid textarea {
  padding: 0.46rem 0.58rem;
}

.whitelabel-form-grid textarea {
  resize: vertical;
}

.whitelabel-wide-field {
  grid-column: 1 / -1;
}

.whitelabel-form-grid input[type="color"] {
  width: 100%;
  padding: 0.18rem;
}

.whitelabel-logo-field {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.whitelabel-logo-field > span {
  color: #42526a;
  font-size: 0.8rem;
  font-weight: 800;
}

.whitelabel-logo-preview {
  display: grid;
  place-items: center;
  min-height: 74px;
  border: 1px dashed #cbd6e3;
  border-radius: 0.55rem;
  background: #fff;
  padding: 0.55rem;
}

.whitelabel-favicon-preview {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px dashed #cbd6e3;
  border-radius: 0.55rem;
  background: #fff;
}

.whitelabel-logo-preview img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}

.whitelabel-favicon-preview img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.whitelabel-logo-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.whitelabel-publish-box {
  padding: 0.72rem;
  border: 1px dashed #cfd9e8;
  border-radius: 0.55rem;
  background: #fcfdff;
}

.whitelabel-empty {
  padding: 0.9rem;
  border: 1px dashed #cbd6e3;
  border-radius: 0.55rem;
  color: #637083;
  text-align: center;
}

.store-banners-admin {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.store-banners-list,
.store-banner-editor {
  display: grid;
  gap: 0.75rem;
}

.store-banners-list-head,
.store-banner-editor-head,
.store-banner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.store-banners-list-head h2,
.store-banner-editor-head h2 {
  margin: 0;
  color: #162a52;
  font-size: 1rem;
}

.store-banners-list-head button,
.store-banner-actions button,
.store-banner-delete {
  border: 0;
  border-radius: 0.52rem;
  padding: 0.48rem 0.75rem;
  color: #fff;
  background: #1695d3;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.store-banner-actions button.secondary {
  color: #1d4f91;
  background: #eaf4fb;
}

.store-banner-delete {
  align-self: center;
  color: #b91c1c;
  background: #fff0f0;
}

.store-banners-items {
  display: grid;
  gap: 0.48rem;
}

.store-banner-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: stretch;
}

.store-banner-row > button:first-child {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0.55rem;
  width: 100%;
  border: 1px solid #dbe7f5;
  border-radius: 0.62rem;
  padding: 0.4rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.store-banner-row.is-selected > button:first-child,
.store-banner-row > button:first-child:hover {
  border-color: #1695d3;
  background: #f5fbff;
}

.store-banner-row-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 52px;
  border-radius: 0.45rem;
  background: #f3f7fb;
}

.store-banner-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-banner-row-thumb i {
  width: 1.6rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #dceaf7;
}

.store-banner-thumb-fallback {
  padding: 0 0.25rem;
  color: #7b8797;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.store-banner-row strong {
  display: block;
  overflow: hidden;
  color: #162a52;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-banner-row small,
.store-banner-row em,
.store-banners-empty,
.store-banner-message,
.store-banner-file span {
  color: #687891;
  font-size: 0.72rem;
  font-style: normal;
}

.store-banner-row em {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.18rem;
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  color: #16723a;
  background: #e9f8ef;
  font-weight: 800;
}

.store-banner-active {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #162a52;
  font-size: 0.78rem;
  font-weight: 800;
}

.store-banner-preview {
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #c8d9eb;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f8fbff, #edf7fd);
}

.store-banner-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.store-banner-preview span {
  color: #708098;
  font-size: 0.78rem;
}

.store-banner-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.62rem;
}

.store-banner-form-grid label {
  display: grid;
  gap: 0.26rem;
  color: #1d4f91;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.store-banner-form-grid input,
.store-banner-form-grid select,
.store-banner-form-grid textarea {
  width: 100%;
  border: 1px solid #d8e5f3;
  border-radius: 0.52rem;
  padding: 0.52rem 0.6rem;
  color: #172b55;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
}

.store-banner-form-grid textarea {
  min-height: 5rem;
  resize: vertical;
  line-height: 1.45;
}

.store-banner-wide {
  grid-column: span 2;
}

.store-banner-file input {
  padding: 0.45rem;
}

.store-banner-message {
  margin: 0;
  border-radius: 0.6rem;
  padding: 0.5rem 0.65rem;
  background: #f3f8fd;
}

.store-banner-message.is-success {
  color: #166534;
  background: #eaf8ef;
}

.store-banner-message.is-error {
  color: #b42318;
  background: #fff0ed;
}

.store-chat-admin {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 0.75rem;
  min-height: calc(100vh - 13rem);
}

.store-chat-inbox,
.store-chat-thread {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.store-chat-inbox {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.store-chat-inbox-head {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border-bottom: 1px solid #edf1f7;
}

.store-chat-inbox-head h2,
.store-chat-thread h1 {
  margin: 0;
  color: #162a52;
  font-size: 1rem;
  line-height: 1.15;
}

.store-chat-status-tabs {
  display: flex;
  gap: 0.35rem;
}

.store-chat-status-tabs a {
  border: 1px solid #dbe7f5;
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  color: #496079;
  font-size: 0.72rem;
  font-weight: 800;
}

.store-chat-status-tabs a.is-active {
  border-color: #1695d3;
  color: #fff;
  background: #1695d3;
}

.store-chat-inbox-list {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  overflow: auto;
  padding: 0.55rem;
}

.store-chat-inbox-item {
  position: relative;
  display: grid;
  gap: 0.25rem;
  border: 1px solid transparent;
  border-radius: 0.58rem;
  padding: 0.55rem 0.62rem;
  color: inherit;
}

.store-chat-inbox-item:hover,
.store-chat-inbox-item.is-active {
  border-color: #cfe2f7;
  background: #f5faff;
}

.store-chat-inbox-item strong,
.store-chat-thread-message span {
  color: #162a52;
  font-size: 0.82rem;
  line-height: 1.25;
}

.store-chat-inbox-item span,
.store-chat-inbox-item small,
.store-chat-muted,
.store-chat-thread header span,
.store-chat-customer-card span,
.store-chat-thread-message small,
.store-chat-empty-admin span {
  color: #6a7890;
  font-size: 0.74rem;
}

.store-chat-inbox-item div {
  display: grid;
  gap: 0.12rem;
}

.store-chat-inbox-item em {
  position: absolute;
  top: 0.48rem;
  right: 0.48rem;
  min-width: 1.25rem;
  border-radius: 999px;
  padding: 0.08rem 0.32rem;
  color: #fff;
  background: #dc2626;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.store-chat-thread {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.store-chat-thread header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 0.85rem;
  border-bottom: 1px solid #edf1f7;
}

.store-chat-thread-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.store-chat-thread-actions button,
.store-chat-reply button {
  border: 0;
  border-radius: 0.5rem;
  color: #fff;
  background: #1695d3;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.store-chat-thread-actions button {
  padding: 0.45rem 0.62rem;
}

.store-chat-agent-badge {
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 0.35rem 0.58rem;
  color: #166534 !important;
  background: #f0fdf4;
  font-size: 0.72rem !important;
  font-weight: 800;
}

.store-chat-take-button {
  background: #dc2626 !important;
}

.store-chat-take-button:hover {
  background: #b91c1c !important;
}

.store-chat-customer-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.62rem 0.85rem;
  border-bottom: 1px solid #edf1f7;
  background: #f8fbff;
}

.store-chat-customer-card span {
  display: grid;
  gap: 0.08rem;
}

.store-chat-customer-card strong {
  color: #1d4f91;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.store-chat-thread-messages {
  display: grid;
  align-content: start;
  gap: 0.48rem;
  overflow: auto;
  padding: 0.85rem;
  background: #f7fbff;
}

.store-chat-thread-message {
  display: grid;
  justify-items: start;
  gap: 0.15rem;
}

.store-chat-thread-message span {
  max-width: 78%;
  border: 1px solid #dce7f5;
  border-radius: 0.65rem;
  border-bottom-left-radius: 0.22rem;
  padding: 0.5rem 0.62rem;
  background: #fff;
}

.store-chat-thread-message--agent {
  justify-items: end;
}

.store-chat-thread-message--agent span {
  border-color: #1695d3;
  border-bottom-right-radius: 0.22rem;
  border-bottom-left-radius: 0.65rem;
  color: #fff;
  background: #1695d3;
}

.store-chat-thread-message--system span {
  max-width: 100%;
  border-color: #d7eaf9;
  color: #50627e;
  background: #eaf5ff;
}

.store-chat-admin-error {
  margin: 0;
  padding: 0.5rem 0.85rem 0;
  color: #b42318;
  font-size: 0.78rem;
}

.store-chat-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-top: 1px solid #edf1f7;
}

.store-chat-reply textarea {
  resize: vertical;
  min-height: 4.2rem;
  border: 1px solid #d8e4f2;
  border-radius: 0.58rem;
  padding: 0.62rem;
  color: #162a52;
  font: inherit;
  font-size: 0.82rem;
  outline: none;
}

.store-chat-reply textarea:focus {
  border-color: #1695d3;
  box-shadow: 0 0 0 3px rgba(22, 149, 211, 0.14);
}

.store-chat-reply button {
  align-self: end;
  min-height: 2.65rem;
}

.store-chat-empty-admin {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.25rem;
  min-height: 25rem;
  color: #6a7890;
  text-align: center;
}

.store-chat-empty-admin strong {
  color: #162a52;
}

@media (max-width: 1100px) {
  .analytics-kpi-grid,
  .analytics-main-grid,
  .analytics-trend-layout,
  .store-banners-admin,
  .store-chat-admin {
    grid-template-columns: 1fr 1fr;
  }

  .whitelabel-admin-layout {
    grid-template-columns: 1fr;
  }

  .whitelabel-hero {
    grid-template-columns: 1fr;
  }

  .whitelabel-hero__stats {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .store-analytics-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-analytics-hero > span {
    white-space: normal;
  }

  .analytics-kpi-grid,
  .analytics-main-grid,
  .analytics-trend-layout,
  .whitelabel-admin-layout,
  .whitelabel-form-grid,
  .whitelabel-form-grid--compact,
  .whitelabel-link-grid,
  .whitelabel-preview-box,
  .whitelabel-site-card,
  .store-banners-admin,
  .store-banner-form-grid,
  .store-chat-admin,
  .store-chat-customer-card,
  .store-chat-reply,
  .analytics-session-list > div {
    grid-template-columns: 1fr;
  }

  .store-banner-wide {
    grid-column: span 1;
  }
}

.table-card {
  border-left-color: var(--brand-dark);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(58, 59, 69, 0.45);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.modal-card {
  width: min(100%, 960px);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 0.35rem;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.quote-preview-modal {
  width: min(1180px, calc(100vw - 2rem));
  height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  padding: 0.9rem;
}

.quote-preview-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  padding-bottom: 0.75rem;
}

.quote-preview-head h2 {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.2;
  margin: 0.12rem 0 0;
}

.quote-preview-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  margin: 0.18rem 0 0;
}

.quote-preview-frame {
  flex: 1 1;
  width: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #eef3fb;
}

.checklist-modal-card {
  width: min(100%, 860px);
  padding: 1rem;
}

.checklist-modal-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
}

.checklist-modal-head h3 {
  margin: 0.15rem 0 0;
}

.checklist-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.checklist-queue-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #f8fbff;
}

.checklist-queue-actions span {
  min-width: 42px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.danger-button {
  color: #a30f32;
  border-color: rgba(220, 53, 69, 0.34);
  background: rgba(220, 53, 69, 0.08);
}

.checklist-modal-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(78, 115, 223, 0.14);
  border-radius: 0.8rem;
  background: #f8fbff;
}

.checklist-modal-summary p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.checklist-modal-summary small {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.checklist-modal-review-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.checklist-modal-review-line small {
  color: var(--muted);
  font-weight: 800;
}

.checklist-source-card {
  margin-bottom: 0.85rem;
  padding: 0.8rem;
  border: 1px solid rgba(78, 115, 223, 0.14);
  border-radius: 0.8rem;
  background: #f8fbff;
}

.checklist-source-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.checklist-source-card__head strong {
  color: var(--heading);
}

.checklist-source-card__head span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.checklist-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.checklist-source-item {
  min-width: 0;
  padding: 0.62rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
}

.checklist-source-item span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checklist-source-item p {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.checklist-issue-list {
  display: grid;
  gap: 0.55rem;
}

.checklist-issue-item {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.72rem;
  background: #fff;
}

.checklist-issue-main {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.checklist-issue-main h4 {
  margin: 0;
  color: var(--heading);
  font-size: 0.95rem;
}

.checklist-issue-main p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.checklist-quick-fix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
}

.checklist-quick-fix label {
  display: grid;
  gap: 0.32rem;
}

.checklist-quick-fix label span {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checklist-quick-fix textarea {
  width: 100%;
  min-height: 44px;
  resize: vertical;
}

.checklist-quick-fix small {
  color: var(--muted);
  font-weight: 700;
}

.checklist-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.25rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: color-mix(in srgb, white 94%, var(--brand) 6%);
  box-shadow: 0 -10px 24px rgba(20, 34, 70, 0.08);
}

.checklist-save-bar span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.checklist-save-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.checklist-modal-empty {
  border: 1px dashed var(--line);
  border-radius: 0.8rem;
  padding: 1rem;
  color: var(--muted);
  background: #fbfcff;
  font-weight: 700;
}

@media (max-width: 760px) {
  .checklist-modal-summary,
  .checklist-issue-main,
  .checklist-quick-fix {
    grid-template-columns: 1fr;
  }
  .checklist-source-grid {
    grid-template-columns: 1fr;
  }

  .checklist-modal-summary small {
    white-space: normal;
  }

  .checklist-save-bar,
  .product-review-queue-item {
    grid-template-columns: 1fr;
  }

  .product-review-queue-actions,
  .checklist-save-actions {
    justify-content: flex-start;
  }
}

.table-toolbar,
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filter-bar input,
.filter-bar select {
  flex: 1 1;
  min-width: 220px;
  border: 1px solid var(--field-border);
  border-radius: 0.35rem;
  min-height: var(--admin-control-height);
  padding: 0.75rem 0.9rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  max-width: 100%;
  min-width: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: var(--admin-table-cell-y) var(--admin-table-cell-x);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.89rem;
}

.data-table thead th {
  background: #f8f9fc;
  color: var(--heading);
  font-weight: 800;
}

.data-table tbody tr:hover {
  background: #f8f9fc;
}

.compact-table th,
.compact-table td {
  padding: 0.55rem 0.7rem;
  vertical-align: middle;
}

.compact-table small {
  display: block;
  color: var(--muted);
  margin-top: 0.15rem;
}

.provider-stock-rules {
  margin: 1rem 0;
}

.inline-create-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #f8fbff;
  box-shadow: inset 4px 0 0 rgba(78, 115, 223, 0.55);
}

.product-create-card {
  margin-bottom: 1rem;
}

.product-create-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 0.85rem;
}

.product-create-wide {
  grid-column: span 2;
}

.channel-accounting-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 0.85rem;
}

.channel-rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 0.75rem;
}

.channel-pricing-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0.65rem;
  margin: 0.8rem 0 1rem;
}

.channel-pricing-flow .products-summary-pill {
  min-height: 76px;
  padding: 0.75rem 0.85rem;
}

.channel-price-simulator {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid #d7e2ff;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.channel-price-simulator__search,
.channel-simulator-runner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
}

.channel-price-simulator__controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 0.55rem;
  align-items: end;
}

.channel-simulator-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.55rem;
}

.channel-simulator-product {
  display: grid;
  gap: 0.18rem;
  padding: 0.75rem;
  border: 1px solid #dce5ff;
  border-radius: 0.85rem;
  background: #fff;
  color: #2d3856;
  text-align: left;
}

.channel-simulator-product:hover,
.channel-simulator-product.is-selected {
  border-color: #4e73df;
  box-shadow: 0 10px 22px rgba(78, 115, 223, 0.12);
}

.channel-simulator-product span,
.channel-simulator-product small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.channel-simulator-runner {
  grid-template-columns: minmax(260px, 1.2fr) minmax(120px, 0.35fr) auto;
  padding: 0.75rem;
  border: 1px dashed #c8d6ff;
  border-radius: 0.85rem;
  background: #fbfcff;
}

.channel-simulator-output {
  display: grid;
  gap: 0.8rem;
}

.channel-simulator-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0.6rem;
}

.channel-simulator-kpis article {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid #dfe7ff;
  border-radius: 0.85rem;
  background: #fff;
}

.channel-simulator-kpis span,
.channel-simulator-kpis small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.channel-simulator-kpis strong {
  color: #1f2d4d;
  font-size: 1.1rem;
}

.channel-simulator-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 0.65rem;
}

.channel-simulator-quote-grid article {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem;
  border: 1px solid #f3d9a8;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #fff9ea 0%, #ffffff 100%);
}

.channel-simulator-quote-grid span,
.channel-simulator-quote-grid small {
  color: #7b5b18;
  font-size: 0.76rem;
  font-weight: 800;
}

.channel-simulator-quote-grid strong {
  color: #23314d;
  font-size: 1.12rem;
}

.channel-config-tabs {
  margin: 0;
}

.channel-config-tabs .products-subnav-link {
  align-items: flex-start;
  flex-direction: column;
  height: auto;
  min-width: 126px;
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.channel-config-tabs .products-subnav-link small {
  display: block;
  margin-top: 0.16rem;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.72;
}

.channel-config-tab-content > [data-config-tab] {
  display: none;
}

.channel-config-tab-content[data-active-tab="resumen"] > [data-config-tab~="resumen"],
.channel-config-tab-content[data-active-tab="pricing"] > [data-config-tab~="pricing"],
.channel-config-tab-content[data-active-tab="discounts"] > [data-config-tab~="discounts"],
.channel-config-tab-content[data-active-tab="overrides"] > [data-config-tab~="overrides"],
.channel-config-tab-content[data-active-tab="suppliers"] > [data-config-tab~="suppliers"],
.channel-config-tab-content[data-active-tab="rules"] > [data-config-tab~="rules"],
.channel-config-tab-content[data-active-tab="payments"] > [data-config-tab~="payments"],
.channel-config-tab-content[data-active-tab="statuses"] > [data-config-tab~="statuses"],
.channel-config-tab-content[data-active-tab="categories"] > [data-config-tab~="categories"],
.channel-config-tab-content[data-active-tab="accounting"] > [data-config-tab~="accounting"] {
  display: block;
}

.channel-config-tab-content[data-active-tab="shipping"] > [data-config-tab~="shipping"] {
  display: grid;
}

.channel-logo-cell {
  display: grid;
  gap: 0.45rem;
  justify-items: start;
  min-width: 88px;
}

.channel-logo-cell img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
}

.channel-logo-cell span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
}

.channel-logo-upload-button {
  position: relative;
  overflow: hidden;
}

.channel-logo-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.channel-inline-fields {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.channel-inline-fields .cell-select {
  min-width: 110px;
}

.field-help {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.checkout-method-html-preview {
  margin-top: 0.5rem;
  max-width: 26rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dbeafe;
  border-radius: 0.75rem;
  background: #f8fbff;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.45;
}

.checkout-method-html-preview :where(p, ul, ol) {
  margin: 0 0 0.45rem;
}

.checkout-method-html-preview :where(p, ul, ol):last-child {
  margin-bottom: 0;
}

.checkout-method-html-preview :where(ul, ol) {
  padding-left: 1.05rem;
}

.checkout-method-html-preview a {
  color: var(--brand);
  font-weight: 800;
}

.channel-accounting-check {
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fbfcff;
}

.channel-accounting-notes {
  grid-column: span 2;
}

@media (max-width: 1100px) {
  .channel-pricing-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-accounting-grid,
  .channel-rules-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .product-create-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }
}

@media (max-width: 720px) {
  .channel-pricing-flow,
  .channel-accounting-grid,
  .channel-rules-grid {
    grid-template-columns: 1fr;
  }

  .channel-accounting-notes {
    grid-column: auto;
  }

  .product-create-grid {
    grid-template-columns: 1fr;
  }

  .product-create-wide {
    grid-column: auto;
  }

  .product-page-hero,
  .section-title-row {
    align-items: flex-start;
  }

  .product-status-help-grid {
    grid-template-columns: 1fr;
  }

  .product-quick-status-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-quick-status-actions {
    justify-content: flex-start;
  }
}

.compact-card {
  padding: 18px;
}

.compact-form-grid {
  align-items: end;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, .8fr) minmax(180px, .8fr) auto;
}

.section-heading-row {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading-row h2,
.section-heading-row h3 {
  margin: 0 0 6px;
}

.marking-zone-editor .section-heading-row h3,
.marking-zone-editor .section-heading-row h4,
.marking-zone-editor .section-heading-row p {
  margin: 0;
}

.marking-zone-editor .section-heading-row {
  gap: 8px;
  margin-bottom: 8px;
}

.section-heading-row p {
  margin: 0;
}

.section-heading-row--tight {
  margin-bottom: 4px;
}

.marking-zone-editor .section-heading-row--tight {
  margin-bottom: 0;
}

.marking-zone-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.42fr);
  margin-top: 14px;
}

.marking-zone-layout--editor-only {
  grid-template-columns: minmax(0, 1fr);
}

.zone-product-list {
  display: grid;
  gap: 8px;
  max-height: 72vh;
  overflow: auto;
  padding-right: 4px;
}

.zone-product-card {
  align-items: center;
  background: #fff;
  border: 1px solid #dce5fb;
  border-radius: 14px;
  color: #243047;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 8px;
  text-align: left;
}

.zone-product-select {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dce7ff;
  border-radius: 10px;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.zone-product-card-main {
  appearance: none;
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 0;
  text-align: left;
}

.zone-product-card.is-active {
  border-color: #4e73df;
  box-shadow: 0 10px 24px rgba(78, 115, 223, .16);
}

.zone-product-card-main img {
  background: #f8fbff;
  border: 1px solid #e3eafe;
  border-radius: 12px;
  height: 54px;
  object-fit: contain;
  width: 54px;
}

.zone-product-card-main strong,
.zone-product-card-main small,
.zone-product-card-main em {
  display: block;
}

.zone-product-card-main small {
  color: #78849f;
  font-size: 12px;
  margin-top: 3px;
}

.zone-product-card-main em {
  color: #4e73df;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  margin-top: 5px;
}

.bulk-action-bar {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dce7ff;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
}

.bulk-action-bar strong {
  color: #31538f;
  font-size: 12px;
}

.bulk-review-modal {
  max-height: 88vh;
  max-width: min(1100px, calc(100vw - 40px));
  overflow: auto;
  width: min(1100px, calc(100vw - 40px));
}

.bulk-review-content {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 255px;
  padding: 10px 0 0;
}

.bulk-review-image-wrap {
  align-items: center;
  background:
    linear-gradient(45deg, #f5f8ff 25%, transparent 25%),
    linear-gradient(-45deg, #f5f8ff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f5f8ff 75%),
    linear-gradient(-45deg, transparent 75%, #f5f8ff 75%);
  background-color: #fff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  border: 1px solid #dce7ff;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  min-height: 340px;
  overflow: auto;
  padding: 8px;
}

.bulk-review-image-stage {
  display: inline-block;
  position: relative;
}

.bulk-review-image-stage img {
  display: block;
  max-height: 58vh;
  max-width: 100%;
}

.bulk-review-preview-box {
  align-items: center;
  background: rgba(34, 211, 238, 0.10);
  border: 2px solid #06a8bd;
  border-radius: 9px;
  color: #0f5f73;
  cursor: move;
  display: flex;
  justify-content: center;
  overflow: visible;
  padding: 0;
  position: absolute;
  transform-origin: center;
}

.bulk-review-preview-box.is-active {
  background: rgba(255, 247, 237, 0.18);
  border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18);
  z-index: 2;
}

.bulk-review-preview-box.is-sibling {
  border-color: #4e73df;
  box-shadow: 0 0 0 1px rgba(78, 115, 223, 0.14);
  cursor: pointer;
  opacity: .82;
  z-index: 1;
}

.bulk-review-preview-box.is-sibling:hover {
  opacity: 1;
}

.bulk-review-preview-index {
  align-items: center;
  background: #4e73df;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  left: -9px;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  top: -9px;
  width: 18px;
  z-index: 4;
}

.bulk-review-preview-box.is-active .bulk-review-preview-index {
  background: #f97316;
}

.bulk-review-preview-logo {
  height: 86%;
  max-height: 86%;
  max-width: 92%;
  object-fit: contain;
  pointer-events: none;
  position: absolute;
  width: 92%;
}

.bulk-review-preview-box--embroidery::before,
.marking-zone-logo-clip--embroidery::before {
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, .34) 0 1px, rgba(0, 0, 0, .16) 1px 2px, transparent 2px 5px),
    repeating-linear-gradient(10deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 7px);
  border-radius: inherit;
  content: "";
  inset: 4%;
  mix-blend-mode: overlay;
  opacity: .82;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.bulk-review-preview-logo--embroidery,
.marking-zone-logo-preview--embroidery {
  filter:
    drop-shadow(0 -1px 0 rgba(255, 255, 255, .65))
    drop-shadow(0 2px 1px rgba(0, 0, 0, .35))
    drop-shadow(1px 0 0 rgba(255, 255, 255, .28))
    saturate(.9)
    contrast(1.16);
}

.bulk-review-preview-logo--laser_wood,
.marking-zone-logo-preview--laser_wood {
  filter: sepia(.7) saturate(1.15) hue-rotate(-12deg) brightness(.72) contrast(1.22) drop-shadow(0 1px 1px rgba(78, 43, 19, .35));
}

.bulk-review-preview-logo--laser_metal,
.marking-zone-logo-preview--laser_metal {
  filter: grayscale(1) brightness(.72) contrast(1.35) drop-shadow(0 1px 1px rgba(0, 0, 0, .28));
}

.marking-zone-logo-preview--engraved {
  background: var(--marking-engrave-color, #4d2a12);
  filter: none;
  mask-image: var(--marking-logo-mask);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-image: var(--marking-logo-mask);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.marking-zone-logo-preview--engraved::before,
.marking-zone-logo-preview--engraved::after {
  content: "";
  inset: 0;
  mask-image: var(--marking-logo-mask);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-image: var(--marking-logo-mask);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  pointer-events: none;
  position: absolute;
}

.marking-zone-logo-preview--engraved::before {
  background: rgba(0, 0, 0, .34);
  opacity: .78;
  transform: translate(-1px, -1px);
}

.marking-zone-logo-preview--engraved::after {
  background: rgba(255, 232, 188, .18);
  opacity: .72;
  transform: translate(1px, 1px);
}

.marking-zone-logo-preview--engraved.marking-zone-logo-preview--laser_wood {
  --marking-engrave-color: rgba(54, 25, 8, .9);
  background:
    radial-gradient(ellipse at 45% 42%, rgba(0, 0, 0, .32), transparent 58%),
    repeating-linear-gradient(90deg, rgba(31, 13, 4, .78) 0 1px, rgba(79, 38, 13, .82) 1px 3px),
    rgba(54, 25, 8, .86);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, .46),
    inset 0 -1px 1px rgba(255, 222, 174, .1);
  mix-blend-mode: multiply;
  opacity: .86;
}

.marking-zone-logo-preview--engraved.marking-zone-logo-preview--laser_metal {
  --marking-engrave-color: rgba(48, 54, 61, .78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(0, 0, 0, .28)),
    rgba(60, 66, 74, .75);
  mix-blend-mode: multiply;
}

.bulk-review-preview-box small,
.bulk-review-preview-metric {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  max-width: 95%;
  overflow: hidden;
  padding: 2px 6px;
  pointer-events: none;
  position: absolute;
  right: -2px;
  top: calc(100% + 4px);
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 3;
}

.bulk-review-side {
  border: 1px solid #dce7ff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
}

.bulk-review-side strong,
.bulk-review-side small {
  display: block;
}

.bulk-review-edit-box {
  background: #f8fbff;
  border: 1px solid #dce7ff;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.bulk-review-zone-chip {
  background: #edf4ff;
  border: 1px solid #bcd0ff;
  border-radius: 999px;
  color: #244a93;
  cursor: default;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  padding: 7px 9px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-review-edit-box .product-form-grid {
  grid-template-columns: 1fr;
}

.bulk-review-numeric-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bulk-review-numeric-grid input {
  padding-left: 8px;
  padding-right: 8px;
}

.bulk-review-rotate-row {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(4, 1fr);
}

.bulk-review-rotate-row .secondary-button {
  min-height: 30px;
  padding: 5px;
}

.bulk-review-filmstrip {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
  max-height: 260px;
  overflow: auto;
}

.bulk-review-filmstrip button {
  background: #fff;
  border: 1px solid #d3e0ff;
  border-radius: 8px;
  cursor: pointer;
  min-height: 58px;
  padding: 5px;
  position: relative;
}

.bulk-review-filmstrip button.is-active {
  border-color: #4e73df;
  box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.14);
}

.bulk-review-filmstrip img {
  display: block;
  height: 46px;
  object-fit: contain;
  width: 100%;
}

.bulk-review-filmstrip span {
  background: #31538f;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  left: 4px;
  min-width: 18px;
  padding: 1px 4px;
  position: absolute;
  top: 4px;
}

.bulk-review-bar {
  align-items: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 0 0 8px;
  padding: 8px;
}

.bulk-review-bar p,
.bulk-review-bar strong {
  margin: 0;
}

.bulk-review-bar strong {
  color: #166534;
}

.marking-drafts-page {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
}

.marking-drafts-page > .section-heading-row {
  align-items: center;
  border-bottom: 1px solid #e3eafe;
  gap: 10px;
  margin-bottom: 0;
  min-height: 0;
  padding-bottom: 8px;
}

.marking-drafts-page > .section-heading-row h2 {
  font-size: 18px;
  line-height: 1.15;
  margin: 0 0 2px;
}

.marking-drafts-page > .section-heading-row p {
  color: #667895;
  font-size: 13px;
  line-height: 1.25;
  margin: 0;
}

.marking-drafts-page > .section-heading-row .eyebrow {
  font-size: 10px;
  line-height: 1;
  margin: 0 0 3px;
}

.marking-drafts-page > .section-heading-row .button-row {
  margin: 0;
}

.product-form-grid.marking-draft-filters {
  align-items: end;
  gap: 8px;
  grid-template-columns: minmax(240px, 1.5fr) minmax(140px, .72fr) minmax(150px, .8fr) minmax(220px, 1.25fr) auto;
  margin: 0;
}

.marking-draft-filters .field {
  gap: 4px;
}

.marking-draft-filters .field > span {
  font-size: 10px;
  line-height: 1;
}

.marking-draft-filters .field input,
.marking-draft-filters .field select {
  height: 36px;
  padding: 7px 10px;
}

.marking-drafts-page > .bulk-action-bar {
  border-radius: 8px;
  margin-top: 0;
  min-height: 0;
  padding: 7px 8px;
}

.marking-drafts-page > .bulk-action-bar .primary-button,
.marking-drafts-page > .bulk-action-bar .secondary-button,
.marking-drafts-page > .bulk-action-bar .danger-button,
.marking-draft-filters .primary-button,
.marking-draft-filters .secondary-button {
  min-height: 32px;
  padding: 6px 10px;
}

.marking-draft-list {
  display: grid;
  gap: 8px;
}

.marking-draft-row {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe6ff;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px 112px minmax(0, 1fr) auto;
  min-height: 112px;
  padding: 8px;
}

.marking-draft-row:hover {
  border-color: #9bb7ff;
  box-shadow: 0 8px 18px rgba(47, 76, 147, .08);
}

.marking-draft-thumb {
  background: #f8fbff;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 3px;
  height: 96px;
  justify-items: center;
  padding: 5px;
  width: 112px;
}

.marking-draft-thumb img {
  height: 68px;
  object-fit: contain;
  width: 100%;
}

.marking-draft-thumb span {
  color: #31538f;
  font-size: 11px;
  font-weight: 800;
}

.marking-draft-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.marking-draft-main strong,
.marking-draft-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marking-draft-main strong {
  color: #1f2a44;
  font-size: 15px;
}

.marking-draft-main small {
  color: #667895;
  font-size: 12px;
}

.marking-draft-actions {
  align-items: stretch;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(76px, auto));
}

.marking-draft-actions button {
  min-height: 34px;
  padding-inline: 10px;
}

.marking-draft-review-modal {
  max-height: 84vh;
  max-width: min(1240px, calc(100vw - 32px));
  overflow: auto;
  width: min(1240px, calc(100vw - 32px));
}

.marking-draft-review-modal .bulk-review-content {
  grid-template-columns: minmax(0, 1fr) 275px;
  padding-top: 6px;
}

.marking-draft-review-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.marking-draft-review-modal .section-heading-row {
  margin-bottom: 4px;
}

.marking-draft-inline-message,
.marking-draft-modal-message {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
  margin: 8px 0;
  padding: 8px 10px;
}

.marking-draft-modal-message {
  margin: 0 0 6px;
}

.marking-draft-product-mini {
  border-top: 1px solid #dce7ff;
  display: grid;
  gap: 6px;
  margin-top: 2px;
  padding-top: 8px;
}

.marking-draft-product-mini p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.marking-draft-product-mini strong {
  color: #4e73df;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.marking-draft-product-mini span {
  color: #52627d;
  font-size: 11px;
  line-height: 1.25;
}

.marking-page-size-field {
  align-items: center;
  display: flex;
  gap: 6px;
  margin: 0;
}

.marking-page-size-field span {
  margin: 0;
}

.marking-page-size-field select {
  min-height: 32px;
  min-width: 82px;
  padding-bottom: 4px;
  padding-top: 4px;
}

.marking-bulk-job-progress {
  background: #f8fbff;
  border: 1px solid #dce7ff;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding: 8px 10px;
}

.marking-bulk-job-progress span,
.marking-bulk-job-progress small {
  color: #31538f;
  font-size: 12px;
  font-weight: 800;
}

.marking-bulk-job-progress progress {
  height: 10px;
  width: 100%;
}

.marking-draft-review-modal .bulk-review-image-wrap {
  min-height: 300px;
  padding: 6px;
}

.marking-draft-review-modal .bulk-review-image-stage img {
  max-height: 62vh;
}

.bulk-review-image-stage.is-measuring {
  cursor: crosshair;
}

.bulk-review-image-stage.is-clean-preview .bulk-review-preview-box {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.bulk-review-image-stage.is-clean-preview .bulk-review-preview-metric {
  display: none;
}

.bulk-review-image-stage.is-clean-preview .bulk-review-preview-index {
  display: none;
}

.bulk-review-image-stage.is-clean-preview .marking-zone-rotate-handle,
.bulk-review-image-stage.is-clean-preview .marking-zone-resize-handle {
  display: none;
}

.marking-draft-review-modal .marking-logo-button-row {
  gap: 5px;
  padding: 4px;
}

.marking-draft-review-modal .marking-logo-button-group {
  gap: 4px;
}

.marking-draft-review-modal .marking-logo-button-group button {
  font-size: 11px;
  min-height: 28px;
  padding: 4px 7px;
}

.marking-draft-review-modal .marking-logo-adjust-toolbar,
.marking-draft-review-modal .marking-scale-toolbar {
  align-items: center;
  border-radius: 8px;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(96px, max-content));
  margin: 0;
  padding: 6px;
}

.marking-draft-review-modal .marking-logo-adjust-toolbar .field,
.marking-draft-review-modal .marking-scale-toolbar .field {
  min-width: 96px;
}

.marking-draft-review-modal .marking-logo-adjust-toolbar .field span,
.marking-draft-review-modal .marking-scale-toolbar .field span {
  margin-bottom: 2px;
}

.marking-draft-review-modal .marking-logo-adjust-toolbar select,
.marking-draft-review-modal .marking-scale-toolbar input,
.marking-draft-review-modal .marking-logo-adjust-toolbar input {
  min-height: 34px;
  padding-bottom: 4px;
  padding-top: 4px;
}

.admin-action-label,
.quote-action-label {
  align-items: center;
  display: inline-flex;
  gap: 0.34rem;
  min-width: 0;
}

.admin-action-icon,
.quote-list-icon {
  flex: 0 0 auto;
  height: 1rem;
  stroke: currentColor;
  width: 1rem;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.danger-button:focus-visible,
.table-link:focus-visible,
.compact-action:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 36%, white);
  outline-offset: 2px;
}

.table-helper {
  display: block;
  line-height: 1.28;
  margin-top: 0.14rem;
  overflow-wrap: anywhere;
}

.marking-draft-review-modal .marking-logo-adjust-toolbar .field input[type="range"] {
  min-height: 24px;
  padding: 0;
  width: 116px;
}

.marking-draft-review-modal .bulk-review-rotate-row {
  align-items: center;
  display: flex;
  gap: 4px;
}

.marking-draft-review-modal .bulk-review-rotate-row > span {
  color: #4e73df;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.marking-draft-review-modal .bulk-review-rotate-row .secondary-button {
  min-height: 28px;
  min-width: 32px;
  padding: 4px 6px;
}

.marking-draft-logo-list {
  display: grid;
  gap: 5px;
}

.marking-draft-logo-list > span {
  color: #4e73df;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.marking-draft-logo-list > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.marking-draft-logo-list button {
  background: #fff;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  color: #244a93;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  min-height: 28px;
  padding: 4px 7px;
}

.marking-draft-logo-list button.is-active {
  background: #fff7ed;
  border-color: #f97316;
  color: #9a3412;
}

.marking-button-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.marking-button-strip button {
  background: #fff;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  color: #244a93;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 31px;
  padding: 6px 9px;
}

.marking-button-strip button.is-active {
  background: #edf4ff;
  border-color: #4e73df;
  box-shadow: inset 0 0 0 1px rgba(78, 115, 223, .18);
}

.marking-draft-tool-section {
  border-top: 1px solid #dce7ff;
  display: grid;
  gap: 6px;
  padding-top: 7px;
}

.marking-draft-tool-section .eyebrow {
  margin: 0;
}

.marking-draft-tool-section .field input[type="range"] {
  padding: 0;
}

.marking-draft-cm-field {
  min-width: 118px;
}

.marking-draft-cm-field input {
  height: 34px;
}

@media (max-width: 980px) {
  .marking-draft-filters,
  .marking-draft-row,
  .marking-draft-review-modal .bulk-review-content {
    grid-template-columns: 1fr;
  }

  .marking-draft-thumb {
    width: 100%;
  }

  .marking-draft-actions {
    grid-template-columns: 1fr;
  }
}

.pagination-row,
.button-row,
.duplicate-zone-box,
.zone-technique-chips {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.button-row--compact {
  gap: 6px;
  margin-top: 0;
}

.inline-field-action {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(76px, 1fr) auto auto;
}

.inline-field-action .secondary-button {
  min-height: 38px;
  padding: 7px 9px;
  white-space: nowrap;
}

.zone-editor-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(560px, 1fr) minmax(640px, .96fr);
  align-items: start;
}

.marking-image-workspace {
  min-width: 0;
}

.marking-global-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(320px, .8fr) minmax(520px, 1.2fr);
  margin-bottom: 8px;
}

.marking-global-controls--templates {
  grid-template-columns: minmax(0, 1fr);
}

.marking-editor-shell-head {
  align-items: center;
  background: #fff;
  border: 1px solid #dce7ff;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(320px, 1fr) minmax(520px, .9fr);
  margin-bottom: 5px;
  padding: 5px 8px;
}

.marking-editor-product-title h3 {
  color: #1f2937;
  font-size: 15px;
  line-height: 1.2;
  margin: 0;
}

.marking-editor-product-title p:last-child {
  color: #65718b;
  font-size: 11px;
  font-weight: 800;
  margin: 1px 0 0;
}

.marking-editor-head-tools {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-template-columns: auto minmax(260px, 1fr) minmax(120px, .45fr);
}

.marking-editor-back-button {
  min-height: 30px;
  padding: 5px 9px;
}

.marking-product-context {
  background: #f8fbff;
  border: 1px solid #dce7ff;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 4px 0 5px;
  padding: 4px;
}

.marking-product-context div {
  background: #fff;
  border: 1px solid #e5ecff;
  border-radius: 6px;
  padding: 3px 5px;
}

.marking-product-context strong,
.marking-product-context span {
  display: block;
}

.marking-product-context strong {
  color: #4e73df;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.marking-product-context span {
  color: #4b5874;
  font-size: 10px;
  line-height: 1.2;
  margin-top: 1px;
  max-height: 24px;
  overflow: auto;
}

.marking-flow-board {
  background: #fff;
  border: 1px solid #dce7ff;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin: 0 0 5px;
  padding: 5px;
}

.marking-flow-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 82px minmax(0, 1fr);
}

.marking-flow-label {
  color: #4e73df;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.marking-flow-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.marking-zone-flow-item,
.marking-flow-entity {
  align-items: stretch;
  background: #f8fbff;
  border: 1px solid #dce5fb;
  border-radius: 8px;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 30px minmax(118px, auto);
  min-height: 34px;
  overflow: hidden;
}

.marking-zone-flow-item.is-active,
.marking-flow-entity.is-active {
  border-color: #4e73df;
  box-shadow: 0 8px 18px rgba(78, 115, 223, .12);
}

.marking-zone-flow-item.is-muted,
.marking-flow-entity.is-muted {
  opacity: .82;
}

.marking-flow-entity.is-enabled {
  background: #f7fbff;
}

.marking-flow-activate,
.marking-flow-check {
  align-items: center;
  background: #eef5ff;
  border: 0;
  cursor: pointer;
  display: flex;
  font-size: 0;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: relative;
}

.marking-flow-activate::before {
  align-items: center;
  background: #fff;
  border: 1px solid #b8c8ef;
  border-radius: 6px;
  color: #254fc5;
  content: "A";
  display: flex;
  font-size: 12px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.marking-flow-activate:disabled {
  cursor: default;
}

.marking-flow-entity.is-enabled .marking-flow-activate::before {
  background: #1f9d55;
  border-color: #1f9d55;
  color: #fff;
  content: "OK";
  font-size: 9px;
}

.marking-flow-check input {
  opacity: 0;
  position: absolute;
}

.marking-flow-check span {
  align-items: center;
  background: #fff;
  border: 1px solid #b8c8ef;
  border-radius: 6px;
  color: transparent;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.marking-flow-check input:checked + span {
  background: #1f9d55;
  border-color: #1f9d55;
  color: #fff;
}

.marking-zone-flow-item > button:not(.marking-flow-activate),
.marking-flow-entity > button:not(.marking-flow-activate),
.marking-flow-chip,
.marking-flow-add-button {
  background: transparent;
  border: 0;
  color: #28364f;
  cursor: pointer;
  font-weight: 800;
  padding: 6px 8px;
  text-align: left;
}

.marking-flow-chip,
.marking-flow-add-button {
  background: #f8fbff;
  border: 1px solid #dce5fb;
  border-radius: 8px;
  flex: 0 0 auto;
  min-height: 32px;
  min-width: 118px;
}

.marking-flow-chip {
  display: grid;
  grid-template-columns: 30px minmax(118px, auto);
  padding: 0;
}

.marking-flow-chip.is-active,
.marking-flow-chip.is-enabled.is-active {
  background: #eef5ff;
  border-color: #4e73df;
  box-shadow: 0 8px 18px rgba(78, 115, 223, .12);
}

.marking-flow-add-button {
  color: #254fc5;
  text-align: center;
}

.marking-zone-flow-item strong,
.marking-zone-flow-item small,
.marking-flow-entity strong,
.marking-flow-entity small,
.marking-flow-chip strong,
.marking-flow-chip small {
  display: block;
}

.marking-zone-flow-item small,
.marking-flow-entity small,
.marking-flow-chip small {
  color: #73809a;
  font-size: 10px;
  margin-top: 2px;
}

.marking-flow-meta-row {
  background: #f8fbff;
  border: 1px solid #e1e8fb;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
}

.marking-flow-meta-row span {
  color: inherit;
}

.marking-flow-meta-row strong {
  color: #28364f;
}

.marking-flow-meta-control,
.marking-flow-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid #e5ecff;
  border-radius: 999px;
  color: #40506d;
  display: inline-flex;
  gap: 6px;
  min-height: 30px;
  padding: 4px 8px;
}

.marking-flow-meta-control > span,
.marking-flow-toggle > span {
  color: #65738f;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.marking-flow-meta-control input,
.marking-flow-meta-control select {
  background: #f8fbff;
  border: 1px solid #dce5fb;
  border-radius: 999px;
  color: #1f2b45;
  font-size: 11px;
  font-weight: 900;
  min-height: 22px;
  padding: 2px 8px;
}

.marking-flow-meta-control input {
  width: 58px;
}

.marking-flow-meta-control--effect select {
  width: 128px;
}

.marking-flow-toggle input {
  accent-color: #4f6ee8;
  height: 14px;
  margin: 0;
  width: 14px;
}

.marking-flow-meta-control:has(:disabled),
.marking-flow-toggle:has(:disabled) {
  opacity: .56;
}

.marking-flow-meta-action {
  background: #eef5ff;
  border: 1px solid #cddcff;
  border-radius: 999px;
  color: #254fc5;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 9px;
}

.marking-quick-modal {
  display: grid;
  gap: 12px;
  max-height: 90vh;
  overflow: auto;
  width: min(760px, calc(100vw - 32px));
}

.marking-modal-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(120px, .55fr));
}

.marking-modal-grid .field,
.marking-modal-grid .check-field {
  margin: 0;
}

.marking-modal-wide {
  grid-column: 1 / -1;
}

.marking-modal-check {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #e1e8fb;
  border-radius: 8px;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  min-height: 34px;
  padding: 6px 8px;
}

.marking-workflow-steps {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 10px;
}

.marking-workflow-steps span {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dce7ff;
  border-radius: 10px;
  color: #66738f;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  min-height: 34px;
  padding: 6px 8px;
}

.marking-workflow-steps strong {
  align-items: center;
  background: #dfe8ff;
  border-radius: 999px;
  color: #31538f;
  display: inline-flex;
  font-size: 11px;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.marking-workflow-steps span.is-active {
  background: #eef5ff;
  border-color: #9eb8f4;
  color: #31538f;
}

.marking-workflow-steps span.is-done {
  background: #ecfdf5;
  border-color: #9bd8b8;
  color: #166534;
}

.marking-workflow-steps span.is-done strong {
  background: #bbf7d0;
  color: #166534;
}

.marking-image-strip {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  margin: 4px 0;
  max-height: 210px;
  overflow: auto;
  padding-right: 3px;
}

.marking-image-strip button {
  background: #fff;
  border: 1px solid #dce5fb;
  border-radius: 8px;
  color: #5a6680;
  cursor: pointer;
  display: grid;
  font-size: 10px;
  font-weight: 800;
  gap: 3px;
  justify-items: center;
  padding: 5px;
  position: relative;
  text-align: center;
}

.marking-image-strip button.is-active {
  background: #eef5ff;
  border-color: #4e73df;
  box-shadow: inset 0 0 0 2px #4e73df, 0 10px 20px rgba(78, 115, 223, .2);
  color: #193e9f;
}

.marking-image-strip button.is-active::after {
  background: #254fc5;
  border-radius: 999px;
  color: #fff;
  content: "Seleccionada";
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 5px;
  position: absolute;
  right: 4px;
  top: 4px;
}

.marking-image-strip button.is-preview-logo {
  border-color: #1f9d55;
}

.marking-image-strip button.is-active.is-preview-logo {
  border-color: #4e73df;
}

.marking-image-strip img {
  height: 38px;
  object-fit: contain;
  width: 64px;
}

.marking-image-strip small {
  background: #eef3fb;
  border-radius: 999px;
  color: #4b5871;
  display: block;
  font-size: 9px;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  padding: 2px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marking-image-strip button.is-preview-logo small {
  background: rgba(31, 157, 85, 0.14);
  color: #146c3f;
}

.marking-preview-logo-bar {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dce7ff;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 0;
  padding: 4px 6px;
}

.marking-preview-logo-bar .field {
  flex: 1 1;
  margin: 0;
  min-width: 220px;
}

.marking-preview-logo-bar .marking-logo-thumb {
  border-radius: 8px;
  height: 38px;
  width: 64px;
}

.marking-preview-logo-bar .marking-logo-thumb img {
  max-height: 32px;
  max-width: 58px;
}

.marking-preview-logo-bar > small {
  color: #687591;
  font-size: 12px;
  font-weight: 800;
  max-width: 360px;
}

.marking-preview-logo-bar p {
  margin: 0;
}

.marking-template-bar {
  align-items: end;
  background: #fff;
  border: 1px solid #dce7ff;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(320px, 1.4fr) minmax(220px, 1fr) auto;
  margin: 0;
  padding: 4px 5px;
}

.marking-template-bar .field {
  margin: 0;
}

.marking-template-picker {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.marking-template-picker > span {
  color: #4e73df;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.marking-template-picker > div {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.marking-template-chip {
  background: #f8fbff;
  border: 1px solid #dce5fb;
  border-radius: 8px;
  color: #28364f;
  cursor: pointer;
  display: grid;
  flex: 0 0 auto;
  min-height: 34px;
  min-width: 132px;
  padding: 5px 8px;
  text-align: left;
}

.marking-template-chip.is-active,
.marking-template-chip:hover {
  background: #eef5ff;
  border-color: #4e73df;
}

.marking-template-chip strong,
.marking-template-chip small {
  display: block;
}

.marking-template-chip small {
  color: #73809a;
  font-size: 10px;
  margin-top: 1px;
}

.marking-editor-status {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.marking-zone-tabs {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  max-height: 74px;
  margin: 0;
  overflow: auto;
}

.marking-zone-tabs > button {
  background: #fff;
  border: 1px solid #dce5fb;
  border-radius: 8px;
  color: #28364f;
  cursor: pointer;
  min-width: 148px;
  min-height: 38px;
  padding: 5px 7px;
  text-align: left;
}

.marking-zone-tabs > button.is-active {
  border-color: #4e73df;
  box-shadow: 0 8px 18px rgba(78, 115, 223, .14);
}

.marking-zone-tabs strong,
.marking-zone-tabs span {
  display: block;
}

.marking-zone-tabs span {
  color: #7d89a5;
  font-size: 10px;
  font-weight: 800;
  margin-top: 3px;
}

.marking-preview-card {
  background: #fff;
  border: 1px solid #dce5fb;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 6px;
}

.marking-preview-card.is-active {
  background: #eef5ff;
  border-color: #4e73df;
  box-shadow: 0 8px 18px rgba(78, 115, 223, .14);
}

.marking-preview-card-main {
  appearance: none;
  background: transparent;
  border: 0;
  color: #28364f;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.marking-preview-card-main strong,
.marking-preview-card-main span,
.marking-preview-card-main small {
  display: block;
}

.marking-preview-card-main span,
.marking-preview-card-main small {
  color: #7d89a5;
  font-size: 11px;
  font-weight: 800;
  margin-top: 3px;
}

.marking-preview-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.marking-zones-page--editor-only .marking-image-preview-list {
  gap: 5px;
  padding: 6px;
}

.marking-zones-page--editor-only .marking-image-preview-list .section-heading-row {
  align-items: start;
  gap: 5px;
}

.marking-zones-page--editor-only .marking-image-preview-list h4 {
  font-size: 14px;
  line-height: 1.15;
}

.admin-nav-link > span:last-child,
.admin-nav-sublink > span:last-child,
.admin-nav-heading-button > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marking-zones-page--editor-only .marking-image-preview-list .button-row {
  gap: 4px;
}

.marking-zones-page--editor-only .marking-image-preview-list .button-row button {
  font-size: 11px;
  min-height: 30px;
  padding: 5px 8px;
}

.marking-zones-page--editor-only .marking-preview-card {
  align-items: center;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 5px;
}

.marking-zones-page--editor-only .marking-preview-card-main strong {
  font-size: 12px;
}

.marking-zones-page--editor-only .marking-preview-card-main span,
.marking-zones-page--editor-only .marking-preview-card-main small {
  font-size: 10px;
  margin-top: 1px;
}

.marking-zones-page--editor-only .marking-preview-card-actions {
  flex-wrap: nowrap;
  gap: 3px;
}

.marking-zones-page--editor-only .marking-preview-card-actions button {
  font-size: 10px;
  min-height: 26px;
  padding: 4px 6px;
}

.marking-technique-workflow {
  background: #fff;
  border: 1px solid #dce7ff;
  border-radius: 10px;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 6px;
}

.marking-technique-tabs {
  display: flex;
  gap: 5px;
  max-height: 76px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.marking-technique-tabs button {
  background: #f8fbff;
  border: 1px solid #dce5fb;
  border-radius: 8px;
  color: #28364f;
  cursor: pointer;
  min-width: 150px;
  padding: 5px 7px;
  text-align: left;
}

.marking-technique-tabs button.is-active {
  background: #eef5ff;
  border-color: #4e73df;
  box-shadow: 0 8px 18px rgba(78, 115, 223, .14);
}

.marking-technique-tabs strong,
.marking-technique-tabs span {
  display: block;
}

.marking-technique-tabs span {
  color: #6f7d98;
  font-size: 11px;
  font-weight: 800;
  margin-top: 3px;
}

.zone-fields {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(280px, .82fr) minmax(330px, 1fr);
  align-items: start;
}

.zone-fields > .marking-image-picker-panel {
  grid-column: 1;
  grid-row: 1 / span 6;
}

.zone-fields > .marking-zone-tabs-panel {
  grid-column: 2;
  grid-row: 1;
}

.zone-fields > .marking-technique-workflow {
  grid-column: 2;
  grid-row: 2;
}

.zone-fields > .marking-variation-scope {
  grid-column: 2;
  grid-row: 1;
}

.zone-fields > .marking-image-scope-chip {
  grid-column: 2;
  grid-row: 2;
}

.zone-fields > .marking-zone-advanced {
  grid-column: 2;
  grid-row: 3;
}

.zone-fields > .marking-notes-field {
  grid-column: 2;
  grid-row: 4;
}

.zone-fields > .marking-zone-tabs-panel,
.zone-fields > .marking-technique-workflow {
  display: none;
}

.marking-zone-tabs-panel,
.marking-zone-config-card,
.marking-image-picker-panel,
.marking-image-preview-list,
.marking-variation-scope,
.marking-preview-settings-card {
  background: #fff;
  border: 1px solid #dce7ff;
  border-radius: 9px;
  display: grid;
  gap: 6px;
  padding: 6px;
}

.marking-zone-config-card {
  align-items: end;
  background: #f8fbff;
  border: 0;
  grid-template-columns: minmax(160px, 1fr) minmax(90px, .42fr) minmax(90px, .42fr) auto auto;
  padding: 0;
}

.marking-preview-settings-card {
  background: #f8fbff;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
}

.marking-image-picker-panel .marking-preview-settings-card {
  grid-template-columns: 1fr;
}

.marking-zone-config-card .field {
  margin: 0;
}

.marking-image-gallery-block {
  background: #fff;
  border: 1px solid #e3eafe;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 6px;
}

.admin-content > .marking-zones-page--editor-only {
  max-width: none;
}

.marking-zones-page--editor-only {
  display: grid;
  gap: 10px;
  width: 100%;
}

.marking-zones-page--editor-only > .panel-card:first-child {
  border-radius: 10px;
  box-shadow: none;
  padding: 12px 14px;
}

.marking-zones-page--editor-only .marking-zone-layout {
  margin-top: 0;
}

.marking-zones-page--editor-only .marking-zone-editor {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.marking-zones-page--editor-only .marking-editor-shell-head {
  align-items: center;
  background: #fff;
  border: 1px solid #dce7ff;
  border-radius: 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
}

.marking-zones-page--editor-only .marking-global-controls {
  grid-template-columns: minmax(0, 1fr);
}

.marking-zones-page--editor-only .marking-product-context {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 8px;
}

.marking-zones-page--editor-only .zone-editor-grid {
  align-items: start;
  gap: 12px;
  grid-template-columns: minmax(640px, 1fr) minmax(380px, 460px);
}

.marking-zones-page--editor-only .marking-image-workspace {
  display: grid;
  gap: 8px;
}

.marking-zones-page--editor-only .marking-image-gallery-block {
  align-items: end;
  grid-template-columns: minmax(0, 1fr);
}

.marking-zones-page--editor-only .marking-image-gallery-block > .section-heading-row {
  grid-column: 1 / -1;
}

.marking-zones-page--editor-only .marking-image-strip {
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  margin: 0;
  max-height: 96px;
}

.marking-zones-page--editor-only .marking-image-strip img {
  height: 44px;
  width: 70px;
}

.marking-zones-page--editor-only .marking-scale-toolbar,
.marking-zones-page--editor-only .marking-logo-adjust-toolbar {
  grid-template-columns: repeat(auto-fit, minmax(118px, max-content));
  margin: 0;
  padding: 8px;
}

.marking-zones-page--editor-only .marking-editor-toolbar {
  margin: 0;
}

.marking-zones-page--editor-only .marking-image-editor {
  min-height: clamp(520px, 62vh, 820px);
}

.marking-zones-page--editor-only .zone-fields {
  align-content: start;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  max-height: calc(100vh - 230px);
  overflow: auto;
  padding-right: 2px;
}

.marking-zones-page--editor-only .zone-fields > .marking-image-picker-panel,
.marking-zones-page--editor-only .zone-fields > .marking-zone-tabs-panel,
.marking-zones-page--editor-only .zone-fields > .marking-technique-workflow,
.marking-zones-page--editor-only .zone-fields > .marking-variation-scope,
.marking-zones-page--editor-only .zone-fields > .marking-image-scope-chip,
.marking-zones-page--editor-only .zone-fields > .marking-zone-advanced,
.marking-zones-page--editor-only .zone-fields > .marking-notes-field {
  grid-column: auto;
  grid-row: auto;
}

.marking-zones-page--editor-only .marking-zone-config-card {
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(78px, .42fr)) auto auto;
}

.marking-zones-page--editor-only .marking-zone-tabs {
  max-height: 120px;
}

.marking-zones-page--editor-only .marking-technique-add-row,
.marking-zones-page--editor-only .marking-active-technique-panel,
.marking-zones-page--editor-only .marking-preview-settings-card {
  grid-template-columns: minmax(0, 1fr);
}

.marking-zones-page--editor-only .marking-technique-tabs {
  flex-wrap: wrap;
  max-height: 150px;
}

.marking-zones-page--editor-only .marking-technique-tabs button {
  flex: 1 1 160px;
}

.marking-zones-page--editor-only .marking-variation-checks {
  max-height: 175px;
}

.marking-zones-page--editor-only .marking-image-picker-panel {
  gap: 5px;
  padding: 6px;
}

.marking-zones-page--editor-only .marking-preview-list-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  max-height: 210px;
  overflow: auto;
}

.marking-zones-page--editor-only .marking-zone-advanced-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bulk-mounting-modal {
  display: grid;
  gap: 12px;
  max-height: 90vh;
  overflow: auto;
  width: min(1120px, calc(100vw - 32px));
}

.bulk-selected-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bulk-selected-products span {
  background: #eef5ff;
  border: 1px solid #d6e2ff;
  border-radius: 999px;
  color: #31538f;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
}

.bulk-mounting-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.bulk-mounting-grid--flow {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
}

.bulk-mounting-grid section {
  border: 1px solid #dce7ff;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.bulk-mounting-flow-section {
  min-width: 0;
}

.marking-flow-board--bulk {
  border: 0;
  margin: 0;
  padding: 0;
}

.bulk-custom-zone-row {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(90px, .36fr));
}

.bulk-checkbox-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.bulk-preview-toggle {
  min-height: 42px;
}

.bulk-preview-position-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bulk-segment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bulk-segment-row button {
  background: #f8fbff;
  border: 1px solid #dce5fb;
  border-radius: 8px;
  color: #28364f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 32px;
  padding: 6px 9px;
}

.bulk-segment-row button.is-active {
  background: #eef5ff;
  border-color: #4e73df;
  box-shadow: 0 8px 18px rgba(78, 115, 223, .12);
  color: #254fc5;
}

.bulk-segment-row button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.bulk-apply-summary {
  background: #f8fbff;
  border: 1px solid #dce7ff;
  border-radius: 10px;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
}

.bulk-apply-summary strong {
  color: #28364f;
  font-size: 14px;
}

.bulk-apply-summary span,
.bulk-apply-summary small {
  color: #65738f;
  font-size: 11px;
  font-weight: 800;
}

.marking-zone-editor .field {
  gap: 3px;
}

.marking-zone-editor .field input,
.marking-zone-editor .field select,
.marking-zone-editor .field textarea {
  min-height: 32px;
  padding: 6px 8px;
}

.marking-zone-editor .field > span,
.marking-zone-editor .eyebrow {
  font-size: 10px;
}

.marking-zone-editor .primary-button,
.marking-zone-editor .secondary-button,
.marking-zone-editor .danger-button {
  min-height: 32px;
  padding: 6px 9px;
}

.marking-image-picker-panel .field,
.marking-preview-settings-card .field {
  margin: 0;
}

.marking-image-preview-list {
  background: #f8fbff;
  border-color: #e1e8fb;
  margin-top: 2px;
}

.marking-preview-list-grid {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.marking-preview-blocker,
.marking-preview-ready {
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  margin: 0;
  padding: 6px 8px;
}

.marking-preview-blocker {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.marking-preview-ready {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.marking-technique-add-row,
.marking-active-technique-panel {
  align-items: end;
  display: grid;
  gap: 6px;
}

.marking-technique-add-row {
  grid-template-columns: minmax(160px, 1fr) minmax(130px, .7fr) auto;
}

.marking-active-technique-panel {
  align-items: start;
  background: #f8fbff;
  border: 1px solid #e1e8fb;
  border-radius: 8px;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .85fr) minmax(180px, .85fr) auto;
  padding: 8px;
}

.marking-active-technique-panel .field,
.marking-technique-add-row .field {
  margin: 0;
}

.marking-active-technique-panel .field:has(select) {
  grid-column: 1 / -1;
}

.marking-active-technique-panel .field:has(.inline-field-action) {
  grid-column: 1 / 2;
}

.marking-active-technique-panel .danger-button {
  align-self: end;
  min-height: 34px;
}

.check-field {
  align-items: center;
  background: #fff;
  border: 1px solid #dce5fb;
  border-radius: 8px;
  color: #40506d;
  cursor: pointer;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 8px;
  min-height: 32px;
  padding: 6px 8px;
}

.marking-active-technique-panel small {
  color: #687591;
  font-size: 11px;
  font-weight: 800;
  grid-column: 1 / -1;
}

.marking-variation-checks {
  display: grid;
  gap: 5px;
  max-height: 110px;
  overflow: auto;
  padding-right: 2px;
}

.marking-variation-checks label {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dce5fb;
  border-radius: 10px;
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 4px 6px;
}

.marking-variation-checks label.is-active {
  background: #eef5ff;
  border-color: #9eb8f4;
}

.marking-variation-checks strong,
.marking-variation-checks small {
  display: block;
}

.marking-variation-checks strong {
  color: #28364f;
  font-size: 12px;
}

.marking-variation-checks small {
  color: #7d89a5;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.marking-variation-checks button {
  background: #fff;
  border: 1px solid #c8d7ff;
  border-radius: 999px;
  color: #4e73df;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
}

.marking-zone-editor .empty-cell {
  align-items: center;
  background: #f8fbff;
  border: 1px dashed #cddafa;
  border-radius: 10px;
  color: #6f7d98;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  min-height: 30px;
  padding: 5px 7px;
  text-align: center;
}

.marking-notes-field textarea {
  min-height: 44px;
}

.marking-variant-preview-list {
  background: #f8fbff;
  border: 1px solid #e1e8fb;
  border-radius: 12px;
  margin: 8px 0 10px;
  padding: 8px 10px;
}

.marking-variant-preview-list > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.marking-variant-preview-list span {
  background: #fff;
  border: 1px solid #dce5fb;
  border-radius: 999px;
  color: #61708d;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
}

.marking-variant-preview-list span.is-active {
  border-color: #4e73df;
  color: #174ea6;
}

.marking-zone-version-picker {
  background: #f8fbff;
  border: 1px solid #e1e8fb;
  border-radius: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 10px 0;
  padding: 10px;
}

.marking-zone-version-picker .eyebrow,
.marking-zone-version-picker small {
  grid-column: 1 / -1;
}

.marking-zone-version-picker small {
  color: #7d89a5;
  font-size: 11px;
  font-weight: 800;
}

.marking-zone-tech-list {
  display: grid;
  gap: 7px;
  margin: 8px 0;
}

.marking-zone-tech-list > div {
  align-items: center;
  background: #fff;
  border: 1px solid #dce5fb;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto) auto;
  padding: 8px 10px;
}

.marking-zone-tech-list strong,
.marking-zone-tech-list span {
  display: block;
}

.marking-zone-tech-list span {
  color: #687591;
  font-size: 12px;
  font-weight: 800;
}

.marking-preview-logo-box {
  align-items: center;
  display: flex;
  gap: 10px;
}

.marking-logo-variants {
  display: flex;
  gap: 6px;
}

.marking-logo-variants span {
  align-items: center;
  background: #fff;
  border: 1px solid #dce5fb;
  border-radius: 10px;
  color: #687591;
  display: grid;
  font-size: 10px;
  font-weight: 800;
  justify-items: center;
  padding: 5px;
}

.marking-logo-variants img {
  background:
    linear-gradient(45deg, #f0f3fa 25%, transparent 25%),
    linear-gradient(-45deg, #f0f3fa 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f3fa 75%),
    linear-gradient(-45deg, transparent 75%, #f0f3fa 75%);
  background-color: #fff;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  background-size: 10px 10px;
  border-radius: 7px;
  height: 36px;
  object-fit: contain;
  width: 56px;
}

.marking-logo-variant-chip--white img {
  background: #d3d3d3;
}

.marking-logo-thumb {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e3fb;
  border-radius: 12px;
  color: #7d89a5;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 56px;
  justify-content: center;
  overflow: hidden;
  width: 86px;
}

.marking-logo-thumb img {
  max-height: 48px;
  max-width: 78px;
  object-fit: contain;
}

.marking-logo-upload {
  cursor: pointer;
  position: relative;
}

.marking-logo-upload input {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.marking-logo-modal-overlay {
  z-index: 1200;
}

.marking-logo-modal {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(25, 36, 78, .28);
  max-height: 92vh;
  overflow: auto;
  width: min(820px, calc(100vw - 32px));
}

.marking-logo-modal-head {
  align-items: center;
  background: #075a9a;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
}

.marking-logo-modal-head h3 {
  color: inherit;
  font-size: 24px;
  margin: 0;
}

.marking-logo-modal-head button {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
}

.marking-logo-upload-flow,
.marking-logo-review-flow {
  padding: 22px 32px 30px;
}

.marking-logo-modal-message {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 800;
  margin: 0;
  padding: 10px 24px;
}

.marking-logo-upload-lead,
.marking-logo-review-note {
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 auto 18px;
  max-width: 720px;
  text-align: center;
}

.marking-logo-format-grid {
  border: 1px solid #9aa7bd;
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr 1fr 1fr;
  margin-bottom: 16px;
  padding: 18px 24px;
}

.marking-logo-format-grid h4 {
  color: #075a9a;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}

.marking-logo-format-grid span,
.marking-logo-format-grid small {
  color: #111827;
  display: block;
  margin: 8px 0;
}

.marking-logo-format-grid span::before {
  color: #9aa7bd;
  content: "✓";
  font-weight: 800;
  margin-right: 8px;
}

.marking-logo-format-grid .is-incompatible span,
.marking-logo-format-grid .is-incompatible small {
  color: #e11d48;
}

.marking-logo-format-grid .is-incompatible span::before {
  color: #c7cdd8;
  content: "×";
}

.marking-logo-background-options {
  border: 1px solid #9aa7bd;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
  padding: 14px;
}

.marking-logo-background-options label {
  align-items: center;
  color: #111827;
  cursor: pointer;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.marking-logo-background-options label.is-active {
  color: #075a9a;
  font-weight: 800;
}

.marking-logo-bg-sample {
  align-items: center;
  background: linear-gradient(135deg, #f5f7fb, #dbeafe);
  border: 1px solid #d4dbea;
  color: #111827;
  display: flex;
  font-weight: 800;
  height: 92px;
  justify-content: center;
  width: 170px;
}

.marking-logo-bg-sample--all {
  background: #fff;
}

.marking-logo-bg-sample--exterior {
  background: radial-gradient(circle at center, #fff 0 45%, #d7eef7 46% 100%);
}

.marking-logo-bg-sample--none {
  background: #edf1f7;
}

.marking-logo-dropzone {
  align-items: center;
  border: 2px dashed #9db4e8;
  border-radius: 14px;
  color: #075a9a;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 22px;
  text-align: center;
}

.marking-logo-dropzone.is-active {
  background: #eef6ff;
  border-color: #4e73df;
}

.marking-logo-dropzone small {
  color: #7d89a5;
}

.marking-logo-file-button {
  cursor: pointer;
  font-size: 18px;
  position: relative;
}

.marking-logo-file-button input {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.marking-logo-review-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.marking-logo-review-card h4 {
  color: #075a9a;
  font-size: 18px;
  margin: 0 0 10px;
  text-align: center;
}

.marking-logo-review-image {
  align-items: center;
  background:
    linear-gradient(45deg, #f0f3fa 25%, transparent 25%),
    linear-gradient(-45deg, #f0f3fa 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f3fa 75%),
    linear-gradient(-45deg, transparent 75%, #f0f3fa 75%);
  background-color: #fff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  border: 1px solid #ccd4e0;
  display: flex;
  height: 190px;
  justify-content: center;
}

.marking-logo-review-card--white .marking-logo-review-image {
  background: #d3d3d3;
  border-color: #c7c7c7;
}

.marking-logo-review-card--black .marking-logo-review-image,
.marking-logo-review-card--full_color .marking-logo-review-image {
  background:
    linear-gradient(45deg, #f0f3fa 25%, transparent 25%),
    linear-gradient(-45deg, #f0f3fa 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f3fa 75%),
    linear-gradient(-45deg, transparent 75%, #f0f3fa 75%);
  background-color: #fff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.marking-logo-review-image img {
  max-height: 170px;
  max-width: 92%;
  object-fit: contain;
}

.marking-logo-review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.marking-logo-review-actions button {
  background: #fff;
  border: 1px solid #d6dbe6;
  color: #7b8497;
  cursor: pointer;
  font-weight: 800;
  padding: 12px;
}

.marking-logo-review-actions button:first-child.is-selected {
  background: #8ae98a;
  border-color: #8ae98a;
  color: #06720b;
}

.marking-logo-review-actions button:last-child.is-selected {
  background: #ffe4e6;
  border-color: #fb7185;
  color: #be123c;
}

.marking-logo-confirm-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.brand-logo-flow {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  grid-template-areas:
    "list upload"
    "editor editor";
  align-items: start;
}

.brand-logo-upload-panel,
.brand-logo-preview-panel {
  display: grid;
  gap: 1rem;
}

.brand-logo-list-panel {
  grid-area: list;
}

.brand-logo-upload-panel {
  grid-area: upload;
}

.brand-logo-preview-panel {
  grid-area: editor;
}

.brand-logo-search-card,
.brand-logo-version-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(110px, 0.45fr) minmax(95px, 0.3fr) minmax(220px, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
}

.brand-logo-search-card--list {
  margin-bottom: 1rem;
}

.brand-logo-search-card {
  grid-template-columns: 1fr;
}

.brand-logo-version-layers {
  display: grid;
  gap: 0.35rem;
}

.brand-logo-version-layers > span {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-logo-version-layers--modal {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.9rem;
}

.brand-logo-version-layers--modal p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  margin: -0.1rem 0 0.45rem;
}

.brand-logo-version-edit-modal {
  max-width: 680px;
}

.brand-logo-version-edit-body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.brand-logo-version-color-field {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  display: flex;
  gap: 0.75rem;
  padding: 0.45rem 0.6rem;
}

.brand-logo-version-color-field input {
  border: 0;
  height: 36px;
  padding: 0;
  width: 54px;
}

.brand-logo-version-color-field strong {
  color: var(--heading);
  font-size: 0.82rem;
}

.brand-logo-create-modal {
  display: grid;
  gap: 1rem;
  width: min(1040px, calc(100vw - 32px));
}

.brand-logo-crop-panel {
  background: #f8fbff;
  border: 1px solid #cfe0ff;
  border-radius: 0.85rem;
  display: grid;
  gap: 0.75rem;
  padding: 0.8rem;
}

.brand-logo-crop-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.brand-logo-crop-head strong,
.brand-logo-crop-head span {
  display: block;
}

.brand-logo-crop-head strong {
  color: var(--heading);
  font-weight: 800;
}

.brand-logo-crop-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-logo-crop-stage {
  align-self: start;
  background:
    linear-gradient(45deg, #edf4ff 25%, transparent 25%),
    linear-gradient(-45deg, #edf4ff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf4ff 75%),
    linear-gradient(-45deg, transparent 75%, #edf4ff 75%);
  background-color: #fff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  border: 1px solid #bcd1fb;
  border-radius: 0.75rem;
  cursor: crosshair;
  display: inline-block;
  line-height: 0;
  max-height: 58vh;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  touch-action: none;
  -webkit-user-select: none;
          user-select: none;
}

.brand-logo-crop-stage img {
  display: block;
  max-height: 58vh;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-select: none;
          user-select: none;
}

.brand-logo-crop-dim {
  background: rgba(10, 20, 35, 0.44);
  pointer-events: none;
  position: absolute;
}

.brand-logo-crop-dim--top {
  left: 0;
  right: 0;
  top: 0;
}

.brand-logo-crop-dim--left {
  left: 0;
}

.brand-logo-crop-dim--right {
  right: 0;
}

.brand-logo-crop-dim--bottom {
  bottom: 0;
  left: 0;
  right: 0;
}

.brand-logo-crop-box {
  border: 2px solid #1d4ed8;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .85), 0 12px 30px rgba(20, 50, 120, .18);
  pointer-events: none;
  position: absolute;
}

.brand-logo-crop-box i {
  border: 1px dashed rgba(255, 255, 255, .85);
  inset: 4px;
  position: absolute;
}

.brand-logo-crop-box em {
  background: #1d4ed8;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  left: 8px;
  line-height: 1;
  padding: 0.28rem 0.5rem;
  position: absolute;
  top: 8px;
}

.brand-logo-current {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #f8fbff;
}

.brand-logo-list-panel,
.brand-logo-forms-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
}

.brand-logo-list {
  display: grid;
  gap: 0.6rem;
  max-height: 260px;
  overflow: auto;
  padding-right: 0.2rem;
}

.brand-logo-list--table {
  max-height: none;
  overflow: visible;
}

.brand-logo-list-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  border: 1px solid #c8d7ff;
  border-radius: 0.85rem;
  background: #f8fbff;
  color: inherit;
  padding: 0.75rem;
  text-align: left;
}

.brand-logo-list-item .marking-logo-thumb {
  width: 82px;
  height: 58px;
}

.brand-logo-list-item strong,
.brand-logo-list-item small {
  display: block;
}

.brand-logo-list-item strong {
  color: var(--heading);
  font-weight: 800;
}

.brand-logo-list-item small {
  color: var(--muted);
  font-weight: 700;
}

.brand-logo-list-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.marking-product-table-list {
  gap: 8px;
}

.marking-product-table-list .brand-logo-list-item {
  grid-template-columns: 32px 76px minmax(0, 1fr) auto;
  min-height: 76px;
  padding: 8px;
}

.marking-product-table-list .zone-product-select {
  grid-column: 1;
  grid-row: 1;
}

.marking-product-table-list .marking-logo-thumb {
  grid-column: 2;
  grid-row: 1;
  height: 56px;
  width: 76px;
}

.marking-product-table-list .brand-logo-list-item > span:nth-of-type(2) {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
}

.marking-product-table-list .brand-logo-list-actions {
  grid-column: 4;
  grid-row: 1;
  align-self: center;
  justify-self: end;
}

.marking-product-table-list .brand-logo-list-item strong {
  font-size: 15px;
  line-height: 1.2;
}

.marking-product-table-list .brand-logo-list-item small {
  font-size: 12px;
  line-height: 1.2;
  margin-top: 3px;
}

.marking-workflow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.marking-workflow-tabs button {
  background: #fff;
  border: 1px solid #d7e0f4;
  border-radius: 999px;
  color: #42506a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 32px;
  padding: 0.42rem 0.78rem;
}

.marking-workflow-tabs button.is-active {
  background: #173a6b;
  border-color: #173a6b;
  color: #fff;
}

.marking-product-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.marking-product-status-row .editor-chip {
  min-height: 22px;
  padding: 0.14rem 0.48rem;
}

.brand-logo-action-button {
  align-items: center;
  background: #fff;
  border: 1px solid #c9d7f2;
  border-radius: 999px;
  color: #30405c;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.38rem 0.72rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo-action-button:hover {
  border-color: #7fa2eb;
  color: var(--brand);
}

.brand-logo-action-button strong {
  background: #edf4ff;
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.18rem 0.42rem;
}

.brand-logo-action-button--primary {
  background: #eaf2ff;
  border-color: #8fb2f5;
  color: #174ea6;
}

.brand-logo-action-button--danger {
  background: #fff5f6;
  border-color: #f2b9c1;
  color: #a30f32;
}

.brand-logo-action-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.brand-logo-customer-modal {
  width: min(920px, calc(100vw - 32px));
}

.marking-logo-modal-head p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 700;
  margin: 0.25rem 0 0;
}

.brand-logo-customer-body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.brand-logo-customer-search {
  align-items: end;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.brand-logo-customer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-logo-customer-grid section {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.brand-logo-customer-grid h4 {
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0;
}

.brand-logo-customer-list {
  display: grid;
  gap: 0.5rem;
  max-height: 360px;
  overflow: auto;
}

.brand-logo-customer-row {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.65rem;
}

.brand-logo-customer-row strong,
.brand-logo-customer-row small {
  display: block;
}

.brand-logo-customer-row strong {
  color: var(--heading);
  font-size: 0.88rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo-customer-row small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo-list-item em,
.brand-logo-form-card em {
  border-radius: 999px;
  background: #edf4ff;
  color: var(--brand);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  padding: 0.24rem 0.55rem;
  white-space: nowrap;
}

.brand-logo-matrix-wrap {
  overflow-x: auto;
}

.brand-logo-matrix-table {
  min-width: 1120px;
}

.brand-logo-matrix-table th {
  vertical-align: top;
  width: 21%;
}

.brand-logo-matrix-table th:first-child {
  width: 16%;
}

.brand-logo-matrix-table th strong,
.brand-logo-matrix-table th small,
.brand-logo-matrix-table th em,
.brand-logo-matrix-table td strong,
.brand-logo-matrix-table td small {
  display: block;
}

.brand-logo-matrix-table th small {
  color: #dce8ff;
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.brand-logo-matrix-table th em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0.25rem;
  text-transform: none;
}

.brand-logo-matrix-table td:first-child small {
  color: var(--muted);
  font-size: 0.72rem;
}

.brand-logo-version-column {
  min-width: 150px;
  vertical-align: top;
}

.brand-logo-version-column strong {
  color: var(--heading);
}

.brand-logo-version-edit-button {
  align-items: center;
  appearance: none;
  background: #edf4ff;
  border: 1px solid #b8cef8;
  border-radius: 999px;
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  justify-content: center;
  margin-top: 0.65rem;
  padding: 0.34rem 0.72rem;
}

.brand-logo-version-edit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.brand-logo-matrix-cell {
  appearance: none;
  display: grid;
  gap: 0.35rem;
  width: 100%;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fbfdff;
  color: inherit;
  cursor: pointer;
  padding: 0.55rem;
  text-align: left;
}

.brand-logo-shape-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 180px);
  aspect-ratio: 4 / 1;
  height: auto;
  margin: 0 auto;
  border: 1px dashed #c8d7ee;
  border-radius: 0.45rem;
  background:
    linear-gradient(45deg, #f3f6fc 25%, transparent 25%),
    linear-gradient(-45deg, #f3f6fc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f3f6fc 75%),
    linear-gradient(-45deg, transparent 75%, #f3f6fc 75%);
  background-color: #fff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  overflow: hidden;
  box-sizing: border-box;
  text-align: center;
}

.brand-logo-shape-preview * {
  box-sizing: border-box;
}

.brand-logo-shape-preview--standard {
  aspect-ratio: 4 / 1;
  width: min(100%, 180px);
}

.brand-logo-shape-preview--slim {
  aspect-ratio: 8 / 1;
  width: min(100%, 240px);
}

.brand-logo-shape-preview--square,
.brand-logo-shape-preview--circle {
  width: 76px;
  aspect-ratio: 1 / 1;
}

.brand-logo-shape-preview--square {
  border-radius: 0.55rem;
}

.brand-logo-shape-preview--circle {
  border-radius: 999px;
  overflow: hidden;
  padding: 7px;
}

.brand-logo-shape-preview--dark {
  border-color: #334155;
  background: #111827;
  color: #fff;
}

.brand-logo-shape-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.brand-logo-shape-preview--slim img {
  width: 100%;
  height: 100%;
}

.brand-logo-shape-preview--circle img {
  width: 100%;
  height: 90%;
}

.brand-logo-preview-modal {
  max-width: 820px;
  overflow: hidden;
}

.brand-logo-preview-body {
  background: #fff;
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1.1rem 0.9rem;
}

.brand-logo-preview-stage {
  display: grid;
  min-height: 330px;
  place-items: center;
  border: 1px solid #dfe8f7;
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at center, rgba(77, 115, 223, 0.08), transparent 58%),
    #f8fbff;
  padding: 1rem;
}

.brand-logo-large-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 640px);
  aspect-ratio: 4 / 1;
  height: auto;
  margin: 0 auto;
  border: 1px dashed #c8d7ee;
  border-radius: 0.6rem;
  background:
    linear-gradient(45deg, #f3f6fc 25%, transparent 25%),
    linear-gradient(-45deg, #f3f6fc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f3f6fc 75%),
    linear-gradient(-45deg, transparent 75%, #f3f6fc 75%);
  background-color: #fff;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  color: var(--muted);
  font-weight: 800;
  overflow: hidden;
  box-sizing: border-box;
}

.brand-logo-large-preview * {
  box-sizing: border-box;
}

.brand-logo-large-preview--standard {
  aspect-ratio: 4 / 1;
  width: min(100%, 640px);
}

.brand-logo-large-preview--slim {
  aspect-ratio: 8 / 1;
  width: min(100%, 640px);
}

.brand-logo-large-preview--square,
.brand-logo-large-preview--circle {
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
}

.brand-logo-large-preview--circle {
  border-radius: 999px;
  overflow: hidden;
  padding: 24px;
}

.brand-logo-large-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.brand-logo-large-preview--slim img {
  width: 100%;
  height: 100%;
}

.brand-logo-large-preview--circle img {
  width: 100%;
  height: 90%;
}

.brand-logo-preview-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e4ecfb;
  border-radius: 0.75rem;
  background: #fbfdff;
  color: var(--muted);
  font-size: 0.85rem;
}

.brand-logo-preview-meta strong {
  color: var(--heading);
  font-size: 1rem;
  font-weight: 800;
}

.brand-logo-preview-meta small {
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

.brand-logo-review-thumb--dark {
  background: #111827;
  border-color: #334155;
}

.brand-logo-cell-actions {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.1rem 1.1rem;
  border-top: 1px solid var(--line);
  background: #f7faff;
}

.brand-logo-ink-editor {
  align-items: end;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(120px, 180px) auto;
  padding: 0.8rem;
  border: 1px solid #dfe8f7;
  border-radius: 0.75rem;
  background: #fff;
}

.brand-logo-composition-editor {
  align-items: end;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(130px, 0.6fr) auto auto;
  padding: 0.8rem;
  border: 1px solid #dfe8f7;
  border-radius: 0.75rem;
  background: #fff;
}

.brand-logo-composition-editor .field {
  margin: 0;
}

.brand-logo-composition-editor strong,
.brand-logo-composition-editor small {
  display: block;
}

.brand-logo-composition-editor strong {
  color: var(--heading);
  font-weight: 800;
}

.brand-logo-composition-editor small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.brand-logo-composition-color {
  align-items: center;
  display: inline-flex;
  gap: 0.4rem;
  min-height: 38px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.brand-logo-composition-color i {
  border: 1px solid #c7d2e4;
  border-radius: 999px;
  display: inline-block;
  height: 18px;
  width: 18px;
}

.brand-logo-ink-editor .field {
  margin: 0;
}

.brand-logo-ink-editor .secondary-button {
  justify-self: start;
  min-width: 150px;
}

.brand-logo-file-field {
  margin: 0;
}

.brand-logo-file-field input[type="file"] {
  width: 100%;
  padding: 0.65rem;
  border: 1px dashed #b9c9e8;
  border-radius: 0.75rem;
  background: #fff;
}

.brand-logo-cell-actions .button-row {
  justify-content: flex-end;
}

.brand-logo-analysis-card {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.7rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fbfdff;
}

.brand-logo-analysis-card strong,
.brand-logo-analysis-card span {
  display: block;
}

.brand-logo-analysis-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.brand-logo-analysis-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.brand-logo-analysis-card i {
  width: 22px;
  height: 22px;
  border: 1px solid #c7d2e4;
  border-radius: 999px;
}

.brand-logo-one-ink-control {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid #c9d8f5;
  border-radius: 0.75rem;
  background: #f8fbff;
}

.brand-logo-one-ink-control strong,
.brand-logo-one-ink-control span {
  display: block;
}

.brand-logo-one-ink-control strong {
  color: var(--heading);
  font-weight: 800;
}

.brand-logo-one-ink-control span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.brand-logo-color-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.brand-logo-color-switches button {
  align-items: center;
  background: #fff;
  border: 1px solid #b8c8e7;
  border-radius: 999px;
  color: var(--heading);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.35rem;
  padding: 0.32rem 0.58rem;
}

.brand-logo-color-switches button.is-disabled {
  background: #f1f4f9;
  color: #7c879b;
  text-decoration: line-through;
}

.brand-logo-color-switches button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.brand-logo-color-switches i {
  border: 1px solid #c7d2e4;
  border-radius: 999px;
  display: inline-block;
  height: 18px;
  width: 18px;
}

.brand-logo-current h3,
.brand-logo-current p {
  margin: 0;
}

.brand-logo-current h3 {
  color: var(--heading);
  font-size: 1.05rem;
}

.brand-logo-current-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.brand-logo-current p:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

.brand-logo-main-thumb {
  width: 120px;
  height: 88px;
}

.brand-logo-review-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-logo-review-option {
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fbfdff;
  padding: 0.75rem;
}

.brand-logo-review-option strong {
  color: var(--heading);
  font-weight: 800;
}

.brand-logo-review-option > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.brand-logo-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.brand-logo-form-card {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fbfdff;
  padding: 0.75rem;
}

.brand-logo-form-card strong,
.brand-logo-form-card small {
  display: block;
}

.brand-logo-form-card strong {
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 800;
}

.brand-logo-form-card small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  min-height: 2.2em;
}

.brand-logo-form-sample {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 42px;
  border: 1px dashed #b9c9e8;
  border-radius: 0.5rem;
  background:
    linear-gradient(45deg, #f3f6fc 25%, transparent 25%),
    linear-gradient(-45deg, #f3f6fc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f3f6fc 75%),
    linear-gradient(-45deg, transparent 75%, #f3f6fc 75%);
  background-color: #fff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  overflow: hidden;
}

.brand-logo-form-sample--circle {
  border-radius: 999px;
}

.brand-logo-form-sample--square {
  border-radius: 0.65rem;
}

.brand-logo-form-sample img {
  display: block;
  max-width: 82%;
  max-height: 72%;
  object-fit: contain;
}

.brand-logo-form-sample span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .brand-logo-flow {
    grid-template-columns: 1fr;
    grid-template-areas:
      "list"
      "upload"
      "editor";
  }

  .brand-logo-version-tools {
    grid-template-columns: 1fr;
  }

  .brand-logo-composition-editor {
    grid-template-columns: 1fr;
  }

  .brand-logo-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .brand-logo-current,
  .brand-logo-review-grid,
  .brand-logo-list-item,
  .brand-logo-customer-grid,
  .brand-logo-customer-search,
  .brand-logo-form-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo-list-actions {
    justify-content: flex-start;
  }

  .brand-logo-main-thumb {
    width: 100%;
  }
}

.marking-image-editor {
  align-items: flex-start;
  background:
    linear-gradient(45deg, #f4f7ff 25%, transparent 25%),
    linear-gradient(-45deg, #f4f7ff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f4f7ff 75%),
    linear-gradient(-45deg, transparent 75%, #f4f7ff 75%);
  background-color: #fff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  border: 1px solid #d8e3fb;
  border-radius: 16px;
  cursor: crosshair;
  display: flex;
  justify-content: center;
  min-height: 460px;
  overflow: auto;
  position: relative;
}

.marking-editor-toolbar {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dce7ff;
  border-radius: 10px;
  display: flex;
  gap: 8px;
  margin: 0 0 6px;
  padding: 5px 6px;
}

.marking-editor-toolbar span {
  color: #51617f;
  font-size: 12px;
  font-weight: 800;
  min-width: 76px;
}

.marking-editor-toolbar input[type="range"] {
  accent-color: #27899a;
  max-width: 180px;
  min-width: 110px;
}

.marking-image-zoom-canvas {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  line-height: 0;
}

.marking-image-editor.is-measuring {
  cursor: crosshair;
}

.marking-image-editor.is-measuring .marking-zone-box {
  pointer-events: none;
}

.marking-image-editor.is-measuring .marking-zone-box > span:not(.marking-zone-logo-clip),
.marking-image-editor.is-measuring .marking-zone-rotate-handle,
.marking-image-editor.is-measuring .marking-zone-resize-handle {
  display: none;
}

.marking-image-editor.is-clean-preview {
  cursor: default;
}

.marking-image-stage {
  display: inline-flex;
  line-height: 0;
  max-width: 100%;
  position: relative;
  width: 100%;
}

.marking-image-stage > img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  -webkit-user-select: none;
          user-select: none;
  width: 100%;
}

.marking-editor-save-button {
  align-items: center;
  background: #173c8b;
  border: 1px solid #173c8b;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(23, 60, 139, .22);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  padding: 8px 12px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 8;
}

.marking-editor-save-button span {
  border: 2px solid currentColor;
  border-radius: 3px;
  display: inline-block;
  height: 14px;
  position: relative;
  width: 14px;
}

.marking-editor-save-button span::before {
  background: currentColor;
  content: "";
  height: 3px;
  left: 2px;
  position: absolute;
  right: 2px;
  top: 2px;
}

.marking-editor-save-button span::after {
  border: 1px solid currentColor;
  border-bottom: 0;
  content: "";
  height: 4px;
  left: 3px;
  position: absolute;
  right: 3px;
  top: 8px;
}

.marking-editor-save-button:hover {
  background: #234ca5;
  border-color: #234ca5;
}

.marking-editor-save-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.marking-editor-save-button.is-warning {
  background: #9a3412;
  border-color: #9a3412;
}

.marking-zone-box {
  align-items: center;
  background: rgba(78, 115, 223, .12);
  border: 2px solid #00a8b8;
  color: #173c8b;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  pointer-events: auto;
  position: absolute;
  text-align: center;
  touch-action: none;
}

.marking-zone-box--saved {
  background: rgba(20, 184, 166, .08);
  border-color: rgba(20, 184, 166, .55);
  cursor: pointer;
  opacity: .72;
  pointer-events: auto;
}

.marking-zone-box--saved:hover {
  opacity: 1;
}

.marking-zone-box--draft {
  background: rgba(249, 115, 22, .1);
  border-color: #f97316;
  color: #9a3412;
}

.marking-zone-box--draft .marking-zone-rotate-handle,
.marking-zone-box--draft .marking-zone-resize-handle {
  border-color: #f97316;
  color: #9a3412;
}

.marking-zone-box--draft .marking-zone-rotate-handle::after {
  background: #f97316;
}

.marking-image-editor.is-clean-preview .marking-zone-box {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  cursor: default;
  opacity: 1;
  pointer-events: none;
}

.marking-image-editor.is-clean-preview .marking-zone-box > span:not(.marking-zone-logo-clip),
.marking-image-editor.is-clean-preview .marking-zone-rotate-handle,
.marking-image-editor.is-clean-preview .marking-zone-resize-handle {
  display: none;
}

.marking-zone-logo-clip {
  border-radius: inherit;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.marking-zone-logo-preview {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .18));
  height: 100%;
  left: 50%;
  max-height: none;
  max-width: 100%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  transform-origin: center;
  width: 100%;
  z-index: 0;
}

.marking-zone-logo-clip--embroidery::after {
  background: radial-gradient(circle at 35% 22%, rgba(255, 255, 255, .26), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(0, 0, 0, .18));
  border-radius: inherit;
  content: "";
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: .72;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.marking-zone-logo-preview--tinted {
  background: var(--marking-logo-color, #111);
  display: block;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.marking-zone-rotate-handle,
.marking-zone-resize-handle {
  background: #fff;
  border: 2px solid #00a8b8;
  box-shadow: 0 8px 18px rgba(10, 54, 112, .18);
  position: absolute;
  z-index: 2;
}

.marking-zone-rotate-handle {
  border-radius: 999px;
  color: #087a86;
  cursor: grab;
  font-size: 13px;
  font-weight: 800;
  height: 26px;
  left: 50%;
  line-height: 20px;
  padding: 0;
  top: -38px;
  transform: translateX(-50%);
  width: 26px;
}

.marking-zone-rotate-handle::after {
  background: #00a8b8;
  content: "";
  height: 12px;
  left: 50%;
  position: absolute;
  top: 24px;
  transform: translateX(-50%);
  width: 2px;
}

.marking-zone-resize-handle {
  border-radius: 8px;
  height: 14px;
  padding: 0;
  width: 14px;
}

.marking-zone-resize-handle--nw {
  cursor: nwse-resize;
  left: -8px;
  top: -8px;
}

.marking-zone-resize-handle--ne {
  cursor: nesw-resize;
  right: -8px;
  top: -8px;
}

.marking-zone-resize-handle--sw {
  bottom: -8px;
  cursor: nesw-resize;
  left: -8px;
}

.marking-zone-resize-handle--se {
  bottom: -8px;
  cursor: nwse-resize;
  right: -8px;
}

.marking-zone-box > span:not(.marking-zone-logo-clip) {
  position: relative;
  z-index: 1;
}

.marking-zone-box-label {
  align-items: center;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(78, 115, 223, .22);
  border-radius: 8px;
  bottom: -26px;
  color: #173c8b;
  display: grid;
  gap: 1px;
  line-height: 1.1;
  max-width: max(120px, 100%);
  padding: 3px 6px;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 3;
}

.marking-zone-box-label strong,
.marking-zone-box-label small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marking-zone-box-label strong {
  font-size: 11px;
}

.marking-zone-box-label small {
  color: #40506d;
  font-size: 10px;
  font-weight: 900;
}

.marking-scale-toolbar,
.marking-logo-adjust-toolbar {
  align-items: end;
  background: #f8fbff;
  border: 1px solid #e1e8fb;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(116px, max-content));
  margin: 10px 0;
  padding: 10px;
}

.marking-scale-toolbar .field,
.marking-logo-adjust-toolbar .field {
  margin: 0;
  min-width: 116px;
}

.marking-scale-toolbar .field input[type="range"],
.marking-logo-adjust-toolbar .field input[type="range"] {
  width: 132px;
}

.marking-scale-toolbar .secondary-button.is-active,
.marking-logo-adjust-toolbar .secondary-button.is-active {
  background: #e0f7fa;
  border-color: #00a8b8;
  color: #087a86;
}

.marking-image-preview-settings {
  align-items: end;
  background: #fff;
  border: 1px solid #e1e8fb;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1.1fr) minmax(190px, 1fr) minmax(190px, 1fr) auto;
  margin-top: 10px;
  padding: 10px;
}

.marking-image-preview-settings .check-field,
.marking-image-preview-settings .field {
  margin: 0;
}

.marking-image-preview-settings .secondary-button {
  min-height: 40px;
}

.marking-image-mode-buttons,
.marking-logo-button-row,
.marking-logo-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.marking-image-mode-buttons button,
.marking-logo-button-group button {
  background: #f8fbff;
  border: 1px solid #dce5fb;
  border-radius: 8px;
  color: #28364f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 32px;
  padding: 6px 9px;
}

.marking-image-mode-buttons button.is-active,
.marking-logo-button-group button.is-active {
  background: #eef5ff;
  border-color: #4e73df;
  box-shadow: 0 8px 18px rgba(78, 115, 223, .12);
  color: #254fc5;
}

.marking-image-mode-buttons button:disabled,
.marking-logo-button-group button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.marking-logo-button-row {
  align-items: center;
  background: #fff;
  border: 1px solid #e1e8fb;
  border-radius: 8px;
  margin: 0;
  padding: 6px;
}

.marking-logo-button-group {
  align-items: center;
  min-width: 0;
}

.marking-logo-button-group > span {
  color: #4e73df;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 0 4px;
  text-transform: uppercase;
}

@media (max-width: 1120px) {
  .marking-image-preview-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .marking-image-preview-settings {
    grid-template-columns: 1fr;
  }
}

.marking-scale-result {
  align-self: center;
  color: #53617c;
  font-size: 12px;
  font-weight: 800;
}

.marking-preview-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  margin: 8px 0 0;
  padding: 8px 10px;
}

.marking-scale-line {
  background: #f97316;
  height: 3px;
  pointer-events: none;
  position: absolute;
  transform-origin: left center;
  z-index: 5;
}

.marking-scale-line::before,
.marking-scale-line::after {
  background: #f97316;
  border-radius: 999px;
  content: "";
  height: 11px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
}

.marking-scale-line::before {
  left: -5px;
}

.marking-scale-line::after {
  right: -5px;
}

.marking-scale-line span {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
  left: 50%;
  padding: 3px 7px;
  position: absolute;
  top: -28px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.muted-help {
  color: #7d89a5;
  font-size: 12px;
  margin: 8px 0 0;
}

.zone-fields textarea {
  min-height: 72px;
}

.marking-zone-quick-card {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(90px, .55fr));
}

.marking-image-scope-chip {
  background: #f8fbff;
  border: 1px solid #dce7ff;
  border-radius: 14px;
  display: grid;
  gap: 2px;
  margin: 10px 0;
  padding: 9px 11px;
}

.marking-image-scope-chip span {
  color: #4e73df;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.marking-image-scope-chip strong {
  color: #28364f;
  font-size: 13px;
}

.marking-image-scope-chip small {
  color: #7d89a5;
  font-size: 11px;
}

.marking-size-chip {
  background: #f8fbff;
  border: 1px solid #dce7ff;
  border-radius: 14px;
  display: grid;
  gap: 2px;
  margin: 10px 0;
  padding: 9px 11px;
}

.marking-size-chip span {
  color: #4e73df;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.marking-size-chip strong {
  color: #28364f;
  font-size: 15px;
}

.marking-size-chip small {
  color: #7d89a5;
  font-size: 11px;
}

.marking-size-chip.is-warning {
  background: #fff7ed;
  border-color: #fed7aa;
}

.marking-size-chip.is-warning span,
.marking-size-chip.is-warning strong {
  color: #9a3412;
}

.marking-zone-advanced {
  background: #f8fbff;
  border: 1px solid #e1e8fb;
  border-radius: 14px;
  margin: 10px 0;
  padding: 8px 10px;
}

.marking-zone-advanced summary {
  color: #4e73df;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.marking-zone-advanced-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  margin-top: 10px;
}

.marking-variants-panel {
  border: 1px solid #e1e8fb;
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 12px;
}

.marking-variant-chips {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.marking-variant-chips button {
  background: #fff;
  border: 1px solid #dce5fb;
  border-radius: 12px;
  color: #28364f;
  cursor: pointer;
  padding: 9px 10px;
  text-align: left;
}

.marking-variant-chips button.is-active {
  border-color: #4e73df;
  box-shadow: 0 8px 20px rgba(78, 115, 223, .14);
}

.marking-variant-chips strong,
.marking-variant-chips small {
  display: block;
}

.marking-variant-chips small {
  color: #7d89a5;
  font-size: 11px;
  margin-top: 4px;
}

.zone-technique-picker {
  border: 1px solid #e1e8fb;
  border-radius: 14px;
  margin: 10px 0;
  padding: 10px;
}

.marking-logo-mode-picker,
.marking-zone-toggles {
  background: #f8fbff;
  border: 1px solid #e1e8fb;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  padding: 10px;
}

.marking-logo-mode-picker--compact {
  align-items: center;
  margin: 10px 0;
  padding: 8px;
}

.marking-logo-mode-picker .eyebrow {
  flex-basis: 100%;
}

.marking-logo-mode-picker button {
  align-items: center;
  background: #fff;
  border: 1px solid #dce5fb;
  border-radius: 12px;
  color: #28364f;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  gap: 7px;
  padding: 8px 10px;
}

.marking-logo-mode-picker button.is-active {
  border-color: #4e73df;
  box-shadow: 0 8px 18px rgba(78, 115, 223, .14);
}

.marking-logo-mode-swatch {
  border: 1px solid #d5def5;
  border-radius: 8px;
  display: inline-block;
  height: 24px;
  width: 34px;
}

.marking-logo-mode-swatch--full_color {
  background: linear-gradient(135deg, #1d4ed8 0 33%, #ef4444 33% 66%, #22c55e 66% 100%);
}

.marking-logo-mode-swatch--black {
  background: #111827;
}

.marking-logo-mode-swatch--white {
  background: #fff;
}

.marking-color-field {
  min-width: 160px;
}

.marking-zone-toggles label {
  align-items: center;
  color: #4b5874;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
}

.zone-pill-list {
  border-top: 1px dashed #d9e3fb;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

.zone-pill-list--inline {
  border: 1px solid #e1e8fb;
  border-radius: 14px;
  margin: 0 0 10px;
  padding: 10px;
}

.zone-pill-list .section-heading-row {
  flex-basis: 100%;
  margin-bottom: 0;
}

.zone-pill-list button {
  background: #fff;
  border: 1px solid #dce5fb;
  border-radius: 14px;
  color: #27364f;
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-width: 190px;
  padding: 9px 11px;
  text-align: left;
}

.zone-pill-list button.is-active {
  border-color: #4e73df;
  box-shadow: 0 8px 18px rgba(78, 115, 223, .14);
}

.zone-pill-card {
  align-items: stretch;
  background: #fff;
  border: 1px solid #dce5fb;
  border-radius: 14px;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(150px, 1fr) auto;
  min-width: 260px;
  padding: 7px;
}

.zone-pill-card.is-active {
  border-color: #4e73df;
  box-shadow: 0 8px 18px rgba(78, 115, 223, .14);
}

.zone-pill-list .zone-pill-main {
  border: 0;
  border-radius: 10px;
  min-width: 0;
  padding: 4px 5px;
}

.zone-pill-list .zone-pill-main:hover {
  background: #f8fbff;
}

.zone-pill-list .zone-eye-button {
  align-items: center;
  background: #eef6ff;
  border: 1px solid #cddcff;
  border-radius: 10px;
  color: #254fc5;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  min-width: 64px;
  padding: 0 8px;
  text-align: center;
}

.zone-pill-list .zone-eye-button.is-muted {
  background: #f2f4f8;
  color: #7b8499;
}

.zone-pill-list strong,
.zone-pill-list span,
.zone-pill-list small {
  display: block;
}

.zone-pill-list span,
.zone-pill-list small {
  color: #77839e;
  font-size: 11px;
}

.zone-technique-chips button {
  background: #eff4ff;
  border: 1px solid #cbd8ff;
  border-radius: 999px;
  color: #254fc5;
  font-weight: 800;
  padding: 7px 10px;
}

.zone-technique-chips small {
  color: #8c2349;
  margin-left: 6px;
}

.zone-technique-chips em {
  color: #687591;
  font-size: 11px;
  font-style: normal;
  margin-left: 6px;
}

.zone-list-table {
  margin-top: 16px;
}

.zone-list-table table {
  width: 100%;
}

.danger-button {
  background: #fff1f3;
  border: 1px solid #f3b9c3;
  border-radius: 10px;
  color: #b20f32;
  font-weight: 800;
  padding: 10px 14px;
}

@media (max-width: 1200px) {
  .marking-zone-layout,
  .marking-global-controls,
  .marking-editor-shell-head,
  .zone-editor-grid,
  .compact-form-grid {
    grid-template-columns: 1fr;
  }

  .marking-preview-logo-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .marking-zone-version-picker,
  .marking-zone-config-card,
  .marking-zones-page--editor-only .marking-zone-config-card,
  .zone-fields,
  .bulk-mounting-grid,
  .bulk-preview-position-grid,
  .marking-template-bar,
  .marking-technique-add-row,
  .marking-active-technique-panel,
  .marking-zone-tech-list > div {
    grid-template-columns: 1fr;
  }

  .zone-fields > .marking-image-picker-panel,
  .zone-fields > .marking-zone-tabs-panel,
  .zone-fields > .marking-technique-workflow,
  .zone-fields > .marking-variation-scope,
  .zone-fields > .marking-image-scope-chip,
  .zone-fields > .marking-zone-advanced,
  .zone-fields > .marking-notes-field {
    grid-column: auto;
    grid-row: auto;
  }
}

.small-number-input {
  max-width: 110px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--heading);
}

.products-variants-table .cell-input,
.products-variants-table .cell-select {
  min-width: 112px;
  font-size: 0.88rem;
  padding: 0.45rem 0.55rem;
}

.products-variants-table .cell-select.is-danger {
  border-color: #ef4444;
  background: #fff7f7;
}

.products-variants-table td {
  vertical-align: top;
}

.variant-reference-cell {
  display: grid;
  gap: 0.35rem;
  min-width: 260px;
}

.variant-reference-cell__warning {
  width: fit-content;
  white-space: nowrap;
}

.variant-channel-cell {
  display: grid;
  gap: 0.4rem;
  min-width: 170px;
}

.variant-channel-reference-input {
  width: 160px;
  border: 1px solid rgba(78, 115, 223, 0.28);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--heading);
  background: #fff;
}

.variant-channel-reference-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.12);
}

.variant-channel-cell__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.ghost-button--compact {
  padding: 0.38rem 0.55rem;
  min-height: auto;
}

.variants-row-image {
  display: block;
  width: 72px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto;
}

.product-master-draggable-image {
  cursor: grab;
  border-radius: 10px;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.product-master-draggable-image:active {
  cursor: grabbing;
}

.product-master-draggable-image:hover {
  box-shadow: 0 10px 24px rgba(78, 115, 223, 0.22);
  transform: translateY(-1px);
}

.variant-image-drop-row {
  transition: background 0.16s ease, outline-color 0.16s ease;
}

.variant-image-drop-row.is-drag-over td {
  background: rgba(78, 115, 223, 0.08);
  outline: 2px dashed rgba(78, 115, 223, 0.45);
  outline-offset: -2px;
}

.variant-gallery-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  min-width: 260px;
}

.variant-gallery-item {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  width: 92px;
  padding: 0.45rem;
  border: 1px solid rgba(78, 115, 223, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.variant-gallery-item.is-primary {
  border-color: rgba(78, 115, 223, 0.55);
  box-shadow: 0 10px 24px rgba(78, 115, 223, 0.14);
}

.variant-gallery-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.table-path-cell {
  max-width: 260px;
  color: var(--muted);
  font-size: 0.84rem;
  word-break: break-all;
}

.image-path-compact {
  word-break: normal;
}

.image-path-compact span {
  display: inline-flex;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.image-file-cell {
  display: flex;
  max-width: 260px;
  align-items: center;
  gap: 0.45rem;
}

.image-file-cell > span {
  min-width: 0;
}

.image-file-detail-button {
  flex: 0 0 auto;
  border: 1px solid rgba(78, 115, 223, 0.22);
  border-radius: 999px;
  background: rgba(78, 115, 223, 0.08);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.32rem 0.5rem;
  cursor: pointer;
}

.image-file-detail-button:hover {
  background: rgba(78, 115, 223, 0.14);
}

.image-path-details {
  max-width: 180px;
}

.image-path-details summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 700;
  list-style: none;
}

.image-path-details summary::-webkit-details-marker {
  display: none;
}

.image-path-details__body {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding: 0.55rem;
  border: 1px solid rgba(78, 115, 223, 0.14);
  border-radius: 10px;
  background: rgba(248, 250, 255, 0.86);
}

.image-path-details__body .muted-line {
  word-break: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(78, 115, 223, 0.12);
  color: var(--brand-dark);
  font-weight: 700;
}

.status-pill-button {
  border: 0;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.status-pill-button:hover,
.status-pill-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(78, 115, 223, 0.16);
  outline: none;
}

.status-success {
  background: rgba(40, 167, 69, 0.14);
  color: #1e7e34;
}

.status-warning {
  background: rgba(246, 194, 62, 0.22);
  color: #8f5d00;
}

.status-danger {
  background: rgba(231, 74, 59, 0.14);
  color: #b02a1a;
}

.status-info {
  background: rgba(54, 185, 204, 0.16);
  color: #177482;
}

.status-muted {
  background: rgba(133, 135, 150, 0.16);
  color: #5f6472;
}

.product-images-status-button {
  min-width: 70px;
  display: inline-grid;
  gap: 0.08rem;
  justify-items: center;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  padding: 0.34rem 0.5rem;
  background: rgba(40, 167, 69, 0.1);
  color: #1e7e34;
  cursor: pointer;
  font: inherit;
  line-height: 1.05;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.product-images-status-button:hover,
.product-images-status-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(78, 115, 223, 0.14);
  outline: none;
}

.product-images-status-button strong {
  font-size: 0.78rem;
  font-weight: 800;
}

.product-images-status-button span {
  font-size: 0.68rem;
  color: currentColor;
  opacity: 0.8;
}

.product-images-status-button.is-warning {
  background: rgba(246, 194, 62, 0.18);
  border-color: rgba(246, 194, 62, 0.38);
  color: #8f5d00;
}

.product-images-status-button.is-error {
  background: rgba(231, 74, 59, 0.12);
  border-color: rgba(231, 74, 59, 0.28);
  color: #b02a1a;
}

.status-stockout {
  background: rgba(54, 185, 204, 0.16);
  color: #177482;
}

.table-link {
  color: var(--brand);
  font-weight: 700;
}

.product-images-title-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.table-link:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.table-link--danger {
  color: #b4233c;
}

.image-actions-cell {
  min-width: 188px;
}

.image-icon-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.32rem;
}

.image-icon-action {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(74, 107, 232, 0.28);
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.image-icon-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-icon-action:hover:not(:disabled) {
  background: rgba(74, 107, 232, 0.08);
  border-color: rgba(74, 107, 232, 0.58);
  box-shadow: 0 8px 18px rgba(42, 77, 190, 0.14);
  transform: translateY(-1px);
}

.image-icon-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
  transform: none;
}

.image-icon-action--danger {
  color: #b4233c;
  border-color: rgba(180, 35, 60, 0.28);
}

.image-icon-action--danger:hover:not(:disabled) {
  background: rgba(180, 35, 60, 0.08);
  border-color: rgba(180, 35, 60, 0.52);
}

.image-ai-queue-panel {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(74, 107, 232, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 107, 232, 0.08), rgba(54, 185, 204, 0.08));
  display: grid;
  gap: 0.55rem;
}

.image-ai-queue-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
}

.image-ai-queue-panel span {
  color: var(--muted);
  font-size: 0.82rem;
}

.image-ai-queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.image-ai-queue-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(74, 107, 232, 0.16);
  color: var(--ink);
}

.image-ai-queue-item small {
  color: var(--muted);
}

.image-ai-queue-item.is-running {
  border-color: rgba(74, 107, 232, 0.5);
  box-shadow: 0 8px 20px rgba(74, 107, 232, 0.12);
}

.image-ai-queue-item.is-saved {
  border-color: rgba(25, 135, 84, 0.28);
}

.image-ai-queue-item.is-error {
  border-color: rgba(180, 35, 60, 0.3);
  color: #b4233c;
}

.button-link {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.empty-cell {
  text-align: center;
  color: var(--muted);
}

.pagination-bar {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.pagination-actions {
  display: flex;
  gap: 0.75rem;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.error-card {
  border-left-color: #e74a3b;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.detail-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.detail-span {
  grid-column: 1 / -1;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
}

.detail-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.dian-readiness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.dian-readiness-card {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.9rem;
  background: var(--card);
}

.dian-readiness-card span {
  width: max-content;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.dian-readiness-card.is-ok span {
  color: #217a52;
  background: #e7f8ef;
}

.dian-readiness-card.is-pending span {
  color: #9a5b00;
  background: #fff4d8;
}

.dian-readiness-card strong {
  color: var(--heading);
}

.dian-readiness-card small {
  color: var(--muted);
  line-height: 1.35;
}

.dian-tabs {
  margin: 0;
}

.dian-tabs .products-subnav-link {
  align-items: flex-start;
  flex-direction: column;
  height: auto;
  min-height: 50px;
}

.dian-tabs .products-subnav-link small {
  color: inherit;
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.82;
}

.dian-workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  border-bottom: 1px solid var(--line);
}

.dian-workspace-tabs button {
  appearance: none;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.7rem 0.95rem;
}

.dian-workspace-tabs button:hover,
.dian-workspace-tabs button:focus-visible {
  color: var(--brand);
  outline: none;
}

.dian-workspace-tabs button.is-active {
  border-bottom-color: var(--brand);
  color: var(--brand-dark);
}

.invoice-detail-modal {
  width: min(1320px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
}

.invoice-detail-tabs {
  margin: 0.8rem 0;
}

.invoice-detail-body {
  display: grid;
  gap: 0.8rem;
}

.invoice-reconciliation {
  display: grid;
  gap: 0.18rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
}

.invoice-reconciliation.is-ok {
  background: #f0fbf5;
  border-color: #bfe8d2;
  color: #17613d;
}

.invoice-reconciliation.is-error {
  background: #fff4f0;
  border-color: #ffc8ba;
  color: #9f2d17;
}

.invoice-reconciliation small {
  font-weight: 700;
}

.invoice-audit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.invoice-audit-pill.is-ok {
  background: #e7f8ef;
  color: #217a52;
}

.invoice-audit-pill.is-diff {
  background: #fff0ea;
  color: #b0341f;
}

.invoice-money-stack {
  display: grid;
  gap: 0.18rem;
  width: 100%;
  min-width: 0;
}

.invoice-money-stack span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
  color: var(--muted);
  min-width: 0;
}

.invoice-money-stack small {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.invoice-money-stack strong {
  color: var(--heading);
  font-size: 0.78rem;
}

.invoice-money-stack .is-total {
  border-top: 1px solid var(--line);
  margin-top: 0.12rem;
  padding-top: 0.24rem;
}

.invoice-money-stack .is-total strong {
  color: var(--brand-dark);
  font-size: 0.92rem;
}

.invoice-money-stack .is-pdf-diff {
  border-top: 1px dashed #f1b7a8;
  color: #9f2d17;
  margin-top: 0.08rem;
  padding-top: 0.18rem;
}

.invoice-money-stack .is-pdf-diff strong {
  color: #b0341f;
}

.invoice-tax-breakdown {
  display: grid;
  gap: 0.1rem;
  border-left: 2px solid #d8ecfb;
  margin: 0.05rem 0 0.08rem;
  padding-left: 0.45rem;
}

.invoice-money-stack .invoice-tax-breakdown span {
  color: #5d6c82;
}

.invoice-money-stack .invoice-tax-breakdown small {
  font-size: 0.64rem;
  text-transform: none;
}

.invoice-money-stack .invoice-tax-breakdown strong {
  font-size: 0.72rem;
  color: #24476d;
}

.invoice-pdf-tax-row td {
  background: #fff8f2;
  color: #8a3f13;
}

.invoice-pdf-tax-row td:first-child {
  font-weight: 800;
}

.invoice-detail-button {
  appearance: none;
  border: 1px solid rgba(24, 146, 214, 0.32);
  border-radius: 0.6rem;
  background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.42rem 0.72rem;
  box-shadow: 0 6px 14px rgba(24, 146, 214, 0.12);
}

.invoice-detail-button:hover,
.invoice-detail-button:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
}

.invoice-detail-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.received-invoices-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(3, minmax(130px, 0.8fr)) repeat(2, minmax(130px, 0.85fr)) repeat(2, minmax(120px, 0.75fr)) auto auto;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.received-invoices-filters input,
.received-invoices-filters select {
  min-width: 0;
  width: 100%;
}

.received-invoices-filters button,
.received-invoices-filters .table-link {
  white-space: nowrap;
}

@media (max-width: 1500px) {
  .received-invoices-filters {
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr)) auto auto;
  }
}

@media (max-width: 980px) {
  .received-invoices-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .received-invoices-filters {
    grid-template-columns: 1fr;
  }
}

.received-invoices-table {
  table-layout: fixed;
  min-width: 0;
}

.received-invoices-table th,
.received-invoices-table td {
  overflow-wrap: anywhere;
  word-break: normal;
}

.received-invoices-table .invoice-col-document {
  width: 18%;
}

.received-invoices-table .invoice-col-date {
  width: 8%;
}

.received-invoices-table .invoice-col-party {
  width: 16%;
}

.received-invoices-table .invoice-col-total {
  width: 17%;
}

.received-invoices-table .invoice-col-audit {
  width: 7%;
}

.received-invoices-table .invoice-col-action {
  width: 10%;
}

.received-invoices-table td > strong,
.received-invoices-table td > small {
  max-width: 100%;
}

.invoice-type-pill {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
  margin-top: 0.22rem;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.invoice-type-pill.is-invoice {
  background: #eaf3ff;
  color: #1768aa;
}

.invoice-type-pill.is-credit-note {
  background: #fff4d8;
  color: #9a5b00;
}

.invoice-type-pill.is-debit-note {
  background: #eef0ff;
  color: #4052b5;
}

.invoice-paper {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
  padding: 1rem;
}

.invoice-paper-head,
.invoice-party-grid,
.invoice-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.invoice-party-grid > div {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.7rem;
}

.invoice-party-grid span,
.invoice-totals-box span {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
}

.invoice-party-grid strong {
  color: var(--heading);
}

.invoice-totals-box {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  overflow: hidden;
}

.invoice-totals-box > div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.invoice-totals-box > div:last-child {
  border-bottom: 0;
}

.invoice-totals-box .is-total {
  background: #f8f9fc;
}

.invoice-file-frame {
  height: min(72vh, 760px);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  overflow: hidden;
}

.invoice-file-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.summary-grid .summary-card {
  position: static;
  display: grid;
  gap: 0.25rem;
  min-height: 6.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
}

.summary-grid .summary-card span,
.summary-grid .summary-card small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.summary-grid .summary-card strong {
  color: var(--heading);
  font-size: 1.8rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0.2rem 0 0;
}

.inline-checkbox {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--heading);
  font-weight: 800;
}

.inline-checkbox input {
  width: auto;
}

.form-error-text,
.form-success-text {
  margin: 0.75rem 0 0;
  font-weight: 800;
}

.form-error-text {
  color: #b42318;
}

.form-success-text {
  color: #217a52;
}

.nested-card {
  border-left-color: transparent;
}

.summary-card {
  height: fit-content;
  position: sticky;
  top: 1.5rem;
}

.quote-detail-shell {
  display: grid;
  gap: 0.75rem;
}

.quote-form-shell {
  --quote-paper: #ffffff;
  --quote-ink: #253044;
  --quote-line: #dde6f7;
  --quote-company-color: #4f6ee8;
  margin-top: 0;
}

.quote-detail-hero {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(320px, 1fr) auto;
  min-height: 0;
  padding: 0;
}

.quote-hero-copy {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  min-width: 0;
}

.quote-hero-copy h2 {
  color: var(--quote-ink);
  font-size: 1.05rem;
  line-height: 1;
  margin: 0;
}

.quote-hero-copy p {
  margin: 0;
}

.quote-hero-copy .muted {
  color: #667085;
  font-size: 0.82rem;
}

.quote-detail-hero .eyebrow {
  background: #eaf0ff;
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.66rem;
  margin: 0;
  padding: 0.2rem 0.55rem;
}

.quote-hero-metrics {
  display: none;
}

.quote-hero-metrics div,
.quote-fact,
.quote-item-total {
  background: #fff;
  border: 1px solid var(--quote-line);
  border-radius: 0.65rem;
  padding: 0.48rem 0.62rem;
}

.quote-hero-metrics div {
  min-width: 92px;
}

.quote-hero-metrics span,
.quote-item-total span,
.quote-item-total small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.quote-hero-metrics strong,
.quote-item-total strong {
  color: var(--quote-ink);
  font-size: 0.96rem;
}

.quote-hero-actions {
  flex: 0 0 auto;
  align-content: flex-start;
  justify-content: flex-end;
}

.quote-hero-actions > button {
  display: none;
}

.quote-hero-actions > a {
  align-self: start;
}

.quote-detail-layout {
  align-items: start;
  display: block;
  gap: 0.75rem;
}

.quote-detail-layout .summary-card {
  border-left-color: transparent;
  padding: 0.7rem;
  top: 0.75rem;
}

.quote-detail-layout .summary-row {
  padding: 0.36rem 0;
}

.quote-detail-layout .summary-card .eyebrow {
  margin-bottom: 0.35rem;
}

.quote-section-title {
  align-items: center;
  border-bottom: 1px solid var(--quote-line);
  padding-bottom: 0.6rem;
}

.quote-section-title h3 {
  font-size: 1rem;
  margin-top: 0.06rem;
}

.quote-info-card {
  background: #fff;
  border-left-color: transparent;
  order: 1;
  padding: 0.42rem 0.55rem;
}

.quote-email-status {
  align-items: center;
  background: #f5f8ff;
  border: 1px solid var(--quote-line);
  border-radius: 12px;
  color: #4f5e78;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: 0.45rem 0 0;
  padding: 0.42rem 0.55rem;
}

.quote-email-status strong {
  color: #1e3d7c;
  font-size: 0.8rem;
}

.quote-email-status span,
.quote-email-status small {
  color: var(--muted);
  font-size: 0.76rem;
}

.quote-email-status small {
  flex-basis: 100%;
}

.quote-email-status-sent {
  background: #ecfdf3;
  border-color: #a8e5bf;
}

.quote-email-status-sent strong {
  color: #137334;
}

.quote-email-status-error {
  background: #fff2f2;
  border-color: #ffc6c6;
}

.quote-email-status-error strong {
  color: #b42318;
}

.quote-access-link-box {
  align-items: center;
  background: linear-gradient(135deg, #f4fbff, #eef4ff);
  border: 1px solid #bdd7ff;
  border-radius: 14px;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(160px, 0.8fr) minmax(240px, 1.4fr) auto;
  margin-top: 0.7rem;
  padding: 0.65rem;
}

.quote-access-link-box strong,
.quote-access-link-box span {
  display: block;
}

.quote-access-link-box strong {
  color: #193a75;
  font-size: 0.82rem;
}

.quote-access-link-box span {
  color: var(--muted);
  font-size: 0.75rem;
}

.quote-access-link-box input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  min-height: 36px;
}

.quote-payment-link-strip {
  align-items: center;
  background: #eef8ff;
  border: 1px solid #bfe7ff;
  border-radius: 0.65rem;
  color: #1e3d7c;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.45rem 0 0.6rem;
  padding: 0.42rem 0.55rem;
}

.quote-payment-link-strip span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-payment-link-strip strong {
  color: var(--muted);
  font-size: 0.76rem;
  margin-right: auto;
}

.quote-payment-link-strip .ghost-button {
  min-height: 28px;
  padding: 0.24rem 0.5rem;
}

.quote-items-card {
  background: #fff;
  border-left-color: transparent;
  order: 4;
  padding: 0.75rem;
}

.quote-tracking-card {
  order: 6;
}

.quote-tracking-summary {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.65rem;
}

.quote-tracking-summary > div {
  background: #f8fbff;
  border: 1px solid var(--quote-line);
  border-radius: 0.7rem;
  padding: 0.6rem 0.7rem;
}

.quote-tracking-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.quote-tracking-actions button {
  background: #eef4ff;
  border: 1px solid #c8d7ff;
  border-radius: 999px;
  color: var(--brand);
  cursor: pointer;
  font-weight: 800;
  min-height: 30px;
  padding: 0.28rem 0.72rem;
}

.quote-shipping-card {
  background: #fff;
  border-left-color: #16a3c7;
  order: 6;
  padding: 0.75rem;
}

.quote-mode-band {
  align-items: center;
  background: #fff;
  border-left-color: #f5b53f;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  order: 3;
  padding: 0.5rem 0.65rem;
}

.quote-mode-group {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  min-width: 0;
}

.quote-mode-group > span {
  color: var(--brand);
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.quote-mode-group .radio-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 0;
}

.quote-mode-group .radio-option span {
  font-size: 0.78rem;
  min-height: 28px;
  padding: 0.24rem 0.52rem;
}

.quote-secondary-tabs {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  order: 5;
}

.quote-secondary-tabs button {
  background: #fff;
  border: 1px solid var(--quote-line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  min-height: 30px;
  padding: 0.28rem 0.78rem;
}

.quote-secondary-tabs button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.quote-summary-band {
  align-items: center;
  background: linear-gradient(90deg, #0f2f66 0%, #2859c7 100%);
  border: 0;
  border-radius: 0.65rem;
  box-shadow: 0 8px 18px rgba(18, 48, 103, 0.12);
  color: #fff;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(80px, 1fr) repeat(3, minmax(110px, auto));
  order: 2;
  padding: 0.42rem 0.55rem;
  position: static;
}

.quote-summary-band .eyebrow {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.quote-summary-band .summary-row {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  display: grid;
  gap: 0;
  justify-items: end;
  min-width: 110px;
  padding: 0.28rem 0.48rem;
}

.quote-summary-band .summary-row span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
}

.quote-summary-band .summary-row strong {
  color: #fff;
  font-size: 0.9rem;
}

.quote-summary-band .summary-row.total {
  background: rgba(255, 255, 255, 0.14);
}

.quote-detail-layout .detail-stack {
  gap: 0.45rem;
}

.quote-info-grid {
  align-items: center;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.2rem 0.45rem;
}

.quote-type-field {
  grid-column: span 7;
}

.quote-type-field .radio-group {
  min-height: 0;
}

.quote-type-field .radio-option span {
  font-size: 0.82rem;
  min-height: 28px;
  padding: 0.24rem 0.48rem;
}

.quote-info-grid > .field:nth-child(1) {
  grid-column: span 4;
}

.quote-company-field {
  grid-column: span 6 !important;
}

.quote-company-field select {
  border-left: 5px solid var(--quote-company-color);
  font-weight: 800;
}

.quote-company-signal,
.quote-company-current {
  align-items: center;
  display: inline-flex;
  gap: 0.38rem;
}

.quote-company-signal {
  background: #f8fbff;
  border: 1px solid var(--quote-line);
  border-left: 5px solid var(--quote-company-color);
  border-radius: 999px;
  color: var(--quote-ink);
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 0.22rem;
  padding: 0.18rem 0.52rem 0.18rem 0.42rem;
  width: fit-content;
}

.quote-company-signal strong {
  color: var(--quote-company-color);
  font-size: 0.78rem;
}

.quote-company-signal--compact {
  border-radius: 0.55rem;
  justify-content: center;
  margin-top: -0.35rem;
  width: 100%;
}

.quote-company-current {
  color: var(--muted);
}

.quote-company-dot {
  background: var(--quote-company-color);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.12);
  flex: 0 0 auto;
  height: 0.68rem;
  width: 0.68rem;
}

.quote-info-grid > .quote-type-field:nth-child(3) {
  grid-column: span 7;
}

.quote-info-grid > .quote-type-field:nth-child(4) {
  grid-column: span 7;
}

.quote-info-grid > .field {
  margin: 0;
}

.quote-info-grid > .field input,
.quote-info-grid > .field select {
  min-height: 28px;
  padding: 0.24rem 0.42rem;
}

.quote-type-field > small,
.quote-info-grid .field > small {
  color: var(--muted);
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  margin-top: 0.08rem;
}

.quote-type-field > small {
  display: none;
}

.quote-fact {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--quote-line);
  border-radius: 0;
  display: grid;
  gap: 0.04rem;
  grid-column: span 4;
  min-height: auto;
  padding: 0.04rem 0 0.14rem;
}

.quote-fact strong {
  color: var(--heading);
  font-size: 0.78rem;
  word-break: break-word;
}

.quote-info-grid .detail-span {
  grid-column: span 24;
}

.quote-info-grid .detail-span input {
  min-height: 28px;
}

.quote-section-title {
  padding-bottom: 0.26rem;
}

.quote-section-title .eyebrow {
  margin-bottom: 0.08rem;
}

.quote-section-title h3 {
  font-size: 0.86rem;
  margin-top: 0;
}

.quote-title-meta {
  font-size: 0.7rem;
  margin-top: 0.04rem;
}

.quote-section-title .detail-actions .ghost-button {
  min-height: 30px;
  padding: 0.32rem 0.65rem;
}

.quote-items-card .quote-items-list {
  display: none;
}

.quote-items-card .quote-legacy-items-table {
  display: block;
  overflow-x: auto;
}

.quote-items-card .quote-legacy-items-table .data-table {
  min-width: 1060px;
  table-layout: fixed;
}

.quote-col-ref { width: 88px; }
.quote-col-img { width: 46px; }
.quote-col-desc { width: 330px; }
.quote-col-qty { width: 76px; }
.quote-col-components { width: 190px; }
.quote-col-price { width: 104px; }
.quote-col-service { width: 130px; }
.quote-col-money { width: 105px; }
.quote-col-tax { width: 86px; }
.quote-col-actions { width: 130px; }
.quote-col-notes { width: 120px; }

.quote-items-card .quote-legacy-items-table th {
  background: #24406f;
  color: #fff;
  font-size: 0.64rem;
  letter-spacing: 0;
  padding: 0.3rem 0.34rem;
  text-transform: none;
  white-space: nowrap;
}

.quote-items-card .quote-legacy-items-table td {
  font-size: 0.7rem;
  padding: 0.22rem 0.3rem;
  vertical-align: middle;
}

.quote-compact-item-row .cell-input,
.quote-compact-item-row .cell-select {
  font-size: 0.7rem;
  min-height: 25px;
  padding: 0.18rem 0.26rem;
  width: 100%;
}

.quote-compact-item-row .cell-textarea {
  min-height: 30px;
  padding: 0.24rem 0.34rem;
  width: 100%;
}

.quote-qty-input,
.quote-price-input {
  max-width: 70px;
}

.quote-service-select,
.quote-tax-select {
  max-width: 82px;
}

.quote-note-input {
  max-width: none;
}

.quote-components-cell {
  min-width: 180px;
}

.quote-components-list {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.18rem;
}

.quote-component-pill {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #d9e5ff;
  border-radius: 0.38rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 0.64rem;
  gap: 0.24rem;
  justify-content: space-between;
  line-height: 1.15;
  min-height: 22px;
  padding: 0.18rem 0.32rem;
  text-align: left;
  width: auto;
}

.quote-component-pill strong {
  color: var(--brand);
  font-size: 0.64rem;
  white-space: nowrap;
}

.quote-component-marking {
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.quote-component-shipping {
  background: #ecfeff;
  border-color: #bae6fd;
}

.quote-component-packaging {
  background: #fff7ed;
  border-color: #fed7aa;
}

.quote-component-add {
  align-items: center;
  background: #eef4ff;
  border: 1px dashed #9db7f7;
  border-radius: 0.34rem;
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  height: 23px;
  justify-content: center;
  width: 32px;
}

.quote-component-modal {
  border-radius: 8px;
  max-width: 620px;
  padding: 0;
}

.quote-component-editor-overlay {
  z-index: 1100;
}

.quote-component-modal-head {
  align-items: flex-start;
  border-bottom: 1px solid #dbe5f3;
  gap: 0.75rem;
  margin: 0;
  padding: 0.62rem 0.75rem;
}

.quote-component-modal-head h3 {
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.15;
  margin: 0.08rem 0 0;
}

.quote-component-modal-head p:not(.eyebrow) {
  color: #667085;
  display: -webkit-box;
  font-size: 0.78rem;
  line-height: 1.25;
  margin: 0.2rem 0 0;
  max-width: 460px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.quote-component-form {
  gap: 0.58rem;
  padding: 0.68rem 0.75rem 0.72rem;
}

.quote-component-grid {
  display: grid;
  gap: 0.48rem 0.58rem;
  grid-template-columns: 1fr 1fr;
}

.quote-component-grid .field {
  gap: 0.22rem;
}

.quote-component-grid .field > span {
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.quote-component-grid .field input,
.quote-component-grid .field select,
.quote-component-grid .field textarea {
  background: #fff;
  border: 1px solid #cfd9ea;
  border-radius: 7px;
  color: #1f2937;
  font-size: 0.82rem;
  min-height: 34px;
  padding: 0.42rem 0.5rem;
}

.quote-component-grid .field select {
  appearance: auto;
}

.quote-component-grid .field textarea {
  min-height: 52px;
  resize: vertical;
}

.quote-component-grid .detail-span {
  grid-column: 1 / -1;
}

.quote-component-actions {
  border-top: 1px solid #edf2f8;
  gap: 0.45rem;
  margin-top: 0.1rem;
  padding-top: 0.58rem;
}

.quote-ref-cell {
  color: var(--muted);
  font-weight: 800;
  min-width: 80px;
  white-space: nowrap;
}

.quote-description-cell {
  min-width: 300px;
}

.quote-compact-title {
  color: var(--brand);
  font-weight: 800;
  line-height: 1.25;
  font-size: 0.72rem;
}

.quote-compact-meta {
  color: var(--muted);
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  margin-top: 0.12rem;
}

.quote-compact-image {
  border-radius: 0.32rem;
  height: 30px;
  object-fit: contain;
  width: 30px;
}

.quote-money-stack {
  font-size: 0.66rem !important;
  line-height: 1.18;
}

.quote-money-stack span {
  align-items: center;
  color: #65748a;
  display: flex;
  gap: 0.18rem;
  justify-content: space-between;
  white-space: nowrap;
}

.quote-money-stack b {
  color: #8a96aa;
  font-size: 0.58rem;
  text-transform: uppercase;
}

.quote-money-stack strong {
  color: var(--heading);
  display: block;
  font-size: 0.72rem;
  margin-top: 0.08rem;
  text-align: right;
  white-space: nowrap;
}

.quote-row-actions {
  align-items: center;
  display: flex;
  gap: 0.18rem;
  justify-content: flex-start;
}

.quote-table-action {
  display: inline-flex;
  justify-content: center;
  margin: 0.1rem 0;
  min-height: 25px;
  padding: 0.18rem 0.34rem;
  width: auto;
}

.quote-table-action-shipping {
  background: #eef7ff;
  color: #0f70c8;
}

.quote-apply-shipping-button {
  margin-top: 0.25rem;
  min-height: 28px;
  padding: 0.25rem 0.5rem;
  width: 100%;
}

.quote-delete-button {
  align-items: center;
  background: #ef4444;
  border-radius: 0.35rem;
  color: #fff !important;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  justify-content: center;
  min-height: 25px;
  padding: 0.18rem 0.34rem;
  width: auto;
  text-decoration: none;
}

.quote-delete-button:disabled {
  opacity: 0.55;
}

.quote-compact-note-card {
  color: var(--muted);
  display: grid;
  gap: 0.15rem;
}

.quote-compact-note-card strong {
  color: var(--heading);
}

.quote-conditions-modal {
  width: min(760px, 94vw);
}

.quote-conditions-textarea {
  min-height: 280px;
  white-space: pre-wrap;
}

.quote-sale-selection-modal {
  width: min(880px, 94vw);
}

.quote-sale-selection-summary {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--quote-line);
  border-radius: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  padding: 0.55rem;
}

.quote-sale-selection-summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin-left: auto;
}

.quote-sale-selection-summary strong {
  color: var(--heading);
  font-size: 1rem;
}

.quote-sale-selection-table {
  max-height: 54vh;
  overflow: auto;
}

.quote-sale-selection-table tr.is-selected {
  background: #ecfdf3;
}

.quote-sale-selection-table input[type="checkbox"] {
  height: 1rem;
  width: 1rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.sales-receivables-page {
  display: grid;
  gap: 1rem;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(18rem, 2fr) repeat(3, minmax(10rem, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
}

.admin-filter-bar label {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.admin-filter-bar label > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-filter-bar input,
.admin-filter-bar select {
  min-height: 2.3rem;
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 0.35rem;
  padding: 0.5rem 0.65rem;
}

.admin-filter-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
}

.sales-receivables-table td {
  vertical-align: top;
}

.sales-receivables-table td small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  margin-top: 0.12rem;
}

.sales-receivables-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sales-receivables-company-block {
  border-left: 0.28rem solid color-mix(in srgb, var(--accent) 55%, #ffffff);
}

.empty-table-cell {
  color: var(--muted);
  padding: 1.5rem !important;
  text-align: center;
}

.sales-receivable-detail {
  display: grid;
  gap: 1rem;
}

@media (max-width: 1180px) {
  .admin-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-filter-actions {
    justify-content: flex-start;
  }

  .sales-receivable-payment-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .admin-filter-bar {
    grid-template-columns: 1fr;
  }

  .marking-flow-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .marking-flow-label {
    padding-left: 2px;
  }

  .marking-modal-grid {
    grid-template-columns: 1fr;
  }

  .sales-receivable-payment-form {
    grid-template-columns: 1fr;
  }

  .sales-receivable-payment-notes {
    grid-column: auto;
  }
}

.quote-change-note {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  margin-top: 0.12rem;
}

.quote-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.quote-list-actions .compact-action {
  font-size: 0.76rem;
  min-height: 28px;
  padding: 0.28rem 0.5rem;
  text-decoration: none;
}

.quote-list-total {
  color: var(--heading);
  font-weight: 800;
  white-space: nowrap;
}

.quote-list-floating-error {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 0.55rem;
  color: #9a3412;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
}

.quote-list-floating-error button {
  background: transparent;
  border: 0;
  color: #9a3412;
  cursor: pointer;
  font-weight: 800;
}

.quote-summary-modal {
  width: min(980px, 94vw);
}

.quote-summary-modal .modal-head {
  align-items: flex-start;
}

.quote-summary-modal-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.75rem;
}

.quote-summary-modal-grid > div {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.5rem 0.6rem;
}

.quote-summary-modal-grid > div.wide {
  grid-column: span 2;
}

.quote-summary-modal-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-summary-modal-grid strong {
  color: var(--heading);
  display: block;
  font-size: 0.84rem;
  margin-top: 0.16rem;
}

.quote-summary-items-table .data-table th,
.quote-summary-items-table .data-table td {
  font-size: 0.76rem;
  padding: 0.38rem 0.5rem;
}

.quote-summary-conditions {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  color: var(--muted);
  margin-top: 0.75rem;
  padding: 0.5rem 0.6rem;
}

.quote-summary-conditions strong {
  color: var(--heading);
  display: block;
  font-size: 0.78rem;
  line-height: 1.15;
}

.quote-summary-conditions p {
  font-size: 0.72rem;
  line-height: 1.28;
  margin: 0.28rem 0 0;
  max-height: 120px;
  overflow: auto;
  padding-right: 0.25rem;
  white-space: pre-line;
}

.quote-item-shipping-row td {
  background: #f7fbff;
  padding: 0.45rem 0.6rem !important;
}

.quote-item-shipping-panel {
  align-items: center;
  background: #fff;
  border: 1px solid #cfe4ff;
  border-radius: 0.65rem;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.7fr) minmax(220px, 1fr);
  padding: 0.55rem 0.7rem;
}

.quote-item-shipping-panel div {
  display: grid;
  gap: 0.12rem;
}

.quote-item-shipping-panel span,
.quote-item-shipping-panel small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.quote-item-shipping-panel strong {
  color: var(--ink-strong);
  font-size: 0.82rem;
}

.quote-item-shipping-panel.is-loading,
.quote-item-shipping-panel.is-error {
  display: flex;
  justify-content: space-between;
}

.quote-item-shipping-panel.is-error {
  background: #fff7f7;
  border-color: #fecaca;
}

.quote-items-card .section-title-row {
  background: #f8faff;
  border: 1px solid var(--quote-line);
  border-radius: 0.7rem;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.65rem;
}

.quote-title-meta {
  color: #667085;
  font-size: 0.78rem;
  margin: 0.2rem 0 0;
}

.quote-form-actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.32rem;
  justify-content: flex-end;
  max-width: 100%;
}

.quote-icon-button {
  align-items: center;
  display: inline-flex;
  gap: 0.32rem;
  min-height: 30px;
  padding: 0.32rem 0.58rem;
  white-space: nowrap;
}

.quote-button-icon {
  display: inline-block;
  flex: 0 0 auto;
  height: 0.95rem;
  width: 0.95rem;
}

.quote-pricing-toggle {
  align-items: center;
  background: #eef4ff;
  border: 1px solid #cfdcff;
  border-radius: 999px;
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.16rem;
}

.quote-pricing-toggle button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #55657d;
  cursor: pointer;
  display: inline-flex;
  gap: 0.28rem;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 28px;
  padding: 0.24rem 0.54rem;
}

.quote-pricing-toggle button.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 4px rgba(34, 64, 111, 0.14);
}

.quote-items-card .section-title-row h3,
.quote-info-card .section-title-row h3,
.quote-tracking-card .section-title-row h3 {
  font-size: 1rem;
}

.quote-items-list {
  display: grid;
  gap: 0.65rem;
}

.quote-shipping-card .section-title-row {
  align-items: center;
  background: #f7fcff;
  border: 1px solid rgba(22, 163, 199, 0.22);
  border-radius: 0.7rem;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.65rem;
}

.quote-shipping-body,
.quote-shipping-groups {
  display: grid;
  gap: 0.65rem;
}

.quote-shipping-destination {
  align-items: center;
  background: #f8faff;
  border: 1px solid var(--quote-line);
  border-radius: 0.65rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.8rem;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
}

.quote-shipping-alert {
  background: #fff8e6;
  border: 1px solid #ffe2a8;
  border-radius: 0.65rem;
  color: #8a5b00;
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.25rem;
  padding: 0.55rem 0.65rem;
}

.quote-shipping-alert.compact {
  font-size: 0.74rem;
  padding: 0.45rem 0.55rem;
}

.quote-shipping-group {
  border: 1px solid var(--quote-line);
  border-radius: 0.75rem;
  display: grid;
  gap: 0.6rem;
  padding: 0.65rem;
}

.quote-shipping-group-head {
  align-items: start;
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
}

.quote-shipping-group-head strong {
  color: var(--heading);
}

.quote-shipping-group-head small,
.quote-shipping-carrier small,
.quote-shipping-internal small {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
}

.quote-shipping-internal {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-shipping-internal > div,
.quote-shipping-carrier {
  background: #fbfdff;
  border: 1px solid var(--quote-line);
  border-radius: 0.65rem;
  padding: 0.55rem;
}

.quote-shipping-internal strong,
.quote-shipping-carrier strong {
  color: var(--heading);
  display: block;
  font-size: 0.92rem;
}

.quote-shipping-per-unit {
  color: #0f766e !important;
  font-weight: 800 !important;
}

.quote-shipping-carriers {
  align-items: stretch;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.quote-shipping-carrier > span {
  color: var(--primary);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.danger-text {
  color: #c1121f !important;
}

.quote-item-row {
  align-items: start;
  background: #fff;
  border: 1px solid var(--quote-line);
  border-radius: 0.7rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 70px minmax(0, 1fr) 140px;
  padding: 0.7rem;
}

.quote-item-media {
  display: grid;
  place-items: center;
  min-height: 70px;
  border-radius: 0.55rem;
  background: #f8faff;
  border: 1px solid rgba(78, 115, 223, 0.16);
  overflow: hidden;
}

.quote-item-media img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.quote-item-media span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.quote-item-body {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.quote-item-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.quote-item-title span {
  color: var(--brand);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.quote-item-title h4 {
  margin: 0.15rem 0 0;
  color: var(--heading);
  font-size: 0.98rem;
}

.quote-item-supplier,
.quote-legacy-supplier,
.quote-product-supplier {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 0.35rem;
  margin: 0.22rem 0 0;
}

.quote-item-supplier a,
.quote-legacy-supplier a,
.quote-product-supplier a {
  border: 1px solid rgba(78, 115, 223, 0.24);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.08rem 0.42rem;
  text-decoration: none;
}

.quote-item-supplier a:hover,
.quote-legacy-supplier a:hover,
.quote-product-supplier a:hover {
  background: rgba(78, 115, 223, 0.09);
}

.quote-legacy-supplier {
  display: block;
}

.quote-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.quote-item-meta span {
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: rgba(78, 115, 223, 0.09);
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
}

.quote-item-edit-grid {
  display: grid;
  grid-template-columns: 0.55fr 0.7fr 1fr 0.7fr 0.85fr;
  gap: 0.5rem;
}

.quote-item-edit-grid .field {
  margin: 0;
}

.quote-item-edit-grid .field input,
.quote-item-edit-grid .field select {
  min-height: 36px;
  padding: 0.46rem 0.55rem;
}

.quote-item-total {
  display: grid;
  align-content: start;
  gap: 0.18rem;
  text-align: right;
}

.quote-item-total strong {
  font-size: 1.05rem;
}

.quote-calc-button {
  margin-top: 0.45rem;
  min-height: 32px;
  padding: 0.38rem 0.7rem;
  width: max-content;
  justify-self: end;
}

.quote-calc-icon-button {
  min-width: 28px;
  padding-inline: 0.34rem;
}

.quote-action-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.quote-calculation-simulator {
  display: grid;
  grid-template-columns: minmax(180px, 240px) auto auto;
  gap: 0.45rem;
  align-items: end;
  margin-bottom: 0.45rem;
}

.quote-calculation-modal {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0.55rem;
  max-height: 94vh;
  overflow: auto;
  padding: 0.8rem;
  width: min(1240px, 96vw);
}

.quote-calculation-overlay {
  padding: 0.55rem;
}

.quote-calculation-modal .modal-head {
  grid-column: 1 / -1;
  margin-bottom: 0.1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.quote-calculation-modal .modal-head h3 {
  margin: 0.05rem 0 0;
  font-size: 1.05rem;
  line-height: 1.15;
}

.quote-calculation-modal .modal-head p:not(.eyebrow) {
  color: var(--muted);
  margin: 0.12rem 0 0;
  max-width: 760px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-calculation-section {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding-top: 0.45rem;
}

.quote-calculation-section:nth-of-type(4),
.quote-calculation-section:nth-of-type(7) {
  grid-column: 1 / -1;
}

.quote-calculation-tabs-panel {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 0.45rem;
}

.quote-calculation-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.quote-calculation-tabs--top {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.quote-calculation-tabs button {
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: #fff;
  color: #52627a;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  min-height: 30px;
  padding: 0.32rem 0.72rem;
}

.quote-calculation-tabs button.is-active {
  border-color: var(--brand);
  background: #eef5ff;
  color: var(--brand);
}

.quote-calculation-tab-content {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.4rem;
}

.quote-calculation-tab-content--price {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0.55rem;
}

.quote-calculation-section--wide {
  grid-column: 1 / -1;
}

.quote-calculation-add-component {
  min-height: 30px;
  padding: 0.32rem 0.65rem;
  white-space: nowrap;
}

.quote-calculation-component-edit {
  color: var(--brand);
  font-size: inherit;
  font-weight: 800;
  text-align: left;
}

.quote-calculation-section-head {
  align-items: baseline;
  display: flex;
  gap: 0.55rem;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.quote-calculation-section-head h4 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.15;
}

.quote-calculation-section-head p {
  color: var(--muted);
  margin: 0;
  max-width: 460px;
  text-align: right;
  font-size: 0.74rem;
  line-height: 1.2;
}

.quote-calculation-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #fff;
  font-size: 0.74rem;
}

.quote-calculation-table th,
.quote-calculation-table td {
  padding: 0.34rem 0.48rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  line-height: 1.18;
  text-align: left;
  vertical-align: middle;
}

.quote-calculation-table th {
  background: #173f78;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.quote-calculation-table tr:last-child td {
  border-bottom: 0;
}

.quote-calculation-table td:first-child {
  color: var(--heading);
  font-weight: 800;
}

.quote-calculation-table td:last-child {
  color: var(--heading);
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.quote-calculation-table td strong,
.quote-calculation-table td small {
  display: block;
}

.quote-calculation-table td small {
  margin-top: 0.06rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.quote-calculation-table--total td {
  background: #f8fbff;
}

.quote-calculation-table--recommendations tr.is-active td {
  background: #eef8ff;
}

.quote-calculation-table--recommendations tr.is-active td:first-child {
  box-shadow: inset 3px 0 0 var(--brand);
}

.quote-calculation-table td.quote-recommendation-cheapest {
  color: #be123c;
  font-weight: 800;
}

.quote-payment-group-cell {
  width: 170px;
  background: #f8fbff;
  vertical-align: top;
}

.quote-payment-group-cell strong {
  color: #173f78;
}

.quote-component-delete-button {
  color: #fff;
  border-color: #be123c;
  background: #be123c;
  box-shadow: 0 8px 16px rgba(190, 18, 60, 0.16);
}

.quote-component-delete-button:hover {
  color: #fff;
  border-color: #9f1239;
  background: #9f1239;
}

.quote-component-readonly-note {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dbe7f5;
  border-radius: 0.5rem;
  color: #52627a;
  background: #f8fbff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.quote-calculation-summary {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.quote-calculation-components {
  display: grid;
  gap: 0.45rem;
}

.quote-calculation-component {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dbe6f7;
  border-radius: 0.48rem;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 0.58rem 0.72rem;
}

.quote-calculation-component strong {
  color: var(--text);
  display: block;
  font-size: 0.82rem;
}

.quote-calculation-component small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.quote-calculation-component span {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.quote-calculation-row {
  background: linear-gradient(135deg, rgba(78, 115, 223, 0.08), rgba(27, 188, 194, 0.06));
  border: 1px solid rgba(78, 115, 223, 0.18);
  border-radius: 14px;
  display: grid;
  gap: 0.2rem;
  padding: 0.72rem 0.8rem;
}

.quote-calculation-row--total {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.09), rgba(78, 115, 223, 0.05));
  border-color: rgba(255, 193, 7, 0.28);
}

.quote-calculation-row span,
.quote-calculation-row small {
  color: var(--muted);
}

.quote-calculation-row span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-calculation-row strong {
  color: var(--heading);
  font-size: 0.98rem;
}

.quote-calculation-row small {
  line-height: 1.35;
}

.quote-calculation-steps {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding-top: 0.45rem;
}

.quote-calculation-steps h4,
.quote-calculation-step-groups h5 {
  margin: 0 0 0.35rem;
}

.quote-calculation-step-groups {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-calculation-step {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr auto;
  margin-bottom: 0.45rem;
  padding: 0.62rem 0.75rem;
}

.quote-calculation-step--total {
  background: rgba(255, 248, 224, 0.48);
}

.quote-calculation-step p {
  color: var(--muted);
  margin: 0.18rem 0 0;
}

.quote-calculation-step span {
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}

.quote-calculation-muted {
  color: var(--muted);
  margin: 0;
}

.quote-calculation-empty {
  grid-column: 1 / -1;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.28);
  border-radius: 0.55rem;
  color: #805800;
  margin-top: 0;
  padding: 0.55rem 0.65rem;
}

@media (max-width: 760px) {
  .quote-calculation-modal {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 1rem);
    padding: 0.55rem;
    width: calc(100vw - 1rem);
  }

  .quote-calculation-modal .modal-head {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .quote-calculation-modal .modal-head p:not(.eyebrow) {
    white-space: normal;
  }

  .quote-calculation-section-head,
  .quote-calculation-step-groups {
    display: block;
  }

  .quote-calculation-section-head p {
    margin-top: 0.25rem;
    text-align: left;
  }

  .quote-calculation-summary {
    grid-template-columns: 1fr;
  }

  .quote-calculation-simulator {
    grid-template-columns: 1fr;
  }

  .quote-calculation-tab-content--price {
    grid-template-columns: 1fr;
  }

  .quote-calculation-table {
    font-size: 0.7rem;
  }

  .quote-calculation-table th,
  .quote-calculation-table td {
    padding: 0.3rem 0.38rem;
  }
}

.quote-product-modal {
  border-radius: 8px;
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
  padding: 0;
  width: min(94vw, 1360px);
}

.quote-product-modal-head {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 0.78rem 0.9rem;
}

.quote-product-modal-head h2 {
  margin: 0.1rem 0 0.15rem;
}

.quote-product-modal-head p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
}

.quote-product-modal-head .ghost-button {
  background: #fff;
  border-color: #d3dbea;
  color: #64748b;
  min-height: 32px;
  padding: 0.28rem 0.72rem;
}

.quote-tracking-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.quote-tracking-form .field input,
.quote-tracking-form .field select {
  box-sizing: border-box;
  height: var(--admin-control-height);
  min-height: var(--admin-control-height);
  border-radius: var(--admin-control-radius);
  padding-block: var(--admin-control-padding-y);
  padding-left: var(--admin-control-padding-x);
  font-size: var(--admin-control-font-size);
}

.quote-tracking-form .field select {
  padding-right: 2.35rem;
}

.quote-tracking-form .field textarea {
  box-sizing: border-box;
  border-radius: var(--admin-control-radius);
  padding: var(--admin-control-padding-y) var(--admin-control-padding-x);
  font-size: var(--admin-control-font-size);
}

.quote-product-search {
  display: grid;
  gap: 0.8rem;
  max-height: calc(100vh - 8.4rem);
  overflow: auto;
  padding: 0.78rem 0.9rem 0.9rem;
}

.quote-product-search-top {
  align-items: end;
  background: #fff;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 0.7fr) minmax(100px, 0.35fr) auto;
}

.quote-product-search-top .field,
.quote-product-filters .field {
  margin: 0;
}

.quote-qty-field input {
  font-weight: 800;
}

.quote-qty-field small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 0.22rem;
}

.quote-product-modal-layout {
  align-items: start;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 280px minmax(0, 1fr);
}

.quote-product-filters {
  background: #f8faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.65rem;
  max-height: 64vh;
  overflow: auto;
  padding: 0.75rem;
  position: sticky;
  top: 0;
}

.quote-product-filters .filter-panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--brand);
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}

.filter-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  display: flex;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
}

.filter-toggle span {
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 800;
}

.quote-product-service-box {
  border-top: 1px dashed #cdd8f3;
  display: grid;
  gap: 0.55rem;
  padding-top: 0.65rem;
}

.quote-product-service-box > strong {
  color: var(--heading);
  font-size: 0.86rem;
}

.quote-product-results {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.quote-product-results-head {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 800;
  justify-content: space-between;
}

.quote-product-grid {
  display: grid;
  gap: 0.65rem;
  max-height: 58vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.quote-product-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 84px minmax(0, 1fr) 160px;
  padding: 0.7rem;
}

.quote-product-card:hover {
  border-color: rgba(78, 115, 223, 0.45);
  box-shadow: 0 12px 26px rgba(32, 59, 125, 0.08);
}

.quote-product-thumb {
  align-items: center;
  background: #f8faff;
  border: 1px solid rgba(78, 115, 223, 0.16);
  border-radius: 0.65rem;
  display: grid;
  height: 76px;
  justify-items: center;
  overflow: hidden;
}

.quote-product-thumb img {
  height: 70px;
  object-fit: contain;
  width: 70px;
}

.quote-product-thumb span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.quote-product-card-body {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.quote-product-card-title span {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
}

.quote-product-card-title h3 {
  color: var(--heading);
  font-size: 0.98rem;
  line-height: 1.2;
  margin: 0.05rem 0;
}

.quote-product-card-title p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0;
}

.quote-product-supplier {
  margin-top: 0;
}

.quote-product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.quote-product-links a {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.quote-product-links a:hover {
  text-decoration: underline;
}

.quote-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.quote-product-badges span {
  background: rgba(78, 115, 223, 0.09);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.16rem 0.48rem;
}

.quote-product-warning {
  color: #a15c00;
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0;
}

.quote-product-price {
  display: grid;
  gap: 0.18rem;
  justify-items: end;
  text-align: right;
}

.quote-product-price small,
.quote-product-price span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.quote-product-price strong {
  color: var(--brand);
  font-size: 1.05rem;
}

.quote-product-add-button {
  align-items: center;
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(78, 115, 223, 0.18);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  margin-top: 0.35rem;
  width: 42px;
}

.quote-product-add-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.quote-product-add-button:hover:not(:disabled) {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.quote-product-loadmore {
  background: #f8faff;
  border: 1px dashed #cdd8f3;
  border-radius: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.85rem;
  text-align: center;
}

@media (max-width: 1100px) {
  .quote-product-search-top,
  .quote-product-modal-layout,
  .quote-product-card {
    grid-template-columns: 1fr;
  }

  .quote-product-filters,
  .quote-product-grid {
    max-height: none;
  }

  .quote-product-price {
    justify-items: start;
    text-align: left;
  }
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.summary-row.total {
  font-size: 1.05rem;
  color: var(--heading);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.detail-actions--compact {
  gap: 0.35rem;
}

.detail-actions--compact .ghost-button,
.detail-actions--compact .danger-button {
  padding: 0.42rem 0.58rem;
  font-size: 0.78rem;
}

.section-block {
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-title-row h3 {
  margin: 0;
  color: var(--heading);
}

.search-results {
  display: grid;
  gap: 0.75rem;
}

.result-card {
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #fff;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.result-card.is-selected {
  border-color: var(--brand);
  background: rgba(78, 115, 223, 0.08);
}

.quote-create-modal {
  width: min(100%, 840px);
  padding: 0;
  overflow: hidden;
}

.quote-create-head {
  margin: 0;
  padding: 1.2rem 1.35rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 8% 0%, rgba(78, 115, 223, 0.13), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
}

.quote-create-head h2 {
  margin: 0.15rem 0 0.25rem;
  color: var(--heading);
}

.quote-new-form {
  --quote-company-color: #4f6ee8;
  --quote-ink: #253044;
  --quote-line: #dde6f7;
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
}

.quote-new-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(0, 2fr);
  gap: 1rem;
  align-items: start;
}

.quote-new-side,
.quote-new-main {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #fff;
}

.quote-new-side {
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
  background:
    linear-gradient(180deg, rgba(78, 115, 223, 0.07), rgba(255, 255, 255, 0.95)),
    #fff;
}

.quote-new-main {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.quote-new-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.quote-new-section-head h3 {
  margin: 0.15rem 0 0;
  color: var(--heading);
}

.quote-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.quote-new-form .quote-search-row input {
  box-sizing: border-box;
  height: var(--admin-control-height);
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--admin-control-radius);
  padding: var(--admin-control-padding-y) var(--admin-control-padding-x);
  color: var(--text);
  font-size: var(--admin-control-font-size);
}

.quote-new-form .field input,
.quote-new-form .field select {
  box-sizing: border-box;
  height: var(--admin-control-height);
  min-height: var(--admin-control-height);
  border-radius: var(--admin-control-radius);
  padding-block: var(--admin-control-padding-y);
  padding-left: var(--admin-control-padding-x);
  font-size: var(--admin-control-font-size);
}

.quote-new-form .field select {
  padding-right: 2.35rem;
}

.quote-search-results {
  max-height: 280px;
  overflow: auto;
  padding-right: 0.25rem;
}

.quote-result-card {
  display: grid;
  gap: 0.25rem;
}

.quote-result-card small,
.quote-selected-client span {
  color: var(--muted);
  font-weight: 700;
}

.quote-selected-client {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
  border: 1px solid rgba(78, 115, 223, 0.24);
  border-radius: 0.55rem;
  padding: 0.75rem;
  background: rgba(78, 115, 223, 0.06);
}

.quote-empty-state {
  border: 1px dashed rgba(78, 115, 223, 0.35);
  border-radius: 0.7rem;
  padding: 0.65rem 0.75rem;
  color: var(--muted);
  background: rgba(78, 115, 223, 0.04);
}

.quote-empty-state p {
  margin: 0.18rem 0 0;
}

.quote-prospect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.quote-field-wide {
  grid-column: 1 / -1;
}

.quote-new-actions {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  gap: 0.65rem;
}

.text-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 840px) {
  .quote-new-layout,
  .quote-prospect-grid,
  .quote-search-row {
    grid-template-columns: 1fr;
  }
}

.action-row {
  display: flex;
  justify-content: flex-end;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.operator-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.operator-tab {
  display: grid;
  gap: 0.18rem;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.62rem 0.72rem;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.operator-tab span {
  font-weight: 800;
}

.operator-tab small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.operator-tab:hover,
.operator-tab.is-active {
  border-color: var(--brand);
  background: rgba(78, 115, 223, 0.08);
  color: var(--brand);
}

.operator-field {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.operator-field > span {
  color: var(--ink-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.operator-field > small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.operator-field input,
.operator-field select,
.operator-field textarea {
  width: 100%;
}

.operator-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.accounting-tab-content > [data-accounting-tab],
.accounting-config-tab-content > [data-accounting-config-tab] {
  display: none;
}

.accounting-tab-content[data-active-tab="resumen"] > [data-accounting-tab~="resumen"],
.accounting-tab-content[data-active-tab="sincronizacion"] > [data-accounting-tab~="sincronizacion"],
.accounting-tab-content[data-active-tab="cartera"] > [data-accounting-tab~="cartera"],
.accounting-tab-content[data-active-tab="asientos"] > [data-accounting-tab~="asientos"],
.accounting-tab-content[data-active-tab="periodos"] > [data-accounting-tab~="periodos"],
.accounting-tab-content[data-active-tab="informes"] > [data-accounting-tab~="informes"],
.accounting-config-tab-content[data-active-tab="mapeos"] > [data-accounting-config-tab~="mapeos"],
.accounting-config-tab-content[data-active-tab="empresas"] > [data-accounting-config-tab~="empresas"],
.accounting-config-tab-content[data-active-tab="bancos"] > [data-accounting-config-tab~="bancos"],
.accounting-config-tab-content[data-active-tab="retenciones"] > [data-accounting-config-tab~="retenciones"],
.accounting-config-tab-content[data-active-tab="cuentas"] > [data-accounting-config-tab~="cuentas"] {
  display: block;
}

.cell-input,
.cell-select,
.cell-textarea {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 0.75rem;
  padding: 0.58rem 0.72rem;
  background-color: var(--field-bg);
  color: var(--ink-strong);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cell-input:focus,
.cell-select:focus,
.cell-textarea:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--field-focus);
}

.cell-textarea {
  resize: vertical;
  min-height: 72px;
}

.danger-link {
  border: 0;
  background: transparent;
  color: #e74a3b;
  font-weight: 700;
  cursor: pointer;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 48px;
  align-items: center;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-option span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.78rem;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.radio-option input:checked + span {
  border-color: var(--brand);
  background: rgba(78, 115, 223, 0.1);
  color: var(--brand);
}

td.nivel-base {
  background-color: #ffcccc;
  color: inherit;
  text-align: center;
  vertical-align: middle;
  font-size: 0.85rem;
}

td.nivel-1 {
  background-color: #ffcccc;
}

td.nivel-2 {
  background-color: #ffffcc;
}

td.nivel-3 {
  background-color: #e0ccff;
}

td.nivel-4 {
  background-color: #ccffcc;
}

td.nivel-5 {
  background-color: #cce0ff;
}

td.nivel-6 {
  background-color: #003366;
  color: #fff;
}

td.nivel-1,
td.nivel-2,
td.nivel-3,
td.nivel-4,
td.nivel-5,
td.nivel-6 {
  text-align: center;
  vertical-align: middle;
  font-size: 0.85rem;
}

.price-marca-col {
  background-color: #cce0ff !important;
}

.products-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.products-subnav-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--heading);
  border-radius: 0.7rem;
  height: 46px;
  padding: 0.75rem 1rem;
  margin: 0;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 0.05rem 0.8rem rgba(58, 59, 69, 0.06);
  white-space: nowrap;
}

.products-subnav-link.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.products-subnav-link:focus,
.products-subnav-link:focus-visible,
.products-subnav-link:active {
  outline: none;
}

.products-subnav--editor {
  gap: 0.55rem;
}

.products-subnav--editor .products-subnav-link {
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.product-tab-panel {
  min-height: 420px;
  display: block;
}

.products-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
}

.products-hero h2 {
  margin-top: 0.2rem;
  margin-bottom: 0.65rem;
}

.products-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.products-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(78, 115, 223, 0.1);
  color: var(--brand-dark);
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 800;
}

.products-badge.is-accent {
  background: rgba(246, 194, 62, 0.18);
  color: #805500;
}

.products-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
}

.products-layout.is-catalog-live {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.95fr);
}

.product-section-card {
  display: grid;
  gap: 0.72rem;
  align-content: start;
}

.product-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-form-grid label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.product-form-grid input,
.product-form-grid select,
.product-form-grid textarea,
.filter-bar select,
.filter-bar textarea {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 0.65rem;
  background-color: var(--field-bg);
  color: var(--ink-strong);
  min-height: 42px;
  padding: 0.62rem 0.75rem;
  font: inherit;
}

.product-form-grid textarea {
  min-height: 92px;
  resize: vertical;
}

.checkbox-row {
  grid-auto-flow: column;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: start;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.status-banner {
  margin-top: 0.75rem;
  border: 1px solid rgba(78, 115, 223, 0.22);
  background: rgba(78, 115, 223, 0.08);
  color: var(--brand-dark);
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  font-weight: 700;
}

.searchable-select {
  position: relative;
  min-width: 18rem;
}

.searchable-select input {
  width: 100%;
}

.searchable-select__menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  max-height: 16rem;
  overflow: auto;
  border: 1px solid var(--field-border-strong);
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 18px 45px rgba(31, 43, 73, 0.16);
  padding: 0.25rem;
}

.searchable-select__menu button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--text-main);
  padding: 0.55rem 0.65rem;
  text-align: left;
  cursor: pointer;
}

.searchable-select__menu button:hover,
.searchable-select__menu button:focus {
  background: rgba(78, 115, 223, 0.11);
  color: var(--brand-dark);
  outline: none;
}

.product-form-grid--single {
  grid-template-columns: 1fr;
}

.product-span-2 {
  grid-column: 1 / -1;
}

.product-textarea {
  min-height: 112px;
}

.product-textarea--master {
  min-height: 136px;
}

.product-textarea--compact {
  min-height: 72px;
}

.product-bullet-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.75rem;
  line-height: 1.55;
}

.product-channel-notice {
  border: 1px dashed rgba(78, 115, 223, 0.35);
  border-radius: 0.65rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, rgba(78, 115, 223, 0.05), rgba(248, 249, 252, 0.95));
}

.product-channel-notice-body {
  display: grid;
  gap: 0.5rem;
}

.product-channel-notice-body strong {
  color: var(--heading);
}

.product-channel-notice-body p {
  margin: 0;
  line-height: 1.55;
}

.product-channel-link {
  justify-self: start;
}

.product-channel-notice--editor {
  margin-top: 0.65rem;
}

.product-channel-notice--inline {
  margin-top: 0;
}

.channel-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.channel-kpi-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.channel-kpi {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 252, 0.96));
}

button.channel-kpi {
  cursor: pointer;
  text-align: left;
  font: inherit;
}

button.channel-kpi:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0.65rem 1.4rem rgba(37, 99, 235, 0.1);
}

.channel-kpi span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.channel-kpi strong {
  color: var(--heading);
  font-size: 0.98rem;
}

.admin-workspace-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.record-sidebar {
  display: grid;
  gap: 0.85rem;
}

.record-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
}

.record-sidebar-head span {
  color: var(--muted);
  font-size: 0.85rem;
}

.record-list {
  display: grid;
  gap: 0.75rem;
}

.record-list-item {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
  color: var(--text);
}

.record-list-item.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(78, 115, 223, 0.15);
  background: linear-gradient(180deg, rgba(78, 115, 223, 0.05), rgba(255, 255, 255, 0.98));
}

.record-list-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.record-list-title {
  font-weight: 700;
  color: var(--heading);
}

.record-list-meta {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.table-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.images-row-actions {
  min-width: 220px;
}

.images-row-actions .table-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.image-sync-errors {
  margin-top: 0.5rem;
}

.image-sync-errors summary {
  cursor: pointer;
  font-weight: 800;
}

.image-sync-errors ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
}

.image-sync-errors li + li {
  margin-top: 0.35rem;
}

.image-diagnostic-row td {
  background: #f8fbff;
}

.image-diagnostic-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-diagnostic-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem;
}

.image-diagnostic-card strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--heading);
}

.image-diagnostic-card ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.image-diagnostic-card li {
  display: grid;
  gap: 0.2rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.45rem;
}

.image-diagnostic-card li:first-child {
  border-top: 0;
  padding-top: 0;
}

.image-diagnostic-card code {
  overflow-wrap: anywhere;
  white-space: normal;
  color: var(--text-soft);
}

.row-is-selected td {
  background: rgba(78, 115, 223, 0.05);
}

.empty-state {
  display: grid;
  gap: 0.45rem;
  min-height: 220px;
  place-content: center;
  text-align: center;
}

.empty-state h3 {
  margin: 0;
  color: var(--heading);
}

.empty-state p {
  margin: 0;
  color: var(--text-soft);
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.publication-card {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 252, 0.96));
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.publication-card h4 {
  margin: 0;
  color: var(--heading);
}

.publication-card p {
  margin: 0;
  line-height: 1.55;
}

.publication-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.publication-content-preview {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.publication-content-preview strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.publication-content-preview span {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.products-list-card {
  border-left-color: #224abe;
  padding: 1rem 1rem 1.25rem;
}

.product-page-hero {
  align-items: center;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.product-page-hero__copy {
  max-width: 560px;
}

.product-page-hero__copy h2 {
  margin-bottom: 0.25rem;
}

.products-list-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.product-quick-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.75rem;
}

.product-quick-status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.product-checklist-reason-row {
  align-items: flex-start;
  margin-top: -0.45rem;
}

.status-pill.is-active {
  box-shadow: 0 0 0 2px rgba(26, 132, 207, 0.14);
  transform: translateY(-1px);
}

.product-status-help-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.product-status-help-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fbfcff;
}

.product-status-help-card h3 {
  margin: 0;
  color: var(--heading);
  font-size: 0.98rem;
}

.product-status-help-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.product-status-help-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product-unmatched-card {
  padding: 0.85rem;
}

.product-unmatched-empty {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.product-review-queue-card {
  display: grid;
  gap: 0.75rem;
}

.product-review-queue-modal {
  width: min(100%, 1280px);
}

.product-review-queue-helper {
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.product-review-queue-list {
  display: grid;
  gap: 0.55rem;
  max-height: 580px;
  overflow: auto;
  padding-right: 0.25rem;
}

.product-review-queue-list--modal {
  max-height: min(68vh, 720px);
}

.product-review-queue-item {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
}

.product-review-queue-modal .product-review-queue-item {
  grid-template-columns: minmax(250px, 0.85fr) minmax(280px, 1.1fr) minmax(240px, 0.9fr) auto;
}

.product-review-queue-main {
  display: grid;
  grid-template-columns: auto 54px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
}

.product-review-queue-main .products-thumb {
  width: 54px;
  height: 54px;
}

.product-review-queue-main strong {
  display: block;
  color: var(--heading);
  font-size: 0.86rem;
  line-height: 1.2;
}

.product-review-queue-main small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.product-review-queue-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, white 90%);
  font-size: 0.74rem;
  font-weight: 800;
}

.product-review-queue-item textarea {
  width: 100%;
  min-height: 46px;
  resize: vertical;
}

.product-review-queue-copy {
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid rgba(78, 115, 223, 0.12);
  border-radius: 0.65rem;
  background: #f8fbff;
}

.product-review-queue-copy span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-review-queue-copy p {
  margin: 0;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.product-review-queue-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

@media (max-width: 760px) {
  .product-review-queue-item,
  .product-review-queue-modal .product-review-queue-item {
    grid-template-columns: 1fr;
  }

  .product-review-queue-actions {
    justify-content: flex-start;
  }
}

.products-filter-bar {
  align-items: center;
}

.products-list-table th,
.products-list-table td {
  padding: 0.58rem 0.65rem;
  font-size: 0.84rem;
  line-height: 1.2;
}

.product-quality-pill {
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  border-radius: 0.55rem;
}

.product-quality-stack,
.product-ref-stack,
.product-name-stack,
.product-stock-stack {
  display: grid;
  gap: 0.22rem;
  align-content: start;
}

.product-quality-stack {
  justify-items: start;
}

.product-ref-stack strong,
.product-stock-stack strong {
  color: var(--heading);
  font-size: 0.84rem;
  line-height: 1.15;
}

.product-ref-stack span,
.product-stock-stack span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.15;
  white-space: nowrap;
}

.product-review-stamp {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0.22rem;
  white-space: nowrap;
}

.product-state-pill {
  max-width: 104px;
  justify-content: center;
  white-space: nowrap;
}

.product-checklist-under-quality {
  padding: 0.18rem 0.44rem;
  font-size: 0.68rem;
}

.product-checklist-reason-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  max-width: 170px;
}

.product-name-stack {
  min-width: 190px;
  max-width: 320px;
}

.product-name-stack > span,
.product-name-stack > a.table-link {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.25;
}

.products-open-master-button {
  width: fit-content;
  min-width: 0;
  min-height: 28px;
  padding: 0.28rem 0.55rem;
  font-size: 0.74rem;
}

.product-channel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  max-width: 150px;
}

.product-channel-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.product-channel-badge.is-principal {
  background: rgba(26, 132, 207, 0.13);
  color: #155f97;
}

.product-channel-badge.is-kolor {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.product-channel-badge.is-neutral {
  background: rgba(78, 115, 223, 0.12);
  color: var(--brand-dark);
}

.product-channel-badge.is-empty {
  background: rgba(133, 135, 150, 0.16);
  color: #5f6472;
}

.product-role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  max-width: 170px;
}

.product-role-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.product-role-badge.is-principal {
  background: rgba(26, 132, 207, 0.13);
  color: #155f97;
}

.product-role-badge.is-component {
  background: rgba(107, 114, 128, 0.15);
  color: #374151;
}

.product-role-badge.is-accessory {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}

.product-role-badge.is-replacement {
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
}

.channel-bulk-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.55rem 0;
}

.channel-bulk-select {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 36px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 800;
}

.channel-pagination-bar {
  margin: 0.45rem 0 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.channel-pagination-actions {
  align-items: center;
  flex-wrap: wrap;
}

.channel-page-size {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.products-list-table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.products-thumb-cell {
  width: 72px;
  text-align: center;
}

.products-thumb {
  width: 50px;
  height: 50px;
  border-radius: 0.35rem;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

.product-master-split-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(460px, 1.35fr);
  gap: 1rem;
  align-items: start;
}

.product-list-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 260px;
}

.product-list-cell a {
  display: block;
  margin-top: 0.18rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.product-category-path-chip {
  display: inline-block;
  max-width: 240px;
  padding: 0.22rem 0.5rem;
  border: 1px solid rgba(78, 115, 223, 0.22);
  border-radius: 999px;
  background: rgba(78, 115, 223, 0.07);
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-selected-row {
  background: rgba(70, 95, 225, 0.08);
}

.soft-pill {
  display: inline-flex;
  align-items: center;
  margin: 0.1rem 0.25rem 0.1rem 0;
  padding: 0.18rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--text);
  font-size: 0.76rem;
  white-space: nowrap;
}

.provider-normalization-toolbar--inline {
  margin-bottom: 0.7rem;
}

.pagination-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

@media (max-width: 1180px) {
  .product-master-split-grid,
  .image-split-workbench,
  .image-split-controls {
    grid-template-columns: 1fr;
  }
}

.products-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding-inline: 0.9rem;
}

.section-support {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
  max-width: 72ch;
}

.product-editor-hero {
  display: flex;
  gap: 1rem;
  border-left-color: #224abe;
  align-items: start;
  min-height: 232px;
}

.product-editor-hero--master {
  min-height: 144px;
  padding: 1rem 1.1rem;
}

.product-editor-hero__media {
  flex: 0 0 164px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 164px;
}

.product-editor-hero--master .product-editor-hero__media {
  flex-basis: 112px;
  min-height: 112px;
}

.product-editor-hero__image {
  width: 100%;
  max-width: 148px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: linear-gradient(180deg, #fff, #f6f8fd);
  padding: 0.65rem;
}

.product-editor-hero--master .product-editor-hero__image {
  max-width: 104px;
  border-radius: 0.45rem;
  padding: 0.45rem;
}

.product-editor-hero__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: stretch;
  min-height: 182px;
}

.product-editor-hero--master .product-editor-hero__body {
  min-height: auto;
  gap: 0.45rem;
}

.product-editor-hero__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  min-height: 94px;
}

.product-editor-hero--master .product-editor-hero__top {
  min-height: auto;
}

.product-editor-hero__subtitle {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-editor-hero--master h2 {
  font-size: 2rem;
  line-height: 1.1;
  margin: 0.1rem 0 0;
}

.product-editor-hero__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.editor-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(78, 115, 223, 0.1);
  color: var(--brand-dark);
  font-size: 0.77rem;
  font-weight: 800;
}

.editor-chip-button {
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.editor-chip-button:hover,
.editor-chip-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(78, 115, 223, 0.16);
  outline: none;
}

.editor-chip--soft {
  background: rgba(145, 158, 190, 0.12);
  color: var(--text-soft);
}

.editor-chip--success {
  background: rgba(40, 167, 69, 0.14);
  color: #1e7e34;
}

.editor-chip--warning {
  background: rgba(246, 194, 62, 0.22);
  color: #8f5d00;
}

.editor-chip--danger {
  background: rgba(231, 74, 59, 0.14);
  color: #b02a1a;
}

.editor-chip--muted {
  background: rgba(133, 135, 150, 0.16);
  color: #5f6472;
}

.editor-chip--stockout {
  background: rgba(54, 185, 204, 0.16);
  color: #177482;
}

.product-editor-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: start;
  min-height: 72px;
}

.provider-editor-hero {
  min-height: auto;
  padding: 0.8rem 1rem;
}

.provider-editor-hero .product-editor-hero__body {
  min-height: auto;
  gap: 0.35rem;
}

.provider-editor-hero .product-editor-hero__summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.provider-editor-hero h2 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.08;
}

.provider-editor-hero .eyebrow {
  margin-bottom: 0.3rem;
}

.provider-editor-hero .product-editor-hero__refs {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
}

.provider-editor-hero .product-editor-hero__actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}

.provider-logo-field {
  min-width: 260px;
}

.provider-logo-editor {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}

.provider-logo-preview {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe5f7;
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  width: 72px;
}

.provider-logo-preview img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.provider-logo-preview--empty {
  background: #eef2ff;
  color: #31538f;
  font-size: 0.78rem;
  font-weight: 800;
}

.provider-logo-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.provider-logo-actions input[type="file"] {
  display: none;
}

.field-label-row > span:first-child {
  color: var(--brand);
  font-weight: 800;
}

.product-editor-stat {
  display: grid;
  gap: 0.2rem;
  align-content: start;
  min-height: 72px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
}

.product-editor-stat span {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-editor-stat strong {
  color: var(--ink-strong);
  font-size: 0.94rem;
  font-weight: 800;
}

.product-head-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.25rem;
  border-left-color: #224abe;
}

.product-head-card--compact {
  grid-template-columns: 220px minmax(0, 420px);
  align-items: start;
}

.channel-config-head-card {
  border-left-color: #224abe;
}

.channel-config-head-card__content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.channel-config-head-card__copy {
  min-width: 0;
  max-width: 760px;
}

.channel-config-head-card__actions {
  flex: 0 0 auto;
}

.product-head-media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.product-head-image {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #fff, #f6f8fd);
  padding: 1rem;
}

.product-head-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1rem;
}

.product-head-meta.is-compact {
  grid-template-columns: 1fr;
  align-content: start;
}

.product-head-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

.product-head-meta-item {
  min-width: 180px;
  display: grid;
  gap: 0.18rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
}

.product-head-meta-item span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-head-meta-item strong {
  color: var(--ink-strong);
  font-size: 1rem;
  font-weight: 800;
}

.products-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.product-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 1rem;
}

.product-editor-main-card,
.product-editor-side-card {
  align-content: start;
}

.product-master-card {
  display: grid;
  gap: 1.1rem;
}

.product-editor-groups {
  display: grid;
  gap: 1.15rem;
}

.product-editor-group {
  display: grid;
  gap: 0.95rem;
  padding-top: 0.15rem;
}

.product-editor-group + .product-editor-group {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.product-editor-group h4 {
  margin: 0;
  color: var(--heading);
  font-size: 1rem;
}

.product-editor-group__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.product-editor-group__head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.product-editor-side-stack {
  display: grid;
  gap: 0.5rem;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.field-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.field-badge.is-required {
  background: rgba(231, 74, 59, 0.12);
  color: #b02a1a;
}

.field-badge.is-recommended {
  background: rgba(78, 115, 223, 0.12);
  color: var(--brand-dark);
}

.field-badge.is-readonly {
  background: rgba(145, 158, 190, 0.14);
  color: var(--text-soft);
}

.product-master-layout {
  display: grid;
  gap: 1.1rem;
}

.product-master-top-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.25rem 0 0.8rem;
  border-bottom: 1px solid var(--line);
}

.product-master-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.1rem;
}

.product-master-main-column,
.product-master-side-column {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.product-master-panel {
  display: grid;
  gap: 0.85rem;
}

.product-master-panel__head {
  display: flex;
  align-items: center;
  min-height: 2.25rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.product-master-panel__head h4 {
  margin: 0;
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 800;
}

.product-detail-screen {
  gap: 0.75rem;
}

.product-detail-screen .product-editor-hero--master {
  min-height: 0;
  padding: 0.75rem 0.9rem;
  align-items: center;
}

.product-detail-screen .product-editor-hero--master .product-editor-hero__media {
  flex-basis: 84px;
  min-height: 84px;
}

.product-detail-screen .product-editor-hero--master .product-editor-hero__image {
  max-width: 78px;
  padding: 0.35rem;
}

.product-detail-screen .product-editor-hero--master h2 {
  font-size: clamp(1.45rem, 1.8vw, 1.9rem);
}

.product-detail-screen .product-editor-hero__top {
  align-items: center;
}

.product-detail-screen .product-editor-hero__meta-row {
  margin-top: 0.45rem;
}

.product-detail-screen .products-subnav--editor {
  gap: 0.35rem;
  padding-block: 0.35rem;
}

.product-detail-screen .products-subnav--editor .products-subnav-link {
  min-height: 38px;
  padding: 0.5rem 0.8rem;
}

.product-master-card--info {
  gap: 0.75rem;
  padding: 1rem;
}

.product-master-title-row {
  align-items: center;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.product-master-title-row .section-support {
  margin-top: 0.25rem;
  max-width: none;
  white-space: nowrap;
}

.product-master-title-row__status {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.product-detail-screen .product-master-layout {
  gap: 0.8rem;
}

.product-detail-screen .product-master-top-grid {
  grid-template-columns:
    minmax(170px, 0.8fr)
    minmax(230px, 1.15fr)
    repeat(4, minmax(150px, 0.9fr));
  gap: 0.55rem;
  padding: 0;
  border-bottom: 0;
}

.product-detail-screen .field select {
  padding-right: 2rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand) 50%),
    linear-gradient(135deg, var(--brand) 50%, transparent 50%),
    linear-gradient(to right, color-mix(in srgb, var(--field-border) 80%, white 20%), color-mix(in srgb, var(--field-border) 80%, white 20%));
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%,
    calc(100% - 32px) 50%;
  background-size: 5px 5px, 5px 5px, 1px 20px;
  background-repeat: no-repeat;
  appearance: none;
}

.product-detail-screen .field input,
.product-detail-screen .field textarea {
  background: #fff;
}

.product-detail-screen .field select {
  background-color: color-mix(in srgb, white 88%, var(--brand) 12%);
  border-color: color-mix(in srgb, var(--brand) 42%, var(--field-border) 58%);
  cursor: pointer;
}

.product-detail-screen .product-master-body-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.75fr);
  gap: 0.75rem;
}

.product-detail-screen .product-master-main-column,
.product-detail-screen .product-master-side-column {
  gap: 0.75rem;
}

.product-detail-screen .product-master-panel {
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: color-mix(in srgb, white 96%, var(--brand) 4%);
}

.product-detail-screen .product-master-panel__head {
  min-height: 0;
  padding-bottom: 0.45rem;
}

.product-detail-screen .product-master-panel__head h4 {
  font-size: 0.94rem;
}

.product-detail-screen .product-form-grid {
  gap: 0.62rem 0.7rem;
}

.product-detail-screen .product-form-grid--single {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-detail-screen .product-form-grid--single label:has(textarea) {
  grid-column: 1 / -1;
}

.product-detail-screen .product-form-grid input,
.product-detail-screen .product-form-grid select,
.product-detail-screen .product-form-grid textarea {
  min-height: 36px;
  padding: 0.48rem 0.6rem;
  border-radius: 0.52rem;
}

.product-detail-screen .product-form-grid textarea {
  min-height: 74px;
}

.product-detail-screen .product-textarea--master {
  min-height: 92px;
}

.product-detail-screen .field-help {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  line-height: 1.3;
}

.products-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
  gap: 1rem;
}

.products-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 0 1rem;
}

.products-summary-pill {
  display: grid;
  gap: 0.22rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: color-mix(in srgb, white 92%, var(--brand) 8%);
}

.products-summary-pill span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.products-summary-pill strong {
  color: var(--ink-strong);
  font-size: 1.25rem;
  font-weight: 800;
}

.product-tab-panel > .product-tab-section {
  display: none;
}

.product-tab-panel > .product-tab-section.is-active {
  display: grid;
  align-content: start;
  align-items: start;
}

.section-title-row--compact {
  margin-bottom: 0.85rem;
}

.product-variant-creator {
  display: grid;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, white 88%, var(--brand) 12%);
}

.product-variant-creator__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.products-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 220px));
  gap: 1rem;
  justify-content: flex-start;
}

.products-image-card {
  margin: 0;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 252, 0.96));
  padding: 0.9rem;
}

.products-image-card img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 0.45rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.75rem;
  justify-self: center;
}

.products-image-card figcaption {
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: center;
  color: var(--text-soft);
}

.product-images-quick-modal {
  width: min(1180px, calc(100vw - 2rem));
}

.product-images-quick-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 1rem;
  align-items: start;
}

.product-images-quick-gallery,
.product-images-quick-variants {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.82);
}

.product-images-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.65rem;
  max-height: 360px;
  overflow: auto;
  padding-right: 0.25rem;
}

.product-images-quick-tile {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.55rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.product-images-quick-tile:hover,
.product-images-quick-tile:focus-visible,
.product-images-quick-tile.is-selected {
  border-color: rgba(78, 115, 223, 0.55);
  box-shadow: 0 10px 20px rgba(78, 115, 223, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.product-images-quick-tile img {
  width: 88px;
  height: 78px;
  object-fit: contain;
}

.product-images-quick-tile small {
  font-size: 0.72rem;
  color: var(--muted);
}

.product-images-quick-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.9rem;
}

.product-images-quick-url label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.product-images-variant-list {
  display: grid;
  gap: 0.65rem;
  max-height: 260px;
  overflow: auto;
  padding-right: 0.25rem;
}

.product-images-variant-section + .product-images-variant-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.product-images-variant-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.65rem;
}

.product-images-variant-card.is-missing {
  border-color: rgba(246, 194, 62, 0.42);
  background: rgba(246, 194, 62, 0.06);
}

.product-images-variant-card small,
.product-images-variant-card strong {
  display: block;
}

.product-images-variant-card small {
  color: var(--muted);
  font-size: 0.76rem;
}

.product-images-no-provider {
  width: fit-content;
  margin-top: 0.22rem;
  border-radius: 999px;
  background: rgba(54, 185, 204, 0.16);
  color: #177482 !important;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
}

.product-images-variant-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.product-images-variant-actions .ghost-button {
  padding: 0.42rem 0.55rem;
}

.product-images-variant-thumb {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(248, 249, 252, 0.92);
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.product-images-variant-thumb img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.product-textarea--large {
  min-height: 180px;
}

.products-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.products-tag {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-radius: 0.65rem;
  background: rgba(78, 115, 223, 0.08);
  border: 1px solid rgba(78, 115, 223, 0.18);
  color: var(--brand-dark);
  padding: 0.8rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.products-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  align-items: start;
}

.products-category-grid--selected {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.products-category-grid--tree {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.55rem;
}

.products-category-grid--taxonomy {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.5rem;
}

.products-category-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 84px;
  border: 1px solid rgba(145, 158, 190, 0.26);
  border-radius: 0.8rem;
  background: #fff;
  padding: 1rem 1rem 1rem 0.95rem;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 10px 24px rgba(18, 38, 63, 0.04);
}

.products-category-item.is-selected {
  border-color: rgba(78, 115, 223, 0.45);
  background: rgba(78, 115, 223, 0.08);
  color: var(--brand-dark);
}

.products-category-item input {
  width: 18px;
  height: 18px;
  margin-top: 0.12rem;
  flex: 0 0 auto;
}

.products-category-item span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.45;
  word-break: break-word;
}

.products-category-item--tree,
.products-category-item--compact {
  min-height: 0;
  gap: 0.55rem;
  padding: 0.62rem 0.7rem;
  border-radius: 0.58rem;
  box-shadow: none;
}

.products-category-item--tree span,
.products-category-item--compact span {
  display: grid;
  gap: 0.12rem;
}

.products-category-item--tree strong,
.products-category-item--compact strong {
  color: var(--heading);
  font-size: 0.88rem;
  line-height: 1.25;
}

.products-category-item--tree small,
.products-category-item--compact small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
}

.product-category-path-chip--button {
  cursor: pointer;
  border: 1px solid rgba(78, 115, 223, 0.22);
  text-align: left;
}

.product-category-path-chip--button.is-warning {
  color: #9a5a00;
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.1);
}

.product-category-modal-card {
  width: min(100%, 980px);
}

.product-category-modal-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.product-category-modal-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.5rem;
  max-height: 56vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.product-category-modal-option {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.product-category-modal-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 0.12rem;
  flex: 0 0 auto;
  border: 1px solid rgba(78, 115, 223, 0.38);
  border-radius: 0.25rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-category-modal-check.is-on {
  background: var(--brand);
  border-color: var(--brand);
}

.component-search-results {
  display: grid;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.component-search-item {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  border: 1px solid rgba(145, 158, 190, 0.26);
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.85rem 1rem;
  color: var(--heading);
  font: inherit;
}

.component-search-item strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--heading);
}

.component-search-item span,
.component-search-item small {
  color: var(--muted);
}

.component-search-item:hover {
  border-color: rgba(78, 115, 223, 0.35);
  box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.06);
}

.component-cell {
  display: grid;
  gap: 0.15rem;
  min-width: 12rem;
}

.component-cell strong {
  color: var(--heading);
}

.component-cell span,
.component-cell small {
  color: var(--muted);
}

.component-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.component-summary-card {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(145, 158, 190, 0.26);
  border-radius: 0.75rem;
  background: #fff;
  padding: 1rem 1.1rem;
}

.component-summary-card strong {
  font-size: 1rem;
  color: var(--heading);
}

.component-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.component-builder {
  display: grid;
  gap: 1rem;
}

.component-builder-step {
  border: 1px solid rgba(145, 158, 190, 0.26);
  border-radius: 0.9rem;
  padding: 1rem;
  background: #f8fbff;
}

.component-builder-step__head {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.component-builder-step__head > span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  flex: 0 0 auto;
}

.component-builder-step h5 {
  margin: 0;
  color: var(--heading);
  font-size: 1rem;
}

.component-builder-step p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.component-card-grid,
.component-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.7rem;
}

.component-option-card,
.component-type-card {
  border: 1px solid rgba(145, 158, 190, 0.26);
  border-radius: 0.8rem;
  background: #fff;
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.component-option-card:hover,
.component-type-card:hover,
.component-option-card.is-selected,
.component-type-card.is-selected {
  border-color: rgba(33, 150, 213, 0.85);
  box-shadow: 0 0.85rem 1.8rem rgba(33, 150, 213, 0.12);
  transform: translateY(-1px);
}

.component-option-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.65rem;
  background: #f3f7fb;
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.component-option-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.component-option-card strong,
.component-type-card strong {
  display: block;
  color: var(--heading);
  line-height: 1.2;
}

.component-option-card small,
.component-type-card small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 0.25rem;
}

.component-type-card .editor-chip {
  margin-bottom: 0.55rem;
}

.component-front-preview,
.component-selected-target {
  margin-top: 0.8rem;
  border: 1px solid rgba(33, 150, 213, 0.25);
  border-radius: 0.8rem;
  padding: 0.8rem;
  background: #eef9ff;
  color: var(--heading);
}

.component-front-preview span {
  display: block;
  color: var(--muted);
  margin-top: 0.2rem;
}

.component-rule-grid {
  align-items: end;
}

.configurator-workbench {
  display: grid;
  gap: 1rem;
}

.configurator-create-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(33, 150, 213, 0.18);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(238, 248, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.configurator-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(33, 150, 213, 0.18);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 0.7rem 1.6rem rgba(31, 61, 111, 0.05);
}

.configurator-toolbar strong {
  display: block;
  color: var(--heading);
}

.configurator-toolbar p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.configurator-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.configurator-modal {
  width: min(1040px, calc(100vw - 2rem));
}

.configurator-modal .configurator-create-panel {
  box-shadow: none;
}

.configurator-wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.configurator-wizard-steps span {
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(33, 150, 213, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.configurator-modal-section {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(145, 158, 190, 0.18);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.72);
}

.configurator-modal-section > div:first-child {
  display: grid;
  gap: 0.2rem;
}

.configurator-modal-section strong,
.configurator-picker-grid h4 {
  color: var(--heading);
}

.configurator-modal-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.configurator-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.configurator-picker-grid section {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.configurator-picker-grid h4 {
  margin: 0;
  font-size: 0.9rem;
}

.configurator-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.5rem;
  max-height: 15rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.configurator-option-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.65rem;
  border: 1px solid rgba(145, 158, 190, 0.2);
  border-radius: 0.75rem;
  background: #fff;
}

.configurator-option-check input {
  margin-top: 0.2rem;
}

.configurator-option-check span {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.configurator-option-check strong {
  color: var(--heading);
  font-size: 0.83rem;
  line-height: 1.2;
}

.configurator-option-check small {
  color: var(--muted);
  line-height: 1.2;
}

.configurator-quick-start {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(33, 150, 213, 0.2);
  border-radius: 0.9rem;
  background: #fff;
}

.configurator-quick-start div {
  display: grid;
  gap: 0.2rem;
}

.configurator-quick-start small {
  color: var(--muted);
  line-height: 1.35;
}

.package-flow-board {
  display: grid;
  gap: 1rem;
}

.component-assembly-map {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(33, 150, 213, 0.22);
  border-radius: 1.1rem;
  background:
    linear-gradient(135deg, rgba(238, 248, 255, 0.94), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at top left, rgba(80, 124, 255, 0.1), transparent 34rem);
  box-shadow: 0 1rem 2.4rem rgba(31, 61, 111, 0.07);
}

.component-assembly-map__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.component-assembly-map__head > div:first-child {
  display: grid;
  gap: 0.25rem;
}

.component-assembly-map__head strong {
  color: var(--heading);
  font-size: 1.05rem;
}

.component-assembly-map__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.component-assembly-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.component-assembly-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(145, 158, 190, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.component-assembly-legend i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
}

.component-assembly-legend .is-required {
  background: #f97373;
}

.component-assembly-legend .is-optional {
  background: #60a5fa;
}

.component-assembly-legend .is-dependent {
  background: #f8bf4c;
}

.component-assembly-columns {
  display: grid;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.component-assembly-column {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-width: 16rem;
}

.component-assembly-column--warning {
  background: rgba(255, 247, 221, 0.55);
  border-radius: 0.9rem;
  padding: 0.65rem;
}

.component-assembly-column:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 2.9rem;
  right: -0.85rem;
  z-index: 2;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(33, 150, 213, 0.24);
  color: var(--brand);
  font-weight: 800;
  box-shadow: 0 0.45rem 1rem rgba(31, 61, 111, 0.1);
}

.component-assembly-phase-head {
  display: grid;
  gap: 0.35rem;
  min-height: 8.1rem;
  padding: 0.75rem;
  border: 1px solid rgba(49, 83, 143, 0.15);
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.component-assembly-phase-head > span {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.component-assembly-phase-head > strong {
  color: var(--heading);
  line-height: 1.15;
}

.component-assembly-phase-head > small {
  color: var(--muted);
  line-height: 1.25;
}

.component-assembly-phase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.component-assembly-phase-head .secondary-button,
.component-assembly-phase-head .ghost-button {
  justify-self: start;
  min-height: 0;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
}

.component-assembly-level {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.component-assembly-node {
  display: grid;
  gap: 0.55rem;
  min-height: 9rem;
  padding: 0.85rem;
  border: 1px solid rgba(145, 158, 190, 0.22);
  border-left-width: 4px;
  border-radius: 0.95rem;
  background: #fff;
  box-shadow: 0 0.75rem 1.6rem rgba(31, 61, 111, 0.06);
}

.component-assembly-node.is-required {
  border-left-color: #f97373;
}

.component-assembly-node.is-optional {
  border-left-color: #60a5fa;
}

.component-assembly-node.is-dependent {
  box-shadow: inset 0 0 0 1px rgba(248, 191, 76, 0.24), 0 0.75rem 1.6rem rgba(31, 61, 111, 0.06);
}

.component-assembly-node__top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.component-assembly-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.25rem 0.45rem;
  border-radius: 0.55rem;
  background: #172f5f;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.component-assembly-node > strong {
  color: var(--heading);
  line-height: 1.2;
}

.component-assembly-node > small {
  color: var(--muted);
  line-height: 1.25;
}

.component-assembly-node__actions {
  display: flex;
  justify-content: flex-start;
}

.component-assembly-node__actions .secondary-button {
  min-height: 0;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
}

.component-assembly-depends {
  padding: 0.38rem 0.5rem;
  border-radius: 0.55rem;
  background: #fff7dd;
  color: #8a5a00;
  font-size: 0.75rem;
  font-weight: 800;
}

.component-assembly-depends--initial {
  background: #eef7ff;
  color: #31538f;
}

.component-assembly-options {
  display: grid;
  gap: 0.45rem;
}

.component-assembly-options em {
  color: var(--muted);
  font-size: 0.82rem;
}

.component-assembly-option {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  padding: 0.42rem;
  border: 1px solid rgba(145, 158, 190, 0.18);
  border-radius: 0.7rem;
  background: #f8fbff;
}

.component-assembly-option > span {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  background: #fff;
  border: 1px solid rgba(145, 158, 190, 0.14);
}

.component-assembly-option img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.component-assembly-option strong {
  display: block;
  color: var(--heading);
  font-size: 0.82rem;
  line-height: 1.18;
}

.component-assembly-option small {
  color: var(--muted);
  font-size: 0.72rem;
}

.component-assembly-empty {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px dashed rgba(33, 150, 213, 0.34);
  border-radius: 1rem;
  background: #f8fbff;
  color: var(--muted);
}

.component-assembly-empty--small {
  min-height: 7rem;
  padding: 0.8rem;
  align-content: center;
}

.component-assembly-empty strong {
  color: var(--heading);
}

.config-help-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.config-help-strip span {
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(33, 150, 213, 0.16);
  border-radius: 999px;
  background: #eef9ff;
  color: var(--muted);
  font-size: 0.78rem;
}

.config-help-strip strong {
  color: var(--heading);
}

.config-tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #e5f3ff;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: help;
  flex: 0 0 auto;
}

.config-tip > span {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  width: max-content;
  max-width: 17rem;
  transform: translateX(-50%);
  padding: 0.6rem 0.7rem;
  border-radius: 0.7rem;
  background: #1f3563;
  color: #fff;
  box-shadow: 0 0.8rem 1.8rem rgba(20, 35, 68, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.config-tip:hover > span,
.config-tip:focus > span {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.package-flow-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(33, 150, 213, 0.18);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.9rem 2rem rgba(31, 61, 111, 0.06);
}

.package-flow-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.package-flow-card__head > div {
  display: grid;
  gap: 0.35rem;
}

.package-flow-card__head strong {
  color: var(--heading);
  font-size: 1.05rem;
}

.package-flow-card--compact {
  padding: 0.85rem;
  box-shadow: none;
}

.package-flow-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  align-items: center;
}

.package-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.package-compact-meta span {
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(145, 158, 190, 0.18);
  border-radius: 999px;
  background: #f7fbff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.package-flow-card__head small,
.package-item-card small {
  color: var(--muted);
  line-height: 1.35;
}

.package-dependency-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.package-connector {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background: #eef9ff;
  border: 1px solid rgba(33, 150, 213, 0.22);
  color: var(--heading);
  font-size: 0.8rem;
  font-weight: 800;
}

.package-connector button {
  border: 0;
  background: transparent;
  color: #b42318;
  cursor: pointer;
  font-weight: 800;
}

.package-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.75rem;
}

.package-item-card {
  display: grid;
  gap: 0.4rem;
  padding: 0.7rem;
  border: 1px solid rgba(145, 158, 190, 0.22);
  border-radius: 0.9rem;
  background: #f8fbff;
}

.package-item-card .component-option-thumb {
  width: 4.75rem;
  max-width: 100%;
  margin-bottom: 0;
}

.package-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.package-mode-row select {
  border: 1px solid rgba(145, 158, 190, 0.28);
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  background: #fff;
  color: var(--heading);
  font-weight: 800;
}

.package-flow-actions {
  display: grid;
  grid-template-columns: minmax(7rem, 0.5fr) minmax(11rem, 0.9fr) minmax(13rem, 1.2fr) minmax(12rem, 1fr) minmax(12rem, 1fr) auto;
  gap: 0.65rem;
}

.package-action-label {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  color: var(--heading);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.package-flow-actions input,
.package-flow-actions select {
  min-width: 0;
  border: 1px solid rgba(145, 158, 190, 0.28);
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--heading);
  font-weight: 700;
}

.package-edit-panel {
  border: 1px solid rgba(145, 158, 190, 0.2);
  border-radius: 0.9rem;
  background: #fbfdff;
  overflow: hidden;
}

.package-edit-panel > summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  list-style: none;
  color: var(--heading);
  font-weight: 800;
}

.package-edit-panel > summary::-webkit-details-marker {
  display: none;
}

.package-edit-panel > summary small {
  color: var(--muted);
  font-weight: 700;
}

.package-edit-panel__body {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border-top: 1px solid rgba(145, 158, 190, 0.16);
}

.configurator-tree,
.config-child-steps {
  display: grid;
  gap: 0.9rem;
}

.component-advanced-panel {
  border: 1px solid rgba(145, 158, 190, 0.24);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
}

.component-advanced-panel--launcher {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
}

.component-advanced-panel--launcher span {
  display: block;
  color: var(--heading);
  font-weight: 800;
}

.component-advanced-panel--launcher small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.component-technical-modal {
  width: min(96vw, 76rem);
  max-height: 90vh;
  overflow: auto;
}

.component-advanced-panel > summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  color: var(--heading);
  font-weight: 800;
  list-style: none;
}

.component-advanced-panel > summary::-webkit-details-marker {
  display: none;
}

.component-advanced-panel > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--brand);
  font-size: 1.2rem;
}

.component-advanced-panel[open] > summary::after {
  content: "-";
}

.component-advanced-panel > summary small {
  display: block;
  max-width: 42rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.component-advanced-content {
  display: grid;
  gap: 1rem;
  padding: 0 1rem 1rem;
}

.config-child-steps {
  grid-column: 1 / -1;
  padding-left: 0.9rem;
  border-left: 3px solid rgba(33, 150, 213, 0.18);
}

.config-step-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(145, 158, 190, 0.22);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.9rem 1.8rem rgba(31, 61, 111, 0.06);
}

.config-step-card.is-child {
  background: rgba(248, 252, 255, 0.96);
}

.config-step-card__head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.config-step-card__head > div:first-child {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.config-step-card__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.config-title-input {
  width: min(35rem, 100%);
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--heading);
  font-size: 1.1rem;
  font-weight: 800;
  outline: none;
}

.config-step-fields {
  align-items: end;
}

.config-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
}

.config-option-card {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(145, 158, 190, 0.24);
  border-radius: 0.9rem;
  background: #f8fbff;
}

.config-option-card--none {
  background: rgba(238, 244, 251, 0.8);
}

.config-option-card__body {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.config-option-card select {
  width: 100%;
  border: 1px solid rgba(145, 158, 190, 0.28);
  border-radius: 0.65rem;
  padding: 0.45rem 0.55rem;
  background: #fff;
  color: var(--heading);
  font-weight: 700;
}

.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(145, 158, 190, 0.24);
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  font-size: 0.8rem;
  font-weight: 800;
}

.config-option-adder {
  display: grid;
  grid-template-columns: minmax(12rem, 0.9fr) minmax(14rem, 1.3fr) minmax(12rem, 1fr) minmax(10rem, 0.8fr) auto;
  gap: 0.65rem;
}

.config-option-adder input,
.config-option-adder select {
  min-width: 0;
  border: 1px solid rgba(145, 158, 190, 0.28);
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--heading);
  font-weight: 700;
}

@media (max-width: 900px) {
  .config-step-card__head,
  .configurator-quick-start,
  .package-flow-card__head,
  .package-flow-actions,
  .config-option-adder {
    display: grid;
    grid-template-columns: 1fr;
  }

  .config-option-card {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }
}

.products-detail-wide {
  grid-column: 1 / -1;
}

.table-input {
  width: 100%;
  min-width: 150px;
  border: 1px solid #c9d6f7;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  color: #26324f;
}

.table-input--short {
  min-width: 90px;
}

.stacked-cell {
  display: grid;
  gap: 0.25rem;
}

.stacked-cell span {
  display: block;
}

.check-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  white-space: nowrap;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.875rem;
}

.checkbox-field input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.shipping-product-meta {
  margin-bottom: 0.25rem;
}

.product-shipping-workspace {
  display: grid;
  gap: 0.85rem;
}

.shipping-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.shipping-summary-pill {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(54, 185, 204, 0.22);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(54, 185, 204, 0.08), rgba(255, 255, 255, 0.98));
}

.shipping-summary-pill span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shipping-summary-pill strong {
  color: var(--ink-strong);
  font-size: 1rem;
  font-weight: 800;
}

.shipping-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.shipping-status-note {
  min-height: 38px;
  display: flex;
  align-items: center;
}

.shipping-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.shipping-status-badge.is-saved {
  background: rgba(40, 167, 69, 0.14);
  color: #1e7e34;
}

.shipping-status-badge.is-error {
  background: rgba(231, 74, 59, 0.14);
  color: #b02a1a;
}

.shipping-status-badge.is-saving {
  background: rgba(54, 185, 204, 0.14);
  color: #0b7285;
}

.shipping-card {
  border-left-color: #36b9cc;
  padding: 1rem;
}

.shipping-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.shipping-card-head h3 {
  margin: 0.15rem 0 0;
  color: var(--heading);
  font-size: 1rem;
}

.shipping-card .eyebrow {
  font-size: 11px;
}

.shipping-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.shipping-field-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.shipping-setup-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
  gap: 0.85rem;
  align-items: start;
}

.shipping-main-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.25fr) minmax(320px, 0.95fr);
  gap: 0.85rem;
  align-items: stretch;
}

.shipping-field-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.55rem;
}

.shipping-field-grid--compact .field {
  gap: 0.28rem;
}

.shipping-field-grid--compact input,
.shipping-field-grid--compact textarea {
  min-height: 36px;
  padding: 0.48rem 0.62rem;
  font-size: 0.9rem;
}

.shipping-span-all {
  grid-column: 1 / -1;
}

.shipping-span-2 {
  grid-column: 1 / -1;
}

.shipping-textarea-compact {
  min-height: 54px;
}

.shipping-spacer {
  min-height: 1px;
}

.image-upload-card {
  gap: 16px;
}

.image-paste-zone {
  min-height: 156px;
  border: 1px dashed rgba(78, 115, 223, 0.45);
  border-radius: 16px;
  background: rgba(78, 115, 223, 0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #4f5875;
}

.image-paste-zone strong {
  color: #2f3b59;
}

.image-paste-preview {
  width: 132px;
  height: 132px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(145, 158, 190, 0.28);
  padding: 10px;
}

.image-upload-message {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.image-upload-message.is-saved {
  color: #1e9a63;
}

.image-upload-message.is-error {
  color: #d9485f;
}

.image-upload-message.is-saving {
  color: #4e73df;
}

.image-split-tool {
  gap: 14px;
}

.image-split-modal-overlay {
  z-index: 1200;
  align-items: start;
  overflow: auto;
}

.image-split-modal {
  width: min(1180px, 100%);
  max-height: calc(100vh - 3rem);
  border-radius: 1rem;
}

.image-preview-modal-overlay {
  z-index: 1210;
}

.image-preview-modal {
  width: min(1040px, calc(100vw - 48px));
  max-height: 92vh;
  overflow: auto;
  border-radius: 1rem;
}

.image-preview-modal__stage {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background:
    linear-gradient(45deg, #f8fbff 25%, transparent 25%),
    linear-gradient(-45deg, #f8fbff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f8fbff 75%),
    linear-gradient(-45deg, transparent 75%, #f8fbff 75%),
    #fff;
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.image-preview-modal__stage img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.image-detail-modal {
  width: min(760px, calc(100vw - 48px));
  max-height: 88vh;
  overflow: auto;
  border-radius: 1rem;
}

.image-detail-modal__content {
  display: grid;
  gap: 0.85rem;
}

.image-detail-modal__content > div {
  display: grid;
  gap: 0.4rem;
}

.image-detail-modal__content strong {
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-detail-modal__content pre {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(78, 115, 223, 0.16);
  border-radius: 0.8rem;
  background: #f8fbff;
  color: var(--text);
  font: 0.86rem/1.45 "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  padding: 0.8rem;
}

.image-split-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(190px, 0.9fr) repeat(3, minmax(120px, 0.5fr));
  gap: 10px;
  align-items: end;
}

.image-split-workbench {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.image-split-preview {
  min-height: 320px;
  border: 1px solid rgba(145, 158, 190, 0.26);
  border-radius: 16px;
  background:
    linear-gradient(45deg, rgba(244, 247, 252, 0.85) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(244, 247, 252, 0.85) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(244, 247, 252, 0.85) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(244, 247, 252, 0.85) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
  overflow: auto;
  padding: 12px;
  display: block;
  max-width: 100%;
}

.image-split-canvas {
  position: relative;
  display: block;
  flex: 0 0 auto;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 10px 24px rgba(30, 45, 82, 0.1);
}

.image-split-canvas img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.image-split-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.image-split-box {
  position: absolute;
  border: 2px solid #00a3a3;
  background: rgba(0, 163, 163, 0.1);
  color: #0f5f63;
  display: block;
  padding: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.image-split-box.is-active {
  z-index: 3;
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.18);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28), 0 12px 24px rgba(30, 45, 82, 0.2);
}

.image-split-box-number {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}

.image-split-empty {
  color: #77809d;
  font-weight: 700;
  text-align: center;
  padding: 24px;
}

.image-split-panel {
  display: grid;
  gap: 8px;
}

.image-split-panel h4,
.image-split-panel p {
  margin: 0;
}

.image-split-panel p {
  color: #7d86a3;
  font-size: 0.9rem;
}

.image-split-table select {
  min-width: 240px;
}

.image-split-table tr.is-selected td {
  background: rgba(245, 158, 11, 0.08);
}

.image-split-thumb {
  position: relative;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 1px solid #bfd3ff;
  border-radius: 0.55rem;
  background:
    linear-gradient(45deg, #f8fbff 25%, transparent 25%),
    linear-gradient(-45deg, #f8fbff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f8fbff 75%),
    linear-gradient(-45deg, transparent 75%, #f8fbff 75%),
    #fff;
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  cursor: pointer;
}

.image-split-thumb img {
  position: absolute;
  max-width: none;
  object-fit: fill;
}

.image-split-thumb span {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.shipping-canvas {
  width: 100%;
  max-width: 360px;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: linear-gradient(180deg, rgba(78, 115, 223, 0.05), rgba(255, 255, 255, 0.98));
}

.shipping-canvas.is-hidden {
  display: none;
}

.shipping-quote-page {
  align-content: start;
  display: grid;
  gap: 10px;
  grid-auto-rows: max-content;
  min-height: 0;
}

.shipping-quote-form h2,
.shipping-quote-results h2 {
  color: #17213d;
  font-size: 18px;
  line-height: 1.15;
  margin: 0;
}

.shipping-quote-layout {
  align-items: start;
  align-self: start;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  min-height: 0;
}

.shipping-quote-form,
.shipping-quote-summary,
.shipping-quote-results {
  background: #ffffff;
  border: 1px solid #d7e2f5;
  border-radius: 20px;
  box-shadow: 0 18px 55px rgba(44, 66, 120, 0.08);
}

.shipping-quote-form {
  align-self: start;
  height: fit-content;
  padding: 14px;
  min-height: 0;
}

.shipping-quote-form-head,
.shipping-quote-results-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.shipping-quote-form-head p {
  color: #707b95;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.shipping-provider-field {
  margin-left: auto;
  min-width: 220px;
}

.shipping-envia-panel {
  align-items: end;
  background: #f6fbff;
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  margin-bottom: 14px;
  padding: 14px;
}

.shipping-envia-panel div {
  display: grid;
  gap: 4px;
}

.shipping-envia-panel strong {
  color: #16213c;
}

.shipping-mode-tabs {
  background: #f4f7fd;
  border: 1px solid #d9e5fb;
  border-radius: 16px;
  display: inline-flex;
  gap: 6px;
  margin-bottom: 10px;
  padding: 5px;
}

.shipping-mode-tabs button {
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: #52607d;
  cursor: pointer;
  font-weight: 800;
  padding: 8px 12px;
}

.shipping-mode-tabs button.active {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(44, 66, 120, 0.12);
  color: #2360df;
}

.shipping-calculation-panel {
  background: linear-gradient(180deg, #f8fcff, #ffffff);
  border: 1px solid #cfe0ff;
  border-radius: 18px;
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
  min-height: 0;
  padding: 10px;
}

.shipping-calculation-panel--fast {
  background: #fbfdff;
}

.shipping-fast-row {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns:
    minmax(68px, 0.42fr)
    minmax(68px, 0.42fr)
    minmax(68px, 0.42fr)
    minmax(90px, 0.55fr)
    minmax(120px, 0.72fr)
    minmax(170px, 1fr)
    minmax(170px, 1fr)
    auto;
}

.shipping-fast-row--product {
  grid-template-columns: minmax(260px, 1.7fr) minmax(90px, 0.45fr) minmax(120px, 0.55fr) minmax(170px, 0.85fr) minmax(170px, 0.85fr) auto;
}

.shipping-fast-row--product .shipping-product-search {
  grid-column: auto;
}

.shipping-fast-row .field {
  gap: 4px;
}

.shipping-fast-row .field span {
  font-size: 11px;
}

.shipping-fast-row input,
.shipping-fast-row select {
  min-height: 38px;
}

.shipping-fast-submit {
  min-height: 38px;
  white-space: nowrap;
}

.shipping-fast-hint {
  color: #66728d;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  gap: 8px 14px;
}

.shipping-fast-location {
  position: relative;
}

.shipping-calculation-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.shipping-calculation-head h3 {
  color: #24304b;
  font-size: 16px;
  margin: 2px 0 0;
}

.shipping-quote-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.shipping-quote-grid--compact {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.shipping-quote-grid--final {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.shipping-quote-grid .field {
  gap: 7px;
}

.shipping-quote-grid .field select {
  min-height: 39px;
}

.shipping-quote-message {
  background: #eef8ff;
  border: 1px solid #b9e4f6;
  border-radius: 14px;
  color: #275b78;
  margin: 8px 0 0;
  padding: 9px 12px;
}

.shipping-metric-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.shipping-metric-strip span {
  background: #eef8ff;
  border: 1px solid #c7e9f7;
  border-radius: 14px;
  color: #61708d;
  display: grid;
  font-size: 12px;
  gap: 4px;
  padding: 10px 12px;
}

.shipping-metric-strip strong {
  color: #17345c;
  font-size: 15px;
}

.shipping-product-search {
  grid-column: span 3;
  position: relative;
}

.shipping-product-options {
  background: #ffffff;
  border: 1px solid #c9d8f3;
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(44, 66, 120, 0.16);
  display: grid;
  left: 0;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
}

.shipping-product-options button {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #202b45;
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 10px;
  text-align: left;
}

.shipping-product-options button:hover {
  background: #eef5ff;
}

.shipping-product-options small,
.shipping-product-selected span,
.shipping-package-list span {
  color: #6a7590;
}

.shipping-product-selected {
  background: #f7faff;
  border: 1px dashed #b9cff6;
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
}

.shipping-step-note {
  background: #fff8e8;
  border: 1px solid #f5dc9f;
  border-radius: 12px;
  color: #73521b;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  padding: 10px 12px;
}

.shipping-package-list {
  display: grid;
  gap: 6px;
}

.shipping-package-list span {
  border-bottom: 1px solid #edf2fb;
  padding-bottom: 6px;
}

.shipping-route-panel {
  background: #fbfdff;
  border: 1px solid #d8e4f8;
  border-radius: 18px;
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 10px;
}

.shipping-route-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  padding: 8px 10px;
  text-align: left;
}

.shipping-route-toggle span {
  color: #4e73df;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.shipping-route-toggle strong {
  color: #1f2b46;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shipping-route-toggle em {
  background: #eef5ff;
  border: 1px solid #cbdcf9;
  border-radius: 999px;
  color: #315aca;
  font-style: normal;
  font-weight: 800;
  padding: 8px 12px;
}

.shipping-location-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.shipping-location-picker {
  background: #ffffff;
  border: 1px solid #dbe6f7;
  border-radius: 16px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.shipping-location-picker__head {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.shipping-location-picker__head span {
  color: #4e73df;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.shipping-location-picker__head strong {
  color: #27334e;
  font-size: 13px;
  text-align: right;
}

.shipping-city-combobox {
  position: relative;
}

.shipping-city-options {
  background: #ffffff;
  border: 1px solid #c8d8f4;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(44, 66, 120, 0.18);
  display: grid;
  left: 0;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 25;
}

.shipping-city-options--fast {
  min-width: 260px;
}

.shipping-city-options button {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #1f2d4a;
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 10px;
  text-align: left;
}

.shipping-city-options button:hover {
  background: #eef5ff;
}

.shipping-city-options small {
  color: #6b7690;
}

.shipping-quote-summary {
  align-content: start;
  display: grid;
  gap: 8px;
  padding: 22px;
}

.shipping-quote-summary strong {
  color: #1388d3;
  font-size: 34px;
  line-height: 1;
}

.shipping-quote-summary p {
  color: #34405b;
  margin: 0;
}

.shipping-quote-summary small {
  color: #768099;
}

.shipping-quote-results {
  align-self: start;
  height: fit-content;
  padding: 14px;
}

.shipping-provider-results {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.shipping-provider-card {
  align-content: start;
  align-self: start;
  background: linear-gradient(180deg, #fbfdff, #ffffff);
  border: 1px solid #d7e4f8;
  border-radius: 18px;
  display: grid;
  gap: 10px;
  height: fit-content;
  min-height: 120px;
  padding: 12px;
}

.shipping-provider-card--success {
  border-color: #b7e4d6;
  box-shadow: 0 18px 42px rgba(36, 151, 116, 0.08);
}

.shipping-provider-card--error {
  border-color: #f5c5c5;
  background: linear-gradient(180deg, #fff8f8, #ffffff);
}

.shipping-provider-card--loading {
  border-color: #b9dcff;
  background: linear-gradient(180deg, #f5fbff, #ffffff);
}

.shipping-provider-card__head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.shipping-provider-card__head h3 {
  color: #25324f;
  font-size: 15px;
  margin: 3px 0 0;
}

.shipping-provider-error {
  background: #fff0f0;
  border: 1px solid #f5c1c1;
  border-radius: 14px;
  color: #a83131;
  font-weight: 800;
  padding: 12px;
}

.shipping-quote-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.shipping-quote-option {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  border: 1px solid #d6e4fb;
  border-radius: 18px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.shipping-quote-option > div:first-child {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.shipping-quote-option span {
  color: #64708b;
  font-weight: 800;
}

.shipping-quote-option strong {
  color: #0f7fc9;
  font-size: 22px;
}

.shipping-quote-option dl {
  display: grid;
  column-gap: 16px;
  row-gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  margin: 0;
}

.shipping-quote-option dt {
  color: #7a849b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shipping-quote-option dd {
  color: #27334e;
  font-weight: 800;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.shipping-quote-option p {
  border-top: 1px solid #e2eaf7;
  color: #65708b;
  font-size: 12px;
  margin: 0;
  padding-top: 8px;
}

.shipping-results-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(460px, 1.25fr);
  gap: 0.85rem;
}

.shipping-review-grid {
  display: grid;
  gap: 0.75rem;
}

.shipping-review-grid--cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.shipping-review-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
}

.shipping-review-grid--cards .shipping-review-item {
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
}

.shipping-review-item--wide {
  grid-column: 1 / -1;
}

.shipping-review-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.shipping-review-item strong {
  color: var(--heading);
  font-size: 0.88rem;
}

.shipping-arrangement-card {
  display: grid;
  gap: 0.18rem;
  margin-bottom: 0.65rem;
  padding: 0.72rem 0.85rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(54, 185, 204, 0.14), rgba(78, 115, 223, 0.08));
  border: 1px solid rgba(54, 185, 204, 0.22);
}

.shipping-arrangement-card span,
.shipping-arrangement-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

.shipping-arrangement-card strong {
  color: var(--heading);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 800;
}

.shipping-packages-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.shipping-packages-head h3 {
  margin: 0.15rem 0 0;
  color: var(--heading);
}

.shipping-quantity-field {
  width: 180px;
}

.shipping-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.shipping-totals span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(54, 185, 204, 0.14);
  color: #0b7285;
  padding: 0.42rem 0.72rem;
  font-weight: 800;
}

.text-successish {
  color: #1e7e34;
}

.text-dangerish {
  color: #b02a1a;
}

.product-row-selected td {
  background: rgba(78, 115, 223, 0.08);
}

.channel-inline-alert {
  margin-bottom: 1rem;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.channel-inline-alert.is-success {
  background: rgba(25, 135, 84, 0.12);
  color: #176b43;
}

.channel-inline-alert.is-error {
  background: rgba(220, 53, 69, 0.12);
  color: #9f1239;
}

.channel-publication-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.channel-publication-tab {
  appearance: none;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--text);
  padding: 0.75rem 0.95rem;
  cursor: pointer;
  transition: 0.18s ease;
}

.channel-publication-tab span {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--heading);
}

.channel-publication-tab strong {
  min-width: 3rem;
  border-radius: 999px;
  background: rgba(28, 132, 209, 0.1);
  color: var(--brand);
  padding: 0.25rem 0.55rem;
  text-align: center;
  font-size: 0.82rem;
}

.channel-publication-tab.is-active {
  border-color: rgba(28, 132, 209, 0.42);
  background: linear-gradient(180deg, rgba(28, 132, 209, 0.09), #fff);
  box-shadow: 0 0 0 1px rgba(28, 132, 209, 0.08);
}

.channel-publication-tab.is-active strong {
  background: var(--brand);
  color: #fff;
}

.mercadolibre-review-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mercadolibre-review-tabs .channel-publication-tab {
  text-decoration: none;
}

.mercadolibre-review-filter {
  align-items: stretch;
}

.mercadolibre-review-table td {
  vertical-align: top;
}

.mercadolibre-review-cell,
.mercadolibre-review-product {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.mercadolibre-review-cell strong,
.mercadolibre-review-product strong {
  color: var(--heading);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.mercadolibre-review-cell span,
.mercadolibre-review-product span,
.mercadolibre-review-table small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.25;
}

.mercadolibre-review-product .ml-republication-flag {
  width: fit-content;
  max-width: 100%;
  padding: 0.18rem 0.38rem;
  border: 1px solid #f0b45a;
  border-radius: 4px;
  background: #fff6e8;
  color: #8a4b08;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.mercadolibre-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mercadolibre-review-actions .ghost-button {
  min-height: 30px;
  padding: 0.32rem 0.5rem;
  font-size: 0.76rem;
}

.mercadolibre-review-page .modal-card {
  width: min(1180px, calc(100vw - 2rem));
  display: grid;
  gap: 0.9rem;
}

.ml-publish-stepper {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.ml-publish-step {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.12rem 0.45rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #f8fbff;
  padding: 0.55rem 0.62rem;
}

.ml-publish-step span {
  grid-row: span 2;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8eef9;
  color: var(--heading);
  font-size: 0.76rem;
  font-weight: 900;
}

.ml-publish-step strong {
  color: var(--heading);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.ml-publish-step small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ml-publish-step.is-done {
  border-color: rgba(25, 135, 84, 0.28);
  background: #f1fbf5;
}

.ml-publish-step.is-done span {
  background: #d8f3df;
  color: #176b43;
}

.ml-publish-step.is-active {
  border-color: rgba(28, 132, 209, 0.45);
  background: #eef8ff;
  box-shadow: 0 0 0 1px rgba(28, 132, 209, 0.08);
}

.ml-publish-step.is-active span {
  background: var(--brand);
  color: #fff;
}

.ml-next-action {
  display: grid;
  gap: 0.16rem;
  border: 1px solid rgba(28, 132, 209, 0.24);
  border-radius: 0.55rem;
  background: #f5fbff;
  padding: 0.7rem 0.85rem;
}

.ml-next-action span,
.ml-step-section__head span {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ml-next-action strong {
  color: var(--heading);
  font-size: 0.9rem;
  line-height: 1.35;
}

.ml-next-action.is-ready {
  border-color: rgba(25, 135, 84, 0.28);
  background: #f1fbf5;
}

.ml-next-action.is-ready span {
  color: #176b43;
}

.ml-step-section {
  display: grid;
  gap: 0.72rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.ml-step-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ml-step-section__head strong {
  color: var(--heading);
  font-size: 0.95rem;
  text-align: right;
}

.field-block.is-required-empty {
  border: 1px solid rgba(220, 53, 69, 0.24);
  border-radius: 0.5rem;
  background: rgba(220, 53, 69, 0.04);
  padding: 0.55rem;
}

.ml-attribute-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
}

.ml-attribute-tabs button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
}

.ml-attribute-tabs button strong {
  min-width: 1.5rem;
  border-radius: 999px;
  background: #e9eef7;
  color: #4c5b77;
  padding: 0.12rem 0.38rem;
  font-size: 0.7rem;
  text-align: center;
}

.ml-attribute-tabs button:hover,
.ml-attribute-tabs button:focus-visible {
  color: var(--heading);
  background: #f5f8fc;
}

.ml-attribute-tabs button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.ml-attribute-tabs button.is-active {
  border-bottom-color: var(--brand);
  color: var(--heading);
}

.ml-attribute-tabs button.is-active strong {
  background: var(--brand);
  color: #fff;
}

.ml-attribute-search {
  max-width: 34rem;
}

.ml-attribute-source-picker {
  display: grid;
  gap: 0.24rem;
}

.ml-attribute-source-picker > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.ml-attribute-auto-value {
  min-height: 38px;
  display: grid;
  gap: 0.14rem;
  border-left: 3px solid var(--brand);
  background: #f5f9ff;
  padding: 0.5rem 0.65rem;
}

.ml-attribute-auto-value strong {
  color: var(--heading);
  font-size: 0.8rem;
}

.ml-attribute-auto-value span,
.ml-attribute-auto-value small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.ml-attribute-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 0.45rem;
  color: var(--muted);
  padding: 0.8rem;
  font-size: 0.82rem;
}

.ml-final-actions {
  position: sticky;
  bottom: -1.25rem;
  margin: 0 -1.25rem -1.25rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.ml-publication-tabs {
  display: flex;
  gap: 0.2rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}

.ml-publication-tabs button {
  position: relative;
  min-height: 40px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0.48rem 0.78rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
}

.ml-publication-tabs button strong {
  min-width: 1.55rem;
  border-radius: 999px;
  background: #e9eef7;
  color: #4c5b77;
  padding: 0.14rem 0.4rem;
  font-size: 0.7rem;
  text-align: center;
}

.ml-publication-tabs button:hover {
  color: var(--heading);
  background: #f5f8fc;
}

.ml-publication-tabs button:focus-visible {
  z-index: 1;
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.ml-publication-tabs button.is-active {
  border-bottom-color: var(--brand);
  color: var(--heading);
}

.ml-publication-tabs button.is-active strong {
  background: var(--brand);
  color: #fff;
}

.ml-publication-tabpanel {
  display: grid;
  gap: 0.72rem;
  padding-top: 0.72rem;
}

.ml-batch-actionbar,
.ml-tracking-toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border-block: 1px solid var(--line);
  background: #f7f9fc;
  padding: 0.58rem 0.7rem;
}

.ml-batch-actionbar.has-selection {
  border-color: rgba(28, 132, 209, 0.28);
  background: #f1f8fe;
}

.ml-batch-actionbar > div,
.ml-tracking-toolbar > div {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
}

.ml-batch-actionbar strong,
.ml-tracking-toolbar strong {
  color: var(--heading);
  font-size: 0.82rem;
}

.ml-batch-actionbar span,
.ml-tracking-toolbar span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ml-selection-cell {
  width: 38px;
  min-width: 38px;
  text-align: center;
}

.ml-selection-cell input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}

.ml-selection-cell input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.ml-tracking-workspace {
  display: grid;
  gap: 0.72rem;
}

.ml-live-indicator {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.38rem;
  color: #3d4e6c;
  font-weight: 800;
  white-space: nowrap;
}

.ml-live-indicator i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #2b9b66;
}

.ml-live-indicator.is-loading i {
  background: #d18a18;
}

.ml-tracking-table {
  min-width: 980px;
}

.ml-tracking-table th:first-child,
.ml-tracking-table td:first-child {
  width: 126px;
}

.ml-table-primary,
.ml-error-copy {
  display: block;
  min-width: 0;
  max-width: 260px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ml-category-path,
.ml-category-secondary {
  display: block;
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ml-category-secondary {
  margin-top: 0.14rem;
}

.ml-error-copy {
  color: #a5343f;
  font-size: 0.74rem;
}

.ml-activity-copy {
  display: grid;
  min-width: 0;
  max-width: 300px;
  gap: 0.14rem;
  line-height: 1.3;
}

.ml-activity-copy strong {
  color: #405171;
  font-size: 0.72rem;
}

.ml-activity-copy small {
  color: var(--muted);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.ml-activity-copy.is-stalled strong,
.ml-activity-copy.is-stalled small {
  color: #a12835;
}

.ml-batch-id {
  color: #405171;
  font-size: 0.72rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ml-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: #edf1f7;
  color: #4b5c77;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.ml-status.is-processing {
  background: #e6f3fd;
  color: #176b9c;
}

.ml-status.is-success {
  background: #e2f5e9;
  color: #176b43;
}

.ml-status.is-error {
  background: #fde9eb;
  color: #a12835;
}

.ml-progress {
  display: grid;
  gap: 0.24rem;
}

.ml-progress > div {
  width: 92px;
  height: 6px;
  border-radius: 999px;
  background: #dce4ef;
  overflow: hidden;
}

.ml-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 180ms ease-out;
}

.ml-progress span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .ml-batch-actionbar,
  .ml-tracking-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ml-batch-actionbar .primary-button {
    width: 100%;
  }

  .ml-live-indicator {
    align-self: flex-start;
  }
}

.mercadolibre-cleanup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0;
  border: 1px solid rgba(220, 53, 69, 0.22);
  border-radius: 0.65rem;
  background: rgba(220, 53, 69, 0.06);
  padding: 0.75rem 0.85rem;
}

.mercadolibre-cleanup-actions > div:first-child {
  display: grid;
  gap: 0.16rem;
}

.mercadolibre-cleanup-actions strong {
  color: var(--heading);
  font-size: 0.9rem;
}

.mercadolibre-cleanup-actions span {
  color: var(--muted);
  font-size: 0.78rem;
}

.mercadolibre-cleanup-actions .channel-inline-alert {
  flex-basis: 100%;
  margin: 0;
}

.channel-publication-product {
  display: grid;
  gap: 0.15rem;
}

.channel-publication-product strong {
  color: var(--heading);
  font-size: 0.93rem;
}

.channel-product-title-link {
  color: var(--brand);
  font-size: 0.93rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(28, 132, 209, 0.32);
  text-underline-offset: 3px;
}

.channel-product-title-link:hover {
  color: var(--brand-strong);
  text-decoration-color: currentColor;
}

.channel-publication-product span {
  color: var(--muted);
  font-size: 0.82rem;
}

.channel-publications-filter-bar {
  grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) minmax(160px, 220px) minmax(260px, 1fr);
}

.channel-publications-filter-bar--compact {
  grid-template-columns: minmax(180px, 240px) minmax(180px, 240px) minmax(280px, 1fr);
}

.channel-ref-stack {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.1rem 0.45rem;
  align-items: center;
}

.channel-ref-stack strong {
  color: var(--heading);
  font-size: 0.9rem;
}

.channel-ref-stack span:not(.feed-dot) {
  color: var(--muted);
  font-size: 0.78rem;
  grid-column: 2;
}

.channel-ref-stack > strong:first-child {
  grid-column: 1 / -1;
}

.channel-ref-stack > strong:first-child + span {
  grid-column: 1 / -1;
}

.feed-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.feed-dot.status-success {
  background: #1e7e34;
}

.feed-dot.status-danger {
  background: #b02a1a;
}

.feed-dot.status-muted {
  background: #858796;
}

.channel-publications-table td {
  vertical-align: top;
}

.channel-list-thumb {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.channel-list-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.channel-quality-pill {
  min-width: 68px;
  display: grid;
  gap: 0.1rem;
  border-left: 4px solid #b91c1c;
  border-radius: 0.45rem;
  padding-left: 0.5rem;
}

.channel-quality-pill strong {
  color: var(--heading);
  font-size: 1.05rem;
  line-height: 1;
}

.channel-quality-pill span {
  color: var(--muted);
  font-size: 0.72rem;
}

.quality-red {
  border-color: #b91c1c !important;
  background: rgba(185, 28, 28, 0.08) !important;
}

.quality-orange {
  border-color: #f97316 !important;
  background: rgba(249, 115, 22, 0.1) !important;
}

.quality-warn {
  border-color: #eab308 !important;
  background: rgba(234, 179, 8, 0.12) !important;
}

.quality-good {
  border-color: #84cc16 !important;
  background: rgba(132, 204, 22, 0.11) !important;
}

.quality-strong {
  border-color: #16a34a !important;
  background: rgba(22, 163, 74, 0.12) !important;
}

.quality-red strong,
.quality-red span {
  color: #7f1d1d !important;
}

.quality-orange strong,
.quality-orange span {
  color: #9a3412 !important;
}

.quality-warn strong,
.quality-warn span {
  color: #713f12 !important;
}

.quality-good strong,
.quality-good span {
  color: #365314 !important;
}

.quality-strong strong,
.quality-strong span {
  color: #14532d !important;
}

.table-row-actions--wrap {
  flex-wrap: wrap;
}

.channel-variant-review-link {
  align-self: flex-start;
  padding: 0;
  font-size: 0.78rem;
}

.channel-variant-review-modal {
  width: min(1320px, calc(100vw - 2rem));
  max-height: 92vh;
  overflow-y: auto;
}

.channel-variant-review-head,
.channel-variant-review-publication-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.channel-variant-review-head {
  margin-bottom: 1rem;
}

.channel-variant-review-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.channel-variant-review-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.2rem;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-weight: 800;
}

.channel-variant-review-list {
  display: grid;
  gap: 1rem;
}

.channel-variant-review-list[hidden] {
  display: none !important;
}

.channel-variant-review-publication {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(248, 251, 255, 0.72);
}

.channel-variant-review-publication h3 {
  margin: 0.35rem 0 0.25rem;
  color: var(--heading);
}

.channel-variant-review-publication p {
  margin: 0;
  color: var(--muted);
}

.channel-variant-review-table-wrap {
  margin-top: 0.9rem;
  overflow-x: auto;
}

.channel-variant-review-table th,
.channel-variant-review-table td {
  vertical-align: middle;
}

.channel-variant-review-row--missing {
  background: rgba(239, 246, 255, 0.68);
}

.channel-variant-review-thumb {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.8rem;
  background: #fff;
  color: var(--muted);
  font-size: 0.72rem;
  overflow: hidden;
}

.channel-variant-review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.channel-variant-review-muted {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.channel-variant-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 260px;
}

.channel-variant-review-origin {
  display: grid;
  gap: 0.35rem;
  min-width: 260px;
}

.channel-variant-review-origin select {
  width: 100%;
  min-height: 2.4rem;
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 0.65rem;
  padding: 0.45rem 0.65rem;
  background: #fff;
  color: var(--heading);
}

.channel-variant-review-state {
  display: grid;
  gap: 0.25rem;
  min-width: 130px;
}

.channel-variant-review-empty {
  border: 1px dashed rgba(37, 99, 235, 0.22);
  border-radius: 1rem;
  padding: 1.1rem;
  color: var(--muted);
  background: rgba(239, 246, 255, 0.5);
}

.channel-variant-review-empty--compact {
  margin-top: 0.8rem;
  padding: 0.85rem;
}

.danger-button {
  appearance: none;
  border: 1px solid rgba(159, 18, 57, 0.18);
  background: rgba(220, 53, 69, 0.08);
  color: #9f1239;
  border-radius: 0.8rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.danger-button:hover {
  background: rgba(220, 53, 69, 0.14);
}

.channel-publication-workspace {
  max-width: 100%;
}

.channel-publication-hero {
  border-left-color: #224abe;
}

.channel-publication-hero__body {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.channel-publication-hero__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.channel-publication-hero__title-row > div:first-child {
  min-width: 0;
  max-width: 900px;
}

.channel-publication-hero h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.channel-publication-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0.75rem;
}

.channel-publication-meta-item {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
}

.channel-publication-meta-item span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.channel-publication-meta-item strong {
  color: var(--ink-strong);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.channel-regeneration-note {
  display: grid;
  gap: 0.22rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(26, 132, 207, 0.24);
  border-radius: 0.7rem;
  background: rgba(26, 132, 207, 0.08);
}

.channel-regeneration-note span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.channel-regeneration-note strong {
  color: var(--heading);
  font-size: 0.88rem;
  line-height: 1.35;
}

.channel-publication-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.channel-detail-shell {
  display: grid;
  gap: 1rem;
}

.channel-detail-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(112px, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.channel-detail-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.8rem;
  padding: 0.78rem 0.85rem;
  display: grid;
  gap: 0.2rem;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.channel-detail-tab span {
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 800;
}

.channel-detail-tab strong {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.channel-detail-tab:hover,
.channel-detail-tab.is-active {
  border-color: rgba(25, 146, 213, 0.45);
  background: linear-gradient(180deg, rgba(233, 247, 255, 0.95), #fff);
  box-shadow: 0 10px 24px rgba(22, 70, 120, 0.08);
}

.channel-detail-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.channel-quality-grid {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.channel-quality-item {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
  padding: 0.52rem 0.62rem;
  display: grid;
  gap: 0.18rem;
  align-content: center;
  min-width: 130px;
  max-width: 160px;
}

.channel-quality-item span {
  color: var(--heading);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
}

.channel-quality-item strong {
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

.channel-publication-quality-meta {
  border-left-width: 5px;
  border-left-style: solid;
}

.channel-variant-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 90px;
}

.channel-variant-gallery img,
.channel-variant-gallery span {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #fff;
  object-fit: contain;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.62rem;
  text-align: center;
}

.channel-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.9rem;
}

.channel-gallery-card {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
  overflow: hidden;
  display: grid;
  min-width: 0;
}

.channel-gallery-thumb {
  background: linear-gradient(180deg, #f8fbff, #eef7fc);
  aspect-ratio: 1 / 0.78;
  display: grid;
  place-items: center;
  padding: 0.65rem;
}

.channel-gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.channel-gallery-card__body {
  padding: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.channel-gallery-card__body strong {
  color: var(--heading);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.channel-gallery-card__body small {
  color: var(--muted);
  font-size: 0.75rem;
}

.channel-rule-box {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.channel-detail-empty {
  border: 1px dashed var(--line);
  border-radius: 0.8rem;
  background: #fff;
  padding: 2rem;
}

.channel-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.channel-category-pill {
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  padding: 0.75rem 0.9rem;
  display: grid;
  gap: 0.2rem;
}

.channel-category-pill strong {
  color: var(--heading);
  font-size: 0.88rem;
}

.channel-category-pill span {
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    padding-bottom: 16px;
    max-height: none;
    overflow-y: visible;
  }

  .admin-main {
    grid-template-rows: auto 1fr;
  }

  .admin-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-header-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-user-chip {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .store-chat-alert {
    align-self: flex-start;
  }

  .table-toolbar,
  .detail-header,
  .pagination-bar,
  .filter-bar,
  .section-title-row,
  .action-row,
  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .products-hero,
  .products-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .products-image-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .product-head-card,
  .products-detail-grid {
    grid-template-columns: 1fr;
  }

  .channel-config-head-card__content {
    flex-direction: column;
  }

  .channel-config-head-card__actions {
    width: 100%;
  }

  .channel-detail-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-publication-rules-grid {
    grid-template-columns: 1fr;
  }

  .products-admin-grid,
  .products-summary-strip,
  .channel-publication-rules-grid {
    grid-template-columns: 1fr;
  }

  .channel-kpi-grid,
  .channel-kpi-grid--five,
  .channel-publication-tabs,
  .mercadolibre-review-tabs,
  .channel-publication-meta-strip,
  .channel-publications-filter-bar,
  .channel-publications-filter-bar--compact {
    grid-template-columns: 1fr;
  }

  .channel-publication-hero__title-row {
    flex-direction: column;
  }

  .mercadolibre-cleanup-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .channel-publication-hero__title-row .products-list-actions {
    width: 100%;
  }

  .ml-publish-stepper {
    grid-template-columns: 1fr;
  }

  .ml-step-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ml-step-section__head strong {
    text-align: left;
  }

  .product-editor-hero,
  .product-editor-layout {
    grid-template-columns: 1fr;
  }

  .product-editor-hero__top {
    flex-direction: column;
  }

  .product-editor-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-editor-group__head,
  .field-label-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-hero-meta {
    justify-content: flex-start;
  }

  .product-form-grid {
    grid-template-columns: 1fr;
  }

  .product-master-top-grid,
  .product-master-body-grid {
    grid-template-columns: 1fr;
  }

  .component-summary-strip {
    grid-template-columns: 1fr;
  }

  .product-head-meta {
    grid-template-columns: 1fr;
  }

  .shipping-field-grid,
  .shipping-setup-grid,
  .shipping-main-grid,
  .shipping-packages-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .shipping-summary-strip,
  .shipping-field-grid--five,
  .shipping-field-grid--compact,
  .shipping-quote-grid--compact,
  .shipping-quote-grid--final,
  .shipping-quote-layout,
  .shipping-quote-cards,
  .shipping-provider-results,
  .shipping-fast-row,
  .shipping-fast-row--product,
  .shipping-location-grid,
  .shipping-metric-strip,
  .shipping-results-grid,
  .shipping-review-grid--cards {
    grid-template-columns: 1fr;
  }

  .shipping-provider-card__head {
    align-items: stretch;
    flex-direction: column;
  }

  .shipping-product-search {
    grid-column: auto;
  }

  .shipping-route-toggle {
    grid-template-columns: 1fr;
  }

  .shipping-quantity-field {
    width: 100%;
  }

  .product-span-2 {
    grid-column: auto;
  }

.summary-card {
  position: static;
}
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.table-helper {
  margin-top: 4px;
  color: #7d89ab;
  font-size: 0.78rem;
}

.provider-rules-table th,
.provider-rules-table td {
  vertical-align: top;
}

.field-block {
  display: grid;
  gap: 6px;
}

.field-label {
  color: #51617f;
  font-size: 0.78rem;
  font-weight: 700;
}

.provider-scale-create {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.provider-normalization-search {
  grid-column: span 3;
}

.provider-scale-create--normalization {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
}

.provider-normalization-toolbar {
  display: grid;
  grid-template-columns: 160px 160px minmax(240px, 1fr);
  gap: 12px 14px;
  margin-bottom: 12px;
  align-items: end;
}

.provider-normalization-create {
  display: grid;
  grid-template-columns: 220px minmax(180px, 1fr) minmax(180px, 1fr) auto auto;
  gap: 12px;
  margin-bottom: 12px;
  align-items: end;
}

.provider-normalization-domain-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 10px;
}

.provider-normalization-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.provider-normalization-pill span {
  display: inline-flex;
  min-width: 24px;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(79, 110, 214, 0.12);
  color: #3552b5;
  font-size: 12px;
  font-weight: 700;
}

.provider-normalization-pill.is-active {
  border-color: #4f6ed6;
  color: #3552b5;
  background: rgba(79, 110, 214, 0.08);
}

.inventory-thumb-col {
  width: 72px;
}

.inventory-thumb-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.inventory-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d9e1f4;
  background: #fff;
}

.inventory-detail-header {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.inventory-detail-hero-image {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d9e1f4;
  background: #fff;
}

.inventory-detail-hero-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.provider-multi-select {
  min-height: 92px;
}

.provider-normalization-example {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.provider-normalization-example--button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.provider-normalization-example--button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.provider-normalization-example--button:hover .provider-normalization-example__meta strong {
  color: #3552b5;
}

.provider-normalization-example__image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d9e1f4;
  background: #fff;
}

.provider-normalization-example__image--empty {
  display: grid;
  place-items: center;
  color: #8f9ab8;
  font-size: 0.8rem;
}

.provider-normalization-example__meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.provider-normalization-example__meta strong {
  color: #22314f;
}

.provider-normalization-example__meta div {
  overflow-wrap: anywhere;
}

.normalization-option-checks {
  display: grid;
  gap: 0.35rem;
  max-height: 8.75rem;
  overflow: auto;
  padding: 0.45rem;
  border: 1px solid #d9e1f4;
  border-radius: 0.75rem;
  background: #fff;
}

.normalization-option-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.7rem;
  padding: 0.15rem 0.2rem;
  color: #22314f;
  font-size: 0.82rem;
}

.normalization-option-check input {
  accent-color: #4f6fe9;
}

.provider-example-modal {
  width: min(1080px, 100%);
}

.field-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.provider-scale-list {
  display: grid;
  gap: 18px;
}

.provider-scale-card {
  border: 1px solid #dbe4ff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
}

.provider-scale-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.provider-scale-card__head-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  flex: 1 1;
}

.provider-scale-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.provider-scale-card__applies {
  margin-bottom: 16px;
}

.provider-scale-card__line-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.provider-line-chip {
  padding: 8px 12px;
  border: 1px solid #dbe4ff;
  border-radius: 999px;
  background: #f6f9ff;
}

.provider-line-chip.is-active {
  border-color: #4f6fde;
  background: #edf2ff;
}

.provider-active-toggle {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #dbe4ff;
  border-radius: 12px;
  background: #f6f9ff;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ghost-button.danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.24);
  background: #fff5f4;
}

.empty-copy {
  margin: 0;
  color: #7d89ab;
}

.provider-ingestion-panel {
  margin: 4px 0 24px;
  padding: 20px;
  border: 1px solid #dbe4ff;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(239, 245, 255, 0.94) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.provider-embedded-workspace {
  display: grid;
  gap: 0.75rem;
}

.provider-embedded-surface {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.inventory-monitor-tabs {
  margin-bottom: 0.9rem;
}

.inventory-monitor-link-panel {
  display: grid;
  gap: 0.85rem;
}

.section-title-row--tight {
  margin-bottom: 0;
  padding-bottom: 0;
}

.provider-operation-empty {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--stroke-strong);
  border-radius: 16px;
  background: rgba(246, 249, 255, 0.92);
}

.operation-page {
  display: grid;
  gap: 0.85rem;
  max-width: none !important;
  width: 100%;
}

.admin-content > .operation-page {
  max-width: none;
}

.operation-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.18rem;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: #fff;
}

.operation-tabs button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.38rem 0.62rem;
}

.operation-tabs button.is-active {
  background: #eaf1ff;
  color: #1d4ed8;
}

.operation-board {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.operation-column {
  align-content: start;
  background: #f8fafc;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
  min-width: 220px;
  padding: 0.65rem;
}

.operation-column__head {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
}

.operation-column__head h2 {
  color: var(--heading);
  font-size: 0.9rem;
  line-height: 1.15;
  margin: 0;
}

.operation-column > small {
  color: var(--muted-foreground);
  font-size: 0.72rem;
  line-height: 1.25;
}

.operation-column__items {
  display: grid;
  gap: 0.5rem;
}

.operation-card {
  background: #fff;
  border: 1px solid var(--stroke);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  display: grid;
  gap: 0.38rem;
  padding: 0.58rem;
}

.operation-card--success {
  border-left-color: #16a34a;
}

.operation-card--warning {
  border-left-color: #d97706;
}

.operation-card--danger {
  border-left-color: #dc2626;
}

.operation-card__head,
.operation-card__meta,
.operation-card__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: space-between;
}

.operation-card > strong {
  color: var(--heading);
  font-size: 0.82rem;
  line-height: 1.2;
}

.operation-card p,
.operation-card__meta,
.operation-card__dates {
  color: var(--muted-foreground);
  font-size: 0.74rem;
  line-height: 1.25;
  margin: 0;
}

.operation-card__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: space-between;
}

.operation-empty {
  border: 1px dashed var(--stroke);
  border-radius: 8px;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  padding: 0.7rem;
  text-align: center;
}

.operation-wide-grid {
  align-items: start;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(660px, 0.98fr) minmax(910px, 1.32fr);
  min-width: 1580px;
}

.operation-big-column {
  align-content: start;
}

.operation-provider-grid,
.operation-sales-grid {
  align-items: start;
  display: grid;
  gap: 0.55rem;
}

.operation-provider-grid {
  grid-template-columns: repeat(2, minmax(310px, 1fr));
}

.operation-sales-grid {
  grid-template-columns: minmax(215px, 1fr) minmax(215px, 1fr) minmax(215px, 1fr) minmax(170px, 0.78fr);
}

.operation-mini-section {
  border: 1px solid var(--stroke);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  padding: 0.52rem;
}

.operation-mini-head,
.operation-provider-row__head,
.operation-provider-row__foot,
.operation-pickup-row,
.operation-sale-row {
  align-items: center;
  display: grid;
  gap: 0.5rem;
}

.operation-mini-head {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
}

.operation-mini-head h3 {
  color: var(--heading);
  font-size: 0.84rem;
  line-height: 1.18;
  margin: 0;
}

.operation-mini-head small,
.operation-provider-row small,
.operation-pickup-row small,
.operation-sale-row small {
  color: var(--muted-foreground);
  display: block;
  font-size: 0.7rem;
  line-height: 1.18;
}

.operation-provider-list,
.operation-pickup-list,
.operation-sales-list {
  display: grid;
  gap: 0.4rem;
}

.operation-provider-row,
.operation-pickup-row,
.operation-sale-row {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  min-width: 0;
  padding: 0.42rem;
}

.operation-provider-row__head,
.operation-provider-row__foot {
  grid-template-columns: minmax(0, 1fr) auto;
}

.operation-provider-row__head strong,
.operation-pickup-provider__head strong,
.operation-provider-item span,
.operation-pickup-row__main {
  min-width: 0;
}

.operation-provider-row__head strong,
.operation-provider-row__foot strong,
.operation-pickup-row strong,
.operation-sale-row strong {
  color: var(--heading);
  font-size: 0.8rem;
  line-height: 1.18;
}

.operation-provider-row__head span,
.operation-provider-row__foot span {
  color: var(--muted-foreground);
  font-size: 0.74rem;
  font-weight: 800;
}

.operation-provider-row__items {
  display: grid;
  gap: 0.26rem;
  margin: 0.28rem 0;
}

.operation-provider-item {
  display: grid;
  gap: 0.34rem;
  grid-template-columns: minmax(105px, 0.72fr) minmax(0, 1.28fr);
}

.operation-pickup-row {
  align-items: start;
  gap: 0.34rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.operation-pickup-row__meta {
  align-items: end;
  border-top: 1px dashed var(--stroke);
  display: grid;
  gap: 0.35rem;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 0.3rem;
}

.operation-pickup-row__meta > span {
  text-align: right;
}

.operation-pickup-provider {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  display: grid;
  gap: 0.34rem;
  padding: 0.42rem;
}

.operation-pickup-provider__head {
  align-items: center;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.operation-pickup-provider__head strong {
  color: var(--heading);
  font-size: 0.8rem;
  line-height: 1.18;
}

.operation-pickup-provider__head span {
  color: var(--muted-foreground);
  font-size: 0.72rem;
  font-weight: 800;
}

.operation-pickup-provider__orders {
  display: grid;
  gap: 0.26rem;
}

.operation-sale-row {
  border-left: 4px solid #94a3b8;
  align-items: start;
  gap: 0.3rem;
  grid-template-columns: minmax(0, 1fr);
}

.operation-sale-row__head,
.operation-sale-row__meta {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  justify-content: space-between;
  min-width: 0;
}

.operation-sale-row__head > span,
.operation-sale-row__product {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.operation-sale-row__product strong {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.operation-sale-row__product small,
.operation-sale-row__head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-sale-row__line {
  align-items: center;
  display: flex;
  gap: 0.32rem;
  min-width: 0;
}

.operation-sale-row__line small {
  min-width: 0;
}

.operation-cpn-pill {
  background: #eef4ff;
  border: 1px solid #c8d8ff;
  border-radius: 6px;
  color: #2850b8;
  flex: 0 0 auto;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  max-width: 8.5rem;
  overflow: hidden;
  padding: 0.16rem 0.34rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-compact-date {
  color: var(--muted-foreground);
  font-weight: 800;
  white-space: nowrap;
}

.operation-sale-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  justify-content: flex-end;
}

.operation-sale-row__actions .compact-action,
.operation-pickup-row .compact-action,
.operation-mini-head .compact-action {
  min-height: 1.7rem;
  padding: 0.26rem 0.5rem;
}

.operation-agenda-card {
  overflow: hidden;
}

.operation-agenda-table {
  background: #fff;
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.operation-agenda-table th,
.operation-agenda-table td {
  border-bottom: 1px solid var(--stroke);
  color: var(--body);
  font-size: 0.8rem;
  padding: 0.48rem 0.58rem;
  text-align: left;
  vertical-align: middle;
}

.operation-agenda-table th {
  background: #315fbe;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .operation-board {
    grid-template-columns: repeat(5, minmax(210px, 78vw));
  }

  .operation-wide-grid {
    grid-template-columns: minmax(640px, 0.98fr) minmax(880px, 1.32fr);
    min-width: 1530px;
  }

  .operation-provider-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }

  .operation-sales-grid {
    grid-template-columns: minmax(205px, 1fr) minmax(205px, 1fr) minmax(205px, 1fr) minmax(165px, 0.78fr);
  }
}

.inventory-row-progress {
  display: grid;
  gap: 0.32rem;
  margin-top: 0.55rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(72, 105, 214, 0.16);
  border-radius: 12px;
  background: rgba(244, 247, 255, 0.96);
}

.inventory-row-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted-foreground);
}

.inventory-row-progress__track {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(72, 105, 214, 0.12);
}

.inventory-row-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5470ff 0%, #3155ee 100%);
  transition: width 0.35s ease;
}

.inventory-row-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.76rem;
  color: var(--muted-foreground);
}

.inventory-schedule-table .cell-input {
  min-width: 104px;
}

.schedule-interval-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.schedule-interval-field .cell-input {
  max-width: 86px;
}

.schedule-interval-field span {
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.text-danger {
  color: #b42318;
}

.normalization-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.normalization-page-sidebar,
.normalization-page-main {
  align-content: start;
}

.normalization-provider-list {
  display: grid;
  gap: 0.6rem;
}

.normalization-provider-item {
  display: grid;
  gap: 0.38rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.normalization-provider-item:hover {
  border-color: rgba(78, 115, 223, 0.35);
  box-shadow: 0 10px 24px rgba(78, 115, 223, 0.08);
  transform: translateY(-1px);
}

.normalization-provider-item.is-active {
  border-color: rgba(78, 115, 223, 0.46);
  box-shadow: 0 10px 26px rgba(78, 115, 223, 0.12);
  background: rgba(246, 249, 255, 0.95);
}

.normalization-provider-item__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.normalization-provider-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.76rem;
  color: var(--muted-foreground);
}

.normalization-base-catalog {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #f8faff;
  margin-bottom: 0.65rem;
}

.normalization-base-catalog summary {
  cursor: pointer;
  padding: 0.65rem 0.75rem;
  color: var(--heading);
  font-weight: 800;
}

.normalization-base-catalog__body {
  display: grid;
  gap: 0.75rem;
  padding: 0 0.75rem 0.75rem;
}

.normalization-base-catalog__form {
  display: grid;
  grid-template-columns: 160px 180px minmax(180px, 1fr) minmax(140px, 0.7fr) repeat(3, minmax(130px, 0.65fr)) auto;
  gap: 0.55rem;
  align-items: end;
}

.normalization-base-catalog__description {
  grid-column: span 2;
}

.normalization-base-catalog__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  min-height: 36px;
}

.provider-ingestion-panel--flat {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.provider-ingestion-panel__header h3 {
  margin: 6px 0 8px;
  font-size: 1.2rem;
  color: #22314f;
}

.provider-ingestion-panel__header .table-helper {
  max-width: 920px;
}

.provider-ingestion-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 16px;
}

.provider-ingestion-tabs--dense {
  margin-top: 0;
}

.provider-ingestion-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #c7d5ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #3551a6;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.provider-ingestion-tab:hover {
  border-color: #7a95f8;
  background: #f4f7ff;
}

.provider-ingestion-tab.is-active {
  border-color: #4f6fde;
  background: linear-gradient(180deg, #5d7af2 0%, #4764d6 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 111, 222, 0.18);
}

.provider-ingestion-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #d5e0ff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.provider-ingestion-card--flat {
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.provider-ingestion-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.provider-ingestion-card__top h4 {
  margin: 0 0 6px;
  font-size: 1.06rem;
  color: #22314f;
}

.provider-ingestion-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.provider-ingestion-result {
  display: grid;
  gap: 16px;
}

.inventory-run-progress {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(78, 115, 223, 0.24);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(78, 115, 223, 0.08), rgba(255, 255, 255, 0.98));
}

.inventory-run-progress__head {
  display: grid;
  gap: 0.2rem;
}

.inventory-run-progress__head strong {
  color: #22314f;
  font-size: 0.95rem;
}

.inventory-run-progress__head span {
  color: #6f7da4;
  font-size: 0.84rem;
}

.inventory-run-progress__track {
  position: relative;
  overflow: hidden;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(78, 115, 223, 0.12);
}

.inventory-run-progress__bar {
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7aa0ff, #4e73df);
  transition: width 0.35s ease;
}

.inventory-run-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #51617f;
  font-size: 0.8rem;
}

.inventory-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}

.provider-ingestion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.provider-ingestion-sample {
  padding: 14px;
  border: 1px dashed #c8d7ff;
  border-radius: 16px;
  background: #f8faff;
}

.provider-ingestion-sample pre {
  margin: 0;
  max-height: 420px;
  overflow: auto;
  font-size: 0.79rem;
  line-height: 1.55;
  color: #31456f;
  white-space: pre-wrap;
  word-break: break-word;
}

.inventory-product-row {
  cursor: pointer;
}

.inventory-product-row:hover td {
  background: rgba(78, 115, 223, 0.06);
}

.inventory-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(34, 49, 79, 0.44);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}

.inventory-modal {
  width: min(1320px, 100%);
  max-height: calc(100vh - 2.4rem);
  overflow: auto;
  border-radius: 1rem;
  background: #f7faff;
  box-shadow: 0 24px 80px rgba(28, 44, 75, 0.24);
  border: 1px solid rgba(200, 215, 255, 0.9);
}

.inventory-modal__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(247, 250, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.inventory-modal__head h3 {
  margin: 0.1rem 0 0;
  color: var(--heading);
}

.inventory-modal__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.inventory-modal__body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.inline-alert {
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  font-weight: 700;
  border: 1px solid rgba(78, 115, 223, 0.18);
  background: rgba(78, 115, 223, 0.08);
  color: var(--brand-dark);
}

.inline-alert--danger {
  border-color: rgba(231, 74, 59, 0.22);
  background: rgba(231, 74, 59, 0.1);
  color: #a61e12;
}

.run-detail-modal {
  width: min(1180px, 100%);
}

.run-detail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.run-detail-summary article,
.run-detail-notes {
  display: grid;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.8rem;
}

.run-detail-summary span,
.run-detail-notes strong {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.run-detail-summary strong {
  color: var(--heading);
}

.run-detail-notes {
  margin-top: 0.85rem;
}

.run-detail-notes p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.run-detail-context {
  display: grid;
  gap: 0.45rem;
  max-width: 520px;
  margin: 0;
  color: #31405f;
  font-size: 0.78rem;
}

.run-detail-context p {
  margin: 0;
  font-weight: 700;
}

.run-detail-context pre {
  max-height: 180px;
  overflow: auto;
  margin: 0;
  border-radius: 0.65rem;
  background: #f1f5ff;
  padding: 0.7rem;
  white-space: pre-wrap;
}

.inventory-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.inventory-detail-grid > div {
  display: grid;
  gap: 0.22rem;
}

.inventory-detail-grid strong {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inventory-detail-grid span {
  color: var(--text);
  line-height: 1.45;
}

.inventory-detail-grid__full {
  grid-column: 1 / -1;
}

.cell-break {
  word-break: break-word;
}

/* Compact provider/inventory workspace pass. These screens are audit tools, so density and scanability win over oversized cards. */
.admin-content {
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.detail-stack {
  gap: 0.75rem;
}

.panel-card {
  padding: 0.85rem 1rem;
}

.panel-card > .eyebrow,
.product-section-card > .eyebrow {
  margin-bottom: 0.1rem;
}

.panel-card > h2,
.panel-card > h3,
.product-section-card > h3 {
  margin-top: 0;
}

.product-section-card {
  gap: 0.55rem;
}

.product-editor-hero.provider-editor-hero {
  min-height: auto;
  padding: 0.85rem 1rem;
}

.product-editor-hero__summary {
  gap: 0.9rem;
}

.provider-ingestion-tabs {
  gap: 0.55rem;
  margin: 0.35rem 0 0.6rem;
}

.provider-ingestion-tab {
  min-height: 36px;
  padding: 0 0.9rem;
  font-size: 0.9rem;
}

.provider-ingestion-panel {
  margin: 0;
  padding: 0.85rem;
  border-radius: 0.85rem;
}

.provider-ingestion-card {
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
}

.provider-ingestion-card--flat,
.provider-ingestion-panel--flat {
  padding: 0;
}

.provider-ingestion-card__top {
  gap: 0.75rem;
  align-items: center;
}

.provider-ingestion-card__top h4 {
  margin-bottom: 0.15rem;
}

.provider-ingestion-card__actions {
  gap: 0.45rem;
}

.provider-ingestion-result {
  gap: 0.75rem;
}

.provider-ingestion-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0.55rem;
}

.products-summary-pill,
.product-editor-stat {
  padding: 0.62rem 0.72rem;
  border-radius: 0.65rem;
}

.products-summary-pill span,
.product-editor-stat span {
  font-size: 0.7rem;
}

.products-summary-pill strong,
.product-editor-stat strong {
  font-size: 0.96rem;
}

.table-toolbar,
.detail-header {
  margin-bottom: 0.55rem;
}

.table-wrap {
  border-radius: 0.55rem;
}

.data-table th,
.data-table td {
  padding: 0.5rem 0.62rem;
  font-size: 0.84rem;
  vertical-align: top;
}

.data-table thead th {
  font-size: 0.79rem;
}

.table-helper {
  margin-top: 0.18rem;
  font-size: 0.74rem;
  line-height: 1.35;
}

.cell-input,
.cell-select,
.cell-textarea,
.filter-bar input,
.filter-bar select,
.product-form-grid input,
.product-form-grid select,
.product-form-grid textarea {
  min-height: 36px;
  border-radius: 0.55rem;
  padding: 0.45rem 0.58rem;
  font-size: 0.86rem;
}

.primary-button,
.ghost-button {
  min-height: 36px;
  padding: 0.48rem 0.78rem;
  border-radius: 0.55rem;
  font-size: 0.88rem;
}

.status-pill {
  padding: 0.26rem 0.52rem;
  font-size: 0.78rem;
}

.provider-normalization-toolbar {
  grid-template-columns: 150px 170px minmax(260px, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.provider-normalization-create {
  grid-template-columns: 190px minmax(170px, 1fr) minmax(170px, 1fr) minmax(150px, 0.8fr) auto;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.provider-normalization-domain-pills {
  gap: 0.45rem;
  margin: 0 0 0.6rem;
}

.provider-normalization-pill {
  padding: 0.42rem 0.7rem;
}

.provider-multi-select {
  min-height: 76px;
}

.provider-normalization-example {
  grid-template-columns: 52px minmax(0, 1fr);
}

.provider-normalization-example__image,
.inventory-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 0.6rem;
}

.inventory-thumb-col,
.products-thumb-cell {
  width: 64px;
}

.inventory-flat-section,
.inventory-modal-section {
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: none;
  padding: 0.75rem;
}

.inventory-inline-config {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #f8faff;
}

.inventory-section-grid {
  gap: 0.75rem;
}

.inventory-run-progress {
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
}

.inventory-modal {
  background: #fff;
}

.inventory-modal__head {
  padding: 0.75rem 0.9rem;
}

.inventory-modal__body {
  gap: 0.75rem;
  padding: 0.75rem;
}

.inventory-detail-header {
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.75rem;
}

.inventory-detail-hero-image {
  width: 110px;
  height: 110px;
  border-radius: 0.75rem;
}

.inventory-detail-hero-image__img {
  object-fit: contain;
}

.inventory-detail-grid {
  gap: 0.55rem 0.7rem;
}

.inventory-detail-grid strong {
  font-size: 0.72rem;
}

.filter-bar {
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.pagination-bar {
  margin-top: 0.65rem;
}

.normalization-page-grid {
  gap: 0.75rem;
}

.normalization-provider-item {
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
}

.taxonomy-tree-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.45rem 0 0.75rem;
}

.taxonomy-tree-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.62rem;
}

.taxonomy-tree-table th:first-child,
.taxonomy-tree-table td:first-child {
  min-width: 360px;
}

.taxonomy-image-cell {
  display: grid;
  gap: 0.35rem;
  width: 126px;
}

.taxonomy-image-cell img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.25rem;
  box-shadow: 0 8px 18px rgba(31, 42, 68, 0.08);
}

.taxonomy-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.taxonomy-image-actions .ghost-button,
.taxonomy-upload-button {
  min-height: 2rem;
  padding: 0.32rem 0.52rem;
  font-size: 0.72rem;
}

.taxonomy-upload-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.taxonomy-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.taxonomy-image-cell small {
  color: var(--muted);
  font-size: 0.68rem;
}

.taxonomy-front-fields,
.taxonomy-code-fields,
.taxonomy-counts {
  display: grid;
  gap: 0.4rem;
}

.taxonomy-front-fields {
  min-width: 300px;
}

.taxonomy-front-fields label {
  display: grid;
  gap: 0.2rem;
}

.taxonomy-front-fields span,
.taxonomy-counts span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.taxonomy-front-fields textarea {
  min-height: 3.1rem;
  resize: vertical;
}

.taxonomy-front-icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.taxonomy-code-fields {
  min-width: 170px;
}

.taxonomy-counts {
  min-width: 116px;
}

.taxonomy-counts strong {
  color: var(--brand);
  font-size: 1.05rem;
  line-height: 1;
}

.taxonomy-counts small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.taxonomy-tree-row.depth-0 {
  background: #fbfcff;
}

.taxonomy-tree-name {
  display: grid;
  grid-template-columns: 22px minmax(220px, 1fr);
  align-items: center;
  gap: 0.3rem;
  padding-left: calc(var(--tree-depth, 0) * 1.4rem);
}

.taxonomy-tree-branch {
  color: var(--brand);
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.taxonomy-tree-row.depth-0 .taxonomy-tree-branch {
  color: #1f2a44;
}

.taxonomy-tree-row.depth-0 .taxonomy-tree-name input {
  font-weight: 800;
}

.taxonomy-tree-path {
  margin: 0.2rem 0 0 calc((var(--tree-depth, 0) * 1.4rem) + 1.95rem);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.marking-layout {
  display: grid;
  gap: 0.9rem;
}

.marking-admin-hero {
  padding: 0.75rem 0.9rem;
}

.marking-admin-hero .section-title-row {
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.55rem;
}

.marking-admin-hero h2 {
  margin: 0.05rem 0 0.25rem;
  font-size: 1.2rem;
}

.marking-admin-hero .section-support {
  max-width: 760px;
  line-height: 1.35;
}

.marking-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.marking-mode-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.marking-admin-tabs {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.65rem;
  padding-top: 0.6rem;
}

.ghost-button.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(70, 100, 220, 0.2);
}

.marking-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.marking-summary > div {
  border: 1px solid #d8e5ff;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #f9fbff, #eef9fb);
  padding: 0.45rem 0.55rem;
}

.marking-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marking-summary strong {
  display: block;
  margin-top: 0.12rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.marking-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.marking-form-grid--compact {
  align-items: end;
  gap: 0.55rem;
}

.marking-quick-panel {
  position: sticky;
  top: 0.35rem;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(260px, 1fr) auto auto;
  gap: 0.65rem;
  align-items: stretch;
  margin: 0.55rem 0 0.75rem;
  padding: 0.65rem;
  border: 1px solid #cfe0ff;
  border-radius: 0.8rem;
  background: rgba(248, 251, 255, 0.96);
  box-shadow: 0 12px 28px rgba(33, 60, 135, 0.08);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}

.marking-quick-panel__count,
.marking-quick-panel__summary {
  border: 1px solid #dbe6ff;
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.5rem 0.65rem;
}

.marking-quick-panel span,
.marking-quick-panel small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.marking-quick-panel strong {
  display: block;
  margin-top: 0.1rem;
  color: var(--ink);
}

.marking-bulk-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 0.65rem;
  padding-top: 0.65rem;
}

.marking-products-table tbody tr {
  cursor: pointer;
}

.marking-product-row.is-selected {
  background: #eef6ff;
  box-shadow: inset 3px 0 0 var(--brand);
}

.marking-product-cell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 320px;
}

.marking-product-no-image {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px dashed #cbd8f3;
  border-radius: 0.65rem;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.editor-chip--danger {
  background: #fee2e2;
  color: #b91c1c;
}

.marking-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-height: min(62vh, 620px);
  overflow: auto;
  padding-right: 0.25rem;
}

.marking-picker-card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fbfcff;
  padding: 0.7rem;
}

.marking-picker-card h4 {
  margin: 0 0 0.55rem;
  color: var(--ink);
}

.marking-picker-card .products-category-item {
  width: 100%;
  margin-bottom: 0.35rem;
  text-align: left;
}

.marking-map-chip {
  align-items: center;
  background: rgba(79, 108, 228, 0.08);
  border: 1px solid rgba(79, 108, 228, 0.18);
  border-radius: 999px;
  color: #20315f;
  display: inline-flex;
  gap: 0.45rem;
  margin: 0.15rem 0.25rem 0.15rem 0;
  padding: 0.25rem 0.35rem 0.25rem 0.65rem;
}

.marking-map-chip button {
  background: rgba(190, 18, 60, 0.1);
  border: 0;
  border-radius: 999px;
  color: #be123c;
  cursor: pointer;
  font: inherit;
  padding: 0.18rem 0.45rem;
}

@media (max-width: 1200px) {
  .provider-scale-create,
  .provider-scale-card__head-fields,
  .provider-normalization-toolbar,
  .provider-normalization-create,
  .normalization-base-catalog__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .provider-scale-create,
  .provider-scale-card__head-fields,
  .provider-normalization-toolbar,
  .provider-normalization-create,
  .normalization-base-catalog__form {
    grid-template-columns: 1fr;
  }

  .marking-toolbar {
    flex-direction: column;
  }

  .marking-summary,
  .marking-quick-panel,
  .marking-form-grid,
  .marking-picker-grid {
    grid-template-columns: 1fr;
  }

  .provider-ingestion-card__top {
    flex-direction: column;
  }

  .provider-ingestion-card__actions {
    justify-content: flex-start;
  }

  .inventory-section-grid {
    grid-template-columns: 1fr;
  }

  .inventory-detail-grid {
    grid-template-columns: 1fr;
  }

  .provider-scale-card__header {
    flex-direction: column;
  }
}

.product-master-workbench-card {
  display: grid;
  gap: 16px;
}

.product-workbench-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-workbench-metrics article,
.product-workbench-box {
  border: 1px solid var(--border-color, #d9e2f3);
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
}

.product-workbench-metrics span,
.product-workbench-box h4 {
  color: #5270d8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.product-workbench-metrics strong {
  display: block;
  color: #1e2b4f;
  font-size: 24px;
  line-height: 1.1;
}

.product-workbench-metrics small,
.table-subtext {
  color: #7a849d;
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.product-workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.product-workbench-change-tags,
.product-workbench-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-feed-change-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

@media (max-width: 1100px) {
  .product-images-quick-layout {
    grid-template-columns: 1fr;
  }

  .product-workbench-metrics,
  .product-workbench-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .product-images-quick-url,
  .product-images-variant-card {
    grid-template-columns: 1fr;
  }

  .product-workbench-metrics,
  .product-workbench-grid {
    grid-template-columns: 1fr;
  }
}
.sale-detail-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sale-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.sale-hero h2 {
  margin: 4px 0;
}

.sale-hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sale-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sale-metric {
  border: 1px solid var(--border-color, #e5e7eb);
  background: var(--surface-card, #fff);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sale-metric span,
.sale-metric small,
.sale-info-row span,
.sale-timeline span {
  color: var(--muted-text, #64748b);
  font-size: 0.82rem;
}

.sale-metric strong {
  font-size: 1.12rem;
}

.sale-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 16px;
  align-items: start;
}

.sale-main-column,
.sale-side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sale-info-list,
.sale-logistics-grid {
  display: grid;
  gap: 10px;
}

.sale-logistics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sale-info-row {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sale-info-row strong {
  overflow-wrap: anywhere;
}

.sale-warning {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.sale-items-list {
  display: grid;
  gap: 10px;
}

.sale-item-card {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(220px, 300px);
  gap: 12px;
  align-items: center;
}

.sale-item-media {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sale-item-media .sale-line-image,
.sale-item-media .sale-line-placeholder {
  width: 74px;
  height: 74px;
}

.sale-item-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.sale-item-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.sale-item-title-row > div {
  min-width: 0;
}

.sale-item-title-row strong,
.sale-item-title-row small {
  display: block;
}

.sale-item-title-row strong {
  line-height: 1.25;
}

.sale-item-title-row small,
.sale-item-meta,
.sale-item-values span,
.sale-charge-values span,
.sale-charge-main small {
  color: var(--muted-text, #64748b);
  font-size: 0.82rem;
}

.sale-item-link {
  flex: 0 0 auto;
  padding: 0.42rem 0.65rem;
  font-size: 0.8rem;
}

.sale-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
}

.sale-item-meta span {
  overflow-wrap: anywhere;
}

.sale-item-meta b {
  color: var(--text-color, #111827);
}

.sale-item-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sale-item-values div {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  padding: 8px 10px;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sale-item-values strong {
  overflow-wrap: anywhere;
}

.sale-charge-title {
  margin: 16px 0 8px;
  color: var(--muted-text, #64748b);
  font-weight: 800;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sale-line-image,
.sale-line-placeholder {
  width: 58px;
  height: 58px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sale-line-image {
  object-fit: contain;
  padding: 5px;
}

.sale-line-placeholder {
  color: var(--muted-text, #64748b);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.sale-service-row {
  background: #fbfcff;
}

.sale-payment-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.sale-payment-list,
.sale-timeline {
  display: grid;
  gap: 10px;
}

.sale-payment-list article,
.sale-timeline article {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sale-payment-list article > div,
.sale-timeline article {
  min-width: 0;
}

.sale-payment-list small,
.sale-timeline p {
  display: block;
  color: var(--muted-text, #64748b);
  margin: 3px 0 0;
}

.sale-document-shell {
  display: block;
}

.sale-document-layout {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 0.75rem;
}

.sale-document-card,
.sale-summary-card,
.sale-products-card {
  border-left: 4px solid var(--quote-company-color, var(--brand));
}

.sale-document-main > * {
  order: 0;
}

.sale-document-title h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
}

.sale-company-signal {
  width: max-content;
}

.sale-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sale-fact {
  border: 1px solid var(--quote-line);
  border-radius: 0.65rem;
  grid-column: auto;
  min-width: 0;
  padding: 0.48rem 0.62rem;
}

.sale-fact small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0.1rem;
  overflow-wrap: anywhere;
}

.sale-inline-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  min-width: min(420px, 100%);
}

.sale-document-items {
  gap: 0.55rem;
}

.sale-document-item {
  grid-template-columns: 70px minmax(0, 1fr) 150px;
  padding: 0.62rem;
}

.sale-document-item .quote-item-title h4 {
  font-size: 0.94rem;
}

.sale-master-link {
  align-self: start;
  white-space: nowrap;
}

.sale-item-total small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.sale-document-metrics,
.sale-side-facts {
  display: grid;
  gap: 0.55rem;
}

.sale-document-metric {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  padding: 0.62rem 0.7rem;
  display: grid;
  gap: 0.18rem;
}

.sale-document-metric span,
.sale-document-metric small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.sale-document-metric strong {
  color: var(--heading);
  font-size: 1rem;
}

.sale-document-accordion {
  margin-top: 0.65rem;
}

.sale-document-accordion > summary {
  cursor: pointer;
  color: var(--heading);
  font-weight: 800;
  list-style: none;
}

.sale-document-accordion > summary::-webkit-details-marker {
  display: none;
}

.sale-document-accordion > summary::after {
  content: "+";
  color: var(--muted);
  float: right;
  font-weight: 800;
}

.sale-document-accordion[open] > summary {
  margin-bottom: 0.55rem;
}

.sale-document-accordion[open] > summary::after {
  content: "-";
}

.sale-document-aside {
  min-width: 0;
}

.sale-list-person {
  min-width: 190px;
}

.sale-list-person strong,
.sale-list-person small {
  display: block;
}

.sale-list-person strong {
  line-height: 1.25;
}

.sale-list-person small {
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.sale-list-total {
  color: var(--heading, #172b55);
  font-weight: 800;
  white-space: nowrap;
}

.sale-list-action {
  white-space: nowrap;
}

.sale-number-cell strong,
.sale-number-cell small,
.sale-source-cell .status-pill,
.sale-source-cell .table-helper {
  display: flex;
  width: fit-content;
}

.sale-number-cell small,
.sale-source-cell .table-helper {
  margin-top: 4px;
}

.sale-status-cell {
  min-width: 118px;
}

.sale-status-cell .status-pill,
.sale-status-cell .table-helper {
  display: flex;
  width: fit-content;
}

.sale-status-cell .table-helper {
  margin-top: 4px;
}

.sale-status-cell .status-pill {
  max-width: 112px;
  white-space: normal;
  line-height: 1.08;
}

.sale-payment-dian-cell,
.purchase-payment-dian-cell {
  display: grid;
  align-content: start;
  gap: 0.12rem;
}

.dian-under-payment {
  display: flex;
  margin-top: 0.08rem;
}

.dian-under-payment .status-pill {
  max-width: 120px;
  padding: 0.16rem 0.44rem;
  font-size: 0.68rem;
  line-height: 1.08;
}

.sale-date-cell {
  min-width: 82px;
}

.sale-date-cell strong,
.sale-date-cell small {
  display: block;
}

.sale-date-cell strong {
  color: var(--heading, #172b55);
  font-weight: 800;
  white-space: nowrap;
}

.company-chip {
  --company-chip-color: #64748b;
  display: inline-flex;
  min-width: 42px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--company-chip-color) 55%, white 45%);
  border-radius: 999px;
  padding: 0.24rem 0.48rem;
  background: color-mix(in srgb, var(--company-chip-color) 14%, white 86%);
  color: var(--company-chip-color);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.channel-chip {
  --channel-chip-color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--channel-chip-color) 42%, white 58%);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: color-mix(in srgb, var(--channel-chip-color) 13%, white 87%);
  color: color-mix(in srgb, var(--channel-chip-color) 68%, #172b55 32%);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.dian-pdf-modal {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 28px);
  padding: 14px;
  overflow: hidden;
}

.dian-pdf-modal-head {
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.dian-pdf-modal-head h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.dian-pdf-frame {
  display: block;
  width: 100%;
  height: min(76vh, 820px);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  background: #f8fafc;
}

@media (max-width: 1100px) {
  .sale-metrics-grid,
  .sale-workspace,
  .sale-item-card,
  .sale-document-layout,
  .sale-overview-grid,
  .sale-document-item {
    grid-template-columns: 1fr;
  }

  .sale-logistics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sale-hero,
  .sale-payment-list article,
  .sale-item-title-row {
    flex-direction: column;
  }

  .sale-item-values {
    grid-template-columns: 1fr;
  }

  .sale-inline-totals {
    grid-template-columns: 1fr;
  }

  .dian-pdf-modal {
    width: calc(100vw - 18px);
    padding: 10px;
  }

  .dian-pdf-modal-head {
    align-items: stretch;
  }

  .dian-pdf-frame {
    height: 72vh;
  }
}

.expense-detail-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.expense-hero {
  align-items: center;
}

.expense-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
  align-items: stretch;
}

.expense-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expense-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.expense-info-tile {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.expense-info-tile span,
.expense-note,
.expense-accordion summary strong {
  color: var(--muted-text, #64748b);
  font-size: 0.82rem;
}

.expense-info-tile strong {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.expense-note {
  margin: 0;
  border-top: 1px solid var(--border-color, #e5e7eb);
  padding-top: 10px;
  line-height: 1.45;
}

.expense-metrics-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.expense-metrics-compact .sale-metric {
  padding: 10px 11px;
}

.expense-sections {
  display: grid;
  gap: 10px;
}

.expense-accordion {
  padding: 0;
  overflow: hidden;
}

.expense-accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  font-weight: 800;
}

.expense-accordion summary::-webkit-details-marker {
  display: none;
}

.expense-accordion summary::after {
  content: "+";
  color: var(--muted-text, #64748b);
  font-size: 1.05rem;
  line-height: 1;
}

.expense-accordion[open] summary {
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.expense-accordion[open] summary::after {
  content: "-";
}

.expense-attachment-form {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(180px, 1fr) minmax(120px, 0.6fr) minmax(220px, 1.2fr) minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.expense-attachment-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.expense-attachment-form span {
  color: var(--muted-text, #64748b);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.expense-attachment-form input,
.expense-attachment-form select {
  min-height: 34px;
  border: 1px solid var(--border-color, #d8e2f4);
  border-radius: 8px;
  padding: 6px 9px;
  background: #fff;
}

.expense-attachment-notes {
  grid-column: span 1;
}

.treasury-page {
  gap: 12px;
}

.treasury-head {
  display: grid;
  gap: 10px;
}

.treasury-filter {
  align-items: center;
}

.treasury-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.treasury-table th,
.treasury-table td {
  vertical-align: middle;
}

.treasury-selected-total {
  border: 1px solid var(--border-color, #d8e2f4);
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  min-width: 150px;
}

.treasury-selected-total span {
  display: block;
  color: var(--muted-text, #64748b);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.treasury-selected-total strong {
  display: block;
  margin-top: 2px;
  font-size: 1rem;
}

.treasury-payment-form {
  display: grid;
  gap: 10px;
}

.treasury-payment-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.treasury-payment-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.treasury-payment-fields span {
  color: var(--muted-text, #64748b);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.treasury-payment-fields input,
.treasury-payment-fields select,
.treasury-amount-input,
.treasury-match-form input,
.treasury-match-form select {
  min-height: 34px;
  border: 1px solid var(--border-color, #d8e2f4);
  border-radius: 8px;
  padding: 6px 9px;
  background: #fff;
}

.treasury-notes {
  grid-column: span 2;
}

.treasury-amount-input {
  width: 128px;
}

.treasury-match-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 110px auto;
  gap: 6px;
  align-items: center;
  min-width: 360px;
}

.payments-head .table-toolbar {
  align-items: start;
}

.payments-head h2 {
  margin-bottom: 2px;
}

.payments-table th {
  background: #174a2f;
  color: #fff;
}

.payments-table td {
  font-size: 0.82rem;
}

.payment-origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 9px;
  background: color-mix(in srgb, var(--origin-color, #7f8c8d) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--origin-color, #7f8c8d) 42%, #fff);
  color: color-mix(in srgb, var(--origin-color, #7f8c8d) 70%, #111827);
  font-weight: 800;
  white-space: nowrap;
}

.payment-origin-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--origin-color, #7f8c8d);
}

.payment-voucher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.payment-voucher-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-voucher-grid span {
  color: var(--muted-text, #64748b);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.payment-voucher-grid input,
.payment-voucher-grid select {
  min-height: 34px;
  border: 1px solid var(--border-color, #d8e2f4);
  border-radius: 8px;
  padding: 6px 9px;
  background: #fff;
}

.payment-voucher-notes {
  grid-column: span 2;
}

.payment-origin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}

.origin-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--origin-color, #7f8c8d) 34%, #cbd5e1);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.origin-filter-chip span {
  color: #64748b;
  font-weight: 800;
}

.origin-filter-chip.is-active {
  background: color-mix(in srgb, var(--origin-color, #174a2f) 12%, #fff);
  border-color: var(--origin-color, #174a2f);
  color: color-mix(in srgb, var(--origin-color, #174a2f) 72%, #111827);
}

.payment-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.payment-detail-page {
  gap: 10px;
}

.payment-detail-head,
.payment-detail-card {
  border-left: 4px solid #16a34a;
}

.payment-detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color, #d8e2f4);
  padding-bottom: 8px;
}

.payment-detail-title-row h2 {
  margin: 2px 0 0;
  font-size: 1.25rem;
}

.payment-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 8px;
  color: #475569;
  font-size: 0.84rem;
}

.payment-detail-meta strong {
  color: #111827;
  margin-right: 4px;
}

.payment-detail-meta--boxed {
  padding-top: 0;
}

.payment-detail-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border-left: 4px solid #16a34a;
}

.payment-detail-value {
  border: 1px solid var(--border-color, #d8e2f4);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  min-width: 0;
}

.payment-detail-value span,
.payment-detail-value small {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

.payment-detail-value strong {
  display: block;
  margin-top: 2px;
  font-size: 1rem;
}

.payment-detail-alert {
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  padding: 9px 12px;
  font-size: 0.86rem;
  font-weight: 700;
}

.payment-detail-table th,
.payment-detail-table td {
  font-size: 0.82rem;
}

.status-warning-pill {
  background: #fff7ed;
  color: #9a3412;
}

.expense-reclass-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.expense-reclass-banner a {
  margin-left: auto;
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
}

@media (max-width: 980px) {
  .expense-summary-grid,
  .expense-info-grid,
  .expense-metrics-compact,
  .expense-attachment-form,
  .payment-voucher-grid,
  .payment-detail-summary,
  .treasury-payment-fields,
  .treasury-match-form {
    grid-template-columns: 1fr;
  }

  .payment-voucher-notes {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  .expense-hero,
  .expense-accordion summary {
    align-items: flex-start;
  }

  .expense-reclass-banner a {
    margin-left: 0;
  }
}

/* Global admin density pass. Keep operational screens scan-friendly so lists,
   filters and forms start higher on the page without changing page logic. */
.admin-header {
  padding: 0.62rem 1.05rem;
  min-height: 3.35rem;
}

.admin-header-main {
  gap: 0.7rem;
}

.admin-header .eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.admin-header h1,
.admin-header-title {
  margin-top: 0.05rem;
  font-size: 0.98rem;
  line-height: 1.16;
}

.admin-header-date {
  font-size: 0.78rem;
}

.admin-user-chip {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  min-width: 0;
  white-space: nowrap;
}

.admin-user-chip > span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-user-chip strong {
  color: #172b55;
  font-weight: 900;
}

.admin-user-password-link {
  align-items: center;
  border: 1px solid #d6e3f5;
  border-radius: 7px;
  color: #31538f;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.34rem 0.58rem;
  text-decoration: none;
}

.admin-user-password-link:hover {
  background: #f5f8ff;
  border-color: #b8caf0;
}

.admin-user-password-link svg {
  height: 0.95rem;
  width: 0.95rem;
}

.admin-content {
  padding: 0.85rem 1rem;
  gap: 0.85rem;
}

.invoice-allocation-editor {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.invoice-allocation-head,
.invoice-cause-confirmation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.invoice-allocation-head h3,
.invoice-allocation-head p,
.invoice-cause-confirmation span {
  margin: 0;
}

.invoice-allocation-head p,
.invoice-cause-confirmation span {
  color: var(--muted);
  font-size: 0.82rem;
}

.invoice-match-preview-status {
  display: grid;
  gap: 0.15rem;
  min-width: 190px;
  border: 1px solid #efc08e;
  border-radius: 6px;
  background: #fff8ee;
  color: #8a4a08;
  padding: 0.55rem 0.7rem;
  text-align: right;
}

.invoice-match-preview-status.is-ok {
  border-color: #addcc3;
  background: #effaf4;
  color: #17613d;
}

.invoice-allocation-table select,
.invoice-allocation-table input {
  min-width: 0;
  width: 100%;
}

.invoice-allocation-table th:nth-child(1) {
  width: 26%;
}

.invoice-allocation-table th:nth-child(2) {
  width: 46%;
}

.invoice-allocation-table th:nth-child(3) {
  width: 12%;
}

.invoice-allocation-exceptions,
.invoice-cause-confirmation {
  border: 1px solid #efc08e;
  border-radius: 6px;
  background: #fff8ee;
  color: #71400d;
  padding: 0.7rem 0.8rem;
}

.invoice-allocation-exceptions ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

@media (max-width: 800px) {
  .invoice-allocation-head,
  .invoice-cause-confirmation {
    align-items: stretch;
    flex-direction: column;
  }

  .invoice-match-preview-status {
    min-width: 0;
    text-align: left;
  }
}

.panel-grid,
.detail-stack,
.sale-detail-page,
.shipping-quote-page,
.products-detail-grid,
.products-admin-grid,
.channel-publication-workspace,
.normalization-page-grid {
  gap: 0.75rem;
}

.panel-card,
.products-list-card,
.product-section-card,
.nested-card,
.summary-card,
.inline-create-card,
.shipping-quote-form,
.shipping-quote-summary,
.shipping-quote-results {
  padding: 0.64rem 0.78rem;
}

.panel-card h2,
.panel-card h3,
.product-section-card h3,
.table-toolbar h2,
.table-toolbar h3,
.detail-header h2,
.detail-header h3,
.section-title-row h3 {
  margin: 0;
  line-height: 1.18;
}

.panel-card h2,
.table-toolbar h2 {
  font-size: clamp(1.04rem, 1.2vw, 1.24rem);
}

.panel-card h3,
.table-toolbar h3,
.section-title-row h3 {
  font-size: 1rem;
}

.panel-card p,
.table-helper,
.muted,
.section-title-row p {
  line-height: 1.34;
}

.panel-card p,
.section-title-row p,
.table-toolbar p:not(.eyebrow) {
  margin-top: 0.18rem;
}

.eyebrow,
.field > span {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
}

.table-toolbar,
.detail-header,
.section-title-row,
.shipping-quote-form-head,
.shipping-quote-results-head,
.quote-section-title,
.quote-new-section-head,
.product-page-hero {
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.filter-bar,
.products-filter-bar,
.channel-publications-filter-bar,
.third-party-create-form {
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.filter-bar input,
.filter-bar select,
.filter-bar textarea,
.product-form-grid input,
.product-form-grid select,
.product-form-grid textarea,
.cell-input,
.cell-select,
.cell-textarea {
  min-height: 34px;
  padding: var(--admin-control-padding-y) var(--admin-control-padding-x);
  border-radius: var(--admin-control-radius);
  font-size: var(--admin-control-font-size);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.table-link {
  min-height: 34px;
  padding: 0.42rem 0.68rem;
  border-radius: 0.48rem;
  font-size: 0.84rem;
}

.table-wrap {
  border-radius: 0.48rem;
}

.data-table th,
.data-table td {
  padding: 0.42rem 0.52rem;
  font-size: 0.82rem;
  line-height: 1.28;
}

.data-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.table-helper {
  margin-top: 0.12rem;
  font-size: 0.72rem;
}

.status-pill,
.products-badge {
  padding: 0.22rem 0.48rem;
  font-size: 0.74rem;
}

.pagination-bar {
  margin-top: 0.55rem;
}

.products-hero {
  gap: 0.85rem;
}

.products-hero h2,
.product-page-hero__copy h2,
.channel-publication-hero h2,
.quote-hero-copy h2,
.product-editor-hero--master h2,
.sale-hero h2 {
  margin: 0.05rem 0 0.18rem;
  line-height: 1.12;
}

.products-hero h2,
.channel-publication-hero h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
}

.product-editor-hero--master {
  min-height: auto;
  padding: 0.7rem 0.85rem;
}

.product-editor-hero--master h2,
.product-detail-screen .product-editor-hero--master h2 {
  font-size: clamp(1.25rem, 1.6vw, 1.65rem);
}

.product-editor-hero__summary,
.product-editor-hero__meta-row,
.products-hero-meta,
.products-list-actions,
.product-quick-status-row {
  gap: 0.45rem;
}

.product-editor-hero__stats,
.products-summary-strip,
.sale-metrics-grid,
.summary-grid,
.dian-readiness-grid,
.channel-kpi-grid,
.channel-kpi-grid--five,
.shipping-metric-strip {
  gap: 0.55rem;
}

.products-summary-pill,
.product-editor-stat,
.sale-metric,
.summary-grid .summary-card,
.dian-readiness-card,
.channel-kpi,
.shipping-metric-strip article,
.product-workbench-metrics article {
  padding: 0.55rem 0.62rem;
  border-radius: 0.58rem;
}

.products-summary-pill strong,
.product-editor-stat strong,
.summary-grid .summary-card strong,
.channel-kpi strong,
.shipping-metric-strip strong,
.product-workbench-metrics strong {
  font-size: 0.95rem;
}

.sale-metric strong {
  font-size: 1rem;
}

.sale-workspace {
  gap: 0.75rem;
}

.sale-main-column,
.sale-side-column,
.sale-info-list,
.sale-logistics-grid,
.sale-payment-summary,
.sale-payment-list,
.sale-timeline {
  gap: 0.55rem;
}

.sale-info-row,
.sale-payment-list article,
.sale-timeline article,
.sale-warning {
  padding: 0.58rem 0.68rem;
}

.quote-detail-hero,
.channel-publication-hero,
.channel-config-head-card,
.product-page-hero {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.quote-detail-layout,
.quote-info-grid,
.quote-item-edit-grid,
.quote-tracking-summary,
.quote-new-layout,
.quote-prospect-grid,
.form-grid,
.product-form-grid,
.shipping-quote-layout,
.shipping-quote-grid,
.channel-rules-grid,
.channel-accounting-grid {
  gap: 0.7rem;
}

.quote-item-row,
.quote-shipping-group,
.quote-shipping-destination,
.quote-email-status,
.quote-company-signal,
.quote-fact,
.shipping-quote-option,
.inventory-flat-section,
.inventory-inline-config {
  padding: 0.62rem 0.72rem;
  border-radius: 0.58rem;
}

.empty-state {
  min-height: 140px;
  gap: 0.35rem;
}

.quote-form-shell .quote-info-card {
  padding: 0.42rem 0.55rem;
}

.quote-form-shell .quote-section-title {
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.22rem;
}

.quote-form-shell .quote-section-title .detail-actions {
  align-items: center;
  display: flex;
  gap: 0.35rem;
}

.quote-form-shell .quote-heading-cluster {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.16rem 0.48rem;
  min-width: 0;
}

.document-module-badge {
  align-items: center;
  border: 1px solid rgba(78, 115, 223, 0.22);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.32rem;
  min-height: 1.7rem;
  padding: 0.18rem 0.58rem;
  white-space: nowrap;
}

.document-module-badge span {
  color: #667897;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.document-module-badge strong {
  color: #1f3d8d;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.document-module-badge--quote {
  background: #eef4ff;
  border-color: #bcd0ff;
}

.document-module-badge--sale {
  background: #eaf8ef;
  border-color: #98dfb1;
}

.document-module-badge--sale strong {
  color: #14783a;
}

.document-module-badge--purchase {
  background: #f5edff;
  border-color: #d5b8ff;
}

.document-module-badge--purchase strong {
  color: #6d34c2;
}

.quote-form-shell .quote-heading-cluster .eyebrow,
.quote-form-shell .quote-heading-cluster h3,
.quote-form-shell .quote-heading-cluster .quote-title-meta {
  margin: 0;
}

.quote-form-shell .quote-heading-cluster .eyebrow {
  line-height: 1;
  padding: 0.12rem 0.45rem;
}

.quote-form-shell .quote-heading-cluster h3 {
  font-size: 0.88rem;
  line-height: 1.05;
}

.quote-form-shell .quote-heading-cluster .quote-title-meta {
  font-size: 0.72rem;
  line-height: 1.1;
}

.quote-form-shell .quote-info-grid {
  align-items: start;
  gap: 0.16rem 0.45rem;
}

.quote-form-shell .quote-info-grid > .field {
  align-content: start;
  display: grid;
  gap: 0.12rem;
  grid-template-rows: 14px 30px;
}

.quote-form-shell .quote-info-grid > .field > span,
.quote-form-shell .quote-fact .detail-label {
  align-items: center;
  display: flex;
  font-size: 0.66rem;
  line-height: 1;
  margin: 0;
  min-height: 14px;
}

.quote-form-shell .quote-company-signal {
  border-radius: 999px;
  margin-top: 0;
  padding: 0.18rem 0.52rem 0.18rem 0.42rem;
}

.quote-form-shell .quote-company-field .quote-company-current {
  display: none;
}

.quote-form-shell .quote-fact {
  align-content: start;
  border-radius: 0;
  display: grid;
  gap: 0.12rem;
  grid-template-rows: 14px 30px;
  padding: 0;
}

.quote-form-shell .quote-fact strong {
  align-items: center;
  display: flex;
  line-height: 1.15;
  min-height: 30px;
}

.quote-form-shell .quote-info-grid .detail-span input {
  min-height: 30px;
}

.quote-form-shell .quote-info-grid .field > small {
  display: none;
}

.quote-form-shell .quote-info-grid > .field input,
.quote-form-shell .quote-info-grid > .field select {
  height: 30px;
  min-height: 30px;
}

.quote-form-shell .quote-info-grid .detail-span {
  grid-column: span 8;
}

@media (max-width: 1200px) {
  .quote-form-shell .quote-info-grid .detail-span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .admin-content {
    padding: 0.75rem;
  }
}

.bc-callback-page {
  min-height: 100vh;
  background: #f7f9fc;
  color: #1f2937;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.bc-callback-shell {
  width: min(100%, 680px);
  border-top: 6px solid #fdda24;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.12);
  padding: 38px;
}

.bc-callback-kicker {
  margin: 0 0 12px;
  color: #526176;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bc-callback-shell h1 {
  margin: 0;
  color: #111827;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.bc-callback-message {
  margin: 16px 0 0;
  max-width: 56ch;
  color: #526176;
  font-size: 1rem;
  line-height: 1.55;
}

.bc-callback-details {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
}

.bc-callback-details div {
  border: 1px solid #e0e7f0;
  background: #fbfdff;
  padding: 12px 14px;
}

.bc-callback-details dt {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bc-callback-details dd {
  margin: 0;
  color: #182230;
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .bc-callback-shell {
    padding: 28px 22px;
  }

  .bc-callback-shell h1 {
    font-size: 1.55rem;
  }
}

/* Venta detail: keep this block late so quote/editor density rules do not hide
   products or turn the sale document into a stacked form. */
.sale-document-shell .sale-document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 0.85rem;
  align-items: start;
}

.sale-document-shell .sale-document-main {
  display: grid;
  gap: 0.75rem;
}

.sale-document-shell .sale-document-main > *,
.sale-document-shell .sale-document-aside > * {
  order: 0;
}

.sale-document-shell .sale-document-card,
.sale-document-shell .sale-summary-card,
.sale-document-shell .sale-products-card {
  border-left: 4px solid var(--quote-company-color, var(--brand));
  padding: 0.78rem 0.9rem;
}

.sale-document-shell .sale-overview-grid,
.sale-document-shell .sale-logistics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.sale-document-shell .sale-document-title {
  align-items: center;
  padding-bottom: 0.42rem;
}

.sale-document-shell .sale-document-title h3 {
  font-size: 1rem;
  line-height: 1.1;
}

.sale-document-shell .sale-document-title .quote-title-meta {
  display: inline;
  margin-left: 0.25rem;
}

.sale-document-shell .sale-compact-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin-top: 0.52rem;
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.25;
}

.sale-document-shell .sale-compact-facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  white-space: nowrap;
}

.sale-document-shell .sale-compact-facts b {
  color: var(--heading);
  font-weight: 800;
}

.sale-document-shell .sale-logistics-facts {
  margin-top: 0.1rem;
}

.sale-document-shell .sale-logistics-facts span:first-child {
  flex-basis: 100%;
  white-space: normal;
}

.sale-logistics-actions,
.sale-tracking-sync {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sale-tracking-sync small {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 700;
}

.sale-edit-panel {
  display: grid;
  gap: 0.7rem;
}

.sale-edit-modal {
  width: min(1280px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.sale-edit-open-button {
  min-height: 32px;
  padding: 0.38rem 0.72rem;
  white-space: nowrap;
}

.sale-edit-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.sale-edit-tabs button {
  background: #f8fbff;
  border: 1px solid var(--quote-line);
  border-radius: 999px;
  color: #42526d;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 30px;
  padding: 0.32rem 0.65rem;
}

.sale-edit-tabs button.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.sale-edit-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sale-edit-grid label {
  display: grid;
  gap: 0.2rem;
}

.sale-edit-grid label.wide {
  grid-column: span 2;
}

.sale-edit-grid span,
.sale-deductions-editor strong {
  color: #667085;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sale-edit-grid input,
.sale-edit-grid select,
.sale-edit-grid textarea,
.sale-edit-line input,
.sale-edit-line select,
.sale-deduction-row input,
.sale-deduction-row select {
  background: #fff;
  border: 1px solid var(--quote-line);
  border-radius: 0.45rem;
  color: var(--heading);
  font: inherit;
  min-height: 34px;
  padding: 0.36rem 0.5rem;
}

.sale-edit-grid textarea {
  min-height: 68px;
}

.sale-edit-stack {
  display: grid;
  gap: 0.55rem;
}

.sale-edit-line {
  align-items: center;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: minmax(76px, 0.7fr) minmax(180px, 2fr) 74px 92px 70px 82px 96px auto auto;
}

.sale-edit-line--linked {
  grid-template-columns: minmax(260px, 2.7fr) 74px 92px 70px 82px 96px auto auto;
}

.sale-edit-line--new {
  background: #f8fbff;
  border: 1px dashed var(--quote-line);
  border-radius: 0.65rem;
  padding: 0.5rem;
}

.sale-edit-product-picker,
.sale-line-linked-product {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.sale-line-linked-product {
  background: #fff;
  border: 1px solid var(--quote-line);
  border-radius: 0.48rem;
  padding: 0.42rem 0.52rem;
}

.sale-line-linked-product strong,
.sale-edit-selected-product strong,
.sale-edit-product-results strong {
  color: var(--heading);
  font-size: 0.82rem;
  line-height: 1.1;
}

.sale-line-linked-product span,
.sale-edit-selected-product span,
.sale-edit-product-results span {
  color: #42526d;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.sale-line-linked-product small,
.sale-edit-selected-product small,
.sale-edit-product-results small {
  color: #667085;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
}

.sale-line-linked-product a {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.sale-edit-selected-product {
  background: #ecfdf3;
  border: 1px solid #b7ebc6;
  border-radius: 0.48rem;
  display: grid;
  gap: 0.12rem;
  padding: 0.35rem 0.45rem;
}

.sale-edit-product-results {
  background: #fff;
  border: 1px solid var(--quote-line);
  border-radius: 0.55rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  display: grid;
  max-height: 220px;
  overflow: auto;
}

.sale-edit-product-results button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--quote-line);
  cursor: pointer;
  display: grid;
  gap: 0.12rem;
  padding: 0.46rem 0.55rem;
  text-align: left;
}

.sale-edit-product-results button:last-child {
  border-bottom: 0;
}

.sale-edit-product-results button:hover {
  background: #f8fbff;
}

.sale-items-editor .sale-items-totals {
  margin: 0 0 0.6rem auto;
  max-width: 520px;
}

.sale-items-editor .quote-table-action .quote-button-icon {
  width: 1rem;
  height: 1rem;
}

.sale-items-editor .sale-delete-item-button {
  min-width: 58px;
}

.sale-unit-price-cell {
  display: grid;
  gap: 0.08rem;
  line-height: 1.12;
}

.sale-unit-price-cell strong {
  color: var(--heading);
  font-size: 0.76rem;
}

.sale-unit-price-cell small {
  color: #667085;
  font-size: 0.6rem;
  font-weight: 700;
}

.sale-product-search-results {
  border: 1px solid var(--quote-line);
  border-radius: 0.58rem;
  display: grid;
  max-height: 260px;
  overflow: auto;
}

.sale-product-search-results button {
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--quote-line);
  cursor: pointer;
  display: grid;
  gap: 0.12rem;
  padding: 0.48rem 0.6rem;
  text-align: left;
}

.sale-product-search-results button:last-child {
  border-bottom: 0;
}

.sale-product-search-results button:hover,
.sale-product-search-results button.is-selected {
  background: #f1f7ff;
}

.sale-product-search-results strong,
.sale-selected-product-summary strong {
  color: var(--heading);
  font-size: 0.82rem;
}

.sale-product-search-results span,
.sale-selected-product-summary span {
  color: #42526d;
  font-size: 0.78rem;
  font-weight: 800;
}

.sale-product-search-results small,
.sale-selected-product-summary small {
  color: #667085;
  font-size: 0.7rem;
  font-weight: 700;
}

.sale-selected-product-summary {
  background: #ecfdf3;
  border: 1px solid #b7ebc6;
  border-radius: 0.58rem;
  display: grid;
  gap: 0.12rem;
  padding: 0.55rem 0.65rem;
}

.sale-edit-line strong {
  color: var(--heading);
  font-size: 0.82rem;
  white-space: nowrap;
}

.sale-edit-payment-list {
  display: grid;
  gap: 0.35rem;
}

.sale-edit-payment-list article {
  align-items: center;
  border: 1px solid var(--quote-line);
  border-radius: 0.55rem;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: minmax(140px, 1fr) 110px minmax(120px, 1fr) auto auto;
  padding: 0.4rem 0.5rem;
}

.sale-edit-payment-list span,
.sale-edit-payment-list strong {
  color: var(--heading);
  font-size: 0.84rem;
  font-weight: 800;
}

.sale-edit-payment-list small,
.sale-deductions-editor small {
  color: #667085;
  font-size: 0.76rem;
  font-weight: 700;
}

.sale-deductions-editor {
  background: #f8fbff;
  border: 1px solid var(--quote-line);
  border-radius: 0.65rem;
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem;
}

.sale-deductions-editor > div:first-child {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.sale-deduction-row {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: minmax(160px, 1fr) 110px minmax(140px, 1fr) auto;
}

/* Ventas modals: compact operational forms aligned with quote modal rules. */
.sale-edit-modal {
  max-height: calc(100vh - 0.8rem);
  overflow: hidden;
  padding: 0;
}

.sale-edit-modal > div:first-child {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 0.75rem;
  margin: 0;
  padding: 0.52rem 0.7rem;
}

.sale-edit-modal > div:first-child h2 {
  color: #1f2a44;
  font-size: 1.02rem;
  line-height: 1.15;
}

.sale-edit-modal > div:first-child p {
  font-size: 0.76rem;
  line-height: 1.22;
}

.sale-edit-modal > div:first-child button {
  min-height: 30px;
  white-space: nowrap;
}

.sale-edit-modal > div:nth-child(2) {
  max-height: calc(100vh - 4.55rem);
  overflow: auto;
  padding: 0.6rem 0.72rem 0.72rem;
}

.sale-edit-modal--single {
  width: min(980px, calc(100vw - 1rem));
}

.sale-edit-modal--tabs {
  width: min(1180px, calc(100vw - 1rem));
}

.sale-edit-panel {
  gap: 0.48rem;
}

.sale-edit-tabs--top {
  background: #f8fbff;
  border: 1px solid #dbe6f6;
  border-radius: 8px;
  padding: 0.32rem;
}

.sale-edit-tabs button {
  border-radius: 6px;
  font-size: 0.74rem;
  min-height: 28px;
  padding: 0.25rem 0.56rem;
}

.sale-edit-tabs button.is-active {
  background: #15803d;
  border-color: #15803d;
}

.sale-edit-grid {
  gap: 0.42rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sale-edit-grid label.wide {
  grid-column: span 2;
}

.sale-edit-grid span,
.sale-deductions-editor strong,
.sale-print-order-grid span {
  font-size: 0.64rem;
  letter-spacing: 0.02em;
}

.sale-edit-grid input,
.sale-edit-grid select,
.sale-edit-grid textarea,
.sale-edit-line input,
.sale-edit-line select,
.sale-deduction-row input,
.sale-deduction-row select {
  font-size: 0.82rem;
  min-height: 30px;
  min-width: 0;
  padding: 0.28rem 0.42rem;
}

.sale-edit-grid input[type="number"],
.sale-edit-line input[type="number"],
.sale-deduction-row input[type="number"],
.sale-print-order-grid input[type="number"] {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.sale-edit-grid textarea {
  min-height: 56px;
}

.sale-edit-grid > button.primary-button {
  align-self: end;
  justify-self: end;
  min-height: 30px;
}

.sale-edit-payment-list {
  gap: 0.26rem;
}

.sale-edit-payment-list article {
  border-radius: 7px;
  gap: 0.32rem;
  grid-template-columns: minmax(150px, 1fr) 120px minmax(120px, 1fr) auto auto;
  min-height: 38px;
  padding: 0.32rem 0.45rem;
}

.sale-edit-payment-list article > strong,
.sale-edit-payment-list article > small {
  text-align: right;
}

.sale-edit-payment-list span,
.sale-edit-payment-list strong {
  font-size: 0.8rem;
}

.sale-edit-payment-list small,
.sale-deductions-editor small {
  font-size: 0.7rem;
}

.sale-deductions-editor {
  gap: 0.34rem;
  padding: 0.45rem;
}

.sale-deduction-row {
  gap: 0.3rem;
  grid-template-columns: minmax(160px, 1fr) 110px minmax(150px, 1fr) auto;
}

.sale-edit-stack > button.primary-button,
.sale-edit-stack .modal-actions {
  justify-self: end;
}

.sale-print-summary {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dbe6f6;
  border-radius: 8px;
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
  padding: 0.38rem 0.5rem;
}

.sale-print-orders-list {
  display: grid;
  gap: 0.4rem;
}

.sale-print-order-card {
  border: 1px solid var(--quote-line);
  border-radius: 8px;
  padding: 0.48rem;
}

.sale-print-order-head,
.sale-print-order-grid {
  display: grid;
  gap: 0.4rem;
}

.sale-print-order-head {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 0.42rem;
}

.sale-print-order-head > div {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.sale-print-order-head strong,
.sale-print-order-head span,
.sale-print-order-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sale-print-order-grid {
  align-items: end;
  grid-template-columns: minmax(170px, 1.4fr) 72px 108px 108px 82px 118px minmax(150px, 1fr) 118px auto;
}

.sale-print-order-grid label {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.sale-print-order-grid input,
.sale-print-order-grid select {
  background: #fff;
  border: 1px solid var(--quote-line);
  border-radius: 0.45rem;
  color: var(--heading);
  font: inherit;
  font-size: 0.82rem;
  min-height: 30px;
  min-width: 0;
  padding: 0.28rem 0.42rem;
}

.sale-print-order-grid label.wide {
  grid-column: auto;
}

.sale-print-order-total {
  display: grid;
  gap: 0.08rem;
  justify-items: end;
  text-align: right;
}

.marking-readonly-inline {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--quote-line);
  border-radius: 0.45rem;
  display: flex;
  justify-content: flex-end;
  min-height: 30px;
  padding: 0.28rem 0.42rem;
}

.sale-item-modal {
  border-radius: 8px;
  max-height: calc(100vh - 1rem);
  overflow: hidden;
  padding: 0;
  width: min(760px, calc(100vw - 1rem));
}

.sale-item-modal .modal-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 0.52rem 0.7rem;
}

.sale-item-modal .modal-head h3 {
  font-size: 1.02rem;
  line-height: 1.15;
  margin: 0;
}

.sale-item-modal .modal-head p:not(.eyebrow) {
  font-size: 0.76rem;
  line-height: 1.22;
  margin: 0.1rem 0 0;
}

.sale-item-modal .form-card {
  max-height: calc(100vh - 5rem);
  overflow: auto;
  padding: 0.62rem 0.72rem 0.72rem;
}

.sale-item-modal .form-grid {
  gap: 0.42rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sale-item-modal .form-grid .detail-span {
  grid-column: span 2;
}

.sale-product-add-modal {
  width: min(900px, calc(100vw - 1rem));
}

.sale-product-add-toolbar {
  align-items: end;
  display: grid;
  gap: 0.42rem;
  grid-template-columns: minmax(260px, 1fr) 92px 132px 120px;
}

.sale-product-add-toolbar .field {
  min-width: 0;
}

.sale-product-add-toolbar input,
.sale-product-add-toolbar select {
  font-size: 0.82rem;
  min-height: 30px;
  padding: 0.28rem 0.42rem;
}

.sale-product-add-toolbar input[type="number"] {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.sale-product-add-body {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.sale-product-search-results--compact {
  max-height: min(330px, calc(100vh - 12rem));
}

.sale-product-search-results--compact button {
  align-items: center;
  column-gap: 0.62rem;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) minmax(130px, 0.55fr);
  min-height: 40px;
  padding: 0.34rem 0.5rem;
}

.sale-product-search-results--compact strong,
.sale-product-search-results--compact span,
.sale-product-search-results--compact small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sale-product-search-placeholder {
  background: #f8fbff;
  border: 1px dashed #b7c8ea;
  border-radius: 8px;
  display: grid;
  gap: 0.12rem;
  min-height: 70px;
  padding: 0.7rem;
}

.sale-product-add-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.sale-invoice-modal {
  width: min(620px, calc(100vw - 1rem));
}

@media (max-width: 1100px) {
  .sale-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sale-edit-line,
  .sale-edit-payment-list article,
  .sale-deduction-row,
  .sale-print-order-head,
  .sale-print-order-grid,
  .sale-item-modal .form-grid,
  .sale-product-add-toolbar,
  .sale-product-search-results--compact button {
    grid-template-columns: 1fr;
  }

  .sale-item-modal .form-grid .detail-span,
  .sale-edit-grid label.wide {
    grid-column: auto;
  }
}

.sale-document-shell .sale-side-facts,
.sale-document-shell .sale-document-metrics {
  display: grid;
  gap: 0;
  border: 1px solid var(--quote-line);
  border-radius: 0.58rem;
  overflow: hidden;
}

.sale-document-shell .sale-inline-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 0.45rem;
  min-width: min(560px, 100%);
}

.sale-document-shell .sale-inline-totals div {
  display: grid;
  gap: 0.08rem;
  border: 1px solid var(--quote-line);
  border-radius: 0.58rem;
  background: #fff;
  padding: 0.5rem 0.62rem;
}

.sale-document-shell .sale-inline-totals span,
.sale-document-shell .sale-inline-totals small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.sale-document-shell .sale-inline-totals strong {
  color: var(--heading);
  font-size: 0.95rem;
  line-height: 1.1;
}

.sale-document-shell .sale-fact,
.sale-document-shell .quote-fact {
  display: grid;
  grid-column: auto;
  gap: 0.14rem;
  border: 1px solid var(--quote-line);
  border-radius: 0.58rem;
  background: #fff;
  padding: 0.55rem 0.62rem;
}

.sale-document-shell .sale-summary-card .sale-fact,
.sale-document-shell .sale-summary-card .quote-fact {
  border: 0;
  border-bottom: 1px solid var(--quote-line);
  border-radius: 0;
  padding: 0.48rem 0.6rem;
}

.sale-document-shell .sale-summary-card .sale-fact:last-child,
.sale-document-shell .sale-summary-card .quote-fact:last-child {
  border-bottom: 0;
}

.sale-document-shell .sale-summary-card .sale-fact strong,
.sale-document-shell .sale-summary-card .quote-fact strong {
  font-size: 0.82rem;
}

.sale-document-shell .sale-summary-card .sale-fact small,
.sale-document-shell .sale-summary-card .quote-fact small {
  font-size: 0.7rem;
}

.sale-document-shell .sale-summary-card h3 {
  margin-bottom: 0.45rem;
}

.sale-document-shell .sale-side-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0.35rem 0.55rem;
  align-items: baseline;
  border-bottom: 1px solid var(--quote-line);
  padding: 0.4rem 0.55rem;
}

.sale-document-shell .sale-side-row:last-child {
  border-bottom: 0;
}

.sale-document-shell .sale-side-row span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sale-document-shell .sale-side-row strong {
  color: var(--heading);
  font-size: 0.82rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sale-document-shell .sale-side-row small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: -0.18rem;
  overflow-wrap: anywhere;
}

.sale-document-shell .sale-payment-list {
  gap: 0;
  border: 1px solid var(--quote-line);
  border-radius: 0.58rem;
  overflow: hidden;
}

.sale-document-shell .sale-payment-list article {
  border: 0;
  border-bottom: 1px solid var(--quote-line);
  border-radius: 0;
  padding: 0.5rem 0.6rem;
}

.sale-document-shell .sale-payment-list article strong {
  font-size: 0.8rem;
  line-height: 1.2;
}

.sale-document-shell .sale-payment-list article > div:last-child strong {
  display: block;
  margin-top: 0.12rem;
  color: var(--heading);
  font-size: 0.92rem;
  text-align: right;
}

.sale-document-shell .sale-payment-list article small {
  font-size: 0.7rem;
}

.sale-document-shell .sale-payment-list .status-pill {
  padding: 0.14rem 0.42rem;
  font-size: 0.68rem;
}

.sale-document-shell .sale-payment-list article:last-child {
  border-bottom: 0;
}

.sale-document-shell .quote-fact strong {
  font-size: 0.86rem;
}

.sale-document-shell .quote-items-card .quote-items-list,
.sale-document-shell .sale-document-items {
  display: grid;
  gap: 0.55rem;
}

.sale-document-shell .sale-document-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 150px;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid var(--quote-line);
  border-radius: 0.68rem;
  background: #fff;
  padding: 0.62rem;
}

.sale-document-shell .quote-item-title {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.sale-document-shell .quote-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sale-document-shell .quote-item-total {
  border: 1px solid var(--quote-line);
  border-radius: 0.58rem;
  background: #f8fbff;
  padding: 0.52rem 0.62rem;
  text-align: right;
}

.sale-document-shell .sale-lines-table-wrap {
  margin-top: 0.65rem;
  overflow-x: auto;
}

.sale-document-shell .sale-lines-table {
  min-width: 980px;
}

.sale-document-shell .sale-lines-table thead th {
  background: #173c75;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.sale-document-shell .sale-lines-table td {
  vertical-align: middle;
}

.sale-line-ref {
  min-width: 120px;
}

.sale-line-ref strong,
.sale-line-ref small,
.sale-line-description strong,
.sale-line-description small {
  display: block;
}

.sale-line-ref small,
.sale-line-description small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.12rem;
}

.sale-line-description .sale-line-includes {
  color: #1d4ed8;
  font-weight: 800;
}

.sale-line-thumb {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--quote-line);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
}

.sale-line-thumb img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.sale-line-description {
  min-width: 290px;
}

.sale-line-description strong {
  color: var(--brand);
  font-size: 0.82rem;
  line-height: 1.22;
}

.sale-line-total {
  color: var(--heading);
  font-weight: 800;
  white-space: nowrap;
}

.sales-list-card {
  border-top: 3px solid #0f766e;
}

.sales-list-table thead th,
.sale-document-shell .sale-lines-table thead th {
  background: #0f766e;
  color: #fff;
  font-weight: 800;
}

.sales-list-table thead th {
  background: #123b7a;
  color: #fff;
}

.sale-summary-modal {
  border-top: 4px solid #0f766e;
}

.sale-summary-modal-grid .company-chip {
  margin-bottom: 0.3rem;
}

.purchases-list-card {
  border-top: 3px solid #7c3aed;
}

.purchases-list-table thead th {
  background: #243f7f;
  color: #fff;
  font-weight: 800;
}

.purchase-list-metrics {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.purchase-list-metrics span {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.36rem 0.62rem;
  white-space: nowrap;
}

.purchase-list-metrics strong {
  color: var(--heading);
}

.purchase-number-cell,
.purchase-supplier-cell,
.purchase-status-cell,
.purchase-list-total {
  min-width: 110px;
}

.purchase-number-cell strong,
.purchase-supplier-cell strong,
.purchase-list-total strong {
  color: var(--heading);
  display: block;
  line-height: 1.18;
}

.purchase-status-cell .status-pill,
.purchase-status-cell .table-helper {
  display: inline-flex;
  margin-bottom: 0.18rem;
}

.purchase-dian-cell .status-pill,
.purchase-dian-cell .table-helper {
  display: flex;
  width: fit-content;
}

.expenses-list-card {
  border-top: 3px solid #374151;
}

.expenses-list-table thead th,
.expense-inbox-table thead th {
  background: #374151;
  color: #fff;
  font-weight: 800;
}

.expense-inbox-card {
  border-top: 3px solid #2563eb;
}

.expense-create-modal {
  width: min(980px, calc(100vw - 2rem));
  padding: 1rem;
}

.expense-create-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.expense-create-form .wide,
.expense-create-form .modal-actions {
  grid-column: 1 / -1;
}

.expense-create-form .operator-field {
  gap: 0.28rem;
  padding: 0.58rem 0.65rem;
}

.expense-create-form .operator-field span {
  font-size: 0.68rem;
}

.expense-create-form .operator-field input,
.expense-create-form .operator-field select,
.expense-create-form .operator-field textarea {
  min-height: 34px;
  padding: 0.42rem 0.5rem;
}

.expense-invoice-source {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
}

.expense-invoice-source strong {
  color: var(--heading);
}

.expense-invoice-source span {
  color: var(--muted);
  font-size: 0.82rem;
}

.expense-inbox-table td strong {
  color: var(--heading);
  display: block;
}

@media (max-width: 1100px) {
  .expense-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .expense-create-form {
    grid-template-columns: 1fr;
  }
}

.purchase-list-total {
  white-space: nowrap;
}

.purchases-pending-card {
  border-top: 3px solid #f59e0b;
}

.purchases-pending-table thead th {
  background: #fff7ed;
  color: #7c2d12;
}

.pending-provider-block {
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  margin-top: 1rem;
  overflow: hidden;
}

.pending-provider-head {
  align-items: center;
  background: #fffbeb;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
}

.pending-provider-head h3 {
  color: var(--heading);
  font-size: 1rem;
  margin: 0;
}

.pending-provider-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.pending-provider-block .data-table {
  margin: 0;
}

.pending-provider-block .data-table th,
.pending-provider-block .data-table td {
  white-space: nowrap;
}

.pending-provider-block .data-table td:nth-child(3) {
  min-width: 220px;
  white-space: normal;
}

.purchase-summary-modal {
  border-top: 4px solid #7c3aed;
}

.purchase-create-modal.purchase-create-modal {
  max-height: calc(100vh - 1rem);
  overflow: hidden;
  padding: 0;
  width: min(980px, calc(100vw - 1rem));
}

.purchase-create-modal > div:first-child,
.purchase-create-modal > div:nth-child(3) {
  background: #fff;
  border-color: var(--line);
  padding: 0.55rem 0.75rem;
}

.purchase-create-modal > div:nth-child(2) {
  max-height: calc(100vh - 8.2rem);
  overflow: auto;
  padding: 0.7rem 0.8rem;
}

.purchase-create-form {
  display: grid;
  gap: 0.7rem;
}

.purchase-create-grid,
.purchase-create-line {
  display: grid;
  gap: 0.55rem;
}

.purchase-create-grid {
  grid-template-columns: minmax(140px, 0.65fr) minmax(210px, 1fr) minmax(180px, 0.85fr) minmax(140px, 0.55fr);
}

.purchase-create-line {
  align-items: end;
  grid-template-columns: minmax(110px, 0.65fr) minmax(130px, 0.75fr) minmax(240px, 1.4fr) minmax(130px, 0.72fr) minmax(82px, 0.38fr) minmax(110px, 0.48fr) minmax(82px, 0.36fr);
}

.purchase-create-form label {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.purchase-create-form label span,
.purchase-create-total span {
  color: #4f6fe5;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.purchase-create-form input,
.purchase-create-form select {
  background: #fff;
  border: 1px solid #cfdaf0;
  border-radius: 7px;
  color: var(--heading);
  font: inherit;
  min-height: 34px;
  padding: 0.42rem 0.52rem;
  width: 100%;
}

.purchase-create-product {
  grid-column: span 2;
}

.purchase-create-notes {
  grid-column: 1 / span 5;
}

.purchase-create-total {
  align-items: end;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  min-height: 56px;
  padding: 0.42rem 0.58rem;
  text-align: right;
}

.purchase-create-total strong {
  color: var(--heading);
  font-size: 1rem;
}

.purchase-create-error {
  margin: 0;
}

.purchase-summary-headline {
  align-items: stretch;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  margin-bottom: 0.65rem;
}

.purchase-summary-party,
.purchase-summary-party > div,
.purchase-summary-status-row {
  min-width: 0;
}

.purchase-summary-party {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 0.6rem;
  padding: 0.56rem 0.65rem;
}

.purchase-summary-party strong {
  color: var(--heading);
  display: block;
  line-height: 1.15;
}

.purchase-summary-party span {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.18rem;
}

.purchase-summary-party a {
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.purchase-summary-total-card {
  background: #172f5f;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 0.12rem;
  justify-items: end;
  padding: 0.62rem 0.72rem;
  text-align: right;
}

.purchase-summary-total-card span,
.purchase-summary-total-card small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.purchase-summary-total-card strong {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.purchase-summary-status-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.purchase-summary-compact {
  display: grid;
  gap: 0.52rem;
}

.purchase-summary-provider {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 0.48rem;
  min-width: 0;
  padding: 0.45rem 0.55rem;
}

.purchase-summary-provider > div {
  min-width: 0;
}

.purchase-summary-provider strong {
  color: var(--heading);
  display: block;
  font-size: 0.86rem;
  line-height: 1.12;
}

.purchase-summary-provider span {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.12rem;
}

.purchase-summary-provider small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.purchase-summary-provider a {
  color: #2563eb;
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.purchase-summary-facts {
  display: grid;
  gap: 0.38rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.purchase-summary-facts > span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  padding: 0.38rem 0.45rem;
}

.purchase-summary-facts b {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.purchase-summary-facts .status-pill,
.purchase-summary-facts [class*="statusBadge"] {
  font-size: 0.66rem;
  line-height: 1.06;
  padding: 0.14rem 0.38rem;
}

.purchase-summary-facts .dian-under-payment {
  margin-top: 0.12rem;
}

.purchase-summary-fact-money {
  justify-items: end;
  text-align: right;
}

.purchase-summary-fact-money strong {
  color: var(--heading);
  font-size: 0.84rem;
}

.purchase-summary-fact-money.is-total {
  background: #f8fbff;
  border-color: #c8d7ff;
}

.purchase-summary-fact-money.is-total strong {
  font-size: 0.96rem;
}

.purchase-dian-pdf-button {
  justify-content: center;
  margin-top: 0.65rem;
  width: 100%;
}

.purchase-compact-summary-card {
  padding: 0.72rem;
}

.purchase-compact-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.purchase-compact-head h3 {
  margin-bottom: 0;
}

.purchase-compact-facts .sale-side-row {
  grid-template-columns: 70px minmax(0, 1fr);
  padding: 0.32rem 0.45rem;
}

.purchase-compact-facts .sale-side-row span {
  font-size: 0.64rem;
}

.purchase-compact-facts .sale-side-row strong {
  font-size: 0.78rem;
}

.purchase-compact-facts .sale-side-row small {
  font-size: 0.66rem;
}

.purchase-summary-payments {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  display: grid;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.65rem;
}

.purchase-summary-payments strong {
  color: var(--heading);
  font-size: 0.78rem;
}

.purchase-summary-payments span {
  color: var(--muted);
  font-size: 0.76rem;
}

.purchase-document-shell .purchase-document-card,
.purchase-document-shell .purchase-summary-card {
  border-left-color: var(--quote-company-color, #7c3aed);
}

.purchase-document-shell .purchase-lines-table thead th {
  background: #243f7f;
  color: #fff;
}

.purchase-document-shell .purchase-inline-totals {
  margin-left: auto;
  max-width: 620px;
}

.purchase-document-shell .sale-line-ref {
  min-width: 116px;
}

.purchase-document-shell .sale-line-description {
  min-width: 250px;
}

.purchase-edit-modal {
  width: min(1320px, calc(100vw - 2rem));
}

.purchase-edit-line {
  align-items: center;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 92px 120px minmax(180px, 1.6fr) 110px 76px 92px 72px 92px minmax(110px, 0.8fr) 96px auto auto;
}

.purchase-edit-line--new {
  background: #f8fbff;
  border: 1px dashed var(--quote-line);
  border-radius: 0.65rem;
  padding: 0.5rem;
}

.purchase-edit-line input,
.purchase-edit-line select,
.purchase-receipt-lines input,
.purchase-deduction-row input,
.purchase-deduction-row select {
  background: #fff;
  border: 1px solid var(--quote-line);
  border-radius: 0.45rem;
  color: var(--heading);
  font: inherit;
  min-height: 34px;
  padding: 0.36rem 0.5rem;
}

.purchase-edit-line strong {
  color: var(--heading);
  font-size: 0.78rem;
  white-space: nowrap;
}

.purchase-quote-editor {
  display: grid;
  gap: 0.75rem;
}

.purchase-quote-items-table .data-table {
  min-width: 1120px;
}

.purchase-compact-item-row td {
  vertical-align: middle;
}

.purchase-title-input {
  width: min(100%, 420px);
  font-weight: 800;
}

.purchase-variant-input {
  margin-top: 0.25rem;
  width: min(100%, 320px);
}

.purchase-destination-select {
  min-width: 92px;
}

.purchase-add-item-card {
  border: 1px solid var(--quote-line);
  border-radius: 0.75rem;
  padding: 0.7rem;
  background: #f8fbff;
}

.purchase-add-item-card .section-title-row {
  margin-bottom: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.purchase-add-item-card .section-title-row h3 {
  font-size: 0.94rem;
}

.purchase-add-item-grid {
  display: grid;
  grid-template-columns: 100px 130px minmax(180px, 1fr) 120px 86px 100px 90px 100px minmax(120px, 0.8fr) auto;
  gap: 0.4rem;
  align-items: center;
}

.purchase-add-item-grid input,
.purchase-add-item-grid select {
  background: #fff;
  border: 1px solid var(--quote-line);
  border-radius: 0.45rem;
  color: var(--heading);
  font: inherit;
  min-height: 34px;
  padding: 0.36rem 0.5rem;
}

.purchase-deduction-row {
  grid-template-columns: minmax(180px, 1fr) 92px 120px minmax(140px, 1fr) auto;
}

.purchase-receipt-lines {
  border: 1px solid var(--quote-line);
  border-radius: 0.65rem;
  display: grid;
  overflow: hidden;
}

.purchase-receipt-lines label {
  align-items: center;
  border-bottom: 1px solid var(--quote-line);
  display: grid;
  gap: 0.35rem;
  grid-template-columns: minmax(220px, 1fr) 170px 120px;
  padding: 0.45rem 0.55rem;
}

.purchase-receipt-lines label:last-child {
  border-bottom: 0;
}

.purchase-receipt-lines span {
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 800;
}

.purchase-receipt-lines small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.purchase-send-panel textarea {
  min-height: 118px;
}

.purchase-send-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.purchase-payment-support-field input[type="file"] {
  background: #fff;
  cursor: pointer;
  padding: 0.58rem 0.7rem;
}

.purchase-payment-support-field small {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.purchase-payment-support-field small button {
  background: transparent;
  border: 0;
  color: #dc2626;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0;
}

.purchase-area-editor {
  border: 1px solid var(--quote-line);
  border-radius: 0.65rem;
  padding: 0.55rem 0.65rem;
}

.purchase-area-editor summary {
  color: var(--heading);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
}

.purchase-area-editor .sale-edit-grid {
  margin-top: 0.65rem;
}

.purchase-doc-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.purchase-doc-links a {
  background: #eef4ff;
  border: 1px solid #bcd0ff;
  border-radius: 0.55rem;
  color: #2452d6;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
}

.purchase-html-preview {
  background: #fff;
  border: 1px solid var(--quote-line);
  border-radius: 0.65rem;
  height: min(58vh, 620px);
  width: 100%;
}

/* Module identity colors: cotizaciones red, compras orange, ventas green. */
:root {
  --module-quote: #b91c1c;
  --module-quote-strong: #991b1b;
  --module-quote-soft: #fff1f2;
  --module-quote-line: #fecdd3;
  --module-purchase: #ea580c;
  --module-purchase-strong: #c2410c;
  --module-purchase-soft: #fff7ed;
  --module-purchase-line: #fed7aa;
  --module-sale: #15803d;
  --module-sale-strong: #166534;
  --module-sale-soft: #ecfdf3;
  --module-sale-line: #bbf7d0;
}

.document-module-badge--quote {
  background: var(--module-quote-soft);
  border-color: var(--module-quote-line);
}

.document-module-badge--quote strong {
  color: var(--module-quote-strong);
}

.document-module-badge--purchase {
  background: var(--module-purchase-soft);
  border-color: var(--module-purchase-line);
}

.document-module-badge--purchase strong {
  color: var(--module-purchase-strong);
}

.document-module-badge--sale {
  background: var(--module-sale-soft);
  border-color: var(--module-sale-line);
}

.document-module-badge--sale strong {
  color: var(--module-sale-strong);
}

.quote-list-card {
  border-top: 3px solid var(--module-quote);
}

.quote-list-table thead th,
.quote-summary-modal .quote-summary-items-table .data-table thead th,
.quote-items-card .quote-legacy-items-table th {
  background: var(--module-quote);
  color: #fff;
}

.quote-summary-band {
  background: linear-gradient(90deg, var(--module-quote-strong) 0%, var(--module-quote) 100%);
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.14);
}

.sales-list-card {
  border-top-color: var(--module-sale);
}

.sales-list-table thead th,
.sale-document-shell:not(.purchase-document-shell) .sale-lines-table thead th,
.sale-items-editor .quote-legacy-items-table th {
  background: var(--module-sale);
  color: #fff;
}

.sale-document-shell:not(.purchase-document-shell) .sale-document-card,
.sale-document-shell:not(.purchase-document-shell) .sale-summary-card,
.sale-document-shell:not(.purchase-document-shell) .sale-products-card {
  border-left-color: var(--module-sale);
}

.sale-document-shell:not(.purchase-document-shell) .sale-inline-totals,
.sale-items-editor .sale-items-totals {
  background: var(--module-sale-soft);
  border-color: var(--module-sale-line);
}

.sale-document-shell:not(.purchase-document-shell) .sale-inline-totals strong,
.sale-items-editor .sale-items-totals strong {
  color: var(--module-sale-strong);
}

.purchases-list-card,
.purchases-pending-card {
  border-top-color: var(--module-purchase);
}

.purchases-list-table thead th,
.purchases-pending-table thead th,
.purchase-document-shell .purchase-lines-table thead th,
.purchase-quote-items-table .data-table thead th {
  background: var(--module-purchase);
  color: #fff;
}

.purchase-summary-modal,
.purchase-document-shell .purchase-document-card,
.purchase-document-shell .purchase-summary-card {
  border-left-color: var(--module-purchase);
  border-top-color: var(--module-purchase);
}

.purchase-document-shell .purchase-inline-totals {
  background: var(--module-purchase-soft);
  border-color: var(--module-purchase-line);
}

.purchase-document-shell .purchase-inline-totals strong {
  color: var(--module-purchase-strong);
}

.quote-client-modal {
  width: min(1180px, calc(100vw - 1.25rem));
  max-height: calc(100vh - 1.25rem);
  padding: 0.75rem;
}

.quote-client-modal .modal-head {
  margin-bottom: 0.55rem;
  padding-bottom: 0.5rem;
}

.quote-client-modal .modal-head h2,
.quote-client-modal .modal-head p {
  margin: 0.08rem 0 0;
}

.quote-client-form {
  display: grid;
  gap: 0.55rem;
}

.quote-client-section,
.quote-client-address-grid .quote-client-section {
  border: 1px solid var(--quote-line);
  border-radius: 0.55rem;
  padding: 0.55rem 0.65rem;
}

.quote-client-section-head {
  margin-bottom: 0.4rem;
}

.quote-client-section-head h3 {
  font-size: 0.9rem;
  margin: 0;
}

.quote-client-form .form-grid {
  gap: 0.42rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.quote-client-address-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-client-form .field span,
.quote-client-form label span {
  font-size: 0.64rem;
}

.quote-client-form input,
.quote-client-form select,
.quote-client-form textarea {
  min-height: 30px;
  padding: 0.3rem 0.45rem;
}

.quote-client-switcher {
  border: 1px solid var(--quote-line);
  border-radius: 0.55rem;
  padding: 0.45rem 0.55rem;
}

.quote-client-switcher summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.quote-product-modal,
.sale-edit-modal,
.purchase-edit-modal {
  max-height: calc(100vh - 1.25rem);
  padding: 0.75rem;
}

.quote-product-modal {
  max-height: calc(100vh - 1.5rem);
  padding: 0;
}

.quote-product-search-top {
  gap: 0.45rem;
  grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 0.6fr) 92px auto;
}

.quote-product-modal .field input,
.quote-product-modal .field select,
.purchase-add-item-grid input,
.purchase-add-item-grid select {
  min-height: 30px;
  padding: 0.3rem 0.45rem;
}

.purchase-product-search-field {
  grid-column: 1 / -1;
  position: relative;
}

.purchase-product-search-results {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 4px);
  z-index: 4;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.purchase-lines-table .quote-compact-image {
  height: 34px;
  width: 34px;
}

@media (max-width: 1180px) {
  .purchase-edit-line,
  .purchase-add-item-grid,
  .purchase-deduction-row,
  .purchase-receipt-lines label {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .sale-document-shell .sale-document-layout,
  .sale-document-shell .sale-overview-grid,
  .sale-document-shell .sale-logistics-grid,
  .sale-document-shell .sale-inline-totals,
  .sale-document-shell .sale-document-item {
    grid-template-columns: 1fr;
  }
}

.button-primary,
.button-secondary {
  appearance: none;
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.45rem;
  padding: 0.58rem 0.95rem;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0.4rem 1rem rgba(78, 115, 223, 0.18);
}

.button-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.button-secondary {
  color: var(--brand-dark);
  background: #fff;
  border-color: var(--stroke-strong);
}

.button-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.button-primary:disabled,
.button-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.alert-error {
  border: 1px solid #f2b8b5;
  border-radius: 0.55rem;
  padding: 0.75rem 0.9rem;
  color: #9f1d1d;
  background: #fff3f2;
  font-weight: 800;
}

.commercial-calendar-page {
  gap: 1rem;
}

.commercial-calendar-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: auto;
}

.commercial-calendar-hero h1 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.commercial-calendar-actions,
.commercial-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.commercial-calendar-actions .button-primary,
.commercial-calendar-actions .button-secondary,
.commercial-detail-actions .button-secondary {
  min-height: 2rem;
  padding: 0.4rem 0.75rem;
}

.commercial-product-actions select {
  min-width: min(100%, 18rem);
  min-height: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.35rem 0.6rem;
  color: var(--ink-strong);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.commercial-inline-message {
  margin: 0.35rem 0 0;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.commercial-calendar-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.commercial-calendar-kpis article,
.commercial-event-detail,
.commercial-form,
.commercial-card-list,
.commercial-campaigns-panel,
.commercial-products-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  box-shadow: 0 0.45rem 1.2rem rgba(34, 74, 190, 0.07);
}

.commercial-calendar-kpis article {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
}

.commercial-calendar-kpis span,
.commercial-calendar-kpis small,
.commercial-mini-card span,
.commercial-mini-card small,
.muted-copy {
  color: var(--text-soft);
}

.commercial-calendar-kpis span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.commercial-calendar-kpis strong {
  color: var(--ink-strong);
  font-size: 1.55rem;
  line-height: 1;
}

.commercial-calendar-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.28fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.commercial-calendar-events {
  padding: 0.85rem;
  position: sticky;
  top: 1rem;
}

.commercial-panel-head,
.commercial-detail-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.commercial-panel-head h2,
.commercial-panel-head h3,
.commercial-detail-title h2,
.commercial-form h3 {
  margin: 0.15rem 0 0;
  color: var(--ink-strong);
}

.commercial-panel-head > span {
  min-width: 2rem;
  border-radius: 999px;
  padding: 0.25rem 0.45rem;
  color: var(--brand-dark);
  background: #edf4ff;
  text-align: center;
  font-weight: 800;
}

.commercial-event-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
  max-height: 62vh;
  overflow: auto;
  padding-right: 0.2rem;
}

.commercial-event-list button {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.55rem;
  background: #fff;
  color: var(--ink-strong);
  cursor: pointer;
  text-align: left;
}

.commercial-event-list button:hover,
.commercial-event-list button.is-active {
  border-color: var(--brand);
  background: #edf6ff;
}

.commercial-event-list i {
  display: grid;
  place-items: center;
  min-height: 2.6rem;
  border-radius: 0.45rem;
  color: var(--brand-dark);
  background: #e9f5ff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.commercial-event-list strong,
.commercial-event-list small {
  display: block;
}

.commercial-event-list small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.commercial-calendar-main {
  display: grid;
  gap: 1rem;
}

.commercial-create-event,
.commercial-campaigns-panel,
.commercial-detail-workspace {
  display: grid;
  gap: 1rem;
}

.commercial-campaigns-panel {
  padding: 1rem;
}

.commercial-campaigns-table td:first-child {
  min-width: 300px;
}

.commercial-campaigns-table td strong,
.commercial-campaigns-table td span,
.commercial-campaigns-table td small {
  display: block;
}

.commercial-campaigns-table td span,
.commercial-campaigns-table td small {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.commercial-campaigns-table .button-secondary {
  min-height: 2rem;
  padding: 0.42rem 0.75rem;
}

.commercial-event-detail {
  padding: 1rem;
}

.commercial-detail-title p {
  margin: 0.3rem 0 0;
  color: var(--text-soft);
}

.commercial-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: #31538f;
  background: #edf4ff;
  font-size: 0.76rem;
  font-weight: 800;
}

.commercial-status--active {
  color: #116242;
  background: #dff7ea;
}

.commercial-status--planned {
  color: #7a4b00;
  background: #fff4d6;
}

.commercial-status--draft {
  color: #5f6370;
  background: #f1f3f7;
}

.commercial-tabs {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.45rem;
  background: #fff;
  box-shadow: 0 0.3rem 0.9rem rgba(34, 74, 190, 0.06);
}

.commercial-tabs button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: var(--brand-dark);
  background: transparent;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.commercial-tabs button:hover,
.commercial-tabs button.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.commercial-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.commercial-detail-grid span {
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.65rem;
  background: #fbfdff;
  color: var(--ink-strong);
}

.commercial-detail-grid strong {
  color: var(--brand);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.commercial-forms-grid,
.commercial-panels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.commercial-form {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.commercial-form.compact {
  align-content: start;
}

.commercial-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.commercial-form input,
.commercial-form select,
.commercial-form textarea {
  min-height: 2.35rem;
  border-radius: 0.45rem;
  padding: 0.55rem 0.7rem;
}

.commercial-form textarea {
  min-height: 4.8rem;
  resize: vertical;
}

.commercial-card-list,
.commercial-products-panel {
  padding: 1rem;
}

.commercial-catalog-search {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  margin: 0.85rem 0;
  padding: 0.75rem;
  background: #fbfdff;
}

.commercial-catalog-search strong,
.commercial-catalog-results strong {
  color: var(--ink-strong);
}

.commercial-catalog-search small,
.commercial-catalog-results span,
.commercial-catalog-results small {
  display: block;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.commercial-catalog-search form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.commercial-catalog-search input {
  min-height: 2.35rem;
  border-radius: 0.45rem;
  padding: 0.55rem 0.7rem;
}

.commercial-catalog-results {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.commercial-catalog-results article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.6rem 0.7rem;
  background: #fff;
}

.commercial-already-linked {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: #116242;
  background: #dff7ea;
  font-weight: 800;
}

.commercial-mini-card {
  display: grid;
  gap: 0.15rem;
  border-top: 1px solid var(--line);
  padding: 0.65rem 0;
}

.commercial-mini-card strong {
  color: var(--ink-strong);
}

.muted-copy {
  margin: 0.7rem 0 0;
}

.commercial-products-table td:first-child {
  min-width: 280px;
}

.commercial-products-table td strong,
.commercial-products-table td span,
.commercial-products-table td small {
  display: block;
}

.commercial-products-table td span,
.commercial-products-table td small {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.commercial-products-table select {
  min-height: 2.1rem;
  border-radius: 0.45rem;
  padding: 0.35rem 0.65rem;
}

.commercial-toggle {
  min-width: 3.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: var(--muted);
  background: #f7f9fd;
  font-weight: 800;
  cursor: pointer;
}

.commercial-toggle.is-on {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.commercial-empty-state {
  display: grid;
  gap: 0.35rem;
  border: 1px dashed var(--stroke-strong);
  border-radius: 0.65rem;
  margin: 0.85rem 0;
  padding: 1rem;
  color: var(--text-soft);
  background: #fbfdff;
}

.commercial-empty-state strong {
  color: var(--ink-strong);
}

.commercial-empty-state p {
  margin: 0;
}

.commercial-banners-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 0.75rem;
  align-items: start;
}

.commercial-banner-list {
  display: grid;
  gap: 0.55rem;
}

.commercial-banner-card {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #dbe6f6;
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.55rem;
}

.commercial-banner-card-copy {
  min-width: 0;
}

.commercial-banner-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.commercial-banner-thumb,
.commercial-banner-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d7e5f7;
  border-radius: 0.55rem;
  background: #f7fbff;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.commercial-banner-thumb {
  aspect-ratio: 16 / 7;
  width: 100%;
}

.commercial-banner-thumb img,
.commercial-banner-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commercial-banner-card strong,
.commercial-banner-card span,
.commercial-banner-card small {
  display: block;
}

.commercial-banner-card strong {
  color: var(--ink-strong);
  font-size: 0.9rem;
  line-height: 1.2;
}

.commercial-banner-card span,
.commercial-banner-card small {
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.commercial-banner-form {
  display: grid;
  gap: 0.55rem;
  border: 1px solid #dbe6f6;
  border-radius: 0.65rem;
  background: #f8fbff;
  padding: 0.75rem;
}

.commercial-danger-button {
  min-height: 2rem;
  border: 1px solid #f2b8b5;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: #b42318;
  background: #fff3f2;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.commercial-danger-button:hover:not(:disabled) {
  color: #fff;
  background: #c8322a;
  border-color: #c8322a;
}

.commercial-danger-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.commercial-banner-form h3,
.commercial-banner-form p {
  margin: 0;
}

.commercial-banner-form label,
.commercial-banner-file,
.commercial-check-row {
  display: grid;
  gap: 0.22rem;
}

.commercial-banner-form label span,
.commercial-banner-file span {
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.commercial-banner-form input,
.commercial-banner-form select,
.commercial-banner-form textarea {
  border: 1px solid #b8c8e7;
  border-radius: 0.45rem;
  min-height: 2.15rem;
  padding: 0.38rem 0.52rem;
}

.commercial-banner-form textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.commercial-banner-file input {
  background: #fff;
}

.commercial-banner-file small {
  color: var(--text-soft);
  font-size: 0.74rem;
}

.commercial-banner-preview {
  aspect-ratio: 16 / 6;
}

.commercial-check-row {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  color: var(--ink-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.commercial-check-row input {
  min-height: auto;
  width: 1rem;
  height: 1rem;
}

.commercial-calendar-page .products-header-card {
  height: auto !important;
  min-height: 0 !important;
  max-height: 76px;
  overflow: hidden;
  padding: 0.5rem 0.7rem;
}

.commercial-calendar-page .products-header-card p,
.commercial-calendar-hero h1 {
  margin: 0.08rem 0 0;
}

.commercial-calendar-page {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-content: start;
}

.commercial-calendar-page > :empty,
.commercial-calendar-kpis:empty {
  display: none !important;
}

.commercial-calendar-page > .commercial-detail-workspace {
  margin-top: 0 !important;
}

.commercial-calendar-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  min-height: auto;
}

.commercial-calendar-hero h1 {
  font-size: 1.35rem;
  line-height: 1.08;
}

.commercial-calendar-hero p:not(.eyebrow) {
  font-size: 0.82rem;
  line-height: 1.25;
  max-width: 620px;
}

.commercial-hero-metrics {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 460px;
}

.commercial-hero-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  min-height: 1.9rem;
  border: 1px solid #dbe6f6;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: var(--text-soft);
  background: #f8fbff;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.commercial-hero-metrics strong {
  color: var(--brand-dark);
  font-size: 0.92rem;
  line-height: 1;
}

.commercial-calendar-kpis {
  gap: 0.5rem;
}

.commercial-calendar-kpis article {
  padding: 0.65rem 0.75rem;
}

.commercial-calendar-kpis strong {
  font-size: 1.25rem;
}

.commercial-calendar-layout,
.commercial-calendar-main,
.commercial-create-event,
.commercial-campaigns-panel,
.commercial-detail-workspace {
  gap: 0.65rem;
  align-content: start;
}

.commercial-campaigns-panel,
.commercial-event-detail,
.commercial-card-list,
.commercial-products-panel,
.commercial-form {
  padding: 0.75rem;
}

.commercial-event-detail {
  height: auto !important;
  min-height: 0 !important;
  max-height: 82px;
  overflow: hidden;
  padding: 0.55rem 0.7rem;
}

.commercial-event-detail .commercial-detail-title {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(420px, 1.25fr) auto;
  align-items: center;
}

.commercial-event-detail .eyebrow {
  margin: 0;
}

.commercial-event-detail h2 {
  margin: 0.05rem 0;
}

.commercial-event-detail p:not(.eyebrow) {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.25;
}

.commercial-detail-inline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.commercial-detail-inline span {
  display: grid;
  gap: 0.08rem;
  border-left: 1px solid #dbe6f6;
  padding-left: 0.55rem;
  color: var(--ink-strong);
  font-size: 0.78rem;
  line-height: 1.2;
}

.commercial-detail-inline strong {
  color: var(--brand);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.commercial-detail-grid {
  margin-top: 0.6rem;
}

.commercial-detail-grid span {
  padding: 0.5rem 0.6rem;
}

.commercial-tabs {
  gap: 0.28rem;
  border-radius: 0.55rem;
  padding: 0.28rem;
  box-shadow: none;
  height: auto !important;
  min-height: 0 !important;
  max-height: 43px;
  overflow: hidden;
}

.commercial-tabs button {
  min-height: 2rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
}

.commercial-panel-head h3,
.commercial-detail-title h2,
.commercial-form h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.commercial-panel-head .muted-copy {
  margin-top: 0.25rem;
  font-size: 0.78rem;
}

.commercial-products-table th,
.commercial-products-table td,
.commercial-campaigns-table th,
.commercial-campaigns-table td {
  padding: 0.46rem 0.55rem;
  vertical-align: middle;
}

.commercial-products-table td:first-child {
  min-width: 310px;
}

.commercial-product-cell {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}

.commercial-product-thumb {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border: 1px solid #d7e5f7;
  border-radius: 0.55rem;
  color: var(--text-soft);
  background: #f7fbff;
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
}

.commercial-product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.commercial-remove-button {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid #f2b8b5;
  border-radius: 999px;
  color: #b42318;
  background: #fff3f2;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.commercial-remove-button:hover {
  color: #fff;
  background: #c8322a;
  border-color: #c8322a;
}

.commercial-product-modal {
  width: min(100%, 920px);
  padding: 0.85rem;
}

.commercial-product-modal-head {
  gap: 0.8rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
}

.commercial-product-modal-head h2 {
  margin: 0.1rem 0;
  font-size: 1.05rem;
}

.commercial-product-modal-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.commercial-modal-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.commercial-modal-search input {
  min-height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem;
}

.commercial-modal-results {
  display: grid;
  gap: 0.45rem;
  max-height: 58vh;
  overflow: auto;
  padding-right: 0.15rem;
}

.commercial-modal-product-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.58rem;
  padding: 0.5rem;
  background: #fff;
}

.commercial-modal-product-info {
  min-width: 0;
}

.commercial-modal-product-info strong,
.commercial-modal-product-info span,
.commercial-modal-product-info small {
  display: block;
}

.commercial-modal-product-info strong {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 0.86rem;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-modal-product-info span {
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.commercial-modal-product-info small {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.commercial-modal-product-card .button-primary {
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
}

.commercial-modal-product-card .commercial-already-linked {
  padding: 0.32rem 0.55rem;
  font-size: 0.74rem;
}

.marking-orders-page {
  display: grid;
  gap: 0.75rem;
}

.marking-orders-hero,
.marking-orders-panel {
  background: #fff;
  border: 1px solid #d9e4f5;
  border-left: 4px solid #8b5cf6;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 0.8rem 1rem;
}

.marking-orders-hero {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.marking-orders-title h1,
.marking-orders-title p,
.marking-orders-title span {
  margin: 0;
}

.marking-orders-title h1 {
  color: var(--heading);
  font-size: 1.35rem;
  line-height: 1.1;
}

.marking-orders-title span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.18rem;
}

.marking-orders-title small,
.marking-orders-toolbar span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.marking-orders-toolbar h2 {
  color: var(--heading);
  font-size: 1rem;
  margin: 0;
}

.marking-orders-metrics {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  min-width: min(100%, 520px);
}

.marking-orders-metrics div {
  border: 1px solid #dbe6f6;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}

.marking-orders-metrics span,
.marking-orders-metrics strong {
  display: block;
}

.marking-orders-metrics span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.marking-orders-metrics strong {
  color: var(--heading);
  font-size: 1rem;
  font-weight: 800;
}

.marking-orders-toolbar {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.marking-orders-filters {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(260px, 1fr) 150px 150px 150px auto;
  width: 100%;
}

.marking-orders-filters input,
.marking-orders-filters select {
  border: 1px solid #b8c8e7;
  border-radius: 7px;
  color: var(--heading);
  font-size: 0.86rem;
  min-height: 36px;
  padding: 0.42rem 0.58rem;
}

.marking-orders-table th {
  background: #6d28d9;
  color: #fff;
}

.marking-pending-panel {
  border-left-color: #f59e0b;
}

.marking-pending-collapsed {
  padding: 0.55rem 0.75rem;
}

.marking-pending-collapsed details {
  display: grid;
  gap: 0.55rem;
}

.marking-pending-collapsed summary {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
}

.marking-pending-collapsed summary::-webkit-details-marker {
  display: none;
}

.marking-pending-table th {
  background: #92400e;
  color: #fff;
}

.marking-orders-table th,
.marking-orders-table td,
.marking-pending-table th,
.marking-pending-table td {
  font-size: 0.82rem;
  padding: 0.45rem 0.55rem;
  vertical-align: middle;
}

.marking-orders-table strong,
.marking-orders-table small,
.marking-pending-table strong,
.marking-pending-table small {
  display: block;
}

.marking-pending-form {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: minmax(150px, 1.3fr) repeat(4, minmax(72px, 0.7fr)) minmax(150px, 1fr);
  min-width: 650px;
}

.marking-pending-form label,
.marking-pending-status-field {
  display: grid;
  gap: 0.16rem;
}

.marking-pending-form label span,
.marking-pending-status-field span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.marking-pending-form input,
.marking-pending-form select,
.marking-pending-table td > select {
  border: 1px solid #b8c8e7;
  border-radius: 7px;
  color: var(--heading);
  font-size: 0.78rem;
  min-height: 32px;
  padding: 0.32rem 0.42rem;
  width: 100%;
}

.marking-pending-form input[readonly],
.sale-print-order-grid input[readonly] {
  background: #f3f6fb;
  color: #64748b;
  cursor: default;
}

.marking-pending-status-field select {
  border: 1px solid #b8c8e7;
  border-radius: 7px;
  color: var(--heading);
  font-size: 0.78rem;
  min-height: 32px;
  padding: 0.32rem 0.42rem;
  width: 100%;
}

.marking-order-code,
.marking-sale-link {
  color: #4c1d95;
  font-weight: 800;
}

.marking-order-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.company-mini-pill {
  display: inline-flex;
  font-size: 0.7rem;
  margin-top: 0.3rem;
  width: fit-content;
}

.marking-order-modal {
  max-height: 90vh;
  overflow: auto;
  width: min(760px, calc(100vw - 2rem));
}

.marking-order-modal .modal-header {
  align-items: flex-start;
  border-bottom: 1px solid #e3ebf7;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
}

.marking-order-modal .modal-header h3,
.marking-order-modal .modal-header p,
.marking-order-modal .modal-header span {
  margin: 0;
}

.marking-order-modal .modal-header h3 {
  color: var(--heading);
  font-size: 1rem;
  line-height: 1.2;
}

.marking-order-modal .modal-header span {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.marking-order-modal-form {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marking-order-modal-form label,
.marking-readonly-field,
.marking-order-modal-summary {
  display: grid;
  gap: 0.18rem;
}

.marking-order-modal-form label span,
.marking-readonly-field span,
.marking-order-modal-summary span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.marking-readonly-field,
.marking-readonly-inline {
  background: #f3f6fb;
  border: 1px solid #dbe6f6;
  border-radius: 7px;
  color: #64748b;
  min-height: 34px;
  padding: 0.38rem 0.5rem;
}

.marking-readonly-field strong,
.marking-readonly-inline {
  color: #475569;
  font-size: 0.88rem;
  font-weight: 800;
}

.marking-order-modal-form input,
.marking-order-modal-form select,
.marking-order-modal-form textarea {
  border: 1px solid #b8c8e7;
  border-radius: 7px;
  color: var(--heading);
  font-size: 0.86rem;
  min-height: 34px;
  padding: 0.38rem 0.5rem;
}

.marking-order-modal-form textarea {
  min-height: 76px;
  resize: vertical;
}

.marking-order-modal-form .wide,
.marking-order-modal-form .modal-actions,
.marking-order-modal-summary,
.marking-order-lock {
  grid-column: 1 / -1;
}

.marking-order-modal-summary {
  align-items: center;
  background: #f7f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
}

.marking-order-modal-summary strong {
  color: #5b21b6;
  font-size: 0.9rem;
}

.marking-order-lock {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.75rem;
}

.marking-workbench {
  display: grid;
  gap: 0.75rem;
}

.marking-workbench-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.marking-workbench-actions .compact-action {
  white-space: nowrap;
}

.marking-workbench-actions .marking-orders-filters {
  flex: 1 1 760px;
  grid-template-columns: minmax(240px, 1fr) 140px 140px 145px auto;
}

.marking-workbench-tabs {
  align-items: flex-end;
  border-bottom: 1px solid #d9e4f5;
  display: flex;
  gap: 0.1rem;
  overflow-x: auto;
}

.marking-workbench-tabs button {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  color: #5f7290;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  white-space: nowrap;
}

.marking-workbench-tabs button.is-active {
  background: #fff;
  border-color: #d9e4f5;
  border-radius: 7px 7px 0 0;
  color: var(--heading);
}

.marking-workbench-tabs span {
  background: #eef4ff;
  border-radius: 999px;
  color: #315aa0;
  display: inline-flex;
  font-size: 0.68rem;
  justify-content: center;
  margin-left: 0.35rem;
  min-width: 1.25rem;
  padding: 0.08rem 0.34rem;
}

.marking-workbench-title {
  color: var(--heading);
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0;
}

.marking-workbench-wrap {
  border: 1px solid #d9e4f5;
  border-radius: 8px;
}

.marking-workbench-table {
  min-width: 1180px;
}

.marking-workbench-compact-table th:nth-child(1) {
  width: 150px;
}

.marking-workbench-compact-table th:nth-child(2) {
  width: 300px;
}

.marking-workbench-compact-table th:nth-child(3),
.marking-workbench-compact-table th:nth-child(6) {
  width: 150px;
}

.marking-workbench-compact-table th:nth-child(4) {
  width: 230px;
}

.marking-workbench-compact-table th:nth-child(5) {
  width: 250px;
}

.marking-workbench-table th {
  background: #f7faff;
  border: 1px solid #d9e4f5;
  color: #30445f;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.05;
  padding: 0.38rem 0.42rem;
  text-align: center;
  vertical-align: middle;
}

.marking-workbench-table td {
  border: 1px solid #e3ebf7;
  color: #52647a;
  font-size: 0.76rem;
  line-height: 1.18;
  padding: 0.42rem 0.46rem;
  vertical-align: middle;
}

.marking-workbench-table tr.is-tinted td {
  background: #f5f9ff;
}

.marking-workbench-table tr.is-pending-source td {
  background: #fffaf0;
}

.marking-order-meta-cell,
.marking-product-work-cell,
.marking-money-summary-cell,
.marking-production-cell,
.marking-dates-notes-cell,
.marking-margin-cell {
  vertical-align: top;
}

.marking-row-title,
.marking-product-line {
  align-items: flex-start;
  display: flex;
  gap: 0.5rem;
}

.marking-row-title {
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.marking-order-meta-cell,
.marking-money-summary-cell,
.marking-margin-cell {
  display: grid;
  gap: 0.28rem;
}

.marking-order-meta-cell small,
.marking-product-work-cell span,
.marking-product-work-cell b,
.marking-money-summary-cell span,
.marking-margin-cell span,
.marking-dates-notes-cell small {
  color: #64748b;
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
}

.marking-product-line > div:last-child {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.marking-product-line strong {
  color: #24364f;
  font-size: 0.84rem;
  line-height: 1.25;
}

.marking-field-block {
  display: grid;
  gap: 0.18rem;
}

.marking-field-block > span,
.marking-date-grid span {
  color: #718198;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.marking-production-cell {
  display: grid;
  gap: 0.35rem;
}

.marking-production-cell .marking-inline-select,
.marking-production-cell .marking-inline-input,
.marking-product-work-cell .marking-inline-input {
  min-height: 30px;
  width: 100%;
}

.marking-date-grid {
  display: grid;
  gap: 0.3rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marking-date-grid label {
  display: grid;
  gap: 0.18rem;
}

.marking-date-grid input {
  border: 1px solid #b8c8e7;
  border-radius: 7px;
  color: #30445f;
  font-size: 0.74rem;
  min-height: 30px;
  padding: 0.24rem 0.34rem;
  width: 100%;
}

.marking-inline-textarea {
  border: 1px solid #b8c8e7;
  border-radius: 7px;
  color: #30445f;
  font: inherit;
  font-size: 0.78rem;
  min-height: 58px;
  padding: 0.35rem 0.45rem;
  resize: vertical;
  width: 100%;
}

.marking-margin-cell strong {
  font-size: 0.95rem;
}

.marking-service-cell strong,
.marking-product-cell strong,
.marking-money-stack strong {
  color: var(--heading);
  display: block;
  font-weight: 900;
}

.marking-company-badge {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 4px;
  color: #0f172a;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  margin-top: 0.3rem;
  padding: 0.16rem 0.34rem;
}

.marking-client-cell {
  min-width: 185px;
}

.marking-product-cell {
  min-width: 220px;
}

.marking-product-cell span,
.marking-product-cell b {
  display: block;
}

.marking-product-cell b {
  color: #425a78;
}

.marking-image-placeholder {
  align-items: center;
  background: #fff;
  border: 1px solid #e3ebf7;
  border-radius: 6px;
  color: #94a3b8;
  display: flex;
  height: 54px;
  justify-content: center;
  width: 64px;
}

.marking-inline-input,
.marking-inline-select,
.marking-date-stack input {
  background: #fff;
  border: 1px solid #cfdced;
  border-radius: 6px;
  color: var(--heading);
  font-size: 0.72rem;
  min-height: 27px;
  padding: 0.22rem 0.36rem;
}

.marking-inline-input[readonly],
.marking-date-stack input[readonly] {
  background: #f3f6fb;
  color: #64748b;
  cursor: default;
}

.marking-date-input {
  width: 7.1rem;
}

.marking-logo-input {
  width: 9.4rem;
}

.marking-qty-input {
  text-align: right;
  width: 4.1rem;
}

.marking-price-input {
  text-align: right;
  width: 6.4rem;
}

.marking-info-cell,
.marking-date-stack,
.marking-service-price-cell {
  display: grid;
  gap: 0.25rem;
}

.marking-info-cell span {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
}

.marking-status-select {
  font-weight: 800;
}

.marking-date-stack label {
  align-items: center;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: 2.2rem 6.7rem;
}

.marking-date-stack span {
  color: #52667d;
  font-size: 0.67rem;
  font-weight: 900;
}

.marking-money-stack span,
.marking-money-stack strong {
  white-space: nowrap;
}

.marking-number-cell {
  text-align: right;
}

.marking-diff-positive,
.marking-diff-negative {
  font-weight: 900;
  white-space: nowrap;
}

.marking-diff-positive {
  color: #315a43;
}

.marking-diff-negative {
  color: #b91c1c;
}

.status-pill--muted {
  background: #eef2f7;
  color: #64748b;
}

.status-pill--warning {
  background: #fff7ed;
  color: #c2410c;
}

.bank-statements-page {
  display: grid;
  gap: 0.8rem;
}

.bank-statements-title {
  font-size: 1.05rem;
  line-height: 1.2;
}

.bank-statements-filter {
  align-items: end;
  margin-top: 0.55rem;
}

.bank-statements-filter label {
  max-width: 240px;
}

.bank-statements-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.bank-statements-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  border-right: 1px solid var(--line);
  padding-right: 0.8rem;
}

.expense-report-page {
  gap: 0.8rem;
}

.expense-report-table-wrap {
  max-height: 68vh;
}

.expense-report-table {
  min-width: 1120px;
}

.expense-report-table th,
.expense-report-table td {
  white-space: nowrap;
  text-align: right;
}

.expense-report-table th:first-child,
.expense-report-table td:first-child {
  left: 0;
  min-width: 260px;
  position: sticky;
  text-align: left;
  z-index: 1;
}

.expense-report-table thead th:first-child {
  z-index: 2;
}

.expense-report-group-row td {
  background: #f7f9fc;
  color: var(--heading);
  font-weight: 800;
}

.expense-report-child-name {
  display: block;
  padding-left: 1rem;
}

.expense-report-total-row td {
  background: #eef2f7;
  color: var(--heading);
  font-weight: 800;
}

.expense-report-value.is-paid {
  color: #16833a;
}

.expense-report-value.is-partial {
  color: #b7791f;
}

.expense-report-value.is-pending {
  color: #c53030;
}

.expense-report-cell-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.32rem;
}

.expense-report-cell-plus {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfd8e6;
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.expense-report-cell-plus:hover {
  border-color: #3564e8;
  color: #3564e8;
}

.expense-report-detail-modal {
  width: min(1180px, calc(100vw - 30px));
  max-height: calc(100vh - 28px);
  padding: 14px;
  overflow: hidden;
}

.expense-report-detail-head {
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.expense-report-detail-head h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.expense-report-detail-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.expense-account-path {
  max-width: 520px;
  color: #475569;
  line-height: 1.25;
  white-space: normal;
}

.expense-report-detail-table-wrap {
  max-height: min(72vh, 760px);
}

.expense-report-detail-table {
  min-width: 1060px;
}

.expense-report-detail-table td {
  vertical-align: top;
}

.expense-report-detail-table td:nth-child(4) {
  min-width: 260px;
  white-space: normal;
}

.expense-report-detail-table .table-helper {
  display: block;
  margin-top: 3px;
}

.bank-statements-metrics span:last-child {
  border-right: 0;
  padding-right: 0;
}

.bank-statements-metrics strong {
  color: var(--heading);
  font-size: 0.96rem;
}

.sales-report-page {
  gap: 14px;
}

.sales-report-hero {
  border-left-color: #15956d;
}

.sales-report-metrics span {
  min-width: 150px;
}

.sales-report-metrics small {
  display: block;
  margin-top: 3px;
  color: #6c7894;
  font-size: 0.72rem;
}

.sales-report-chart-card {
  overflow: hidden;
}

.sales-report-bars {
  display: grid;
  grid-template-columns: repeat(12, minmax(46px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 240px;
  padding-top: 8px;
}

.sales-report-bar {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 7px;
  min-width: 0;
  text-align: center;
}

.sales-report-bar-track {
  position: relative;
  height: 172px;
  border: 1px solid #d8e2f2;
  border-radius: 7px;
  background: linear-gradient(180deg, #f9fbff 0%, #eef5fb 100%);
  overflow: hidden;
}

.sales-report-bar-track i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--sales-bar-height, 0%);
  background: linear-gradient(180deg, #37b987 0%, #1284c7 100%);
  border-radius: 6px 6px 0 0;
}

.sales-report-bar strong {
  color: #24365f;
  font-size: 0.78rem;
}

.sales-report-bar small {
  color: #65718e;
  font-size: 0.7rem;
  white-space: nowrap;
}

.sales-report-table th:not(:first-child),
.sales-report-table td:not(:first-child) {
  text-align: right;
}

.sales-report-total-row td {
  border-top: 2px solid #bfd1ea;
  background: #f4f8fc;
}

.sales-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.sales-report-breakdown-list {
  display: grid;
  gap: 10px;
}

.sales-report-breakdown-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.1fr) minmax(120px, 1fr) minmax(110px, auto) minmax(66px, auto);
  gap: 10px;
  align-items: center;
  color: #203154;
  font-size: 0.82rem;
}

.sales-report-breakdown-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-report-breakdown-row > div {
  height: 9px;
  border-radius: 999px;
  background: #e6edf6;
  overflow: hidden;
}

.sales-report-breakdown-row i {
  display: block;
  width: var(--sales-row-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #15956d 0%, #2182c3 100%);
}

.sales-report-breakdown-row strong,
.sales-report-breakdown-row small {
  text-align: right;
  white-space: nowrap;
}

.sales-report-breakdown-row small {
  color: #6d7892;
}

@media (max-width: 1120px) {
  .sales-report-bars {
    grid-template-columns: repeat(6, minmax(56px, 1fr));
  }

  .sales-report-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sales-report-bars {
    grid-template-columns: repeat(3, minmax(64px, 1fr));
  }

  .sales-report-breakdown-row {
    grid-template-columns: 1fr;
  }

  .sales-report-breakdown-row strong,
  .sales-report-breakdown-row small {
    text-align: left;
  }
}

.bank-statement-months {
  max-width: 280px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.sale-print-summary {
  align-items: center;
  background: #f7f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  color: #5b21b6;
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.7rem;
}

.sale-print-summary strong,
.sale-print-summary span {
  font-size: 0.86rem;
}

.sale-print-orders-list {
  display: grid;
  gap: 0.65rem;
}

.sale-print-order-card {
  border: 1px solid #d9e4f5;
  border-radius: 8px;
  background: #fff;
}

.sale-print-order-head {
  align-items: center;
  border-bottom: 1px solid #e3ebf7;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
}

.sale-print-order-head strong,
.sale-print-order-head span,
.sale-print-order-head small {
  display: block;
}

.sale-print-order-head strong {
  color: var(--heading);
  font-size: 0.9rem;
}

.sale-print-order-head span,
.sale-print-order-head small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.sale-print-order-grid {
  align-items: end;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(150px, 1.25fr) repeat(5, minmax(80px, 0.7fr)) minmax(180px, 1.2fr) minmax(110px, 0.8fr) auto;
  padding: 0.65rem;
}

.sale-print-order-grid label,
.sale-print-order-total {
  display: grid;
  gap: 0.18rem;
}

.sale-print-order-grid label span,
.sale-print-order-total span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sale-print-order-grid input,
.sale-print-order-grid select {
  border: 1px solid #b8c8e7;
  border-radius: 7px;
  min-height: 34px;
  padding: 0.35rem 0.45rem;
}

.sale-print-order-total {
  border: 1px solid #dbe6f6;
  border-radius: 7px;
  min-height: 34px;
  padding: 0.35rem 0.5rem;
}

.sale-print-order-total strong {
  color: var(--heading);
  font-size: 0.88rem;
}

.compact-empty {
  padding: 0.8rem;
}

@media (max-width: 1280px) {
  .commercial-calendar-kpis,
  .commercial-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commercial-calendar-layout,
  .commercial-forms-grid,
  .commercial-panels-grid,
  .commercial-banners-grid {
    grid-template-columns: 1fr;
  }

  .commercial-calendar-hero,
  .commercial-event-detail .commercial-detail-title {
    grid-template-columns: 1fr;
  }

  .commercial-hero-metrics,
  .commercial-calendar-actions,
  .commercial-detail-actions {
    justify-content: flex-start;
  }

  .commercial-detail-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commercial-calendar-events {
    position: static;
  }
}

@media (max-width: 1180px) {
  .marking-orders-hero,
  .marking-orders-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .marking-orders-filters,
  .sale-print-order-grid,
  .marking-pending-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .commercial-calendar-page .products-header-card,
  .commercial-event-detail,
  .commercial-tabs {
    max-height: none;
    overflow: visible;
  }

  .commercial-calendar-hero,
  .commercial-panel-head,
  .commercial-detail-title,
  .commercial-calendar-actions,
  .commercial-detail-actions,
  .commercial-catalog-search,
  .commercial-catalog-results article {
    display: grid;
    justify-content: stretch;
  }

  .commercial-calendar-hero,
  .commercial-event-detail .commercial-detail-title {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .commercial-calendar-actions,
  .commercial-detail-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .commercial-calendar-actions .button-primary,
  .commercial-calendar-actions .button-secondary,
  .commercial-detail-actions .button-secondary,
  .commercial-detail-actions .commercial-status,
  .commercial-product-actions select {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .commercial-hero-metrics {
    justify-content: flex-start;
    max-width: none;
  }

  .commercial-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .commercial-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .commercial-banner-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .commercial-banner-card-actions {
    justify-content: flex-start;
  }

  .commercial-calendar-kpis,
  .commercial-detail-grid,
  .commercial-form-grid,
  .commercial-detail-inline {
    grid-template-columns: 1fr;
  }

  .commercial-modal-search,
  .commercial-modal-product-card {
    grid-template-columns: 1fr;
  }

  .commercial-modal-product-card {
    align-items: start;
  }
}

.ai-assistant-page {
  gap: 0.75rem;
}

.ai-shell-card {
  padding: 0.9rem;
}

.ai-module-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.ai-module-header span {
  color: var(--muted-text);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ai-module-header h1 {
  font-size: 1.35rem;
  line-height: 1.1;
  margin: 0.1rem 0 0;
}

.ai-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.ai-header-actions select {
  min-height: 32px;
  max-width: 230px;
  border-radius: 8px;
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
}

.ai-two-column-layout {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.42fr);
  min-height: calc(100vh - 170px);
}

.ai-workspace-panel,
.ai-chat-panel {
  min-width: 0;
}

.ai-workspace-card,
.ai-chat-panel {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.ai-workspace-card {
  min-height: calc(100vh - 172px);
  padding: 0.9rem;
}

.ai-panel-title-row,
.ai-chat-header {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.ai-panel-title-row h2 {
  font-size: 1rem;
  margin: 0;
}

.ai-panel-title-row p,
.ai-chat-header span,
.ai-upload-zone span,
.ai-form-actions span {
  color: var(--muted-text);
  font-size: 0.82rem;
  margin: 0.2rem 0 0;
}

.ai-summary-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.ai-metric {
  min-height: auto;
  padding: 0.75rem;
}

.ai-analysis-grid .ai-metric {
  display: grid;
  gap: 0.18rem;
}

.ai-analysis-grid .ai-metric small {
  color: var(--ink-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.ai-analysis-grid .ai-metric em {
  color: var(--muted-text);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.ai-analysis-section {
  margin-top: 0.9rem;
}

.ai-analysis-section h3 {
  font-size: 0.92rem;
  margin: 0 0 0.45rem;
}

.ai-finding-list,
.ai-next-list {
  display: grid;
  gap: 0.55rem;
}

.ai-finding,
.ai-next-step {
  appearance: none;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  padding: 0.68rem 0.75rem;
  text-align: left;
}

.ai-finding strong,
.ai-next-step strong {
  color: var(--ink-strong);
  font-size: 0.88rem;
}

.ai-finding span,
.ai-next-step small {
  color: var(--muted-text);
  font-size: 0.82rem;
  line-height: 1.35;
}

.ai-finding-critico {
  border-left: 4px solid #dc2626;
}

.ai-finding-pendiente {
  border-left: 4px solid #f59e0b;
}

.ai-finding-ok {
  border-left: 4px solid #16a34a;
}

.ai-analysis-columns {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-mini-table {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.ai-mini-table div {
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 0.48rem 0.58rem;
}

.ai-mini-table div:last-child {
  border-bottom: 0;
}

.ai-mini-table span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-mini-table b,
.ai-mini-table strong {
  font-size: 0.78rem;
}

.ai-next-step {
  align-items: start;
  grid-template-columns: 32px minmax(0, 1fr);
}

.ai-next-step b {
  align-items: center;
  background: #eef4ff;
  border-radius: 999px;
  color: #224abe;
  display: inline-flex;
  font-size: 0.82rem;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.ai-next-step span {
  display: grid;
  gap: 0.15rem;
}

.ai-drilldown-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.ai-question-list {
  color: var(--muted-text);
  display: grid;
  font-size: 0.84rem;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.1rem;
}

.ai-prompt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.ai-memory-layout {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.85rem;
}

.ai-memory-section {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 0;
  padding: 0.7rem;
}

.ai-section-title {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.ai-section-title h3 {
  font-size: 0.92rem;
  margin: 0;
}

.ai-memory-list {
  display: grid;
  gap: 0.5rem;
}

.ai-memory-list article {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: grid;
  gap: 0.25rem;
  padding: 0.58rem 0.65rem;
}

.ai-memory-list article strong {
  color: var(--ink-strong);
  font-size: 0.86rem;
}

.ai-memory-list article span {
  color: var(--muted-text);
  font-size: 0.8rem;
  line-height: 1.35;
}

.ai-memory-list article small {
  color: #224abe;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: capitalize;
}

.ai-report-path {
  color: var(--muted-text);
  display: block;
  font-size: 0.76rem;
  margin-top: 0.2rem;
  word-break: break-all;
}

.ai-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.ai-report-meta span {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--muted-text);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.28rem 0.55rem;
}

.ai-report-sections {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.ai-report-section {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.7rem;
}

.ai-report-bullets {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
}

.ai-report-bullets li {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.5rem 0.58rem;
}

.ai-report-bullets span {
  color: var(--muted-text);
  font-size: 0.82rem;
  line-height: 1.34;
}

.ai-report-table {
  margin-top: 0.55rem;
}

.ai-table-scroll {
  margin-top: 0.75rem;
  max-height: calc(100vh - 245px);
}

.ai-data-table th {
  text-transform: capitalize;
}

.ai-chat-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 170px);
  min-height: calc(100vh - 170px);
  padding: 0.75rem;
}

.ai-chat-header {
  align-items: center;
}

.ai-chat-header strong {
  display: block;
  font-size: 0.95rem;
}

.ai-upload-zone {
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0.65rem;
  padding: 0.7rem;
}

.ai-upload-zone strong {
  display: block;
  font-size: 0.86rem;
}

.ai-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.ai-file-list span {
  background: var(--surface-soft);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--muted-text);
  font-size: 0.75rem;
  padding: 0.25rem 0.45rem;
}

.ai-chat-history {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.75rem 0;
  min-height: 220px;
  overflow: auto;
  padding-right: 0.2rem;
}

.ai-message {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-width: 92%;
  padding: 0.55rem 0.65rem;
}

.ai-message span {
  color: var(--muted-text);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.ai-message p {
  font-size: 0.86rem;
  line-height: 1.38;
  margin: 0;
  white-space: pre-wrap;
}

.ai-message.usuario {
  align-self: flex-end;
  background: #eef4ff;
  border-color: #c9d8ff;
}

.ai-message.laura {
  align-self: flex-start;
  background: #f8fafc;
}

.ai-message-progress {
  min-width: min(360px, 92%);
}

.ai-progress-current {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.ai-progress-current > i {
  animation: ai-progress-pulse 1.2s ease-in-out infinite;
  background: #2463d4;
  border-radius: 50%;
  height: 0.55rem;
  width: 0.55rem;
}

.ai-progress-current strong {
  color: var(--text-color);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.ai-progress-steps {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.7rem;
}

.ai-progress-step {
  min-width: 0;
}

.ai-progress-step > i {
  background: #d8e0ee;
  display: block;
  height: 3px;
  margin-bottom: 0.3rem;
  transition: background-color 180ms ease;
}

.ai-progress-step.done > i,
.ai-progress-step.current > i {
  background: #2463d4;
}

.ai-progress-step.current > i {
  animation: ai-progress-bar 1.4s ease-in-out infinite;
}

.ai-progress-step small,
.ai-progress-detail {
  color: var(--muted-text);
  font-size: 0.68rem;
}

.ai-progress-step.current small {
  color: #184da8;
  font-weight: 700;
}

.ai-progress-detail {
  display: block;
  margin-top: 0.55rem;
}

@keyframes ai-progress-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes ai-progress-bar {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-progress-current > i,
  .ai-progress-step.current > i {
    animation: none;
  }
}

.ai-message.sistema {
  align-self: center;
  background: #fff8e6;
  border-color: #f1d38b;
  max-width: 100%;
}

.ai-actions-box {
  border-top: 1px solid var(--border-color);
  display: grid;
  gap: 0.45rem;
  padding-top: 0.65rem;
}

.ai-actions-box strong {
  font-size: 0.82rem;
}

.ai-chat-input {
  border-top: 1px solid var(--border-color);
  display: grid;
  gap: 0.55rem;
  padding-top: 0.65rem;
}

.ai-chat-input textarea,
.ai-form-grid input {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.ai-chat-input textarea {
  min-height: 76px;
  padding: 0.65rem;
}

.ai-form-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.85rem;
}

.ai-form-grid input {
  background: #f8fafc;
  color: var(--text-color);
  padding: 0.55rem 0.6rem;
}

.ai-form-actions {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.ai-checklist {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.ai-check-item {
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  padding: 0.65rem;
}

.ai-check-item span {
  color: var(--muted-text);
  font-size: 0.82rem;
}

.ai-check-item b {
  font-size: 0.9rem;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

@media (max-width: 1180px) {
  .ai-two-column-layout {
    grid-template-columns: 1fr;
  }

  .ai-chat-panel,
  .ai-workspace-card {
    max-height: none;
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .ai-module-header,
  .ai-panel-title-row,
  .ai-chat-header,
  .ai-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-summary-grid,
  .ai-form-grid,
  .ai-analysis-columns,
  .ai-memory-layout,
  .ai-report-bullets li,
  .ai-check-item {
    grid-template-columns: 1fr;
  }
}

/* Rediseño de la pantalla de cotizaciones para alta densidad y visualización ajustable */
.quote-list-redesign .quote-list-workspace {
  border-top: 3px solid color-mix(in srgb, var(--module-quote) 70%, white);
  padding: 0.6rem 0.8rem !important;
  gap: 0.5rem !important;
}

.commercial-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}

.commercial-status-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.45rem 0.75rem;
  color: var(--ink-strong);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.commercial-status-tabs button span {
  display: inline-grid;
  min-width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border-radius: 999px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, white 90%);
  font-size: 0.78rem;
}

.commercial-status-tabs button.is-active {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.commercial-status-tabs button.is-active span {
  color: var(--brand-dark);
  background: #fff;
}

.channel-logo-cell img.checkout-help-image-preview {
  width: 112px;
  height: 112px;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.commercial-mailing-panel,
.commercial-mailing-list,
.commercial-mailing-products,
.commercial-mailing-batches {
  display: grid;
  gap: 0.85rem;
}

.commercial-mailing-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.commercial-mailing-summary span,
.commercial-mailing-card,
.commercial-mailing-batches {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #f8fbff;
}

.commercial-mailing-summary span {
  display: grid;
  gap: 0.18rem;
  padding: 0.85rem;
}

.commercial-mailing-summary strong {
  color: var(--brand-dark);
  font-size: 1rem;
}

.commercial-mailing-test {
  display: grid;
  gap: 0.35rem;
  max-width: 32rem;
  color: var(--ink-strong);
  font-weight: 700;
}

.commercial-mailing-test input {
  min-height: 2.4rem;
  border: 1px solid var(--stroke-strong);
  border-radius: 0.55rem;
  padding: 0.55rem 0.7rem;
  color: var(--ink-strong);
  background: #fff;
}

.commercial-mailing-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(11rem, 0.5fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem;
}

.commercial-mailing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.commercial-mailing-actions .button-primary,
.commercial-mailing-actions .button-secondary {
  min-height: 2rem;
  padding: 0.4rem 0.65rem;
}

.commercial-mailing-products {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.commercial-mailing-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.55rem;
  max-height: 18rem;
  overflow: auto;
}

.commercial-mailing-product-grid label {
  display: grid;
  grid-template-columns: auto 3.2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.5rem;
  color: var(--ink-strong);
  background: #fff;
  cursor: pointer;
}

.commercial-mailing-product-grid label.is-selected {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 7%, white 93%);
}

.commercial-mailing-product-grid label input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand);
}

.commercial-mailing-product-grid .commercial-product-thumb {
  width: 3.2rem;
  height: 3.2rem;
}

.commercial-mailing-product-grid label span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.commercial-mailing-batches {
  padding: 0.85rem;
  background: #fff;
}

.commercial-mailing-batches > strong {
  color: var(--ink-strong);
}

.commercial-mailing-batches > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.commercial-mailing-batches span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  color: var(--brand-dark);
  background: #f8fbff;
  font-size: 0.78rem;
  font-weight: 800;
}

.commercial-mailing-batches span button {
  margin-left: 0.45rem;
  min-height: 1.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
}

.commercial-mailing-preview-modal {
  width: min(980px, calc(100vw - 1.5rem));
  height: min(860px, calc(100vh - 1.5rem));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.75rem;
}

.commercial-mailing-preview-frame {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
}

.commercial-success-copy,
.commercial-error-copy {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.commercial-success-copy {
  color: #0b7f45;
}

.commercial-error-copy {
  color: #b42318;
}

.commercial-catalog-panel,
.commercial-catalog-layout,
.commercial-catalog-workspace,
.commercial-catalog-pages,
.commercial-catalog-settings,
.commercial-catalog-page-form,
.commercial-catalog-hotspot-form {
  display: grid;
  gap: 0.85rem;
}

.commercial-catalog-layout {
  grid-template-columns: minmax(18rem, 0.42fr) minmax(0, 1fr);
  align-items: start;
}

.commercial-catalog-workspace {
  grid-template-columns: 1fr;
}

.commercial-catalog-settings,
.commercial-catalog-page-form,
.commercial-catalog-hotspot-form,
.commercial-catalog-page-card,
.commercial-catalog-public-link,
.commercial-catalog-inline-link {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.85rem;
}

.commercial-catalog-settings input,
.commercial-catalog-settings textarea,
.commercial-catalog-settings select,
.commercial-catalog-page-form input,
.commercial-catalog-hotspot-form input,
.commercial-catalog-hotspot-form select,
.commercial-catalog-inline-link input {
  min-height: 2.35rem;
  border: 1px solid var(--stroke-strong);
  border-radius: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
}

.commercial-catalog-settings textarea {
  min-height: 5rem;
  resize: vertical;
}

.commercial-catalog-public-link {
  display: grid;
  gap: 0.2rem;
  background: #f8fbff;
}

.commercial-catalog-public-link span,
.commercial-catalog-public-link small {
  overflow-wrap: anywhere;
  color: var(--text-soft);
}

.commercial-catalog-upload-list {
  display: grid;
  gap: 0.6rem;
}

.commercial-catalog-upload-list article {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.55rem;
  background: #f8fbff;
}

.commercial-catalog-upload-list img {
  width: 5rem;
  height: 6.2rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  object-fit: contain;
  background: #fff;
}

.commercial-catalog-upload-list article > div {
  display: grid;
  gap: 0.25rem;
}

.commercial-catalog-upload-list small {
  overflow-wrap: anywhere;
  color: var(--text-soft);
}

.commercial-catalog-pages {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
}

.commercial-catalog-page-card {
  align-content: start;
  display: grid;
  gap: 0.7rem;
}

.commercial-catalog-page-preview {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 28rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #f6f8fb;
  cursor: crosshair;
  touch-action: none;
}

.commercial-catalog-page-preview.is-selecting {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.commercial-catalog-page-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  -webkit-user-select: none;
          user-select: none;
  pointer-events: none;
}

.commercial-catalog-hotspot {
  position: absolute;
  border: 2px solid #10b981;
  border-radius: 0.35rem;
  background: rgba(16, 185, 129, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  pointer-events: none;
}

.commercial-catalog-hotspot--draft {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.18);
  animation: commercialCatalogPulse 1.2s ease-in-out infinite;
}

.commercial-catalog-page-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 0.7rem;
}

.commercial-catalog-page-meta strong,
.commercial-catalog-page-meta span {
  display: block;
}

.commercial-catalog-page-meta span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.commercial-catalog-page-hint {
  margin: -0.25rem 0 0;
}

.commercial-catalog-inline-link {
  display: grid;
  gap: 0.6rem;
  background: #f8fbff;
}

.commercial-catalog-inline-link strong,
.commercial-catalog-inline-link small {
  display: block;
}

.commercial-catalog-inline-link small {
  color: var(--text-soft);
}

.commercial-catalog-link-modal {
  width: min(1040px, calc(100vw - 1.2rem));
  max-height: calc(100vh - 1.2rem);
  display: grid;
  gap: 0.85rem;
  overflow: auto;
}

.commercial-catalog-link-form,
.commercial-catalog-modal-section {
  display: grid;
  gap: 0.75rem;
}

.commercial-catalog-link-form input {
  min-height: 2.45rem;
  border: 1px solid var(--stroke-strong);
  border-radius: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
}

.commercial-catalog-link-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.65rem 0.75rem;
  background: #f8fbff;
}

.commercial-catalog-link-selection span {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.commercial-catalog-link-selection strong {
  color: var(--brand-dark);
  font-size: 0.86rem;
}

.commercial-catalog-modal-section {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.commercial-catalog-modal-section > div:first-child strong,
.commercial-catalog-modal-section > div:first-child small {
  display: block;
}

.commercial-catalog-modal-section > div:first-child small {
  color: var(--text-soft);
}

.commercial-catalog-link-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.commercial-catalog-product-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.45rem;
}

.commercial-catalog-product-picks button {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.45rem;
  background: #fff;
  color: var(--ink-strong);
  text-align: left;
  cursor: pointer;
}

.commercial-catalog-product-picks button:hover {
  border-color: var(--brand);
}

.commercial-catalog-product-picks button span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.8rem;
  font-weight: 700;
}

.commercial-catalog-hotspot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.commercial-catalog-hotspot-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.45rem 0.3rem 0.6rem;
  background: #f8fbff;
}

.commercial-catalog-hotspot-list a {
  overflow: hidden;
  max-width: 16rem;
  color: var(--brand-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-catalog-hotspot-list button {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  cursor: pointer;
}

.commercial-catalog-coordinates {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@keyframes commercialCatalogPulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75) inset, 0 0 0 0 rgba(37, 99, 235, 0.2);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75) inset, 0 0 0 5px rgba(37, 99, 235, 0.16);
  }
}

@media (max-width: 960px) {
  .commercial-mailing-card {
    grid-template-columns: 1fr;
  }

  .commercial-mailing-actions {
    justify-content: flex-start;
  }

  .commercial-catalog-layout,
  .commercial-catalog-workspace,
  .commercial-catalog-coordinates {
    grid-template-columns: 1fr;
  }

  .commercial-catalog-page-preview {
    min-height: 18rem;
  }
}

.quote-list-redesign .quote-list-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin-bottom: 0.35rem;
}

.quote-list-redesign [class*="pageHeader"] {
  border-top: 3px solid var(--module-quote);
}

.quote-list-redesign .quote-search-control {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  margin: 0;
}

.quote-list-redesign .quote-search-control span {
  display: none !important; /* Oculta la palabra 'Search' para ahorrar espacio y mejorar distribución */
}

.quote-list-redesign .quote-search-control input {
  width: 100%;
  height: 32px;
  padding: 0.25rem 0.6rem;
  font-size: 0.82rem;
  border-radius: 4px;
}

.quote-list-redesign select {
  height: 32px;
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  font-size: 0.82rem;
  border-radius: 4px;
  min-width: 150px;
  flex: 0 1 auto;
}

.quote-list-redesign select:disabled {
  background-color: #f3f4f6;
  border-color: #e5e7eb;
}

.quote-list-redesign .compact-action {
  height: 32px;
  font-size: 0.82rem;
  padding: 0 0.8rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.quote-list-redesign .quote-filter-button,
.quote-list-redesign .quote-clear-filter-button {
  background: #fff;
  border-color: #c8d7ff;
  color: #31538f;
}

.quote-list-redesign .quote-filter-button:hover,
.quote-list-redesign .quote-clear-filter-button:hover {
  background: #f7faff;
  border-color: #8ea7f0;
}

.purchase-list-redesign .quote-row-action--summary {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.purchase-list-redesign .quote-row-action--summary:hover {
  background: #eef2f7;
  border-color: #94a3b8;
  color: #1e293b;
}

.purchase-list-redesign .quote-row-action--dian,
.purchase-list-redesign .quote-row-action--cross {
  background: #ecfeff;
  border-color: #67e8f9;
  color: #0e7490;
}

.purchase-list-redesign .quote-row-action--dian:hover,
.purchase-list-redesign .quote-row-action--cross:hover {
  background: #cffafe;
  border-color: #22d3ee;
  color: #155e75;
}

.purchase-list-redesign .quote-row-action--cause {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.purchase-list-redesign .quote-row-action--cause:hover {
  background: #ffedd5;
  border-color: #fb923c;
  color: #9a3412;
}

.quote-list-redesign .quote-list-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: #53627a;
  font-weight: 700;
  white-space: nowrap;
}

.quote-list-redesign .quote-page-size {
  flex: 0 1 8.2rem;
  min-width: 7.6rem;
}

/* Reducción de márgenes y paddings en la tabla de cotizaciones para evitar scroll vertical excesivo */
.quote-list-table--redesign {
  table-layout: fixed;
}

.quote-list-redesign .quote-list-table--redesign thead th,
.quote-list-redesign .quote-list-table thead th {
  background: #fff4f5 !important;
  border-bottom: 1px solid #e7c4c9;
  color: #7f1d1d !important;
}

.quote-list-table--redesign th,
.quote-list-table--redesign td {
  padding: 0.38rem 0.52rem !important;
  font-size: 0.82rem !important;
  line-height: 1.28 !important;
}

.quote-list-table--redesign thead th {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0;
}

.quote-col-id {
  width: 8.2rem;
}

.quote-col-client {
  width: 14.8rem;
}

.quote-col-date {
  width: 7.5rem;
}

.quote-col-total {
  width: 7.8rem;
}

.quote-col-status {
  width: 9rem;
}

.quote-col-sale {
  width: 4.5rem;
}

.quote-col-actions {
  width: 12.8rem;
}

.quote-list-table--redesign tr:hover {
  background: #f8fbff !important;
}

.quote-list-id-cell {
  white-space: nowrap;
}

.quote-id-stack {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.quote-id-stack .table-helper {
  font-size: 0.74rem;
  color: var(--muted);
}

.quote-customer-cell {
  display: flex;
  align-items: center;
  gap: 0.34rem;
}

.quote-customer-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  background: #eef2ff;
  color: #31538f;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.quote-customer-avatar.provider-table-logo {
  background: #fff;
  border: 1px solid #dbe5f7;
  border-radius: 7px;
  height: 1.55rem;
  overflow: hidden;
  width: 2rem;
}

.quote-customer-avatar.provider-table-logo img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.provider-table-logo-cell strong {
  max-width: 16rem;
}

.purchase-supplier-hero {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.42rem;
  margin-top: 0.25rem;
}

.inventory-provider-stat {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
}

.inventory-provider-stat img {
  background: #fff;
  border: 1px solid #dbe5f7;
  border-radius: 7px;
  height: 30px;
  object-fit: contain;
  width: 40px;
}

.quote-customer-cell span {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.quote-customer-cell strong {
  font-size: 0.78rem;
  font-weight: 700;
  max-width: 13rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-customer-meta {
  align-items: center;
  display: flex;
  gap: 0.28rem;
  margin-top: 0.12rem;
  min-width: 0;
}

.quote-type-chip {
  align-items: center;
  background: #eef2ff;
  border: 1px solid #d9e4ff;
  border-radius: 999px;
  color: #31538f;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 800;
  height: 1.12rem;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  min-width: 0;
  padding: 0 0.34rem;
  white-space: nowrap;
}

.quote-type-chip--brand {
  background: #e9f2ff;
  border-color: #c8d7ff;
  color: #1d4ed8;
  min-width: 0;
}

.quote-customer-cell .table-helper {
  font-size: 0.68rem;
  color: var(--muted);
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-list-total {
  font-weight: 800;
}

.quote-actions-heading {
  text-align: right;
}

.quote-status-stack {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.quote-status-stack .table-helper {
  color: #53627a;
  font-size: 0.7rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-list-actions-cell {
  vertical-align: middle;
}

.quote-visible-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.18rem;
  justify-content: flex-end;
}

.quote-visible-actions .compact-action {
  min-height: 1.55rem;
  height: 1.55rem;
  padding: 0 0.3rem;
  font-size: 0.7rem;
}

.quote-visible-actions .quote-row-action {
  border-radius: 5px;
  font-weight: 700;
}

.quote-visible-actions .quote-row-action--secondary {
  background: #fff;
  border-color: #d3dbea;
  color: #31538f;
}

.quote-visible-actions .quote-row-action--secondary:hover {
  background: #f8fbff;
  border-color: #aebce0;
}

.quote-visible-actions .quote-row-action--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.quote-visible-actions .quote-row-action--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.quote-list-icon {
  display: inline-block;
  flex: 0 0 auto;
  height: 0.9rem;
  width: 0.9rem;
}

.quote-create-button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  gap: 0.42rem;
  min-height: 34px;
  padding: 0.42rem 0.78rem;
}

.commercial-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.commercial-create-button {
  align-items: center;
  background: #2563eb;
  border-color: #2563eb;
  border-radius: 6px;
  box-shadow: none;
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.38rem;
  min-height: 34px;
  padding: 0.42rem 0.78rem;
  white-space: nowrap;
}

.commercial-create-button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.quote-create-button__icon {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  height: 1.05rem;
  justify-content: center;
  line-height: 1;
  width: 1.05rem;
}

.quote-table-head-label,
.quote-action-label,
.quote-badge-label {
  align-items: center;
  display: inline-flex;
  gap: 0.3rem;
  min-width: 0;
}

.quote-table-head-label {
  color: inherit;
  font-weight: inherit;
  justify-content: flex-start;
  white-space: nowrap;
}

.quote-actions-heading .quote-table-head-label {
  justify-content: flex-end;
  width: 100%;
}

.quote-action-label {
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.quote-badge-label {
  line-height: 1;
}

.quote-badge-label > span {
  background: currentColor;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 0.42rem;
  opacity: 0.7;
  width: 0.42rem;
}

.quote-summary-tabs-wrap {
  margin-bottom: 0.8rem;
}

.quote-summary-panel {
  display: grid;
  gap: 0.8rem;
}

.quote-summary-empty-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.quote-list-pagination {
  margin-top: 0.5rem !important;
  padding-top: 0.4rem !important;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.sales-list-redesign [class*="pageHeader"] {
  border-top: 3px solid var(--module-sale);
}

.sales-list-redesign .sales-list-workspace {
  border-top: 3px solid color-mix(in srgb, var(--module-sale) 70%, white);
  gap: 0.5rem !important;
  padding: 0.6rem 0.8rem !important;
}

.sales-list-redesign .quote-list-filterbar {
  gap: 0.4rem;
}

.sales-list-redesign .quote-search-control {
  flex-basis: 360px;
}

.sales-list-redesign .quote-list-filterbar select {
  min-width: 8.8rem;
}

.sales-list-redesign .quote-list-filterbar select[name="paymentStatus"] {
  min-width: 8.4rem;
}

.sales-list-redesign .quote-list-filterbar select[name="sourceType"] {
  min-width: 7.7rem;
}

.sales-create-button {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: none;
  white-space: nowrap;
}

.sales-list-redesign .sales-list-table--redesign {
  table-layout: fixed;
}

.sales-list-redesign .sales-list-table--redesign thead th {
  background: #f0fdf4 !important;
  border-bottom: 1px solid #bbf7d0;
  color: #14532d !important;
}

.sales-list-redesign .sales-list-table--redesign th,
.sales-list-redesign .sales-list-table--redesign td {
  padding: 0.38rem 0.52rem !important;
  font-size: 0.82rem !important;
  line-height: 1.28 !important;
}

.sales-list-redesign .sales-list-table--redesign thead th {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0;
}

.sales-list-redesign .sales-list-table--redesign tr:hover {
  background: #f7fef9 !important;
}

.sales-col-id {
  width: 14.5rem;
}

.sales-col-client {
  width: 15rem;
}

.sales-col-date {
  width: 7.6rem;
}

.sales-col-total {
  width: 8.3rem;
}

.sales-col-status {
  width: 9rem;
}

.sales-col-payment {
  width: 12rem;
}

.sales-col-actions {
  width: 13.2rem;
}

.sales-pending-page .sales-col-actions {
  width: 19rem;
}

.sales-pending-page .quote-visible-actions {
  flex-wrap: wrap;
  row-gap: 0.28rem;
}

.sales-document-cell {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  min-width: 0;
}

.sales-document-cell > span:last-child {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.sales-document-cell .table-link,
.sale-list-person strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-mini-tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  margin-top: 0.16rem;
  min-width: 0;
}

.sales-mini-tags [class*="companyChip"],
.sales-mini-tags [class*="statusBadge"] {
  font-size: 0.68rem;
  min-height: 1.1rem;
  padding: 0.16rem 0.38rem;
}

.sales-mini-tags .table-helper {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-list-redesign .sale-list-person {
  min-width: 0;
}

.sales-list-redesign .sale-status-cell {
  gap: 0.15rem;
  min-width: 0;
  vertical-align: middle;
}

.sales-list-redesign .sale-payment-dian-cell {
  display: table-cell;
  vertical-align: middle;
}

.sales-list-redesign .sale-status-cell > span,
.sales-list-redesign .dian-under-payment {
  width: fit-content;
}

.sales-list-redesign .sale-payment-dian-cell .table-helper,
.sales-list-redesign .sales-accounting-cell .table-helper {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.sales-list-redesign .sales-balance-due {
  color: #b91c1c;
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.sales-list-redesign .sales-payment-accounting {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
  margin-top: 0.08rem;
}

.sales-list-redesign .sale-list-total,
.sales-list-redesign .sale-list-total [class*="moneyCell"] {
  justify-items: end;
  text-align: right;
}

.sales-list-redesign .sale-list-total strong {
  font-weight: 800;
}

.sales-manual-form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sales-manual-company,
.sales-manual-mode {
  grid-column: 1 / -1;
}

.sales-manual-mode {
  background: #f8fbff;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  display: flex;
  gap: 0.3rem;
  padding: 0.25rem;
}

.sales-manual-mode button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #61708d;
  cursor: pointer;
  display: inline-flex;
  flex: 1 1;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  justify-content: center;
  min-height: 32px;
  padding: 0.25rem 0.6rem;
}

.sales-manual-mode button.is-active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
}

.sales-manual-search {
  display: grid;
  gap: 0.55rem;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
}

.sales-manual-location {
  display: grid;
  gap: 0.75rem;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sales-manual-search-field {
  min-width: 0;
}

.sales-manual-search > .primary-button {
  align-self: end;
}

.sales-selected-customer,
.sales-customer-results,
.sales-manual-empty {
  grid-column: 1 / -1;
}

.sales-selected-customer {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  display: grid;
  gap: 0.12rem 0.65rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.55rem 0.7rem;
}

.sales-selected-customer span {
  color: #4f6fe8;
  font-size: 0.64rem;
  font-weight: 800;
  grid-column: 1;
  text-transform: uppercase;
}

.sales-selected-customer strong,
.sales-selected-customer small {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-selected-customer button {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.sales-customer-results {
  display: grid;
  gap: 0.35rem;
  max-height: 220px;
  overflow: auto;
}

.sales-customer-results button {
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  color: #172033;
  cursor: pointer;
  display: grid;
  gap: 0.12rem;
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.sales-customer-results button.is-selected {
  border-color: #4e73df;
  box-shadow: inset 3px 0 0 #4e73df;
}

.sales-customer-results button strong,
.sales-customer-results button small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-customer-results button small,
.sales-manual-empty p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.sales-manual-empty {
  border: 1px dashed #bfd2ff;
  border-radius: 8px;
  padding: 0.7rem;
}

.sales-manual-empty strong,
.sales-manual-empty p {
  margin: 0;
}

.sales-manual-form label {
  display: grid;
  gap: 0.28rem;
  margin: 0;
}

.sales-manual-form label span {
  color: #4f6fe8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sales-manual-form input,
.sales-manual-form select,
.sales-manual-form textarea {
  border: 1px solid #d6deef;
  border-radius: 6px;
  color: #172033;
  font: inherit;
  min-height: 34px;
  padding: 0.42rem 0.55rem;
  width: 100%;
}

.sales-manual-form textarea {
  min-height: 76px;
  resize: vertical;
}

.sales-manual-notes,
.sales-manual-form .form-error {
  grid-column: 1 / -1;
}

.sales-manual-form .form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
  padding: 0.55rem 0.7rem;
}

/* Responsividad para pantallas de operadores pequeñas */
@media (max-width: 900px) {
  .quote-list-redesign .quote-list-filterbar {
    gap: 0.35rem;
  }
  
  .quote-list-redesign .quote-search-control {
    flex: 1 1 100%;
  }

  .quote-list-redesign select,
  .quote-list-redesign .compact-action {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(50% - 0.2rem);
    min-width: 0;
  }

  .quote-list-redesign .quote-list-count {
    flex: 1 1 100%;
    margin-left: 0;
    text-align: left;
    margin-top: 0.2rem;
  }
}

/* Piloto detalle de cotizacion: documento compacto, con acento del modulo y acciones visibles. */
.quote-detail-shell.quote-form-shell {
  --quote-module: #b91c1c;
  --quote-module-soft: #fff5f5;
  --quote-module-line: #f1c7c7;
}

.quote-detail-shell.quote-form-shell .detail-stack {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 330px);
}

.quote-detail-shell.quote-form-shell .quote-info-card {
  border: 1px solid var(--quote-module-line);
  border-top: 4px solid var(--quote-module);
  border-radius: 8px;
  grid-column: 1;
  padding: 0.58rem 0.68rem;
}

.quote-detail-shell.quote-form-shell .quote-info-card .quote-section-title {
  border-bottom: 0;
  gap: 0.6rem;
  padding-bottom: 0;
}

.quote-detail-shell.quote-form-shell .document-module-badge {
  background: var(--quote-module-soft);
  border: 1px solid var(--quote-module-line);
  color: var(--quote-module);
}

.quote-detail-shell.quote-form-shell .quote-section-title h3 {
  color: #1f2a44;
  font-size: 1.08rem;
  line-height: 1.1;
}

.quote-detail-shell.quote-form-shell .quote-title-meta {
  color: #637083;
  font-size: 0.78rem;
  margin-top: 0.12rem;
}

.quote-customer-summary {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dbe6f6;
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: auto minmax(190px, 1fr) minmax(140px, 0.65fr);
  margin-top: 0.5rem;
  padding: 0.52rem 0.6rem;
}

.quote-customer-avatar--detail {
  background: #eef2ff;
  border: 1px solid #cfdbff;
  color: #24406f;
  height: 2.45rem;
  width: 2.45rem;
}

.quote-customer-summary-main,
.quote-customer-summary-meta {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.quote-customer-summary-main strong {
  color: #1f2a44;
  font-size: 0.88rem;
}

.quote-customer-summary-main span,
.quote-customer-summary-meta span {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-client-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  color: #9a3412;
  display: block;
  font-size: 0.74rem;
  line-height: 1.25;
  margin-top: 0.22rem;
  max-width: 34rem;
  padding: 0.28rem 0.38rem;
}

.quote-client-note b {
  font-weight: 800;
}

.quote-client-edit-button {
  gap: 0.28rem;
  justify-self: start;
  margin-top: 0.28rem;
  min-height: 26px;
  padding: 0.18rem 0.52rem;
}

.quote-client-edit-button .quote-action-icon {
  height: 0.78rem;
  width: 0.78rem;
}

.quote-customer-summary-meta strong {
  color: #344054;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-detail-shell.quote-form-shell .quote-info-grid {
  background: #fff;
  border-top: 1px solid #edf2fb;
  gap: 0.22rem 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.45rem;
}

.quote-detail-shell.quote-form-shell .quote-info-grid > .field:nth-child(1) {
  grid-column: span 5;
}

.quote-detail-shell.quote-form-shell .quote-company-field {
  grid-column: span 7 !important;
}

.quote-detail-shell.quote-form-shell .quote-fact {
  grid-column: span 4;
}

.quote-detail-shell.quote-form-shell .quote-summary-band {
  align-content: start;
  align-items: stretch;
  background: linear-gradient(180deg, #172b4f 0%, #213f72 100%);
  border: 1px solid #15294f;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 43, 79, 0.14);
  display: grid;
  gap: 0.42rem;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.68rem;
  position: static;
}

.quote-detail-shell.quote-form-shell .quote-summary-band .eyebrow {
  grid-column: 1 / -1;
}

.quote-detail-shell.quote-form-shell .quote-summary-band .summary-row {
  border-color: rgba(255, 255, 255, 0.22);
  justify-items: end;
  min-width: 0;
}

.quote-detail-shell.quote-form-shell .quote-summary-band .summary-row.total {
  background: rgba(255, 255, 255, 0.95);
  border-color: #fff;
  grid-column: 1 / -1;
  order: -1;
  padding: 0.52rem 0.58rem;
}

.quote-detail-shell.quote-form-shell .quote-summary-band .summary-row.total span {
  color: #53627a;
}

.quote-detail-shell.quote-form-shell .quote-summary-band .summary-row.total strong {
  color: #111827;
  font-size: 1.68rem;
  letter-spacing: 0;
  line-height: 1.05;
}

.quote-summary-actions {
  display: grid;
  gap: 0.35rem;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  margin-top: 0.15rem;
}

.quote-summary-actions .secondary-button,
.quote-summary-actions .ghost-button,
.quote-summary-actions .primary-button {
  justify-content: center;
  min-height: 32px;
  width: 100%;
}

.quote-summary-actions .secondary-button,
.quote-summary-actions .ghost-button {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.82);
  color: #1f2a44;
}

.quote-summary-actions .primary-button {
  background: var(--quote-module);
  border-color: var(--quote-module);
  color: #fff;
}

.quote-detail-shell.quote-form-shell .quote-items-card,
.quote-detail-shell.quote-form-shell .quote-secondary-tabs,
.quote-detail-shell.quote-form-shell .quote-shipping-card,
.quote-detail-shell.quote-form-shell .quote-tracking-card {
  grid-column: 1 / -1;
}

.quote-detail-shell.quote-form-shell .quote-items-card {
  border: 1px solid #d9e3f2;
  border-radius: 8px;
  padding: 0.62rem;
}

.quote-detail-shell.quote-form-shell .quote-items-card .section-title-row {
  background: #f8faff;
  border-color: #dbe6f6;
  border-left: 4px solid var(--quote-module);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  padding: 0.48rem 0.58rem;
}

.quote-detail-shell.quote-form-shell .quote-form-actions {
  gap: 0.26rem;
}

.quote-detail-shell.quote-form-shell .quote-icon-button {
  border-radius: 6px;
  min-height: 29px;
  padding: 0.28rem 0.52rem;
}

.quote-detail-shell.quote-form-shell .quote-form-actions .secondary-button {
  background: #fff;
  border-color: #d3dbea;
  color: #31538f;
}

.quote-detail-shell.quote-form-shell .quote-form-actions .secondary-button:hover {
  background: #f8fbff;
  border-color: #aebce0;
}

.quote-detail-shell.quote-form-shell .quote-form-actions .quote-back-button {
  color: #64748b;
}

.quote-reopen-warning {
  align-items: center;
  border-left-color: #f59e0b;
}

.quote-shipping-item-form {
  align-items: end;
  background: #f8fbff;
  border: 1px solid #dbe6f6;
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.45fr) auto;
  margin: 0 0 0.55rem;
  padding: 0.58rem;
}

.quote-shipping-item-form .field {
  margin: 0;
}

.quote-shipping-item-actions {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

.quote-detail-shell.quote-form-shell .quote-shipping-draft-row {
  background: #f8fbff;
  box-shadow: inset 3px 0 0 #2f6fed;
}

.quote-detail-shell.quote-form-shell .quote-shipping-draft-row .cell-input,
.quote-detail-shell.quote-form-shell .quote-shipping-draft-row .cell-textarea {
  font-size: 0.76rem;
  min-height: 28px;
  padding: 0.2rem 0.34rem;
}

.quote-detail-shell.quote-form-shell .quote-shipping-line-description,
.quote-detail-shell.quote-form-shell .quote-shipping-line-price {
  width: 100%;
}

.quote-detail-shell.quote-form-shell .quote-shipping-draft-row .quote-row-actions .quote-table-action {
  min-width: 66px;
}

.quote-detail-shell.quote-form-shell .quote-add-channel-button {
  background: #224abe;
  border-color: #224abe;
}

.quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table .data-table {
  min-width: 1150px;
}

.quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table th {
  background: #526079;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0.34rem 0.4rem;
}

.quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table td {
  padding: 0.28rem 0.38rem;
}

.quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table th:nth-child(4),
.quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table th:nth-child(6),
.quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table th:nth-child(7),
.quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table th:nth-child(8),
.quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table td:nth-child(4),
.quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table td:nth-child(6),
.quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table td:nth-child(7),
.quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table td:nth-child(8) {
  text-align: right;
}

.quote-detail-shell.quote-form-shell .quote-qty-input,
.quote-detail-shell.quote-form-shell .quote-unit-price-cell,
.quote-detail-shell.quote-form-shell .quote-money-stack,
.quote-detail-shell.quote-form-shell .quote-summary-band .summary-row {
  text-align: right;
}

.quote-detail-shell.quote-form-shell .quote-qty-input {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.quote-detail-shell.quote-form-shell .quote-col-ref { width: 86px; }
.quote-detail-shell.quote-form-shell .quote-col-img { width: 44px; }
.quote-detail-shell.quote-form-shell .quote-col-desc { width: 330px; }
.quote-detail-shell.quote-form-shell .quote-col-qty { width: 72px; }
.quote-detail-shell.quote-form-shell .quote-col-components { width: 150px; }
.quote-detail-shell.quote-form-shell .quote-col-money { width: 104px; }
.quote-detail-shell.quote-form-shell .quote-col-tax { width: 82px; }
.quote-detail-shell.quote-form-shell .quote-col-actions { width: 86px; }
.quote-detail-shell.quote-form-shell .quote-col-notes { width: 220px; }

.quote-detail-shell.quote-form-shell .quote-secondary-tabs {
  background: transparent;
  gap: 0.3rem;
  margin-top: 0;
}

.quote-detail-shell.quote-form-shell .quote-secondary-tabs button {
  border-radius: 7px 7px 0 0;
  min-height: 30px;
}

.quote-detail-shell.quote-form-shell .quote-secondary-tabs button.active {
  background: #213f72;
  border-color: #213f72;
}

@media (max-width: 1180px) {
  .quote-detail-shell.quote-form-shell .detail-stack {
    grid-template-columns: 1fr;
  }

  .quote-detail-shell.quote-form-shell .quote-info-card,
  .quote-detail-shell.quote-form-shell .quote-summary-band {
    grid-column: 1;
    grid-row: auto;
  }

  .quote-detail-shell.quote-form-shell .quote-summary-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote-detail-shell.quote-form-shell .quote-summary-band .summary-row.total,
  .quote-summary-actions {
    grid-column: 1 / -1;
  }

  .quote-summary-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .quote-customer-summary {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .quote-customer-summary-meta {
    grid-column: 1 / -1;
  }

  .quote-detail-shell.quote-form-shell .quote-info-grid {
    grid-template-columns: 1fr;
  }

  .quote-detail-shell.quote-form-shell .quote-info-grid > .field,
  .quote-detail-shell.quote-form-shell .quote-company-field,
  .quote-detail-shell.quote-form-shell .quote-fact {
    grid-column: 1 / -1 !important;
  }

  .quote-detail-shell.quote-form-shell .quote-summary-band,
  .quote-summary-actions {
    grid-template-columns: 1fr;
  }
}

/* Ajuste cabecera documento: acercar detalle de cotizacion al mockup aprobado. */
.quote-detail-shell.quote-form-shell .detail-stack {
  align-items: start;
  gap: 0.48rem;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.quote-detail-shell.quote-form-shell .quote-info-card {
  align-self: start;
  border: 1px solid #cfd9ea;
  border-top: 3px solid var(--quote-module);
  overflow: hidden;
  padding: 0;
}

.quote-document-banner {
  align-items: center;
  background: #193a66;
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 34px;
  padding: 0.45rem 0.62rem;
}

.quote-document-banner div {
  align-items: baseline;
  display: flex;
  gap: 0.28rem;
}

.quote-document-banner span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
}

.quote-document-banner strong {
  color: #fff;
  font-size: 1.02rem;
  line-height: 1;
}

.quote-document-banner .status-pill {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #193a66;
  min-height: 22px;
  padding: 0.12rem 0.5rem;
}

.quote-document-body {
  display: grid;
  gap: 0;
  grid-template-columns: 280px minmax(0, 1fr);
}

.quote-document-body .quote-email-status {
  grid-column: 1 / -1;
  margin: 0.42rem 0.55rem 0;
}

.quote-detail-shell.quote-form-shell .quote-customer-summary {
  align-self: stretch;
  background: #f8fbff;
  border: 0;
  border-right: 1px solid #dce5f3;
  border-radius: 0;
  gap: 0.5rem;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
  min-height: 76px;
  padding: 0.6rem 0.65rem;
}

.quote-detail-shell.quote-form-shell .quote-customer-avatar--detail {
  height: 2.25rem;
  width: 2.25rem;
}

.quote-document-facts {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 76px;
}

.quote-document-facts .field,
.quote-document-facts .quote-fact {
  background: #fff;
  border: 0;
  border-right: 1px solid #e2e8f3;
  border-radius: 0;
  border-bottom: 1px solid #e2e8f3;
  display: grid;
  gap: 0.1rem;
  grid-column: auto !important;
  margin: 0;
  min-height: 38px;
  padding: 0.42rem 0.55rem;
}

.quote-document-facts .field:nth-child(3n),
.quote-document-facts .quote-fact:nth-child(3n) {
  border-right: 0;
}

.quote-document-facts .quote-company-field {
  grid-column: auto !important;
}

.quote-document-facts .field span,
.quote-document-facts .detail-label {
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.quote-document-facts .field input,
.quote-document-facts .field select {
  background: transparent;
  border: 0;
  border-left: 0;
  box-shadow: none;
  color: #1f2937;
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 21px;
  padding: 0;
}

.quote-document-facts .quote-company-current {
  display: none;
}

.quote-document-facts .quote-fact strong {
  color: #1f2937;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-note-input {
  min-height: 30px;
  resize: vertical;
  width: 100%;
}

.quote-row-actions {
  gap: 0.22rem;
}

.quote-row-actions .quote-table-action {
  min-width: 30px;
}

.quote-row-actions .quote-table-action-shipping {
  min-width: 48px;
}

.quote-delete-button {
  min-width: 24px;
}

.quote-detail-shell.quote-form-shell .quote-summary-band {
  align-self: start;
  gap: 0.35rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.58rem;
}

.quote-detail-shell.quote-form-shell .quote-summary-band .summary-row.total {
  align-items: center;
  display: grid;
  min-height: 58px;
  padding: 0.38rem 0.55rem;
}

.quote-detail-shell.quote-form-shell .quote-summary-band .summary-row.total strong {
  font-size: 1.55rem;
}

.quote-detail-shell.quote-form-shell .quote-summary-band .summary-row {
  padding: 0.34rem 0.48rem;
}

.quote-summary-actions {
  gap: 0.28rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-summary-actions .quote-icon-button {
  font-size: 0.68rem;
  gap: 0.2rem;
  min-height: 29px;
  padding: 0.22rem 0.28rem;
  white-space: nowrap;
}

.quote-summary-actions .quote-button-icon {
  height: 0.78rem;
  width: 0.78rem;
}

@media (max-width: 1180px) {
  .quote-detail-shell.quote-form-shell .detail-stack,
  .quote-document-body {
    grid-template-columns: 1fr;
  }

  .quote-detail-shell.quote-form-shell .quote-document-body .quote-email-status,
  .quote-detail-shell.quote-form-shell .quote-document-body:has(.quote-email-status) .quote-document-facts,
  .quote-detail-shell.quote-form-shell .quote-document-facts {
    grid-column: 1;
    grid-row: auto;
  }

  .quote-detail-shell.quote-form-shell .quote-document-body:has(.quote-email-status) .quote-customer-summary {
    grid-row: auto;
  }

  .quote-detail-shell.quote-form-shell .quote-customer-summary {
    border-right: 0;
    border-bottom: 1px solid #dce5f3;
  }
}

@media (max-width: 760px) {
  .quote-document-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-summary-actions {
    grid-template-columns: 1fr;
  }
}

.skeleton-line {
  animation: skeletonPulse 1.1s ease-in-out infinite;
  background: linear-gradient(90deg, #edf2fb 0%, #f8fbff 48%, #edf2fb 100%);
  border-radius: 6px;
  display: inline-block;
  height: 0.85rem;
  min-width: 4.5rem;
  width: 100%;
}

@keyframes skeletonPulse {
  0%,
  100% {
    opacity: 0.62;
  }

  50% {
    opacity: 1;
  }
}

/* Cotizaciones detail: operational density and final overrides. */
.quote-detail-shell.quote-form-shell .quote-document-facts .quote-company-field {
  grid-column: auto !important;
}

.quote-detail-shell.quote-form-shell .quote-document-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quote-detail-shell.quote-form-shell .quote-document-facts .field,
.quote-detail-shell.quote-form-shell .quote-document-facts .quote-fact {
  min-width: 0;
  min-height: 34px;
  padding: 0.34rem 0.5rem;
}

.quote-detail-shell.quote-form-shell .quote-document-facts .field span,
.quote-detail-shell.quote-form-shell .quote-document-facts .detail-label {
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-detail-shell.quote-form-shell .quote-document-facts .field select,
.quote-detail-shell.quote-form-shell .quote-document-facts .field input,
.quote-detail-shell.quote-form-shell .quote-document-facts .quote-fact strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-detail-shell.quote-form-shell .quote-summary-band {
  gap: 0.3rem;
}

.quote-detail-shell.quote-form-shell .quote-summary-band .summary-row {
  align-content: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
  padding: 0.3rem 0.48rem;
  text-align: right;
}

.quote-detail-shell.quote-form-shell .quote-summary-band .summary-row span,
.quote-detail-shell.quote-form-shell .quote-summary-band .summary-row strong {
  display: block;
  text-align: right;
  width: 100%;
}

.quote-detail-shell.quote-form-shell .quote-summary-band .summary-row.total {
  justify-items: end;
  min-height: 54px;
  place-items: center end;
  text-align: right;
}

.quote-detail-shell.quote-form-shell .quote-summary-band .summary-row.total strong {
  font-size: 1.48rem;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table .data-table {
  min-width: 1080px;
}

.quote-detail-shell.quote-form-shell .quote-col-ref { width: 82px; }
.quote-detail-shell.quote-form-shell .quote-col-img { width: 42px; }
.quote-detail-shell.quote-form-shell .quote-col-desc { width: 310px; }
.quote-detail-shell.quote-form-shell .quote-col-qty { width: 70px; }
.quote-detail-shell.quote-form-shell .quote-col-components { width: 135px; }
.quote-detail-shell.quote-form-shell .quote-col-money { width: 96px; }
.quote-detail-shell.quote-form-shell .quote-col-tax { width: 78px; }
.quote-detail-shell.quote-form-shell .quote-col-actions { width: 170px; }
.quote-detail-shell.quote-form-shell .quote-col-notes { width: 300px; }

.quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table td {
  vertical-align: middle;
}

.quote-detail-shell.quote-form-shell .quote-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.18rem;
  justify-content: flex-end;
}

.quote-detail-shell.quote-form-shell .quote-row-actions .quote-table-action,
.quote-detail-shell.quote-form-shell .quote-delete-button {
  height: 30px;
  min-height: 30px;
  white-space: nowrap;
}

.quote-detail-shell.quote-form-shell .quote-row-actions .quote-table-action {
  min-width: 30px;
  padding-inline: 0.34rem;
}

.quote-detail-shell.quote-form-shell .quote-row-actions .quote-table-action-shipping {
  min-width: 50px;
}

.quote-detail-shell.quote-form-shell .quote-delete-button {
  border-radius: 6px;
  min-width: 82px;
  padding-inline: 0.46rem;
}

.quote-detail-shell.quote-form-shell .quote-note-input {
  display: block;
  min-height: 54px;
  resize: vertical;
  width: 100%;
}

.quote-detail-shell.quote-form-shell .quote-document-facts {
  grid-column: 2;
}

.quote-detail-shell.quote-form-shell .quote-document-body .quote-email-status {
  align-content: center;
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  border-top: 0;
  display: grid;
  gap: 0.08rem 0.45rem;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
  min-height: 38px;
  padding: 0.34rem 0.55rem;
}

.quote-detail-shell.quote-form-shell .quote-document-body:has(.quote-email-status) .quote-customer-summary {
  grid-row: 1 / span 2;
}

.quote-detail-shell.quote-form-shell .quote-document-body:has(.quote-email-status) .quote-document-facts {
  grid-column: 2;
  grid-row: 2;
}

.quote-detail-shell.quote-form-shell .quote-document-body .quote-email-status strong,
.quote-detail-shell.quote-form-shell .quote-document-body .quote-email-status span,
.quote-detail-shell.quote-form-shell .quote-document-body .quote-email-status small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-detail-shell.quote-form-shell .quote-document-body .quote-email-status small {
  grid-column: 1 / -1;
  font-size: 0.68rem;
}

.quote-converted-warning {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  border-radius: 8px;
  color: #7c2d12;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: space-between;
  order: 2;
  padding: 0.55rem 0.7rem;
}

.quote-converted-warning strong {
  color: #9a3412;
  font-size: 0.82rem;
}

.quote-converted-warning span {
  flex: 1 1 420px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.quote-tracking-card--standard {
  display: grid;
  gap: 0.65rem;
}

.quote-tracking-card--standard .quote-tracking-summary {
  margin-bottom: 0;
}

.quote-tracking-card--standard .form-card {
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  box-shadow: none;
  margin: 0;
  padding: 0.65rem;
}

.quote-tracking-card--standard .quote-tracking-actions {
  background: #f7faff;
  border: 1px solid #dce7f7;
  border-radius: 8px;
  margin: 0;
  padding: 0.45rem;
}

.quote-tracking-card--standard .quote-tracking-actions button {
  border-radius: 7px;
  font-size: 0.74rem;
}

.quote-detail-shell.quote-form-shell .quote-unit-price-cell,
.quote-detail-shell.quote-form-shell .quote-money-stack,
.quote-detail-shell.quote-form-shell .quote-money-stack span,
.quote-detail-shell.quote-form-shell .quote-money-stack strong {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.quote-product-modal,
.quote-client-modal,
.quote-conditions-modal,
.quote-email-modal,
.quote-sale-selection-modal,
.quote-calculation-modal {
  border-radius: 8px;
  max-height: calc(100vh - 1rem);
  overflow: hidden;
  padding: 0;
}

.quote-product-modal-head,
.quote-client-modal .modal-head,
.quote-conditions-modal .modal-head,
.quote-email-modal .modal-head,
.quote-sale-selection-modal .modal-head,
.quote-calculation-modal .modal-head {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 0;
  padding: 0.5rem 0.7rem;
}

.quote-product-modal-head .eyebrow,
.quote-client-modal .modal-head .eyebrow,
.quote-conditions-modal .modal-head .eyebrow,
.quote-email-modal .modal-head .eyebrow,
.quote-sale-selection-modal .modal-head .eyebrow,
.quote-calculation-modal .modal-head .eyebrow {
  font-size: 0.66rem;
  margin: 0 0 0.1rem;
}

.quote-product-modal-head h2,
.quote-client-modal .modal-head h2,
.quote-conditions-modal .modal-head h2,
.quote-email-modal .modal-head h2,
.quote-sale-selection-modal .modal-head h3,
.quote-calculation-modal .modal-head h3 {
  font-size: 1.05rem;
  line-height: 1.15;
  margin: 0;
}

.quote-product-modal-head p:not(.eyebrow),
.quote-client-modal .modal-head p,
.quote-conditions-modal .modal-head p,
.quote-email-modal .modal-head p,
.quote-sale-selection-modal .modal-head p,
.quote-calculation-modal .modal-head p:not(.eyebrow) {
  font-size: 0.78rem;
  line-height: 1.25;
  margin: 0.1rem 0 0;
  max-width: 720px;
}

.quote-product-modal-head .quote-icon-button,
.quote-client-modal .modal-head .quote-icon-button,
.quote-conditions-modal .modal-head .quote-icon-button,
.quote-email-modal .modal-head .quote-icon-button,
.quote-sale-selection-modal .modal-head .quote-icon-button,
.quote-calculation-modal .modal-head .quote-icon-button {
  min-height: 30px;
  white-space: nowrap;
}

.quote-product-search {
  gap: 0.55rem;
  max-height: calc(100vh - 5.1rem);
  padding: 0.58rem 0.72rem 0.72rem;
}

.quote-product-search-top {
  gap: 0.42rem;
  grid-template-columns: minmax(280px, 1.45fr) minmax(180px, 0.7fr) 88px auto;
}

.quote-product-search-top .field span,
.quote-product-filters .field span,
.quote-client-form .field span,
.quote-client-form label span {
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}

.quote-product-modal .field input,
.quote-product-modal .field select,
.quote-client-modal input,
.quote-client-modal select,
.quote-client-modal textarea {
  font-size: 0.82rem;
  min-height: 28px;
  min-width: 0;
  padding: 0.25rem 0.42rem;
}

.quote-qty-field small {
  display: none;
}

.quote-product-modal-layout {
  gap: 0.6rem;
  grid-template-columns: 205px minmax(0, 1fr);
}

.quote-product-filters {
  gap: 0.42rem;
  max-height: calc(100vh - 9.2rem);
  padding: 0.55rem;
}

.quote-product-service-box {
  gap: 0.38rem;
  padding-top: 0.48rem;
}

.filter-toggle {
  min-height: 32px;
  padding: 0.38rem 0.48rem;
}

.quote-product-results {
  gap: 0.42rem;
}

.quote-product-results-head {
  min-height: 24px;
}

.quote-product-grid {
  gap: 0.5rem;
  max-height: calc(100vh - 10.2rem);
  padding-right: 0.18rem;
}

.quote-product-card {
  align-items: center;
  gap: 0.65rem;
  grid-template-columns: 52px minmax(0, 1fr) 176px;
  min-height: 72px;
  padding: 0.42rem 0.56rem;
}

.quote-product-thumb {
  border-radius: 6px;
  height: 48px;
  width: 48px;
}

.quote-product-thumb img {
  height: 44px;
  width: 44px;
}

.quote-product-card-body {
  align-items: center;
  column-gap: 0.7rem;
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(145px, 0.58fr) minmax(205px, 0.82fr);
  row-gap: 0.16rem;
}

.quote-product-card-title {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-width: 0;
}

.quote-product-card-title span {
  font-size: 0.68rem;
}

.quote-product-card-title h3 {
  font-size: 0.9rem;
  line-height: 1.2;
  margin: 0.02rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-product-card-title p,
.quote-product-supplier,
.quote-product-links a,
.quote-product-price small,
.quote-product-price span {
  font-size: 0.7rem;
  line-height: 1.2;
}

.quote-product-card-title p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-product-supplier {
  align-items: center;
  display: flex;
  gap: 0.28rem;
  grid-column: 2;
  min-width: 0;
}

.quote-product-supplier span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-product-supplier a {
  flex: 0 0 auto;
}

.quote-product-links,
.quote-product-badges {
  gap: 0.28rem;
}

.quote-product-links {
  grid-column: 2;
  min-width: 0;
}

.quote-product-links a {
  align-items: center;
  background: #fff;
  border: 1px solid #c8d7ff;
  border-radius: 999px;
  color: #31538f;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  min-height: 22px;
  padding: 0.08rem 0.42rem;
  text-decoration: none;
  white-space: nowrap;
}

.quote-product-links a:hover {
  background: #f8fbff;
  border-color: #9eb5ff;
  text-decoration: none;
}

.quote-product-badges {
  align-content: center;
  grid-column: 3;
  grid-row: 1 / span 2;
  max-height: 50px;
  min-width: 0;
  overflow: hidden;
}

.quote-product-badges span {
  font-size: 0.66rem;
  max-width: 170px;
  overflow: hidden;
  padding: 0.14rem 0.38rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-product-price {
  align-self: center;
  column-gap: 0.34rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  grid-template-rows: auto auto auto;
  justify-items: end;
  min-width: 0;
  text-align: right;
}

.quote-product-price small,
.quote-product-price strong,
.quote-product-price span {
  grid-column: 1;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
}

.quote-product-price strong {
  font-size: 0.98rem;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.quote-product-add-button {
  font-size: 1.05rem;
  grid-column: 2;
  grid-row: 1 / 4;
  height: 34px;
  margin-top: 0;
  width: 34px;
}

.quote-product-warning {
  grid-column: 1 / -1;
  margin-top: 0.08rem;
}

.quote-client-modal {
  width: min(1180px, calc(100vw - 1rem));
}

.quote-client-form {
  max-height: calc(100vh - 5rem);
  overflow: auto;
  padding: 0.58rem 0.7rem 0.7rem;
}

.quote-client-section,
.quote-client-address-grid .quote-client-section,
.quote-client-switcher {
  border-radius: 8px;
  padding: 0.5rem 0.58rem;
}

.quote-client-section-head {
  margin-bottom: 0.32rem;
}

.quote-client-section-head h3 {
  font-size: 0.88rem;
}

.quote-client-form .form-grid {
  gap: 0.4rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quote-client-section > .form-grid > .field:first-child {
  grid-column: span 1;
}

.quote-client-address-grid {
  gap: 0.5rem;
}

.quote-client-address-grid .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-client-address-grid .detail-span {
  grid-column: 1 / -1;
}

.quote-client-switcher .filter-bar {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: minmax(240px, 1fr) auto auto;
}

.quote-conditions-modal {
  width: min(760px, calc(100vw - 1rem));
}

.quote-conditions-modal .form-card {
  max-height: calc(100vh - 5rem);
  overflow: auto;
  padding: 0.7rem;
}

.quote-conditions-modal textarea {
  min-height: 190px;
}

.quote-email-modal {
  width: min(860px, calc(100vw - 1rem));
}

.quote-email-form {
  gap: 0.62rem;
  max-height: calc(100vh - 5rem);
  overflow: auto;
  padding: 0.62rem 0.7rem 0.7rem;
}

.quote-email-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
}

.quote-email-modal .field {
  gap: 0.28rem;
}

.quote-email-modal .field span,
.quote-email-modal .field small {
  font-size: 0.7rem;
}

.quote-email-modal input,
.quote-email-modal textarea {
  font-size: 0.82rem;
  min-height: 30px;
  padding: 0.34rem 0.46rem;
}

.quote-email-modal textarea {
  min-height: 210px;
}

.quote-email-modal .detail-actions {
  background: #f8fbff;
  border-top: 1px solid var(--line);
  gap: 0.42rem;
  justify-content: flex-end;
  margin: 0.1rem -0.7rem -0.7rem;
  padding: 0.5rem 0.7rem;
}

.quote-email-modal .quote-access-link-box {
  border-radius: 8px;
  gap: 0.45rem;
  grid-template-columns: minmax(150px, 0.85fr) minmax(220px, 1.25fr) auto;
  margin-top: 0;
  padding: 0.5rem;
}

.quote-email-modal .quote-email-status {
  margin-top: 0;
  padding: 0.46rem 0.58rem;
}

.quote-sale-selection-modal {
  width: min(900px, calc(100vw - 1rem));
}

.quote-sale-selection-modal .quote-sale-selection-summary {
  border-radius: 8px;
  margin: 0.58rem 0.7rem 0;
  padding: 0.45rem;
}

.quote-sale-selection-modal .quote-sale-selection-table {
  margin: 0.5rem 0.7rem 0;
  max-height: calc(100vh - 12rem);
}

.quote-sale-selection-modal .quote-sale-selection-table th,
.quote-sale-selection-modal .quote-sale-selection-table td {
  font-size: 0.78rem;
  padding: 0.38rem 0.45rem;
}

.quote-sale-selection-modal .quote-sale-selection-table th:nth-child(4),
.quote-sale-selection-modal .quote-sale-selection-table td:nth-child(4),
.quote-sale-selection-modal .quote-sale-selection-table th:nth-child(5),
.quote-sale-selection-modal .quote-sale-selection-table td:nth-child(5) {
  text-align: right;
}

.quote-sale-selection-modal .modal-actions {
  background: #f8fbff;
  border-top: 1px solid var(--line);
  margin: 0.6rem 0 0;
  padding: 0.5rem 0.7rem;
}

.quote-calculation-modal {
  gap: 0;
  grid-template-columns: 1fr;
  max-height: calc(100vh - 1rem);
  width: min(1120px, calc(100vw - 1rem));
}

.quote-calculation-modal .modal-head {
  grid-column: 1;
}

.quote-calculation-tabs--top {
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
  gap: 0.38rem;
  margin: 0;
  padding: 0.48rem 0.7rem;
}

.quote-calculation-tabs button {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  gap: 0.32rem;
  min-height: 30px;
  padding: 0.3rem 0.62rem;
}

.quote-calculation-tabs button .quote-button-icon,
.quote-calculation-tabs button .quote-action-icon {
  height: 0.88rem;
  width: 0.88rem;
}

.quote-calculation-tab-content {
  max-height: calc(100vh - 8.5rem);
  overflow: auto;
  padding: 0.58rem 0.7rem 0.7rem;
}

.quote-calculation-tab-content--price {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.quote-calculation-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 0.5rem;
}

.quote-calculation-section-head {
  align-items: flex-start;
  margin-bottom: 0.42rem;
}

.quote-calculation-section-head h4 {
  font-size: 0.9rem;
}

.quote-calculation-section-head p {
  font-size: 0.72rem;
}

.quote-calculation-simulator {
  grid-template-columns: minmax(170px, 1fr) auto auto;
}

@media (max-width: 1180px) {
  .quote-detail-shell.quote-form-shell .quote-document-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-product-search-top,
  .quote-product-modal-layout,
  .quote-product-card,
  .quote-client-address-grid,
  .quote-client-switcher .filter-bar {
    grid-template-columns: 1fr;
  }

  .quote-product-price {
    justify-items: end;
    text-align: right;
  }
}

@media (max-width: 760px) {
  .quote-email-grid,
  .quote-email-modal .quote-access-link-box,
  .quote-calculation-tab-content--price,
  .quote-calculation-simulator {
    grid-template-columns: 1fr;
  }

  .quote-calculation-tab-content {
    max-height: calc(100vh - 10rem);
  }

  .quote-client-form .form-grid,
  .quote-client-address-grid .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Ventas detail: same document pattern as cotizaciones, with green module accent. */
.sale-detail-redesign {
  --quote-module: #15803d;
  --quote-module-soft: #f0fdf4;
  --quote-module-line: #bbf7d0;
}

.sale-detail-redesign .quote-info-card {
  border-color: var(--quote-module-line);
}

.sale-detail-redesign .quote-document-banner {
  background: #123b2a;
}

.sale-detail-redesign .quote-document-banner .status-pill {
  color: #123b2a;
}

.sale-detail-redesign .quote-document-body {
  grid-template-columns: 340px minmax(0, 1fr);
}

.sale-detail-redesign .sale-customer-summary {
  grid-template-columns: auto minmax(0, 1fr);
}

.sale-detail-redesign .quote-customer-summary-meta {
  border-top: 1px solid #dce5f3;
  grid-column: 2;
  padding-top: 0.35rem;
}

.sale-detail-redesign .quote-customer-summary-meta strong {
  color: #123b2a;
  font-size: 0.92rem;
  font-weight: 800;
}

.sale-detail-redesign .quote-document-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-document-facts .sale-document-fact {
  background: #fff;
  border: 0;
  border-right: 1px solid #e2e8f3;
  border-bottom: 1px solid #e2e8f3;
  display: grid;
  gap: 0.1rem;
  min-height: 38px;
  padding: 0.42rem 0.55rem;
}

.quote-document-facts .sale-document-fact:nth-child(3n) {
  border-right: 0;
}

.quote-document-facts .sale-document-fact span {
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.quote-document-facts .sale-document-fact strong {
  color: #1f2937;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-document-facts .sale-document-fact small {
  color: #7280a0;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sale-detail-redesign .quote-summary-band {
  background: linear-gradient(180deg, #123b2a 0%, #1e5a3f 100%);
  border-color: #123b2a;
}

.sale-detail-redesign .sale-summary-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sale-detail-redesign .sale-summary-band .summary-row small {
  color: rgba(255, 255, 255, 0.74);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: right;
  width: 100%;
}

.sale-detail-redesign .sale-summary-band .summary-row-danger strong,
.sale-detail-redesign .sale-balance-danger {
  color: #dc2626;
}

.sale-detail-redesign .sale-summary-band .summary-row-danger {
  background: #fff1f2;
  border-color: #fecdd3;
}

.sale-detail-redesign .sale-summary-actions {
  grid-template-columns: 1fr;
}

.sale-detail-redesign .quote-secondary-tabs {
  align-items: flex-end;
  border-bottom: 1px solid #d9e3f2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  grid-column: 1 / -1;
  margin: 0.08rem 0 -0.02rem;
}

.sale-detail-redesign .quote-secondary-tabs button {
  align-items: center;
  background: #fff;
  border: 1px solid #d3dbea;
  border-bottom-color: #d9e3f2;
  border-radius: 7px 7px 0 0;
  color: #31538f;
  display: inline-flex;
  gap: 0.24rem;
  min-height: 31px;
  padding: 0.28rem 0.62rem;
}

.sale-detail-redesign .quote-secondary-tabs button.active {
  background: #123b2a;
  border-color: #123b2a;
  color: #fff;
}

.sale-detail-redesign .sale-tab-command {
  background: #fff;
  border-color: #cfd9ea;
  color: #31538f;
  min-height: 30px;
}

.sale-detail-redesign .sale-tab-command:hover {
  background: #f8fbff;
  border-color: #9eb5ff;
}

.sale-detail-redesign .sale-tab-card {
  border: 1px solid #d9e3f2;
  border-left: 4px solid var(--quote-module);
  border-radius: 8px;
  grid-column: 1 / -1;
  padding: 0.62rem;
}

.sale-detail-redesign .sale-tab-card .quote-section-title {
  background: #f8fdf9;
  border: 1px solid var(--quote-module-line);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  padding: 0.48rem 0.58rem;
}

.sale-detail-redesign .sale-fiscal-summary {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.6rem;
}

.sale-detail-redesign .sale-fiscal-summary .sale-fact {
  align-content: center;
  background: #fbfcff;
  border: 1px solid #d9e3f2;
  border-radius: 7px;
  grid-column: auto !important;
  grid-template-rows: auto auto auto;
  min-height: 68px;
  padding: 0.5rem 0.62rem;
}

.sale-detail-redesign .sale-fiscal-summary .sale-fact strong {
  font-size: 0.88rem;
  min-height: 0;
}

.sale-detail-redesign .sale-fiscal-summary .sale-fiscal-reported {
  background: #fffbeb;
  border-color: #f5d88b;
}

.sale-detail-redesign .sale-fiscal-summary .sale-fiscal-reported strong {
  color: #9a5b07;
}

.sale-detail-redesign .sale-manual-fiscal-form {
  border-top: 1px solid #dce5f3;
  display: grid;
  gap: 0.62rem;
  margin-top: 0.15rem;
  padding-top: 0.62rem;
}

.sale-detail-redesign .sale-manual-fiscal-form > .quote-section-title {
  margin-bottom: 0;
}

.sale-detail-redesign .sale-fiscal-band {
  border-bottom: 1px solid #e4eaf3;
  display: grid;
  gap: 0.48rem;
  padding: 0 0 0.62rem;
}

.sale-detail-redesign .sale-fiscal-band-title {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.sale-detail-redesign .sale-fiscal-band-title > span {
  align-items: center;
  background: #e7eef8;
  border-radius: 50%;
  color: #334155;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.sale-detail-redesign .sale-fiscal-band-title small {
  color: #64748b;
  margin-left: auto;
}

.sale-detail-redesign .sale-manual-document-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 150px 90px 120px 145px minmax(210px, 1fr);
}

.sale-detail-redesign .sale-fiscal-parties-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
}

.sale-detail-redesign .sale-manual-fiscal-form label,
.sale-detail-redesign .sale-fiscal-receiver-search {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.sale-detail-redesign .sale-manual-fiscal-form label > span {
  color: #596579;
  font-size: 0.72rem;
  font-weight: 700;
}

.sale-detail-redesign .sale-manual-fiscal-form input,
.sale-detail-redesign .sale-manual-fiscal-form select {
  background: #fff;
  border: 1px solid #cbd8eb;
  border-radius: 6px;
  color: var(--heading);
  min-height: 36px;
  min-width: 0;
  padding: 0.4rem 0.55rem;
  width: 100%;
}

.sale-detail-redesign .sale-manual-fiscal-form label > small,
.sale-detail-redesign .sale-fiscal-receiver-search > small {
  color: #64748b;
  font-size: 0.7rem;
}

.sale-detail-redesign .sale-fiscal-cufe-field {
  grid-column: span 2;
}

.sale-detail-redesign .sale-fiscal-header-totals {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  grid-column: span 3;
  justify-content: flex-end;
}

.sale-detail-redesign .sale-fiscal-header-totals span {
  color: #64748b;
  font-size: 0.72rem;
}

.sale-detail-redesign .sale-fiscal-header-totals strong {
  color: #172033;
  display: block;
  font-size: 0.85rem;
}

.sale-detail-redesign .sale-fiscal-receiver-search {
  position: relative;
}

.sale-detail-redesign .sale-fiscal-party-results {
  background: #fff;
  border: 1px solid #cbd8eb;
  box-shadow: 0 8px 18px rgb(15 23 42 / 12%);
  display: grid;
  left: 0;
  max-height: 180px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 58px;
  z-index: 5;
}

.sale-detail-redesign .sale-fiscal-party-results button {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e5eaf2;
  display: grid;
  padding: 0.42rem 0.55rem;
  text-align: left;
}

.sale-detail-redesign .sale-fiscal-party-results button:hover {
  background: #f3f7fc;
}

.sale-detail-redesign .sale-fiscal-party-warning {
  align-items: end;
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
  padding: 0.45rem 0.55rem;
}

.sale-detail-redesign .sale-fiscal-party-warning.is-required {
  background: #fffbeb;
  border-left-color: #d99a21;
}

.sale-detail-redesign .sale-fiscal-party-warning > span,
.sale-detail-redesign .sale-fiscal-validation {
  color: #64748b;
  font-size: 0.74rem;
}

.sale-detail-redesign .sale-fiscal-party-warning.is-required > span,
.sale-detail-redesign .sale-fiscal-validation {
  color: #8a570d;
}

.sale-detail-redesign .sale-fiscal-lines-scroll {
  max-height: 310px;
  overflow: auto;
}

.sale-detail-redesign .sale-fiscal-lines-table {
  min-width: 980px;
}

.sale-detail-redesign .sale-fiscal-lines-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.sale-detail-redesign .sale-fiscal-lines-table td {
  padding: 0.32rem 0.38rem;
}

.sale-detail-redesign .sale-fiscal-lines-table td:nth-child(n + 3) {
  text-align: right;
}

.sale-detail-redesign .sale-fiscal-lines-table td strong,
.sale-detail-redesign .sale-fiscal-lines-table td small {
  display: block;
}

.sale-detail-redesign .sale-fiscal-lines-table input[type="number"] {
  min-height: 32px;
  text-align: right;
  width: 105px;
}

.sale-detail-redesign .sale-fiscal-lines-table tr.is-selected {
  background: #f8fbff;
}

.sale-detail-redesign .sale-manual-fiscal-form .quote-form-actions {
  border-top: 1px solid #e4eaf3;
  gap: 0.4rem;
  margin-top: 0;
  padding-top: 0.55rem;
}

.sale-detail-redesign .sale-manual-fiscal-form .quote-form-actions > span:first-child {
  margin-right: auto;
}

.sale-detail-redesign .sale-payment-list--tab {
  display: grid;
  gap: 0;
}

.sale-detail-redesign .sale-payment-list--tab article {
  align-items: center;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(0, 1fr) 170px;
}

.sale-detail-redesign .sale-fiscal-document-list .sale-tab-empty {
  min-height: 0;
  padding: 0.72rem;
}

.sale-detail-redesign .sale-money-right,
.sale-detail-redesign .sale-detail-table td:nth-child(5),
.sale-detail-redesign .sale-detail-table td:nth-child(6) {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.sale-detail-redesign .sale-tab-empty {
  border: 1px dashed #b7c8ea;
  border-radius: 8px;
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem;
}

.sale-detail-redesign .sale-items-editor .section-title-row {
  background: #f8fdf9;
  border-color: var(--quote-module-line);
  border-left-color: var(--quote-module);
}

.sale-detail-redesign .sale-items-editor .quote-form-actions {
  justify-content: flex-end;
}

.purchase-detail-redesign {
  --quote-module: var(--module-purchase);
  --quote-module-soft: var(--module-purchase-soft);
  --quote-module-line: var(--module-purchase-line);
}

.purchase-detail-redesign .quote-document-banner {
  background: #9a3412;
}

.purchase-detail-redesign .quote-document-banner .status-pill {
  color: #9a3412;
}

.purchase-detail-redesign .quote-info-card,
.purchase-detail-redesign .sale-tab-card,
.purchase-detail-redesign .sale-tab-card .quote-section-title {
  border-color: var(--module-purchase-line);
}

.purchase-detail-redesign .quote-summary-band,
.purchase-detail-redesign .purchase-summary-band {
  background: linear-gradient(180deg, #7c2d12 0%, #c2410c 100%);
  border-color: #9a3412;
}

.purchase-detail-redesign .purchase-summary-band .sale-side-row {
  border-bottom-color: rgba(255, 255, 255, 0.18);
  grid-template-columns: 82px minmax(0, 1fr);
  padding: 0.34rem 0;
}

.purchase-detail-redesign .purchase-summary-band .sale-side-row span,
.purchase-detail-redesign .purchase-summary-band .sale-side-row small {
  color: rgba(255, 255, 255, 0.74);
}

.purchase-detail-redesign .purchase-summary-band .sale-side-row strong {
  color: #fff;
  font-size: 0.82rem;
  text-align: right;
}

.purchase-detail-redesign .quote-secondary-tabs button.active {
  background: #9a3412;
  border-color: #9a3412;
  color: #fff;
}

.purchase-detail-redesign .sale-tab-card .quote-section-title,
.purchase-detail-redesign .sale-items-editor .section-title-row {
  background: #fff7ed;
}

.purchase-detail-redesign .purchase-money-cell,
.purchase-detail-redesign .purchase-number-cell,
.purchase-detail-redesign .purchase-lines-table td:nth-child(n + 4),
.purchase-detail-redesign .purchase-lines-table th:nth-child(n + 4) {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.purchase-detail-redesign .purchase-lines-table td:nth-child(2),
.purchase-detail-redesign .purchase-lines-table th:nth-child(2),
.purchase-detail-redesign .purchase-lines-table td:nth-child(3),
.purchase-detail-redesign .purchase-lines-table th:nth-child(3) {
  text-align: left;
}

.purchase-detail-redesign .purchase-detail-fiscal-grid {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.5rem;
}

.purchase-detail-redesign .purchase-document-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.purchase-detail-redesign .purchase-dian-pdf-button {
  margin-top: 0;
  width: auto;
}

.purchase-detail-redesign .purchase-supplier-summary .table-link {
  font-size: 0.75rem;
  font-weight: 800;
}

.purchase-detail-redesign .purchase-actions-bar {
  justify-content: flex-end;
}

.purchase-detail-redesign .purchase-tab-card {
  grid-column: 1 / -1;
  grid-row: 3;
  min-height: 0;
}

.purchase-detail-redesign .quote-info-card {
  grid-column: 1;
  grid-row: 1;
}

.purchase-detail-redesign .purchase-summary-band {
  grid-column: 2;
  grid-row: 1;
}

.purchase-detail-redesign .purchase-secondary-tabs {
  grid-column: 1 / -1;
  grid-row: 2;
  order: 2;
}

.purchase-detail-redesign .purchase-inline-price {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  text-align: right;
  width: 94px;
}

.purchase-detail-redesign .purchase-money-stack {
  min-width: 112px;
}

@media (max-width: 1180px) {
  .sale-detail-redesign .quote-document-body,
  .sale-detail-redesign .sale-customer-summary,
  .sale-detail-redesign .quote-document-facts,
  .purchase-detail-redesign .purchase-detail-fiscal-grid {
    grid-template-columns: 1fr;
  }

  .sale-detail-redesign .sale-fiscal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sale-detail-redesign .sale-manual-document-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sale-detail-redesign .sale-fiscal-cufe-field,
  .sale-detail-redesign .sale-fiscal-header-totals {
    grid-column: span 2;
  }

  .sale-detail-redesign .quote-customer-summary-meta {
    border-top: 1px solid #dce5f3;
    grid-column: auto;
    padding-top: 0.42rem;
  }
}

@media (max-width: 760px) {
  .sale-detail-redesign .sale-summary-actions,
  .sale-detail-redesign .sale-payment-list--tab article {
    grid-template-columns: 1fr;
  }

  .sale-detail-redesign .sale-fiscal-summary,
  .sale-detail-redesign .sale-manual-document-grid,
  .sale-detail-redesign .sale-fiscal-parties-grid,
  .sale-detail-redesign .sale-fiscal-party-warning {
    grid-template-columns: 1fr;
  }

  .sale-detail-redesign .sale-fiscal-cufe-field,
  .sale-detail-redesign .sale-fiscal-header-totals {
    grid-column: auto;
  }

  .sale-detail-redesign .sale-fiscal-header-totals {
    justify-content: space-between;
  }
}

/* Final modal overrides for ventas; placed late to win older shared modal rules. */
.sale-edit-modal.sale-edit-modal,
.sale-item-modal.sale-item-modal {
  max-height: calc(100vh - 0.8rem);
  overflow: hidden;
  padding: 0;
}

.sale-edit-modal.sale-edit-modal {
  width: min(980px, calc(100vw - 1rem));
}

.sale-edit-modal--tabs.sale-edit-modal--tabs {
  width: min(1180px, calc(100vw - 1rem));
}

.sale-edit-modal.sale-edit-modal > div:nth-child(2),
.sale-item-modal.sale-item-modal .form-card {
  max-height: calc(100vh - 4.65rem);
  overflow: auto;
}

.sale-detail-redesign .quote-secondary-tabs.sale-secondary-tabs {
  border-bottom: 1px solid #d9e3f2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  margin: 0.08rem 0 -0.02rem;
  order: 2;
}

.sale-detail-redesign .quote-secondary-tabs.sale-secondary-tabs button {
  background: #fff;
  border: 1px solid #d3dbea;
  border-radius: 7px 7px 0 0;
  color: #31538f;
  min-height: 31px;
  padding: 0.28rem 0.62rem;
}

.sale-detail-redesign .quote-secondary-tabs.sale-secondary-tabs button.active {
  background: #123b2a;
  border-color: #123b2a;
  color: #fff;
}

.sale-detail-redesign .sale-items-editor,
.sale-detail-redesign .sale-tab-card {
  order: 3;
}

/* Cotizaciones detail: tabs must sit above the section they control. */
.quote-detail-shell.quote-form-shell .quote-secondary-tabs:not(.sale-secondary-tabs) {
  border-bottom: 1px solid #d9e3f2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  margin: 0.08rem 0 -0.02rem;
  order: 2;
}

.quote-detail-shell.quote-form-shell .quote-secondary-tabs:not(.sale-secondary-tabs) button {
  background: #fff;
  border: 1px solid #d3dbea;
  border-radius: 7px 7px 0 0;
  color: #31538f;
  min-height: 31px;
  padding: 0.28rem 0.62rem;
}

.quote-detail-shell.quote-form-shell .quote-secondary-tabs:not(.sale-secondary-tabs) button.active {
  background: #213f72;
  border-color: #213f72;
  color: #fff;
}

.quote-detail-shell.quote-form-shell .quote-items-card,
.quote-detail-shell.quote-form-shell .quote-tracking-card {
  order: 3;
}

.quote-detail-shell.quote-form-shell .quote-shipping-card {
  order: 4;
}

/* Ventas modal normalization: all sales dialogs use the compact AdminModal shell. */
.sale-item-modal.sale-item-modal,
.sales-manual-modal.sales-manual-modal,
.sales-summary-modal.sales-summary-modal,
.sales-pdf-modal.sales-pdf-modal {
  max-height: calc(100vh - 0.8rem);
  overflow: hidden;
  padding: 0;
}

.sale-item-modal.sale-item-modal > div:first-child,
.sales-manual-modal.sales-manual-modal > div:first-child,
.sales-summary-modal.sales-summary-modal > div:first-child,
.sales-pdf-modal.sales-pdf-modal > div:first-child {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 0.75rem;
  margin: 0;
  padding: 0.52rem 0.7rem;
}

.sale-item-modal.sale-item-modal > div:first-child h2,
.sales-manual-modal.sales-manual-modal > div:first-child h2,
.sales-summary-modal.sales-summary-modal > div:first-child h2,
.sales-pdf-modal.sales-pdf-modal > div:first-child h2 {
  color: #1f2a44;
  font-size: 1.02rem;
  line-height: 1.15;
}

.sale-item-modal.sale-item-modal > div:first-child p,
.sales-manual-modal.sales-manual-modal > div:first-child p,
.sales-summary-modal.sales-summary-modal > div:first-child p,
.sales-pdf-modal.sales-pdf-modal > div:first-child p {
  font-size: 0.76rem;
  line-height: 1.22;
}

.sale-item-modal.sale-item-modal > div:nth-child(2),
.sales-manual-modal.sales-manual-modal > div:nth-child(2),
.sales-summary-modal.sales-summary-modal > div:nth-child(2),
.sales-pdf-modal.sales-pdf-modal > div:nth-child(2) {
  max-height: calc(100vh - 4.65rem);
  overflow: auto;
  padding: 0.62rem 0.72rem 0.72rem;
}

.sales-manual-modal.sales-manual-modal > div:nth-child(3),
.sales-summary-modal.sales-summary-modal > div:nth-child(3),
.sales-pdf-modal.sales-pdf-modal > div:nth-child(3) {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 0.5rem 0.7rem;
}

.sale-item-modal.sale-item-modal .form-card {
  border: 0;
  box-shadow: none;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.sale-component-modal.sale-component-modal {
  width: min(880px, calc(100vw - 1rem));
}

.sale-component-form .form-grid {
  align-items: end;
  display: grid;
  gap: 0.42rem;
  grid-template-columns: minmax(130px, 0.75fr) minmax(210px, 1.35fr) 140px 140px;
}

.sale-component-form .form-grid .detail-span {
  grid-column: 1 / -1;
}

.sale-component-form input[type="number"] {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.sale-component-form .action-row,
.sale-product-add-actions {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
}

.sales-manual-modal.sales-manual-modal {
  width: min(980px, calc(100vw - 1rem));
}

.sales-manual-modal .sales-manual-form {
  gap: 0.52rem;
}

.sales-manual-modal .sales-manual-mode {
  padding: 0.18rem;
}

.sales-manual-modal .sales-manual-mode button {
  min-height: 29px;
}

.sales-manual-modal .sales-customer-results {
  max-height: min(180px, 28vh);
}

.sales-manual-modal .sales-manual-form input,
.sales-manual-modal .sales-manual-form select,
.sales-manual-modal .sales-manual-form textarea {
  min-height: 31px;
  padding: 0.32rem 0.48rem;
}

.sales-manual-modal .sales-manual-form textarea {
  min-height: 58px;
}

.sales-summary-modal.sales-summary-modal {
  width: min(1080px, calc(100vw - 1rem));
}

.sales-summary-modal .quote-summary-items-table td:nth-child(n + 3),
.sales-summary-modal .quote-summary-items-table th:nth-child(n + 3) {
  text-align: right;
}

.sales-pending-product-cell {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 42px minmax(0, 1fr);
  min-width: 0;
}

.sales-pending-product-cell img,
.sales-pending-product-cell > span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.sales-pending-product-cell > span {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.62rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1.05;
  text-align: center;
}

.sales-pending-product-cell > div {
  min-width: 0;
}

.sales-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.sales-pdf-modal.sales-pdf-modal {
  width: min(1120px, calc(100vw - 1rem));
}

.sales-pdf-modal.sales-pdf-modal > div:nth-child(2) {
  height: min(76vh, 720px);
  max-height: calc(100vh - 7.2rem);
  padding: 0;
}

.sales-pdf-modal .dian-pdf-frame {
  border: 0;
  height: 100%;
  min-height: 420px;
  width: 100%;
}

/* Compras list normalization: compact supplier-order workflow. */
.purchase-page .purchases-list-card {
  border-top-color: var(--module-purchase);
}

.purchase-filter-bar.purchase-filter-bar {
  align-items: center;
  display: flex;
  gap: 0.35rem;
}

.purchase-filter-bar .quote-search-control {
  flex: 1 1 420px;
  min-width: 220px;
}

.purchase-filter-bar select {
  flex: 0 0 170px;
  min-height: 32px;
}

.purchases-list-table--redesign {
  table-layout: fixed;
}

.purchases-list-table--redesign .purchase-col-id { width: 190px; }
.purchases-list-table--redesign .purchase-col-provider { width: 220px; }
.purchases-list-table--redesign .purchase-col-origin { width: 185px; }
.purchases-list-table--redesign .purchase-col-status { width: 125px; }
.purchases-list-table--redesign .purchase-col-payment { width: 170px; }
.purchases-list-table--redesign .purchase-col-receipt { width: 120px; }
.purchases-list-table--redesign .purchase-col-total { width: 135px; }
.purchases-list-table--redesign .purchase-col-date { width: 125px; }
.purchases-list-table--redesign .purchase-col-actions { width: 245px; }

.purchases-list-table--redesign th,
.purchases-list-table--redesign td {
  vertical-align: middle;
}

.purchases-list-table--redesign th {
  background: var(--module-purchase);
  color: #fff;
}

.purchase-document-cell {
  align-items: center;
}

.purchase-doc-inline {
  align-items: center;
  display: inline-flex;
  gap: 0.32rem;
  min-width: 0;
  white-space: nowrap;
}

.purchase-doc-inline [class*="companyChip"] {
  flex: 0 0 auto;
}

.purchase-origin-cell,
.purchase-payment-dian-cell {
  display: grid;
  gap: 0.22rem;
}

.purchase-origin-cell .purchase-status-cell,
.purchase-payment-dian-cell .dian-under-payment {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.purchase-supplier-cell strong,
.purchase-origin-cell .table-link {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchases-list-table--redesign .purchase-list-total,
.purchases-list-table--redesign .purchase-list-total [class*="moneyCell"] {
  justify-items: end;
  text-align: right;
}

.purchases-list-table--redesign .quote-visible-actions {
  justify-content: flex-end;
}

/* Shared commercial list rhythm: compras, cotizaciones and ventas. */
.purchase-list-redesign [class*="pageHeader"] {
  border-top: 3px solid var(--module-purchase);
}

.commercial-list-page .commercial-list-card {
  gap: 0.5rem !important;
  padding: 0.6rem 0.8rem !important;
}

.commercial-list-table {
  min-width: 1040px;
  table-layout: auto;
}

.commercial-list-table .commercial-col-doc {
  width: 9.8rem;
}

.commercial-list-table .commercial-col-party {
  width: 16.6rem;
}

.commercial-list-table .commercial-col-date {
  width: 6.8rem;
}

.commercial-list-table .commercial-col-total {
  width: 7.2rem;
}

.commercial-list-table .commercial-col-status {
  width: 7.8rem;
}

.commercial-list-table .commercial-col-related {
  width: 9.4rem;
}

.commercial-list-table .commercial-col-actions {
  width: 11.8rem;
}

.quote-list-page .commercial-list-table .commercial-col-actions {
  width: 17.25rem;
}

.quote-list-page .commercial-list-table .commercial-col-related {
  width: 8.2rem;
}

.purchase-list-page .commercial-list-table .commercial-col-actions {
  width: 12.6rem;
}

.quote-list-page .commercial-list-table thead th {
  background: var(--module-quote-soft) !important;
  border-bottom: 1px solid var(--module-quote-line) !important;
  color: var(--module-quote-strong) !important;
}

.sales-list-page .commercial-list-table thead th {
  background: var(--module-sale-soft) !important;
  border-bottom: 1px solid var(--module-sale-line) !important;
  color: var(--module-sale-strong) !important;
}

.purchase-list-page .commercial-list-table thead th {
  background: var(--module-purchase-soft) !important;
  border-bottom: 1px solid var(--module-purchase-line) !important;
  color: var(--module-purchase-strong) !important;
}

.commercial-list-table th,
.commercial-list-table td {
  font-size: 0.78rem;
  line-height: 1.18;
  padding: 0.3rem 0.42rem !important;
  vertical-align: middle;
}

.commercial-list-table th {
  font-size: 0.68rem;
  line-height: 1.1;
}

.commercial-list-table tbody tr {
  height: 2.9rem;
}

.commercial-list-table th:nth-child(4),
.commercial-list-table td:nth-child(4),
.commercial-list-table th:nth-child(7),
.commercial-list-table td:nth-child(7) {
  text-align: right;
}

.commercial-list-table .quote-list-total,
.commercial-list-table .sale-list-total,
.commercial-list-table .purchase-list-total,
.commercial-list-table .quote-list-total [class*="moneyCell"],
.commercial-list-table .sale-list-total [class*="moneyCell"],
.commercial-list-table .purchase-list-total [class*="moneyCell"] {
  justify-items: end;
  text-align: right;
}

.commercial-party-cell {
  max-width: 100%;
}

.commercial-party-cell > span:last-child {
  min-width: 0;
}

.commercial-party-cell strong,
.commercial-list-table .sales-document-cell .table-link,
.commercial-list-table .purchase-document-cell .table-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-list-table .sales-mini-tags {
  gap: 0.18rem 0.28rem;
  max-width: 100%;
}

.commercial-list-table .sales-mini-tags .table-link,
.commercial-list-table .sales-mini-tags .table-helper {
  font-size: 0.66rem;
  line-height: 1.05;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-list-table .status-pill {
  font-size: 0.66rem;
  line-height: 1.05;
  max-width: 100%;
  padding: 0.14rem 0.38rem;
}

.commercial-list-table [class*="statusBadge"] {
  font-size: 0.66rem;
  line-height: 1.05;
  padding: 0.14rem 0.38rem;
}

.commercial-list-table [class*="helper"],
.commercial-list-table .table-helper {
  font-size: 0.66rem;
  line-height: 1.08;
}

.quote-list-page .commercial-list-table [class*="helper"],
.quote-list-page .commercial-list-table .table-helper {
  color: #53627a;
  font-size: 0.7rem;
}

.commercial-list-table [class*="dateCell"],
.commercial-list-table [class*="moneyCell"] {
  gap: 0.04rem;
}

.commercial-list-table .sale-status-cell,
.commercial-list-table .purchase-status-cell,
.commercial-list-table .purchase-payment-dian-cell {
  min-width: 0;
}

.commercial-list-table .sale-payment-dian-cell,
.commercial-list-table .purchase-payment-dian-cell {
  display: table-cell;
  vertical-align: middle;
}

.commercial-list-table .dian-under-payment,
.commercial-list-table .sales-payment-accounting {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.18rem;
  margin: 0.08rem 0 0 0;
}

.commercial-list-table .purchase-status-cell .status-pill,
.commercial-list-table .purchase-status-cell .table-helper,
.commercial-list-table .sale-status-cell .status-pill,
.commercial-list-table .sale-status-cell .table-helper {
  margin-bottom: 0.08rem;
  margin-top: 0;
}

.commercial-list-table .sales-balance-due {
  font-size: 0.66rem;
  line-height: 1.08;
}

.commercial-list-table .quote-visible-actions {
  justify-content: flex-end;
}

.commercial-list-table .quote-visible-actions .quote-row-action--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.commercial-list-table .quote-visible-actions .quote-row-action--primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.commercial-list-table .quote-visible-actions .quote-row-action--secondary {
  background: #fff;
  border-color: #c8d7ff;
  color: #31538f;
}

.commercial-list-table .quote-visible-actions .quote-row-action--secondary:hover {
  background: #f7faff;
  border-color: #8ea7f0;
}

.purchases-pending-card.purchases-pending-card {
  border-top-color: var(--module-purchase);
  margin-top: 0.75rem;
}

.purchase-pending-actions,
.pending-provider-summary-row,
.pending-provider-summary-items {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.purchase-pending-actions {
  justify-content: flex-end;
}

.pending-provider-summary-list {
  display: grid;
  gap: 0.38rem;
}

.pending-provider-summary-row {
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 7px;
  display: grid;
  grid-template-columns: minmax(180px, 0.95fr) minmax(240px, 1.4fr) minmax(120px, 0.42fr) auto;
  min-height: 46px;
  padding: 0.38rem 0.48rem;
}

.pending-provider-summary-main {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.pending-provider-name {
  align-items: center;
  display: flex;
  gap: 0.42rem;
  min-width: 0;
}

.pending-provider-name h3,
.pending-provider-name strong {
  min-width: 0;
}

.pending-provider-summary-main strong {
  color: var(--heading);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-provider-summary-main span,
.pending-provider-summary-items span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.pending-provider-summary-items {
  flex-wrap: wrap;
  min-width: 0;
}

.pending-provider-summary-items span {
  background: #fff7ed;
  border-radius: 999px;
  color: #9a3412;
  padding: 0.12rem 0.42rem;
}

.pending-provider-summary-total {
  justify-items: end;
  text-align: right;
}

.pending-provider-more-link {
  align-items: center;
  border: 1px dashed rgba(245, 158, 11, 0.42);
  border-radius: 7px;
  color: #9a3412;
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  text-decoration: none;
}

.purchases-pickup-card.purchases-pickup-card {
  margin-top: 0.75rem;
}

.pickup-provider-list,
.pickup-order-list {
  display: grid;
  gap: 0.55rem;
}

.pickup-provider-card {
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 7px;
  overflow: hidden;
}

.pickup-provider-summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  list-style: none;
  padding: 0.55rem 0.65rem;
}

.pickup-provider-summary::-webkit-details-marker {
  display: none;
}

.pickup-provider-summary::before {
  color: #c2410c;
  content: "+";
  font-weight: 900;
  margin-right: 0.25rem;
}

.pickup-provider-card[open] .pickup-provider-summary::before {
  content: "-";
}

.pickup-provider-name {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.pickup-provider-name span,
.pickup-order-title,
.pickup-lines-table td {
  min-width: 0;
}

.pickup-provider-name small,
.pickup-order-title small,
.pickup-lines-table small {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.pickup-order-list {
  background: #fff7ed;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  padding: 0.58rem;
}

.pickup-order-card {
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 7px;
  overflow: hidden;
}

.pickup-order-head {
  align-items: center;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(180px, 1fr) minmax(125px, auto) minmax(120px, auto) auto;
  padding: 0.5rem 0.58rem;
}

.pickup-order-title {
  display: grid;
  gap: 0.1rem;
}

.pickup-sale-link {
  font-size: 0.72rem;
  width: fit-content;
}

.pickup-lines-wrap {
  overflow-x: auto;
}

.pickup-lines-table {
  min-width: 720px;
}

.pickup-lines-table th,
.pickup-lines-table td {
  font-size: 0.75rem;
  padding: 0.32rem 0.42rem;
}

.pickup-lines-table td:nth-child(4),
.pickup-lines-table td:nth-child(5),
.pickup-lines-table td:nth-child(6),
.pickup-lines-table th:nth-child(4),
.pickup-lines-table th:nth-child(5),
.pickup-lines-table th:nth-child(6),
.pickup-lines-table tfoot td {
  text-align: right;
}

.pickup-lines-table td strong {
  color: var(--heading);
  display: block;
  line-height: 1.25;
}

.pickup-lines-table tfoot td {
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
}

.pickup-line-image {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.65rem;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 48px;
}

.pickup-line-image img {
  max-height: 38px;
  max-width: 44px;
  object-fit: contain;
}

.pickup-line-image--empty {
  background: #f8fafc;
}

.pickup-provider-total {
  align-items: center;
  background: #fff7ed;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 7px;
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.7rem;
}

.pickup-provider-total span {
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 900;
}

.pending-provider-block {
  margin-top: 0.55rem;
}

.pending-provider-head {
  padding: 0.48rem 0.62rem;
}

.pending-provider-head h3 {
  font-size: 0.9rem;
}

.pending-provider-head span {
  font-size: 0.76rem;
}

.purchases-pending-table th,
.purchases-pending-table td {
  font-size: 0.78rem;
  padding: 0.32rem 0.42rem;
}

.purchases-pending-table th:nth-child(n + 4),
.purchases-pending-table td:nth-child(n + 4) {
  text-align: right;
}

.purchase-summary-modal--admin.purchase-summary-modal--admin {
  max-height: calc(100vh - 0.8rem);
  overflow: hidden;
  padding: 0;
  width: min(1080px, calc(100vw - 1rem));
}

.purchase-summary-modal--admin.purchase-summary-modal--admin > div:first-child {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 0.75rem;
  margin: 0;
  padding: 0.52rem 0.7rem;
}

.purchase-summary-modal--admin.purchase-summary-modal--admin > div:first-child h2 {
  color: #1f2a44;
  font-size: 1.02rem;
  line-height: 1.15;
}

.purchase-summary-modal--admin.purchase-summary-modal--admin > div:first-child p {
  font-size: 0.76rem;
  line-height: 1.22;
}

.purchase-summary-modal--admin.purchase-summary-modal--admin > div:nth-child(2) {
  max-height: calc(100vh - 4.65rem);
  overflow: auto;
  padding: 0.62rem 0.72rem 0.72rem;
}

.purchase-summary-modal--admin.purchase-summary-modal--admin > div:nth-child(3) {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 0.5rem 0.7rem;
}

.purchase-summary-modal--admin .quote-summary-items-table td:nth-child(n + 3),
.purchase-summary-modal--admin .quote-summary-items-table th:nth-child(n + 3) {
  text-align: right;
}

.purchase-cross-modal.purchase-cross-modal {
  max-height: calc(100vh - 0.8rem);
  overflow: hidden;
  padding: 0;
  width: min(1180px, calc(100vw - 1rem));
}

.purchase-cross-modal.purchase-cross-modal > div:first-child {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 0.75rem;
  margin: 0;
  padding: 0.52rem 0.7rem;
}

.purchase-cross-modal.purchase-cross-modal > div:first-child h2 {
  color: #1f2a44;
  font-size: 1.02rem;
  line-height: 1.15;
}

.purchase-cross-modal.purchase-cross-modal > div:first-child p {
  font-size: 0.76rem;
  line-height: 1.22;
}

.purchase-cross-modal.purchase-cross-modal > div:nth-child(2) {
  display: block;
  max-height: calc(100vh - 8.6rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.62rem 0.72rem 0.72rem;
}

.purchase-cross-modal.purchase-cross-modal > div:nth-child(3) {
  background: #fff;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0.5rem 0.7rem;
}

.purchase-cross-modal .purchase-cross-stack {
  display: grid;
  gap: 0.62rem;
  min-width: 0;
}

.purchase-cross-modal .purchase-cross-selector {
  align-items: end;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.purchase-cross-modal .purchase-cross-selector label,
.purchase-cross-modal .purchase-cross-notes {
  display: grid;
  gap: 0.24rem;
  min-width: 0;
}

.purchase-cross-modal .purchase-cross-selector label > span,
.purchase-cross-modal .purchase-cross-notes > span,
.purchase-cross-modal .purchase-cross-metrics span {
  color: #5d677c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.purchase-cross-modal .purchase-cross-selector select,
.purchase-cross-modal .purchase-cross-notes textarea {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: var(--heading);
  font: inherit;
  min-height: 36px;
  padding: 0.45rem 0.55rem;
  width: 100%;
}

.purchase-cross-modal .purchase-cross-selector select {
  font-size: 0.78rem;
  min-height: 34px;
  padding-block: 0.34rem;
}

.purchase-cross-modal .purchase-cross-selector select:focus,
.purchase-cross-modal .purchase-cross-notes textarea:focus {
  border-color: #ea8a2d;
  box-shadow: 0 0 0 2px rgba(234, 138, 45, 0.16);
  outline: none;
}

.purchase-cross-modal .purchase-cross-pdf {
  min-height: 36px;
  white-space: nowrap;
}

.purchase-cross-modal .purchase-cross-metrics {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.purchase-cross-modal .purchase-cross-metrics > div {
  background: #f7f9fc;
  border-top: 2px solid #cbd5e1;
  display: grid;
  gap: 0.12rem;
  min-height: 58px;
  padding: 0.48rem 0.58rem;
}

.purchase-cross-modal .purchase-cross-metrics > div.is-ok {
  background: #f0fdf4;
  border-top-color: #22a35a;
}

.purchase-cross-modal .purchase-cross-metrics > div.is-review {
  background: #fff7ed;
  border-top-color: #ea8a2d;
}

.purchase-cross-modal .purchase-cross-metrics strong {
  color: #1f2a44;
  font-size: 0.94rem;
  line-height: 1.2;
}

.purchase-cross-modal .purchase-cross-metrics .is-ok strong {
  color: #166534;
}

.purchase-cross-modal .purchase-cross-metrics .is-review strong {
  color: #9a4d10;
}

.purchase-cross-modal .purchase-cross-context {
  align-items: center;
  background: #fff;
  border-block: 1px solid #e2e8f0;
  color: #334155;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem 1.1rem;
  padding: 0.42rem 0.12rem;
}

.purchase-cross-modal .purchase-cross-context span {
  align-items: baseline;
  display: inline-flex;
  gap: 0.3rem;
  min-width: 0;
}

.purchase-cross-modal .purchase-cross-context strong {
  color: #687386;
  font-size: 0.67rem;
  text-transform: uppercase;
}

.purchase-cross-modal .purchase-cross-loading {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  min-height: 72px;
  padding: 1.3rem;
  text-align: center;
}

.purchase-cross-modal .purchase-cross-table-wrap {
  max-height: min(50vh, 460px);
  overflow: auto;
}

.purchase-cross-modal .purchase-cross-table {
  min-width: 1010px;
  table-layout: fixed;
  width: 100%;
}

.purchase-cross-modal .purchase-cross-table th:nth-child(1),
.purchase-cross-modal .purchase-cross-table td:nth-child(1),
.purchase-cross-modal .purchase-cross-table th:nth-child(2),
.purchase-cross-modal .purchase-cross-table td:nth-child(2) {
  width: 23%;
}

.purchase-cross-modal .purchase-cross-table th:nth-child(3),
.purchase-cross-modal .purchase-cross-table td:nth-child(3) {
  width: 12%;
}

.purchase-cross-modal .purchase-cross-table th:nth-child(4),
.purchase-cross-modal .purchase-cross-table td:nth-child(4),
.purchase-cross-modal .purchase-cross-table th:nth-child(5),
.purchase-cross-modal .purchase-cross-table td:nth-child(5) {
  width: 15%;
}

.purchase-cross-modal .purchase-cross-table th:nth-child(6),
.purchase-cross-modal .purchase-cross-table td:nth-child(6) {
  width: 12%;
}

.purchase-cross-modal .purchase-cross-table th,
.purchase-cross-modal .purchase-cross-table td {
  font-size: 0.74rem;
  padding: 0.38rem 0.45rem;
  text-align: left;
  vertical-align: top;
}

.purchase-cross-modal .purchase-cross-table tbody tr.is-review td {
  background: #fffaf3;
}

.purchase-cross-modal .purchase-cross-table td > strong,
.purchase-cross-modal .purchase-cross-table td > small {
  display: block;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.purchase-cross-modal .purchase-cross-table td > strong {
  color: #1f2a44;
  font-size: 0.76rem;
}

.purchase-cross-modal .purchase-cross-table td > small,
.purchase-cross-modal .purchase-cross-pair small {
  color: #69758a;
  font-size: 0.68rem;
  margin-top: 0.15rem;
}

.purchase-cross-modal .purchase-cross-pair {
  display: table-cell;
  text-align: right;
}

.purchase-cross-modal .purchase-cross-pair span {
  display: flex;
  gap: 0.32rem;
  justify-content: space-between;
  line-height: 1.25;
  white-space: nowrap;
}

.purchase-cross-modal .purchase-cross-pair b {
  color: #69758a;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.purchase-cross-modal .purchase-cross-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1.15;
  min-width: 82px;
  padding: 0.3rem 0.45rem;
}

.purchase-cross-modal .purchase-cross-status.is-ok {
  background: #dcfce7;
  color: #166534;
}

.purchase-cross-modal .purchase-cross-status.is-review {
  background: #ffedd5;
  color: #9a3412;
}

.purchase-cross-modal .purchase-cross-exceptions {
  align-items: start;
  background: #fffaf3;
  border-left: 3px solid #ea8a2d;
  display: grid;
  gap: 0.35rem 1rem;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr);
  padding: 0.55rem 0.65rem;
}

.purchase-cross-modal .purchase-cross-exceptions > div {
  display: grid;
  gap: 0.1rem;
}

.purchase-cross-modal .purchase-cross-exceptions strong {
  color: #8a4310;
  font-size: 0.78rem;
}

.purchase-cross-modal .purchase-cross-exceptions span,
.purchase-cross-modal .purchase-cross-exceptions li {
  color: #6f4a2e;
  font-size: 0.72rem;
  line-height: 1.3;
}

.purchase-cross-modal .purchase-cross-exceptions ul {
  display: grid;
  gap: 0.16rem;
  margin: 0;
  padding-left: 1rem;
}

.purchase-cross-modal .purchase-cross-notes textarea {
  min-height: 58px;
  resize: vertical;
}

.purchase-cross-modal .purchase-cross-footer {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

@media (max-width: 900px) {
  .purchase-cross-modal .purchase-cross-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .purchase-cross-modal .purchase-cross-exceptions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .purchase-cross-modal .purchase-cross-selector,
  .purchase-cross-modal .purchase-cross-metrics {
    grid-template-columns: 1fr;
  }

  .purchase-cross-modal .purchase-cross-pdf {
    justify-self: start;
  }
}

/* Cotizaciones list modals: compact operational layout, no tabbed summary. */
.quote-create-modal.quote-create-modal,
.quote-summary-modal.quote-summary-modal {
  max-height: calc(100vh - 1rem);
  overflow: hidden;
  padding: 0;
}

.quote-create-modal.quote-create-modal {
  width: min(940px, calc(100vw - 1rem));
}

.quote-summary-modal.quote-summary-modal {
  width: min(1040px, calc(100vw - 1rem));
}

.quote-create-modal > div:first-child,
.quote-summary-modal > div:first-child {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 0.75rem;
  margin: 0;
  padding: 0.5rem 0.7rem;
}

.quote-create-modal > div:first-child h2,
.quote-summary-modal > div:first-child h2 {
  color: var(--heading);
  font-size: 1.05rem;
  line-height: 1.15;
  margin: 0;
}

.quote-create-modal > div:first-child p,
.quote-summary-modal > div:first-child p {
  font-size: 0.78rem;
  line-height: 1.25;
}

.quote-create-modal > div:first-child button,
.quote-summary-modal > div:first-child button {
  align-items: center;
  display: inline-flex;
  gap: 0.32rem;
  min-height: 30px;
  white-space: nowrap;
}

.quote-create-modal > div:nth-child(2),
.quote-summary-modal > div:nth-child(2) {
  max-height: calc(100vh - 8.25rem);
  overflow: auto;
  padding: 0;
}

.quote-summary-modal > div:nth-child(3) {
  background: #f8fbff;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0.48rem 0.7rem;
}

.quote-summary-modal > div:nth-child(3) .detail-actions {
  gap: 0.42rem;
  justify-content: flex-end;
}

.quote-create-modal .quote-new-form {
  gap: 0.58rem;
  padding: 0.62rem 0.72rem 0.72rem;
}

.quote-create-modal .quote-new-layout {
  gap: 0.58rem;
  grid-template-columns: minmax(190px, 0.62fr) minmax(0, 1.38fr);
}

.quote-create-modal .quote-new-side,
.quote-create-modal .quote-new-main {
  border-radius: 8px;
  gap: 0.5rem;
  padding: 0.58rem;
}

.quote-create-modal .quote-new-side .muted {
  font-size: 0.76rem;
  line-height: 1.3;
}

.quote-create-modal .quote-new-section-head {
  align-items: center;
  gap: 0.6rem;
}

.quote-create-modal .quote-new-section-head h3 {
  font-size: 0.94rem;
}

.quote-create-modal .field {
  gap: 0.28rem;
}

.quote-create-modal .field span {
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.quote-create-modal input,
.quote-create-modal select {
  font-size: 0.82rem;
  min-height: 30px;
  padding: 0.32rem 0.45rem;
}

.quote-create-modal .quote-search-row {
  gap: 0.42rem;
}

.quote-create-modal .quote-prospect-grid {
  gap: 0.42rem;
}

.quote-create-modal .quote-search-results {
  max-height: 210px;
  overflow: auto;
}

.quote-create-modal .quote-empty-state {
  padding: 0.55rem 0.65rem;
}

.quote-create-modal .quote-selected-client {
  border-radius: 8px;
  margin-top: 0.42rem;
  min-height: 38px;
  padding: 0.42rem 0.55rem;
}

.quote-create-modal .quote-new-actions {
  background: #f8fbff;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  margin: 0 -0.72rem -0.72rem;
  padding: 0.5rem 0.72rem;
}

.quote-summary-panel--single {
  display: grid;
  gap: 0.58rem;
  padding: 0.62rem 0.7rem 0.7rem;
}

.quote-summary-contact-strip {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.46rem 0.55rem;
}

.quote-summary-contact-strip span {
  color: var(--text);
  display: grid;
  font-size: 0.78rem;
  gap: 0.08rem;
  min-width: 0;
}

.quote-summary-contact-strip strong {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quote-summary-modal .quote-summary-items-table th,
.quote-summary-modal .quote-summary-items-table td {
  font-size: 0.78rem;
  padding: 0.38rem 0.46rem;
  vertical-align: middle;
}

.quote-summary-modal .quote-summary-items-table th:nth-child(4),
.quote-summary-modal .quote-summary-items-table td:nth-child(4),
.quote-summary-modal .quote-summary-items-table th:nth-child(5),
.quote-summary-modal .quote-summary-items-table td:nth-child(5),
.quote-summary-modal .quote-summary-items-table th:nth-child(6),
.quote-summary-modal .quote-summary-items-table td:nth-child(6) {
  text-align: right;
}

.quote-summary-modal .quote-summary-items-table td:nth-child(3) strong {
  color: #31538f;
  display: block;
  line-height: 1.2;
}

.quote-summary-modal .quote-summary-items-table td:nth-child(3) small {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0.1rem;
}

.quote-summary-item-thumb {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe5f3;
  border-radius: 7px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  width: 46px;
}

.quote-summary-item-thumb img {
  display: block;
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.quote-summary-modal .quote-summary-conditions {
  margin-top: 0;
}

/* Admin desktop density: keep the ERP surface readable on 1920x1080 without
   changing module layouts. Wide screens use the width for data, not scale. */
@media (min-width: 1180px) {
  :root {
    --admin-content-max-width: 100rem;
  }
}

@media (min-width: 1180px) and (max-height: 940px) {
  :root {
    --admin-content-max-width: 92.5rem;
    --admin-content-padding: 0.85rem;
    --admin-content-gap: 0.85rem;
    --admin-table-cell-y: 0.34rem;
    --admin-table-cell-x: 0.46rem;
    --admin-control-height: 34px;
    --admin-compact-button-y: 0.34rem;
    --admin-compact-button-x: 0.58rem;
  }

  .admin-shell {
    grid-template-columns: 14.25rem 1fr;
  }

  .admin-sidebar {
    padding-bottom: 0.85rem;
  }

  .admin-brand {
    min-height: 3.35rem;
    padding: 0.36rem 0.85rem 0.24rem;
  }

  .admin-brand-mark {
    height: 2.75rem;
    width: 9.7rem;
  }

  .admin-nav-group {
    margin-top: 0.36rem;
    padding-top: 0.24rem;
  }

  .admin-nav-heading {
    padding: 0.48rem 0.82rem 0.22rem;
  }

  .admin-nav-heading-button {
    gap: 0.55rem;
    min-height: 2.12rem;
    padding: 0.45rem 0.48rem;
  }

  .admin-nav-link {
    gap: 0.55rem;
    min-height: 2.02rem;
    padding: 0.42rem 0.48rem 0.42rem 0.9rem;
  }

  .admin-nav-sublink {
    gap: 0.48rem;
    min-height: 1.86rem;
    padding: 0.34rem 0.58rem 0.34rem 1.28rem;
  }

  .admin-nav-link__icon {
    border-radius: 0.42rem;
    flex-basis: 1.34rem;
    height: 1.34rem;
    width: 1.34rem;
  }

  .admin-nav-link__icon svg {
    height: 0.88rem;
    width: 0.88rem;
  }

  .admin-header {
    min-height: 3.1rem;
    padding: 0.48rem 1rem;
  }

  .store-chat-alert {
    min-height: 2.18rem;
    padding: 0.25rem 0.62rem 0.25rem 0.32rem;
  }

  .store-chat-alert-icon,
  .store-chat-sound-button {
    height: 1.75rem;
    width: 1.75rem;
  }

  .login-card,
  .panel-card,
  .inline-create-card,
  .channel-price-simulator,
  .product-create-card,
  .purchase-page .purchases-list-card,
  .commercial-list-page .commercial-list-card,
  .quote-detail-shell.quote-form-shell .quote-info-card,
  .quote-detail-shell.quote-form-shell .quote-items-card,
  .quote-detail-shell.quote-form-shell .quote-secondary-tabs,
  .quote-detail-shell.quote-form-shell .quote-shipping-card,
  .quote-detail-shell.quote-form-shell .quote-tracking-card,
  .sale-document-shell .sale-document-card,
  .sale-document-shell .sale-summary-card,
  .sale-document-shell .sale-products-card {
    padding: 0.62rem 0.72rem;
  }

  .table-toolbar,
  .detail-header,
  .section-title-row,
  .quote-section-title {
    gap: 0.48rem;
    margin-bottom: 0.32rem;
  }

  .filter-bar,
  .quote-list-redesign .quote-list-filterbar {
    gap: 0.34rem;
    margin-bottom: 0.28rem;
  }

  .filter-bar input,
  .filter-bar select,
  .filter-bar textarea,
  .quote-list-redesign .quote-search-control input,
  .quote-list-redesign select,
  .cell-input,
  .cell-select,
  .cell-textarea {
    height: var(--admin-control-height);
    min-height: var(--admin-control-height);
    padding-bottom: 0.28rem;
    padding-top: 0.28rem;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button,
  .quote-list-redesign .compact-action,
  .quote-icon-button,
  .quote-table-action {
    min-height: var(--admin-control-height);
    padding: var(--admin-compact-button-y) var(--admin-compact-button-x);
  }

  .data-table th,
  .data-table td,
  .quote-list-table--redesign th,
  .quote-list-table--redesign td,
  .quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table td,
  .sale-document-shell .sale-lines-table td {
    padding: var(--admin-table-cell-y) var(--admin-table-cell-x) !important;
  }

  .data-table th,
  .data-table td,
  .quote-list-table--redesign th,
  .quote-list-table--redesign td,
  .sale-document-shell .sale-lines-table td {
    font-size: 0.79rem !important;
    line-height: 1.22 !important;
  }

  .quote-customer-avatar,
  .quote-customer-avatar--detail {
    height: 1.85rem;
    width: 1.85rem;
  }

  .quote-compact-image,
  .sale-document-shell .sale-line-image,
  .account-order-product-cell img {
    max-height: 34px;
    max-width: 44px;
  }

  .quote-detail-layout,
  .sale-document-shell .sale-document-layout {
    gap: 0.7rem;
  }

  .quote-detail-shell.quote-form-shell .quote-summary-band {
    padding: 0.58rem;
  }

  .quote-detail-shell.quote-form-shell .quote-summary-band .summary-row {
    padding: 0.34rem 0.44rem;
  }

  .quote-detail-shell.quote-form-shell .quote-summary-band .summary-row.total strong {
    font-size: 1.22rem;
  }

  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-card {
    max-height: calc(100vh - 1.5rem);
    padding: 0.82rem;
  }

  .modal-head,
  .quote-preview-head,
  .checklist-modal-head {
    margin-bottom: 0.52rem;
    padding-bottom: 0.52rem;
  }

  .modal-head h2,
  .quote-preview-head h2,
  .checklist-modal-head h3 {
    font-size: 1rem;
  }
}

@media (min-width: 1180px) and (max-width: 1500px) {
  :root {
    --admin-content-max-width: 90rem;
    --admin-content-padding: 1rem;
    --admin-content-gap: 1rem;
  }
}

@media (max-width: 900px) {
  .login-page {
    padding: 1rem;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: auto;
    padding: 1.25rem;
  }

  .login-visual-card {
    display: none;
  }

  .login-card--admin {
    padding: 1.25rem;
  }

  .sale-component-form .form-grid,
  .sale-product-add-toolbar,
  .sales-manual-form,
  .pending-provider-summary-row,
  .sales-manual-location,
  .quote-create-modal .quote-new-layout,
  .quote-summary-contact-strip {
    grid-template-columns: 1fr;
  }

  .pending-provider-summary-total {
    justify-items: start;
    text-align: left;
  }
}

.quote-detail-shell.quote-form-shell .quote-row-actions .quote-row-delete-button,
.quote-detail-shell.quote-form-shell .quote-row-actions .quote-delete-button,
.sale-document-shell .quote-row-actions .quote-row-delete-button,
.sale-document-shell .quote-row-actions .quote-delete-button {
  align-items: center !important;
  background: #dc2626 !important;
  border: 1px solid #b91c1c !important;
  color: #ffffff !important;
  display: inline-flex !important;
  gap: 0.24rem !important;
  justify-content: center !important;
  min-height: 30px !important;
  min-width: 92px !important;
  opacity: 1 !important;
  padding-inline: 0.48rem !important;
  visibility: visible !important;
  white-space: nowrap !important;
}

.quote-detail-shell.quote-form-shell .quote-row-actions .quote-row-delete-button:disabled,
.quote-detail-shell.quote-form-shell .quote-row-actions .quote-delete-button:disabled,
.sale-document-shell .quote-row-actions .quote-row-delete-button:disabled,
.sale-document-shell .quote-row-actions .quote-delete-button:disabled {
  background: #fca5a5 !important;
  border-color: #f87171 !important;
  color: #7f1d1d !important;
  opacity: 0.78 !important;
}

.quote-row-actions .sale-row-icon-action,
.quote-detail-shell.quote-form-shell .quote-row-actions .sale-row-icon-action,
.sale-document-shell .quote-row-actions .sale-row-icon-action {
  aspect-ratio: 1;
  flex: 0 0 32px;
  gap: 0 !important;
  height: 32px;
  min-height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  width: 32px;
}

.quote-row-actions .sale-row-icon-action .quote-button-icon,
.sale-document-shell .quote-row-actions .sale-row-icon-action .quote-button-icon {
  height: 15px;
  margin: 0;
  width: 15px;
}

.quote-product-modal.commercial-product-modal {
  max-height: calc(100vh - 0.7rem);
  width: min(1720px, calc(100vw - 0.8rem));
}

.quote-product-modal.commercial-product-modal .quote-product-search {
  max-height: calc(100vh - 5rem);
  overflow: hidden;
}

.quote-product-modal.commercial-product-modal .quote-product-modal-layout {
  grid-template-columns: 230px minmax(0, 1fr);
}

.quote-product-modal.commercial-product-modal .quote-product-filters {
  max-height: calc(100vh - 10rem);
}

.quote-product-modal.commercial-product-modal .quote-product-grid {
  gap: 0.45rem;
  max-height: calc(100vh - 10rem);
  overflow-x: hidden;
}

.quote-product-modal.commercial-product-modal .quote-product-card {
  border-radius: 8px;
  grid-template-columns: 56px minmax(0, 1fr) 168px;
  min-height: 86px;
  overflow: hidden;
  padding: 0.48rem 0.58rem;
}

.quote-product-modal.commercial-product-modal .quote-product-thumb {
  height: 50px;
  width: 50px;
}

.quote-product-modal.commercial-product-modal .quote-product-thumb img {
  height: 46px;
  width: 46px;
}

.quote-product-modal.commercial-product-modal .quote-product-card-body {
  column-gap: 0.78rem;
  grid-template-columns: minmax(220px, 1.15fr) minmax(130px, 0.42fr) minmax(210px, 0.78fr);
  min-width: 0;
  row-gap: 0.12rem;
}

.quote-product-modal.commercial-product-modal .quote-product-card-title h3 {
  max-width: 100%;
}

.quote-product-modal.commercial-product-modal .quote-product-supplier,
.quote-product-modal.commercial-product-modal .quote-product-links,
.quote-product-modal.commercial-product-modal .quote-product-badges {
  min-width: 0;
}

.quote-product-modal.commercial-product-modal .quote-product-badges {
  align-content: start;
  max-height: 48px;
}

.quote-product-modal.commercial-product-modal .quote-product-badges span {
  max-width: 190px;
}

.quote-product-modal.commercial-product-modal .quote-product-price {
  grid-template-columns: minmax(0, 1fr) 36px;
  min-width: 0;
}

.quote-product-modal.commercial-product-modal .quote-product-price strong {
  font-size: 1.02rem;
  line-height: 1.1;
}

.quote-product-modal.commercial-product-modal .quote-product-price span {
  max-width: 116px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1380px) {
  .quote-product-modal.commercial-product-modal .quote-product-modal-layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }

  .quote-product-modal.commercial-product-modal .quote-product-card {
    grid-template-columns: 52px minmax(0, 1fr) 154px;
  }

  .quote-product-modal.commercial-product-modal .quote-product-card-body {
    grid-template-columns: minmax(0, 1fr) minmax(118px, 0.36fr);
  }

  .quote-product-modal.commercial-product-modal .quote-product-card-title {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .quote-product-modal.commercial-product-modal .quote-product-supplier,
  .quote-product-modal.commercial-product-modal .quote-product-links,
  .quote-product-modal.commercial-product-modal .quote-product-badges {
    grid-column: 2;
    grid-row: auto;
  }

  .quote-product-modal.commercial-product-modal .quote-product-badges {
    max-height: 40px;
  }

  .quote-product-modal.commercial-product-modal .quote-product-badges span {
    max-width: 142px;
  }
}

@media (max-width: 1120px) {
  .quote-product-modal.commercial-product-modal {
    width: calc(100vw - 0.5rem);
  }

  .quote-product-modal.commercial-product-modal .quote-product-search {
    overflow: auto;
  }

  .quote-product-modal.commercial-product-modal .quote-product-search-top,
  .quote-product-modal.commercial-product-modal .quote-product-modal-layout,
  .quote-product-modal.commercial-product-modal .quote-product-card,
  .quote-product-modal.commercial-product-modal .quote-product-card-body {
    grid-template-columns: 1fr;
  }

  .quote-product-modal.commercial-product-modal .quote-product-filters,
  .quote-product-modal.commercial-product-modal .quote-product-grid {
    max-height: none;
  }

  .quote-product-modal.commercial-product-modal .quote-product-card {
    align-items: start;
  }

  .quote-product-modal.commercial-product-modal .quote-product-card-title,
  .quote-product-modal.commercial-product-modal .quote-product-supplier,
  .quote-product-modal.commercial-product-modal .quote-product-links,
  .quote-product-modal.commercial-product-modal .quote-product-badges {
    grid-column: auto;
    grid-row: auto;
  }

  .quote-product-modal.commercial-product-modal .quote-product-price {
    justify-items: end;
    text-align: right;
  }
}

.kardex-ref-stack {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.kardex-trigger {
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.kardex-trigger:hover {
  background: #e8f4ff;
  border-color: rgba(14, 116, 144, 0.35);
  color: #075985;
}

.kardex-modal {
  max-height: calc(100vh - 2rem);
}

.kardex-layout {
  display: grid;
  gap: 0.85rem;
}

.kardex-summary {
  display: grid;
  grid-template-columns: 58px minmax(210px, 1.4fr) repeat(3, minmax(130px, 0.8fr));
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  border-radius: 8px;
}

.kardex-summary > div:not(.kardex-product-media) {
  display: grid;
  gap: 0.12rem;
}

.kardex-summary span,
.kardex-summary small,
.kardex-facts dt,
.kardex-mini-list span {
  color: #64748b;
  font-size: 0.72rem;
}

.kardex-summary strong,
.kardex-facts dd,
.kardex-mini-list strong {
  color: #0f172a;
  font-size: 0.84rem;
}

.kardex-title-link,
.kardex-product-title-link {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

.kardex-title-link:hover,
.kardex-product-title-link:hover {
  color: #075985;
  text-decoration: underline;
}

.kardex-product-media {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #64748b;
}

.kardex-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kardex-table-wrap {
  max-height: 52vh;
  overflow: auto;
}

.kardex-supplier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.kardex-supplier-grid section {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 0.75rem;
  background: #fff;
}

.kardex-supplier-grid h3 {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
}

.kardex-facts {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.kardex-facts div,
.kardex-mini-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.kardex-facts dt,
.kardex-facts dd {
  margin: 0;
}

.kardex-mini-list {
  display: grid;
  gap: 0.45rem;
}

.kardex-history {
  display: grid;
  gap: 0.6rem;
}

.kardex-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.kardex-history-head > div {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

@media (max-width: 980px) {
  .kardex-summary,
  .kardex-supplier-grid {
    grid-template-columns: 1fr;
  }

  .kardex-summary {
    align-items: start;
  }
}

.sale-remissions-card {
  display: grid;
  gap: 14px;
}

.sale-remissions-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr);
}

.sale-remission-list {
  align-content: start;
  display: grid;
  gap: 8px;
}

.sale-remission-list article {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 8px;
}

.sale-remission-list article.is-active {
  background: #ecfdf5;
  border-color: #86efac;
}

.sale-remission-list article > button:first-child {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 0;
  text-align: left;
}

.sale-remission-list strong {
  color: #0f172a;
  font-size: 13px;
}

.sale-remission-list span {
  color: #64748b;
  font-size: 11px;
}

.sale-remission-editor {
  background: #fff;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.sale-remission-form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.sale-remission-form-grid label {
  display: grid;
  gap: 4px;
}

.sale-remission-form-grid label.wide {
  grid-column: span 2;
}

.sale-remission-form-grid span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.sale-remission-form-grid input,
.sale-remission-form-grid select,
.sale-remission-lines-table input {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  font: inherit;
  min-height: 34px;
  padding: 7px 9px;
  width: 100%;
}

.sale-remission-lines-table td {
  vertical-align: top;
}

.sale-remission-lines-table td:nth-child(3) {
  max-width: 110px;
  width: 110px;
}

.sale-remission-lines-table td:last-child {
  text-align: right;
  width: 48px;
}

.sale-remission-lines-table td input + input {
  margin-top: 5px;
}

.sale-remission-actions {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .sale-remissions-layout,
  .sale-remission-form-grid {
    grid-template-columns: 1fr;
  }

  .sale-remission-form-grid label.wide {
    grid-column: auto;
  }
}



/*!*************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/app/admin-normalize.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************/
/* Canonical admin normalization layer. Keep cross-module behavior here and
   leave module-specific layouts in their existing sections while they migrate. */

.admin-menu-toggle,
.admin-sidebar-backdrop {
  display: none;
}

/* The content column must be allowed to shrink inside the sidebar grid. Wide
   tables keep their own horizontal scroll instead of widening the document. */
.admin-shell {
  grid-template-columns: 15.5rem minmax(0, 1fr);
}

.admin-main,
.admin-header,
.admin-header-main,
.admin-content,
.admin-content > * {
  max-width: 100%;
  min-width: 0;
}

.admin-header,
.filter-bar {
  flex-wrap: wrap;
}

.admin-header-main {
  flex: 1 1 16rem;
}

/* En escritorios operativos medianos la barra conserva todas sus acciones en
   una sola fila. El nombre de la empresa y el saludo ya aparecen en sesión y
   no deben empujar recaudos o cierre a una segunda línea. */
@media (min-width: 1025px) and (max-width: 1550px) {
  .admin-header-main,
  .admin-user-chip > span {
    display: none;
  }

  .admin-header {
    flex-wrap: nowrap;
  }
}

.filter-bar > * {
  max-width: 100%;
}

.table-wrap,
[class*="tableWrap"] {
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-inline: contain;
}

.operation-wide-grid {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  width: 100%;
}

/* Cotizaciones: detalle operativo compacto. El rojo identifica el modulo;
   las acciones de avance conservan el azul y el peligro queda para eliminar. */
.quote-detail-shell.quote-form-shell .quote-document-identity,
.quote-detail-shell.quote-form-shell .quote-document-code {
  align-items: center;
  display: flex;
  gap: 0.36rem;
  min-width: 0;
}

.quote-detail-shell.quote-form-shell .quote-document-back {
  background: transparent;
  border-color: rgb(255 255 255 / 34%);
  color: #fff;
  font-size: 0.72rem;
  min-height: 26px;
  padding: 0.18rem 0.42rem;
}

.quote-detail-shell.quote-form-shell .quote-document-back:hover {
  background: rgb(255 255 255 / 12%);
  border-color: rgb(255 255 255 / 58%);
  color: #fff;
}

.quote-detail-shell.quote-form-shell .quote-document-separator {
  background: rgb(255 255 255 / 30%);
  height: 20px;
  width: 1px;
}

.quote-detail-shell.quote-form-shell .quote-document-banner .status-pill {
  box-shadow: inset 3px 0 0 var(--quote-module);
}

.quote-detail-shell.quote-form-shell .quote-summary-actions .primary-button {
  background: #2563eb;
  border-color: #1d4ed8;
}

.quote-detail-shell.quote-form-shell .quote-summary-actions .primary-button:hover {
  background: #1d4ed8;
}

.quote-detail-shell.quote-form-shell .quote-form-actions {
  align-items: stretch;
  display: flex;
  flex: 1 1 46rem;
  justify-content: flex-end;
}

.quote-detail-shell.quote-form-shell .quote-action-group {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe3f0;
  border-radius: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
  min-width: 0;
  padding: 0.2rem;
}

.quote-detail-shell.quote-form-shell .quote-action-group .quote-icon-button,
.quote-detail-shell.quote-form-shell .quote-action-group .quote-pricing-toggle {
  margin: 0;
}

.quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.quote-detail-shell.quote-form-shell .quote-items-card .quote-legacy-items-table .data-table {
  min-width: 1120px;
}

.quote-detail-shell.quote-form-shell .quote-col-desc { width: 320px; }
.quote-detail-shell.quote-form-shell .quote-col-components { width: 145px; }
.quote-detail-shell.quote-form-shell .quote-col-actions { width: 88px; }
.quote-detail-shell.quote-form-shell .quote-col-notes { width: 230px; }

.quote-detail-shell.quote-form-shell .quote-note-input {
  min-height: 38px;
}

.quote-detail-shell.quote-form-shell .quote-shipping-empty-state {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.65rem;
  min-height: 42px;
  padding-block: 0.48rem;
}

.quote-detail-shell.quote-form-shell .quote-shipping-empty-state p {
  margin: 0;
}

/* Tabs del detalle: superficie blanca e indicador del color del modulo. */
.quote-detail-shell.quote-form-shell .quote-secondary-tabs:not(.sale-secondary-tabs) button[role="tab"] {
  position: relative;
}

.quote-detail-shell.quote-form-shell .quote-secondary-tabs:not(.sale-secondary-tabs) button[role="tab"].active {
  background: var(--admin-ui-surface);
  border-color: var(--admin-ui-border-brand);
  color: var(--quote-module);
  box-shadow: inset 0 -3px 0 var(--quote-module);
}

.quote-detail-shell.quote-form-shell .quote-secondary-tabs:not(.sale-secondary-tabs) button[role="tab"]:focus-visible {
  outline: 3px solid var(--field-focus);
  outline-offset: 2px;
}

/* Seguimiento comercial: contexto compacto, captura e historial en una sola
   superficie operativa, sin cards decorativas anidadas. */
.quote-detail-shell.quote-form-shell .quote-tracking-card--standard {
  container-type: inline-size;
  gap: 0.52rem;
}

.quote-detail-shell.quote-form-shell .quote-tracking-card--standard > .quote-section-title {
  border-bottom: 1px solid var(--admin-ui-border-soft);
  margin: 0;
  padding-bottom: 0.42rem;
}

.quote-detail-shell.quote-form-shell .quote-tracking-summary--compact {
  background: var(--admin-ui-hover-bg);
  border: 1px solid var(--admin-ui-border);
  border-radius: 7px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
}

.quote-detail-shell.quote-form-shell .quote-tracking-summary--compact > div {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--admin-ui-border-soft);
  border-radius: 0;
  min-width: 0;
  padding: 0.38rem 0.55rem;
}

.quote-detail-shell.quote-form-shell .quote-tracking-summary--compact > div:last-child {
  border-right: 0;
}

.quote-detail-shell.quote-form-shell .quote-tracking-summary--compact strong {
  color: var(--admin-ui-heading);
  display: block;
  font-size: 0.8rem;
  line-height: 1.2;
  margin-top: 0.12rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-detail-shell.quote-form-shell .quote-tracking-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  min-width: 0;
}

.quote-detail-shell.quote-form-shell .quote-tracking-compose,
.quote-detail-shell.quote-form-shell .quote-tracking-history {
  min-width: 0;
  padding: 0.1rem 0.65rem 0.1rem 0;
}

.quote-detail-shell.quote-form-shell .quote-tracking-history {
  border-left: 1px solid var(--admin-ui-border-soft);
  padding-left: 0.65rem;
  padding-right: 0;
}

.quote-detail-shell.quote-form-shell .quote-tracking-block-head {
  align-items: flex-start;
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
  margin-bottom: 0.42rem;
}

.quote-detail-shell.quote-form-shell .quote-tracking-block-head h4 {
  color: var(--admin-ui-heading);
  font-size: 0.88rem;
  line-height: 1.2;
  margin: 0;
}

.quote-detail-shell.quote-form-shell .quote-tracking-block-head p {
  color: var(--admin-ui-muted);
  font-size: 0.72rem;
  line-height: 1.25;
  margin: 0.1rem 0 0;
}

.quote-detail-shell.quote-form-shell .quote-tracking-presets {
  display: grid;
  gap: 0.34rem;
}

.quote-detail-shell.quote-form-shell .quote-tracking-preset-group {
  align-items: center;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 6.5rem minmax(0, 1fr);
}

.quote-detail-shell.quote-form-shell .quote-tracking-preset-group > span {
  color: var(--admin-ui-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.quote-detail-shell.quote-form-shell .quote-tracking-card--standard .quote-tracking-actions {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  gap: 0.24rem;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.quote-detail-shell.quote-form-shell .quote-tracking-card--standard .quote-tracking-actions button {
  background: var(--admin-ui-surface);
  border: 1px solid var(--admin-ui-border-brand);
  border-radius: 6px;
  color: var(--admin-ui-brand);
  min-height: 28px;
  padding: 0.22rem 0.46rem;
}

.quote-detail-shell.quote-form-shell .quote-tracking-card--standard .quote-tracking-actions button.is-selected {
  background: var(--admin-ui-badge-info-bg);
  border-color: var(--admin-ui-info);
  box-shadow: inset 0 0 0 1px var(--admin-ui-info);
  color: var(--admin-ui-badge-info-text);
}

.quote-detail-shell.quote-form-shell .quote-tracking-card--standard .quote-tracking-actions button.is-positive {
  border-color: var(--admin-ui-success);
  color: var(--admin-ui-success);
}

.quote-detail-shell.quote-form-shell .quote-tracking-card--standard .quote-tracking-actions button.is-negative {
  border-color: var(--admin-ui-danger);
  color: var(--admin-ui-danger);
}

.quote-detail-shell.quote-form-shell .quote-tracking-card--standard .quote-tracking-actions button.is-positive.is-selected {
  background: var(--admin-ui-badge-success-bg);
  box-shadow: inset 0 0 0 1px var(--admin-ui-success);
}

.quote-detail-shell.quote-form-shell .quote-tracking-card--standard .quote-tracking-actions button.is-negative.is-selected {
  background: var(--admin-ui-badge-danger-bg);
  box-shadow: inset 0 0 0 1px var(--admin-ui-danger);
}

.quote-detail-shell.quote-form-shell .quote-tracking-form {
  border-top: 1px solid var(--admin-ui-border-soft);
  display: grid;
  gap: 0.42rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.quote-detail-shell.quote-form-shell .quote-tracking-form-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.quote-detail-shell.quote-form-shell .quote-tracking-form .field {
  margin: 0;
}

.quote-detail-shell.quote-form-shell .quote-tracking-note {
  height: auto !important;
  min-height: 72px !important;
  resize: vertical;
}

.quote-detail-shell.quote-form-shell .quote-tracking-form-footer {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
}

.quote-detail-shell.quote-form-shell .quote-tracking-form-footer small {
  color: var(--admin-ui-muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.quote-detail-shell.quote-form-shell .quote-tracking-history-table {
  max-width: 100%;
  overflow-x: auto;
}

.quote-detail-shell.quote-form-shell .quote-tracking-history-table .data-table {
  min-width: 720px;
}

.quote-detail-shell.quote-form-shell .quote-tracking-history-table th,
.quote-detail-shell.quote-form-shell .quote-tracking-history-table td {
  font-size: 0.74rem;
  padding: 0.34rem 0.42rem;
  vertical-align: top;
}

.quote-detail-shell.quote-form-shell .quote-tracking-history-table th:nth-child(1) { width: 128px; }
.quote-detail-shell.quote-form-shell .quote-tracking-history-table th:nth-child(2) { width: 108px; }
.quote-detail-shell.quote-form-shell .quote-tracking-history-table th:nth-child(4) { width: 138px; }
.quote-detail-shell.quote-form-shell .quote-tracking-history-table th:nth-child(5) { width: 120px; }

.quote-detail-shell.quote-form-shell .quote-tracking-history-note {
  color: var(--admin-ui-heading);
  min-width: 190px;
  white-space: normal;
}

.quote-detail-shell.quote-form-shell .quote-tracking-result {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  padding: 0.18rem 0.42rem;
  white-space: nowrap;
}

.quote-detail-shell.quote-form-shell .quote-tracking-result.is-positive {
  background: var(--admin-ui-badge-success-bg);
  color: var(--admin-ui-badge-success-text);
}

.quote-detail-shell.quote-form-shell .quote-tracking-result.is-negative {
  background: var(--admin-ui-badge-danger-bg);
  color: var(--admin-ui-badge-danger-text);
}

.quote-detail-shell.quote-form-shell .quote-tracking-result.is-warning {
  background: var(--admin-ui-badge-warning-bg);
  color: var(--admin-ui-badge-warning-text);
}

.quote-detail-shell.quote-form-shell .quote-tracking-result.is-neutral {
  background: var(--admin-ui-badge-neutral-bg);
  color: var(--admin-ui-badge-neutral-text);
}

.quote-detail-shell.quote-form-shell .quote-tracking-empty-state {
  align-content: center;
  min-height: 118px;
}

@container (max-width: 62rem) {
  .quote-detail-shell.quote-form-shell .quote-tracking-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-detail-shell.quote-form-shell .quote-tracking-compose {
    border-bottom: 1px solid var(--admin-ui-border-soft);
    padding: 0 0 0.65rem;
  }

  .quote-detail-shell.quote-form-shell .quote-tracking-history {
    border-left: 0;
    padding: 0.65rem 0 0;
  }
}

img,
video,
canvas,
iframe {
  max-width: 100%;
}

.table-toolbar,
.detail-header,
.section-title-row {
  min-height: 0;
}

.table-toolbar > div:first-child,
.detail-header > div:first-child,
.section-title-row > div:first-child {
  min-width: 0;
}

.table-toolbar p:not(.eyebrow),
.detail-header p:not(.eyebrow),
.section-title-row p:not(.eyebrow) {
  line-height: 1.25;
  margin-bottom: 0;
  margin-top: 0.12rem;
}

@media (max-width: 900px) {
  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    bottom: 0;
    left: 0;
    max-height: 100dvh;
    overflow-y: auto;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform 180ms ease-out;
    width: min(19rem, 88vw);
    z-index: 1200;
  }

  .admin-sidebar.is-mobile-open {
    transform: translateX(0);
  }

  .admin-sidebar-backdrop {
    background: rgb(15 23 42 / 48%);
    border: 0;
    display: block;
    inset: 0;
    padding: 0;
    position: fixed;
    z-index: 1190;
  }

  .admin-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .admin-main {
    min-width: 0;
    width: 100%;
  }
}

@media (min-width: 1180px) and (max-height: 940px) {
  .admin-shell {
    grid-template-columns: 14.25rem minmax(0, 1fr);
  }
}

@media (max-width: 1380px) {
  .shipping-setup-grid,
  .shipping-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-detail-shell.quote-form-shell .detail-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-detail-shell.quote-form-shell .quote-info-card,
  .quote-detail-shell.quote-form-shell .quote-summary-band {
    grid-column: 1;
    grid-row: auto;
  }

  .quote-detail-shell.quote-form-shell .quote-summary-band {
    align-items: stretch;
    grid-template-columns: minmax(180px, 1.15fr) repeat(2, minmax(110px, 0.7fr)) minmax(380px, 2fr);
  }

  .quote-detail-shell.quote-form-shell .quote-summary-band > .eyebrow {
    display: none;
  }

  .quote-detail-shell.quote-form-shell .quote-summary-band .summary-row.total {
    grid-column: 1;
    min-height: 48px;
    order: 0;
  }

  .quote-detail-shell.quote-form-shell .quote-summary-actions {
    align-self: center;
    grid-column: 4;
    margin: 0;
  }

  .quote-detail-shell.quote-form-shell .quote-items-card > .section-title-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .quote-detail-shell.quote-form-shell .quote-items-card > .section-title-row .quote-form-actions {
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 1000px) {
  .quote-detail-shell.quote-form-shell .quote-summary-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote-detail-shell.quote-form-shell .quote-summary-band .summary-row.total {
    grid-column: 1;
  }

  .quote-detail-shell.quote-form-shell .quote-summary-actions {
    grid-column: 1 / -1;
  }

  .quote-detail-shell.quote-form-shell .quote-document-body {
    grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  }

  .quote-detail-shell.quote-form-shell .quote-document-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .quote-detail-shell.quote-form-shell .quote-document-banner {
    align-items: flex-start;
    gap: 0.45rem;
  }

  .quote-detail-shell.quote-form-shell .quote-document-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .quote-detail-shell.quote-form-shell .quote-document-separator {
    display: none;
  }

  .quote-detail-shell.quote-form-shell .quote-document-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-detail-shell.quote-form-shell .quote-document-body .quote-customer-summary,
  .quote-detail-shell.quote-form-shell .quote-document-body .quote-email-status,
  .quote-detail-shell.quote-form-shell .quote-document-body .quote-document-facts,
  .quote-detail-shell.quote-form-shell .quote-document-body:has(.quote-email-status) .quote-customer-summary,
  .quote-detail-shell.quote-form-shell .quote-document-body:has(.quote-email-status) .quote-document-facts {
    grid-column: 1;
    grid-row: auto;
  }

  .quote-detail-shell.quote-form-shell .quote-summary-band,
  .quote-detail-shell.quote-form-shell .quote-summary-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-detail-shell.quote-form-shell .quote-summary-band .summary-row.total,
  .quote-detail-shell.quote-form-shell .quote-summary-actions {
    grid-column: 1;
  }

  .quote-detail-shell.quote-form-shell .quote-action-group {
    width: 100%;
  }

  .quote-detail-shell.quote-form-shell .quote-tracking-summary--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-detail-shell.quote-form-shell .quote-tracking-summary--compact > div:nth-child(2) {
    border-right: 0;
  }

  .quote-detail-shell.quote-form-shell .quote-tracking-summary--compact > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--admin-ui-border-soft);
  }

  .quote-detail-shell.quote-form-shell .quote-tracking-preset-group,
  .quote-detail-shell.quote-form-shell .quote-tracking-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-detail-shell.quote-form-shell .quote-tracking-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .quote-detail-shell.quote-form-shell .quote-tracking-form-footer .primary-button,
  .quote-detail-shell.quote-form-shell .quote-tracking-form-footer .danger-button {
    justify-content: center;
    width: 100%;
  }
}

/* Modal de operacion: el contenedor comun administra alto, foco y scroll. */
.quote-admin-modal {
  padding: 0.85rem;
}

.quote-admin-modal .form-card,
.quote-admin-modal .quote-client-form,
.quote-admin-modal .quote-email-form,
.quote-admin-modal .quote-product-search {
  max-height: none;
  overflow: visible;
  padding: 0;
}

.quote-admin-modal .quote-sale-selection-summary,
.quote-admin-modal .quote-sale-selection-table {
  margin-left: 0;
  margin-right: 0;
}

.quote-admin-modal .quote-preview-frame {
  min-height: min(70vh, 760px);
  width: 100%;
}

/* Nueva cotizacion mantiene el mismo acento y pie operativo del modulo. */
.quote-create-modal {
  --quote-create-accent: #b91c1c;
  --quote-create-accent-soft: #fff5f5;
  --quote-create-accent-line: #f1c7c7;
}

.quote-create-modal > div:first-child {
  background: linear-gradient(90deg, var(--quote-create-accent-soft), var(--admin-ui-surface) 38%);
  border-bottom-color: var(--quote-create-accent-line);
}

.quote-create-modal > div:first-child p:first-child {
  color: var(--quote-create-accent);
}

.quote-create-modal .quote-new-actions {
  bottom: 0;
  box-shadow: 0 -8px 18px rgba(31, 42, 68, 0.06);
  position: sticky;
  z-index: 3;
}

@media (max-width: 760px) {
  .quote-admin-modal {
    padding: 0.68rem;
  }

  .quote-admin-modal .quote-email-grid,
  .quote-admin-modal .quote-client-form .form-grid,
  .quote-admin-modal .quote-client-address-grid,
  .quote-admin-modal .quote-client-switcher .filter-bar {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Tablero de operación: centro de control compacto. Los indicadores superiores
   navegan o filtran; proveedores y ventas se leen como superficies separadas,
   sin un kanban horizontal que esconda etapas fuera del viewport. */
.operation-page {
  display: grid;
  gap: 0.68rem;
  min-width: 0;
}

.operation-metrics {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
}

.operation-metric {
  align-items: center;
  appearance: none;
  background: var(--admin-ui-surface);
  border: 1px solid var(--admin-ui-border);
  border-radius: 8px;
  color: var(--admin-ui-heading);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 0.48rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 58px;
  min-width: 0;
  padding: 0.46rem 0.58rem;
  text-align: left;
  text-decoration: none;
  transition: background-color 140ms ease-out, border-color 140ms ease-out, box-shadow 140ms ease-out;
}

.operation-metric:hover {
  background: var(--admin-ui-hover-bg);
  border-color: var(--admin-ui-border-brand);
}

.operation-metric:focus-visible {
  outline: 3px solid var(--field-focus);
  outline-offset: 2px;
}

.operation-metric.is-active {
  background: var(--admin-ui-badge-success-bg);
  border-color: var(--admin-ui-success);
  box-shadow: inset 0 0 0 1px var(--admin-ui-success);
}

.operation-metric__icon {
  align-items: center;
  background: var(--admin-ui-hover-bg);
  border-radius: 7px;
  color: var(--admin-ui-brand);
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.operation-metric--supplier .operation-metric__icon {
  background: var(--admin-ui-badge-warning-bg);
  color: var(--admin-ui-badge-warning-text);
}

.operation-metric--sales .operation-metric__icon {
  background: var(--admin-ui-badge-success-bg);
  color: var(--admin-ui-badge-success-text);
}

.operation-metric__icon .admin-action-icon {
  height: 0.98rem;
  width: 0.98rem;
}

.operation-metric__copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.operation-metric__copy > span {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.operation-metric__copy small {
  color: var(--admin-ui-muted);
  font-size: 0.68rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-metric > strong {
  color: var(--admin-ui-heading);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
}

.operation-workspace,
.operation-section,
.operation-subsection {
  display: grid;
  gap: 0.58rem;
  min-width: 0;
}

.operation-provider-workspace {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.operation-subsection {
  align-content: start;
  padding-right: 0.72rem;
}

.operation-subsection + .operation-subsection {
  border-left: 1px solid var(--admin-ui-border-soft);
  padding-left: 0.72rem;
  padding-right: 0;
}

.operation-subsection__head {
  align-items: flex-start;
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
  min-width: 0;
}

.operation-subsection__head h3 {
  color: var(--admin-ui-heading);
  font-size: 0.88rem;
  line-height: 1.2;
  margin: 0;
}

.operation-subsection__head p,
.operation-sales-toolbar p,
.operation-table-note {
  color: var(--admin-ui-muted);
  font-size: 0.72rem;
  line-height: 1.25;
  margin: 0.12rem 0 0;
}

.operation-provider-table {
  min-width: 720px;
}

.operation-pickup-table {
  min-width: 800px;
}

.operation-sales-table {
  min-width: 930px;
}

.operation-provider-table th,
.operation-provider-table td,
.operation-pickup-table th,
.operation-pickup-table td,
.operation-sales-table th,
.operation-sales-table td,
.operation-receipt-table th,
.operation-receipt-table td {
  font-size: 0.76rem;
  padding: 0.38rem 0.46rem;
}

.operation-provider-table th,
.operation-pickup-table th,
.operation-sales-table th,
.operation-receipt-table th {
  font-size: 0.7rem;
}

.operation-provider-table td strong,
.operation-pickup-table td strong,
.operation-sales-table td strong,
.operation-receipt-table td strong {
  color: var(--admin-ui-heading);
}

.operation-number {
  text-align: right !important;
  white-space: nowrap;
}

.operation-cell-helper {
  color: var(--admin-ui-muted);
  display: block;
  font-size: 0.7rem;
  line-height: 1.18;
  margin-top: 0.1rem;
  max-width: 25rem;
  white-space: normal;
}

.operation-muted {
  color: var(--admin-ui-muted);
  font-size: 0.72rem;
}

.operation-empty-state {
  align-items: center;
  color: var(--admin-ui-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem 0.55rem;
  justify-content: center;
  min-height: 54px;
  padding: 0.35rem;
}

.operation-empty-state .admin-action-icon {
  color: var(--admin-ui-success);
}

.operation-empty-state strong {
  color: var(--admin-ui-heading);
}

.operation-sales-toolbar {
  align-items: center;
  background: var(--admin-ui-hover-bg);
  border: 1px solid var(--admin-ui-border-soft);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  justify-content: space-between;
  padding: 0.4rem;
}

.operation-sales-toolbar [role="tab"] {
  align-items: center;
  display: inline-flex;
  gap: 0.32rem;
}

.operation-sales-toolbar [role="tab"] .admin-action-icon {
  height: 0.9rem;
  width: 0.9rem;
}

.operation-sales-toolbar [role="tab"] > strong {
  align-items: center;
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.68rem;
  justify-content: center;
  min-width: 1.4rem;
  padding: 0.1rem 0.3rem;
}

.operation-sales-toolbar p {
  margin: 0;
}

.operation-row--danger td:first-child {
  box-shadow: inset 3px 0 0 var(--admin-ui-danger);
}

.operation-row--warning td:first-child {
  box-shadow: inset 3px 0 0 var(--admin-ui-warning);
}

.operation-row--success td:first-child {
  box-shadow: inset 3px 0 0 var(--admin-ui-success);
}

.operation-receipt-summary {
  background: var(--admin-ui-hover-bg);
  border: 1px solid var(--admin-ui-border-soft);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.operation-receipt-summary > div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.5rem 0.62rem;
}

.operation-receipt-summary > div + div {
  border-left: 1px solid var(--admin-ui-border-soft);
}

.operation-receipt-summary span:first-child {
  color: var(--admin-ui-muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.operation-receipt-summary strong {
  color: var(--admin-ui-heading);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-receipt-table {
  min-width: 780px;
}

.operation-modal-state {
  align-items: center;
  background: var(--admin-ui-hover-bg);
  border: 1px solid var(--admin-ui-border-soft);
  border-radius: 8px;
  color: var(--admin-ui-heading);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  min-height: 86px;
  padding: 0.7rem;
}

.operation-modal-state--error {
  background: var(--admin-ui-badge-danger-bg);
  border-color: var(--admin-ui-danger);
  color: var(--admin-ui-badge-danger-text);
}

@media (max-width: 1550px) {
  .operation-provider-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .operation-subsection {
    padding-right: 0;
  }

  .operation-subsection + .operation-subsection {
    border-left: 0;
    border-top: 1px solid var(--admin-ui-border-soft);
    padding-left: 0;
    padding-top: 0.68rem;
  }
}

@media (max-width: 1180px) {
  .operation-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation-metric:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .operation-metrics,
  .operation-receipt-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .operation-metric:last-child {
    grid-column: auto;
  }

  .operation-subsection__head,
  .operation-sales-toolbar {
    align-items: stretch;
    display: grid;
  }

  .operation-receipt-summary > div + div {
    border-left: 0;
    border-top: 1px solid var(--admin-ui-border-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-sidebar {
    transition: none;
  }

  .operation-metric {
    transition: none;
  }
}

