:root {
  --v2-bg: #fbf9f9;
  --v2-surface: #ffffff;
  --v2-surface-low: #f5f3f3;
  --v2-surface-mid: #efeded;
  --v2-line: #d8d6df;
  --v2-line-soft: #eceaf0;
  --v2-ink: #161c54;
  --v2-text: #1b1c1c;
  --v2-muted: #5d5f5f;
  --v2-muted-2: #777681;
  --v2-primary: #161c54;
  --v2-primary-2: #2d336b;
  --v2-good: #1f9d55;
  --v2-warn: #c9971a;
  --v2-bad: #ba1a1a;
  --v2-shadow: 0 18px 55px rgba(22, 28, 84, 0.08);
  --v2-radius: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--v2-bg);
  color: var(--v2-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.v2-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.v2-topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--v2-line-soft);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.v2-brand,
.v2-top-actions,
.v2-topnav,
.v2-header-actions,
.v2-login-actions {
  display: flex;
  align-items: center;
}

.v2-brand {
  gap: 14px;
  min-width: 250px;
}

.v2-brand-title {
  color: var(--v2-primary);
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.v2-version-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--v2-surface-low);
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 700;
}

.v2-icon-btn,
.v2-topnav-btn,
.v2-nav-item,
.v2-link-btn,
.v2-secondary-btn,
.v2-primary-btn,
.v2-chip-btn,
.v2-icon-action {
  border: 0;
  cursor: pointer;
}

.v2-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: transparent;
  color: var(--v2-primary);
  font-size: 22px;
}

.v2-icon-btn:hover,
.v2-icon-action:hover,
.v2-chip-btn:hover {
  background: var(--v2-surface-low);
}

.v2-topnav {
  gap: 18px;
}

.v2-topnav-btn {
  background: transparent;
  color: var(--v2-muted);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.v2-topnav-btn.is-active {
  color: var(--v2-primary);
  background: var(--v2-surface-low);
}

.v2-top-actions {
  gap: 10px;
}

.v2-readonly-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #ead7a5;
  border-radius: 999px;
  background: #fff8df;
  color: #77590a;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

body.v2-external-readonly [data-readonly-previous-disabled],
body.v2-external-readonly [data-note-text].is-readonly {
  cursor: not-allowed;
}

body.v2-external-readonly [data-note-text].is-readonly,
body.v2-external-readonly button:disabled,
body.v2-external-readonly input:disabled,
body.v2-external-readonly select:disabled,
body.v2-external-readonly textarea:disabled {
  opacity: 0.62;
}

.v2-secondary-btn,
.v2-primary-btn {
  min-height: 40px;
  border-radius: 10px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}

.v2-danger-btn {
  min-height: 40px;
  border: 1px solid #e4b8b0;
  border-radius: 10px;
  background: #fff3f1;
  color: #96372f;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

.v2-secondary-btn {
  background: var(--v2-surface-low);
  color: var(--v2-primary);
}

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

.v2-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.v2-sidebar {
  width: 255px;
  flex: 0 0 255px;
  background: var(--v2-surface-low);
  border-right: 1px solid var(--v2-line-soft);
  padding: 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v2-sidebar-section {
  color: var(--v2-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 20px 18px;
}

.v2-nav-item {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-radius: 10px;
  background: transparent;
  color: var(--v2-muted);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.v2-nav-item span {
  width: 24px;
  text-align: center;
  color: currentColor;
}

.v2-nav-item:hover,
.v2-nav-item.is-active {
  background: #dcdddd;
  color: var(--v2-primary);
}

.v2-sidebar-footer {
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid var(--v2-line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--v2-muted);
  font-size: 11px;
}

.v2-link-btn {
  background: transparent;
  color: var(--v2-primary);
  font-weight: 800;
}

.v2-main {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(680px, 1fr) minmax(360px, 420px);
  background: var(--v2-surface);
}

.v2-list-pane,
.v2-detail-pane {
  min-height: 0;
}

.v2-list-pane {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--v2-line);
}

.v2-list-header {
  padding: 28px 28px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.v2-eyebrow {
  margin: 0 0 6px;
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.v2-list-header h1 {
  margin: 0;
  color: var(--v2-primary);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: 0;
}

.v2-header-actions {
  gap: 10px;
}

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

.v2-metric {
  min-height: 82px;
  border: 1px solid var(--v2-line-soft);
  border-radius: var(--v2-radius);
  padding: 14px;
  background: var(--v2-surface);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
}

button.v2-metric {
  width: 100%;
  text-align: left;
  font: inherit;
}

.v2-metric.is-clickable {
  cursor: pointer;
}

.v2-metric.is-clickable:hover {
  border-color: #98b7a9;
  box-shadow: 0 10px 28px rgba(28, 75, 55, 0.1);
}

.v2-metric span {
  display: block;
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.v2-metric strong {
  display: block;
  margin-top: 8px;
  color: var(--v2-primary);
  font-size: 23px;
  line-height: 1;
}

.v2-metric-production {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  margin-top: 8px;
}

.v2-metric-production strong {
  margin-top: 0;
}

.v2-metric-production .is-total {
  color: var(--v2-primary);
}

.v2-metric-production .is-produced {
  color: #238247;
  font-size: 13px;
}

.v2-metric-production .is-remaining {
  color: #b83a34;
  font-size: 13px;
}

.v2-dashboard-production-panel {
  padding: 0 28px 28px;
  display: grid;
  gap: 14px;
}

.v2-dashboard-production-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) repeat(6, minmax(88px, 1fr));
  gap: 8px;
  align-items: stretch;
  border: 1px solid var(--v2-line-soft);
  border-radius: 12px;
  background: var(--v2-surface);
  padding: 10px;
}

.v2-dashboard-production-summary > div,
.v2-dashboard-production-stat {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.v2-dashboard-production-summary span,
.v2-dashboard-production-stat span {
  color: var(--v2-muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.v2-dashboard-production-summary strong,
.v2-dashboard-production-stat strong {
  color: var(--v2-primary);
  font-size: 14px;
}

.v2-dashboard-production-stat.is-good strong,
.v2-dashboard-production-row .is-good {
  color: #238247;
}

.v2-dashboard-production-stat.is-bad strong,
.v2-dashboard-production-row .is-bad {
  color: #b83a34;
}

.v2-dashboard-production-stat.is-money strong,
.v2-dashboard-production-row .is-money {
  color: var(--v2-primary);
}

.v2-dashboard-production-calendar {
  display: grid;
  gap: 10px;
  border: 1px solid var(--v2-line-soft);
  border-radius: 12px;
  background: var(--v2-surface);
  padding: 10px;
}

.v2-dashboard-production-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v2-dashboard-production-calendar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.v2-dashboard-production-calendar-filters {
  display: flex;
  align-items: center;
  gap: 6px;
}

.v2-dashboard-production-calendar-filters select {
  width: 150px;
  min-height: 34px;
  border: 1px solid var(--v2-line-soft);
  border-radius: 8px;
  background: var(--v2-surface);
  color: var(--v2-text);
  padding: 0 28px 0 10px;
  font: inherit;
  font-size: 11px;
  text-align: left;
  text-transform: capitalize;
}

.v2-dashboard-production-calendar-filters select[data-dashboard-production-calendar-year] {
  width: 96px;
}

.v2-dashboard-production-calendar-head span {
  display: block;
  color: var(--v2-muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v2-dashboard-production-calendar-head strong {
  color: var(--v2-primary);
  font-size: 14px;
  text-transform: capitalize;
}

.v2-dashboard-production-calendar-actions {
  display: inline-flex;
  gap: 6px;
  padding: 3px;
  border-radius: 999px;
  background: var(--v2-surface-low);
}

.v2-dashboard-production-calendar-actions button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--v2-text);
  padding: 0 12px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.v2-dashboard-production-calendar-actions button.is-active {
  background: var(--v2-surface);
  box-shadow: 0 0 0 1px #98b7a9;
}

.v2-dashboard-production-calendar-total {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, max-content));
  gap: 8px;
  align-items: stretch;
}

.v2-dashboard-production-calendar-total > div {
  min-width: 0;
  border: 1px solid var(--v2-line-soft);
  border-radius: 10px;
  background: var(--v2-surface-low);
  padding: 8px 10px;
  display: grid;
  gap: 2px;
}

.v2-dashboard-production-calendar-total span {
  color: var(--v2-muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v2-dashboard-production-calendar-total strong {
  color: #238247;
  font-size: 15px;
}

.v2-dashboard-production-calendar-grid {
  display: grid;
  gap: 8px;
}

.v2-dashboard-production-calendar-grid.is-week {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.v2-dashboard-production-calendar-grid.is-month {
  grid-template-columns: repeat(7, minmax(86px, 1fr));
}

.v2-dashboard-production-day {
  min-height: 52px;
  display: grid;
  align-content: start;
  gap: 2px;
  border: 1px solid var(--v2-line-soft);
  border-radius: 10px;
  background: var(--v2-surface-low);
  padding: 6px 8px;
}

.v2-dashboard-production-day.has-value {
  border-color: #98b7a9;
  background: #f2f7f4;
}

.v2-dashboard-production-day span {
  color: var(--v2-muted);
  font-size: 9px;
  text-transform: uppercase;
}

.v2-dashboard-production-day strong {
  color: var(--v2-primary);
  font-size: 14px;
}

.v2-dashboard-production-day small {
  color: #238247;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.v2-dashboard-production-day em {
  color: #238247;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.v2-dashboard-production-clients {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.v2-dashboard-production-clients button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid var(--v2-line-soft);
  border-radius: 999px;
  background: var(--v2-surface-low);
  color: var(--v2-text);
  padding: 0 12px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.v2-dashboard-production-clients button span {
  color: var(--v2-muted);
  margin-left: 6px;
}

.v2-dashboard-production-clients button.is-active {
  border-color: #98b7a9;
  background: #e6f0ea;
}

.v2-dashboard-production-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--v2-muted);
  font-size: 11px;
}

.v2-dashboard-production-list {
  display: grid;
  gap: 6px;
}

.v2-dashboard-production-table {
  overflow: auto;
  border: 1px solid var(--v2-line-soft);
  border-radius: 12px;
  background: var(--v2-surface);
}

.v2-dashboard-production-table .v2-table {
  min-width: 1180px;
}

.v2-dashboard-production-table .v2-col-machine {
  width: 6%;
}

.v2-dashboard-production-table .v2-col-id {
  width: 12%;
}

.v2-dashboard-production-table .v2-col-ref {
  width: 12%;
}

.v2-dashboard-production-table .v2-col-material {
  width: 9%;
}

.v2-dashboard-production-table .v2-col-color {
  width: 6%;
}

.v2-dashboard-production-table .v2-col-qty {
  width: 7%;
}

.v2-dashboard-production-table .v2-col-sizes {
  width: 10%;
}

.v2-dashboard-production-table .v2-col-client {
  width: 16%;
}

.v2-dashboard-production-table .v2-col-price {
  width: 7%;
}

.v2-dashboard-production-table .v2-col-total {
  width: 8%;
}

.v2-dashboard-production-table .v2-col-image {
  width: 7%;
}

.v2-dashboard-production-table .v2-row.is-selected {
  background: #f2f7f4;
  box-shadow: inset 4px 0 0 var(--v2-primary);
}

.v2-dashboard-production-table .v2-money-cell {
  color: var(--v2-primary);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.v2-dashboard-production-row {
  display: grid;
  grid-template-columns: 26px minmax(150px, 1.4fr) minmax(72px, 0.7fr) minmax(90px, 0.8fr) repeat(4, minmax(54px, 0.55fr));
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--v2-line-soft);
  border-radius: 10px;
  background: var(--v2-surface);
  padding: 8px 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.v2-dashboard-production-row:hover,
.v2-dashboard-production-row.is-selected {
  border-color: #98b7a9;
  box-shadow: 0 8px 22px rgba(28, 75, 55, 0.08);
}

.v2-dashboard-production-row.is-selected {
  background: #f2f7f4;
}

.v2-dashboard-production-check {
  width: 18px;
  height: 18px;
  border: 1px solid var(--v2-line);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #238247;
  font-size: 12px;
}

.v2-dashboard-production-row strong,
.v2-dashboard-production-row small {
  display: block;
}

.v2-dashboard-production-row small {
  color: var(--v2-muted);
  margin-top: 2px;
}

.v2-dashboard-production-row .is-number,
.v2-dashboard-production-row .is-good,
.v2-dashboard-production-row .is-bad,
.v2-dashboard-production-row .is-money {
  text-align: right;
  font-weight: 700;
}

@media (max-width: 980px) {
  .v2-dashboard-production-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-dashboard-production-calendar-head {
    align-items: stretch;
    flex-direction: column;
  }

  .v2-dashboard-production-calendar-tools {
    justify-content: flex-start;
  }

  .v2-dashboard-production-calendar-total {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-dashboard-production-row {
    grid-template-columns: 24px minmax(130px, 1fr) repeat(3, minmax(44px, 0.35fr));
  }

  .v2-dashboard-production-row > span:nth-child(3),
  .v2-dashboard-production-row > span:nth-child(4),
  .v2-dashboard-production-row .is-money {
    display: none;
  }
}

.v2-toolbar {
  display: flex;
  gap: 12px;
  padding: 0 28px 20px;
}

.v2-search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--v2-surface-low);
  color: var(--v2-muted-2);
}

.v2-search input,
.v2-toolbar select,
.v2-field input,
.v2-field select,
.v2-field textarea,
.v2-login input {
  border: 0;
  outline: 0;
  background: var(--v2-surface-low);
  color: var(--v2-text);
}

.v2-search input {
  min-height: 48px;
  flex: 1;
}

.v2-toolbar select {
  min-height: 48px;
  border-radius: 12px;
  padding: 0 14px;
}

.v2-content {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.v2-inline-panel-open .v2-list-header,
.v2-inline-panel-open .v2-toolbar,
.v2-inline-panel-open .v2-metrics {
  display: none;
}

body.v2-dashboard-production-open .v2-main {
  grid-template-columns: minmax(0, 1fr);
}

body.v2-dashboard-production-open .v2-list-pane {
  border-right: 0;
}

body.v2-dashboard-production-open .v2-detail-pane {
  display: none;
}

.v2-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.v2-table col.v2-col-machine {
  width: 7%;
}

.v2-table col.v2-col-id {
  width: 14%;
}

.v2-table col.v2-col-ref {
  width: 13%;
}

.v2-table col.v2-col-material {
  width: 10%;
}

.v2-table col.v2-col-color {
  width: 7%;
}

.v2-table col.v2-col-qty {
  width: 7%;
}

.v2-table col.v2-col-sizes {
  width: 12%;
}

.v2-table col.v2-col-client {
  width: 21%;
}

.v2-table col.v2-col-image {
  width: 9%;
}

.v2-table thead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--v2-surface-low);
  color: var(--v2-muted);
  box-shadow: 0 1px 0 var(--v2-line);
}

.v2-table th {
  padding: 14px 18px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.v2-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--v2-line-soft);
  vertical-align: middle;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.v2-table td:last-child {
  text-align: center;
}

.v2-row {
  cursor: pointer;
  transition: background 120ms ease;
}

.v2-row:hover,
.v2-row.is-selected {
  background: #f7f7fb;
}

.v2-row.is-selected {
  box-shadow: inset 4px 0 0 var(--v2-primary);
}

.v2-machine-badge,
.v2-state-badge,
.v2-size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 24px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.v2-machine-badge {
  background: var(--v2-primary-2);
  color: #fff;
}

.v2-machine-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 48px;
}

.v2-technique-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 35, 31, 0.12);
  background: var(--v2-technique-bg, #e7ede2);
  color: var(--v2-technique-fg, #1f2f20);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.v2-machine-stack strong {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--v2-text);
  text-align: center;
}

.v2-missing-price-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d7524f;
  box-shadow: 0 0 0 1px rgba(215, 82, 79, 0.14);
  animation: v2-missing-price-pulse 1s ease-in-out infinite;
}

@keyframes v2-missing-price-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.86);
  }
}

.v2-state-badge {
  background: var(--v2-surface-mid);
  color: var(--v2-muted);
}

button.v2-state-badge,
select.v2-state-badge {
  border: 1px solid rgba(31, 35, 31, 0.12);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

select.v2-state-badge {
  appearance: auto;
  -webkit-appearance: menulist;
  min-width: 104px;
  justify-content: flex-start;
  text-align: left;
  padding-right: 18px;
}

button.v2-state-badge.is-toggle,
select.v2-state-badge.is-toggle {
  box-shadow: none;
}

button.v2-state-badge.is-toggle:hover,
select.v2-state-badge.is-toggle:hover {
  filter: brightness(0.97);
  box-shadow: 0 0 0 1px rgba(31, 35, 31, 0.16);
}

.v2-state-badge.is-pendente {
  background: #fff5cf;
  color: #7a5a00;
}

.v2-state-badge.is-avancar {
  background: #dff7e7;
  color: #116b38;
  animation: v2-state-avancar-pulse 1.15s ease-in-out infinite;
}

@keyframes v2-state-avancar-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(17, 107, 56, 0.1);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 4px rgba(17, 107, 56, 0.16);
    opacity: 0.72;
  }
}

.v2-state-badge.is-executado {
  background: #e8f0ff;
  color: #244b9a;
}

.v2-state-badge.is-terminado {
  background: #e8e8ee;
  color: #46464f;
}

.v2-ref-stack,
.v2-client-stack,
.v2-id-stack {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.v2-ref-stack small,
.v2-client-stack small,
.v2-id-stack small {
  color: var(--v2-muted);
  font-size: 10px;
}

.v2-id-stack .v2-flow-badge {
  width: fit-content;
  border-radius: 999px;
  background: #e6efe9;
  color: #30584b;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.1;
}

.v2-row-state {
  justify-self: start;
  margin-top: 3px;
}

.v2-qty-stack {
  display: inline-grid;
  justify-items: center;
  gap: 2px;
}

.v2-qty-stack small {
  font-size: 9px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.v2-qty-stack .is-produced {
  color: #238247;
}

.v2-qty-stack .is-remaining {
  color: #b83a34;
}

.v2-id-stack strong,
.v2-client-stack strong {
  color: var(--v2-primary);
}

.v2-color-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v2-thumb {
  width: min(56px, 100%);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--v2-line-soft);
  background: var(--v2-surface-low);
}

.v2-color-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  background: #c7c5d1;
}

.v2-qty {
  color: var(--v2-primary);
  font-size: 18px;
  font-weight: 800;
}

.v2-size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 160px;
}

.v2-size-pill {
  background: var(--v2-surface-low);
  color: var(--v2-text);
}

.v2-card-grid {
  padding: 0 28px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 14px 16px;
}

.v2-history-toolbar {
  margin: 0 28px 20px;
  min-height: 46px;
  border: 1px solid var(--v2-line-soft);
  border-radius: 999px;
  background: var(--v2-surface-low);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  padding: 3px;
}

.v2-history-toolbar button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--v2-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.v2-history-toolbar button.is-active {
  background: var(--v2-surface);
  color: var(--v2-text);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.v2-history-grid {
  padding: 0 28px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px 16px;
}

.v2-history-card {
  border: 1px solid var(--v2-line-soft);
  border-radius: 12px;
  background: var(--v2-surface);
  padding: 7px;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.v2-history-card:hover,
.v2-history-card.is-selected {
  border-color: #98b7a9;
  box-shadow: 0 10px 28px rgba(28, 75, 55, 0.1);
}

.v2-history-card.is-selected {
  transform: translateY(-1px);
}

.v2-history-image {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border: 1px solid var(--v2-line-soft);
  border-radius: 9px;
  background: var(--v2-surface-low);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.v2-history-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.v2-history-card-body {
  padding: 5px 1px 0;
  display: grid;
  gap: 2px;
}

.v2-history-card-body strong {
  color: var(--v2-primary);
  font-size: 10px;
}

.v2-history-card-body span {
  color: var(--v2-muted);
  font-size: 9px;
  line-height: 1.2;
}

.v2-history-pagination {
  padding: 0 28px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--v2-muted);
  font-size: 11px;
  font-weight: 700;
}

.v2-list-pagination {
  padding: 10px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--v2-muted);
  font-size: 11px;
  font-weight: 700;
}

.v2-history-pagination button:disabled,
.v2-list-pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}

.v2-history-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.v2-history-locations span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #eef5f0;
  color: #2f6f54;
  border: 1px solid #cfe0d7;
  font-size: 10px;
  font-weight: 750;
}

.v2-sample-card {
  border: 1px solid var(--v2-line-soft);
  border-radius: 12px;
  background: var(--v2-surface);
  padding: 7px;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.v2-sample-card:hover,
.v2-sample-card.is-selected {
  border-color: #98b7a9;
  box-shadow: 0 10px 28px rgba(28, 75, 55, 0.1);
}

.v2-sample-card.is-selected {
  transform: translateY(-1px);
}

.v2-sample-card img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--v2-line-soft);
  border-radius: 9px;
  background: var(--v2-surface-low);
}

.v2-sample-card-body {
  padding: 5px 1px 0;
  display: grid;
  gap: 2px;
}

.v2-detail-pane {
  overflow: auto;
  background: linear-gradient(180deg, #fff 0%, #fbf9f9 100%);
}

.v2-detail-empty {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  color: var(--v2-muted);
  padding: 32px;
}

.v2-detail-empty strong {
  color: var(--v2-primary);
  font-size: 20px;
}

.v2-detail {
  padding: 28px;
}

.v2-detail-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--v2-muted);
  font-size: 11px;
}

.v2-detail h2 {
  margin: 10px 0 18px;
  color: var(--v2-primary);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.v2-detail-media {
  position: relative;
  margin-bottom: 18px;
  border-radius: var(--v2-radius);
  overflow: hidden;
  background: var(--v2-surface-low);
  border: 1px solid var(--v2-line-soft);
}

.v2-detail-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.v2-detail-media .v2-thumb-upload-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--v2-primary);
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(31, 42, 29, 0.12);
}

.v2-detail-media .v2-thumb-upload-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.v2-files-modal-backdrop {
  align-items: stretch;
  padding: 18px;
}

.v2-files-modal {
  position: relative;
  width: min(100%, 1340px);
  min-height: min(92vh, 760px);
  margin: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: var(--v2-surface);
  box-shadow: 0 24px 70px rgb(15 23 20 / 20%);
}

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

.v2-files-modal-head h3 {
  margin: 0 0 4px;
  color: var(--v2-primary);
  font-size: 18px;
  font-weight: 650;
}

.v2-files-modal-head p,
.v2-files-zone header span {
  margin: 0;
  color: var(--v2-muted);
  font-size: 10px;
}

.v2-files-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  overflow: auto;
  padding: 20px;
}

.v2-files-zone {
  min-width: 0;
  align-content: start;
  display: grid;
  gap: 14px;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  padding: 18px;
  background: var(--v2-surface-low);
}

.v2-files-zone header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v2-files-zone header strong {
  display: block;
  color: var(--v2-primary);
  font-size: 14px;
}

.v2-files-row {
  display: grid;
  gap: 12px;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  background: var(--v2-surface);
  padding: 14px;
}

.v2-files-row.is-approved {
  border-color: #98bea8;
  background: #f1f8f3;
}

.v2-files-row-main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.v2-files-row-main strong {
  overflow: hidden;
  color: var(--v2-primary);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-files-row-main textarea {
  min-height: 58px;
  resize: vertical;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: var(--v2-surface);
  padding: 10px 12px;
  color: var(--v2-primary);
  font: inherit;
}

.v2-files-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.v2-files-row-actions span {
  margin-right: auto;
  border-radius: 999px;
  background: var(--v2-surface-mid);
  color: var(--v2-muted);
  padding: 7px 12px;
  font-size: 10px;
  font-weight: 600;
}

.v2-files-row.is-approved .v2-files-row-actions span {
  background: #e2efe5;
  color: #49685b;
}

.v2-files-footer {
  display: flex;
  justify-content: flex-start;
  border-top: 1px solid var(--v2-line);
  padding: 14px 20px;
}

.v2-files-empty {
  border: 1px dashed var(--v2-line);
  border-radius: 12px;
  padding: 18px;
  color: var(--v2-muted);
  font-size: 10px;
}

.v2-files-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 12px;
  background: rgba(246, 247, 245, 0.74);
  color: var(--v2-primary);
  text-align: center;
}

.v2-files-loading.is-inline {
  position: static;
  min-height: 180px;
  background: transparent;
}

.v2-files-loading span {
  width: 32px;
  height: 32px;
  margin: 0 auto;
  border: 3px solid var(--v2-line);
  border-top-color: var(--v2-primary-2);
  border-radius: 50%;
  animation: v2-spin 800ms linear infinite;
}

@keyframes v2-spin {
  to {
    transform: rotate(360deg);
  }
}

.v2-approval-preset-modal {
  width: min(100%, 560px);
  min-height: 0;
  grid-template-rows: auto auto;
}

.v2-approval-preset-modal .v2-form-grid {
  padding: 20px;
}

.v2-approval-waiting-modal {
  width: min(100%, 520px);
  min-height: 260px;
  place-content: center;
  padding: 24px;
  text-align: center;
}

.v2-price-result-modal {
  width: min(100%, 760px);
  min-height: 0;
}

.v2-price-summary {
  margin: 18px 20px 8px;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  padding: 14px;
  background: var(--v2-surface-low);
}

.v2-price-summary span {
  display: block;
  color: var(--v2-muted);
  font-size: 10px;
}

.v2-price-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--v2-primary);
  font-size: 18px;
}

.v2-price-consumption {
  display: grid;
  gap: 8px;
  max-height: 230px;
  overflow: auto;
  padding: 10px 20px;
}

.v2-price-consumption article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--v2-line-soft);
  padding: 8px 0;
}

.v2-price-result-modal form {
  padding: 14px 20px 20px;
}

.v2-detail-price-box {
  width: min(170px, 100%);
  container-type: inline-size;
  display: grid;
  gap: 7px;
  margin-top: 10px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  padding: 9px 10px 10px;
  background: rgba(255, 255, 255, 0.7);
}

.v2-detail-price-actions {
  display: flex;
  justify-content: flex-end;
}

.v2-detail-price-actions .v2-secondary-btn {
  min-height: 30px;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 550;
}

.v2-detail-price-field {
  display: grid;
  gap: 4px;
}

.v2-detail-price-field span {
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 600;
}

.v2-detail-price-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--v2-surface-low);
  color: var(--v2-text);
  font-size: 11px;
  font-weight: 500;
  padding: 0 10px;
}

.v2-detail-price-made {
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--v2-muted);
  font-size: clamp(7px, 7.5cqw, 10px);
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.v2-ink-panel {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px 28px 28px;
  background: var(--v2-surface);
}

.v2-ink-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--v2-line);
  padding-bottom: 16px;
}

.v2-ink-panel-head h2 {
  margin: 0;
  color: var(--v2-primary);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.v2-ink-panel-head span {
  display: block;
  margin-top: 6px;
  color: var(--v2-muted);
  font-size: 11px;
}

.v2-ink-form {
  display: grid;
  gap: 14px;
}

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

.v2-ink-price-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.v2-ink-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.v2-ink-field span {
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 750;
}

.v2-ink-field input,
.v2-ink-field textarea {
  width: 100%;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: var(--v2-surface-low);
  color: var(--v2-text);
  font: inherit;
  padding: 10px 12px;
  outline: 0;
}

.v2-ink-field input {
  min-height: 42px;
}

.v2-ink-field textarea {
  min-height: 210px;
  resize: vertical;
}

.v2-ink-field textarea[readonly],
.v2-ink-field input[readonly],
.v2-ink-field textarea:disabled,
.v2-ink-field input:disabled {
  color: var(--v2-muted);
}

.v2-ink-hint {
  margin: 0;
  color: var(--v2-muted);
  font-size: 11px;
}

@media (max-width: 860px) {
  .v2-files-grid {
    grid-template-columns: 1fr;
  }

  .v2-files-field {
    align-items: stretch;
    flex-direction: column;
  }

  .v2-ink-grid,
  .v2-ink-price-grid {
    grid-template-columns: 1fr;
  }

  .v2-ink-panel-head {
    flex-direction: column;
  }
}

.v2-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.v2-stat-card {
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.v2-stat-card span {
  display: block;
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v2-stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--v2-primary);
  font-size: 20px;
  line-height: 1.2;
}

.v2-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--v2-line);
  margin: 10px 0 18px;
}

.v2-tabs button {
  border: 0;
  background: transparent;
  color: var(--v2-muted);
  font-weight: 700;
  padding: 12px 0;
  cursor: pointer;
}

.v2-tabs button.is-active {
  color: var(--v2-primary);
  box-shadow: inset 0 -2px 0 var(--v2-primary);
}

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

.v2-form-row {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

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

.v2-form-row-four {
  grid-template-columns: minmax(96px, 1fr) minmax(120px, 1fr) minmax(82px, 0.62fr) minmax(82px, 0.62fr);
}

.v2-form-row-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.v2-field.is-wide {
  grid-column: 1 / -1;
}

.v2-files-field {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--v2-line-soft);
  border-radius: 12px;
  background: var(--v2-surface-low);
  padding: 12px 14px;
}

.v2-files-field-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.v2-files-field-main span,
.v2-files-field-main small {
  color: var(--v2-muted);
  font-size: 10px;
}

.v2-files-field-main strong {
  overflow: hidden;
  color: var(--v2-primary);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-form-grid > .is-wide {
  grid-column: 1 / -1;
}

.v2-field label,
.v2-login label {
  color: var(--v2-muted);
  font-size: 11px;
  font-weight: 650;
}

.v2-field input,
.v2-field select,
.v2-field textarea {
  min-height: 44px;
  width: 100%;
  border-radius: 12px;
  padding: 0 12px;
}

.v2-field textarea {
  padding: 12px;
  resize: vertical;
}

.v2-field select[multiple] {
  min-height: 96px;
  padding: 8px 10px;
}

.v2-image-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  background: var(--v2-surface-low);
  padding: 8px;
}

.v2-image-preview[hidden] {
  display: none;
}

.v2-image-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--v2-card);
  flex: 0 0 auto;
}

.v2-image-preview span {
  min-width: 0;
  color: var(--v2-muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-color-trigger {
  min-height: 44px;
  height: 44px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  background: var(--v2-card);
  padding: 0 14px;
  text-align: left;
  cursor: pointer;
}

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

.v2-color-option {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  background: var(--v2-card);
  padding: 0 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.v2-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--v2-line), 0 4px 12px rgb(0 0 0 / 14%);
  flex: 0 0 auto;
}

.v2-color-option strong {
  font-size: 12px;
  color: var(--v2-text);
}

.v2-color-option.is-selected,
.v2-color-trigger:focus-visible {
  border-color: #8fb8a8;
  background: #f0f7f3;
  box-shadow: 0 0 0 2px rgb(61 124 105 / 12%);
}

.v2-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(20 27 24 / 28%);
  backdrop-filter: blur(8px);
}

.v2-color-modal {
  width: min(760px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  border: 1px solid var(--v2-line);
  border-radius: 22px;
  background: var(--v2-card);
  box-shadow: 0 24px 70px rgb(15 23 20 / 20%);
  padding: 26px;
}

.v2-color-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.v2-color-modal-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.v2-modal-open {
  overflow: hidden;
}

.v2-confirm-modal {
  width: min(100%, 430px);
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: var(--v2-surface);
  box-shadow: 0 24px 70px rgb(15 23 20 / 20%);
  padding: 22px;
}

.v2-confirm-modal h3 {
  margin: 0;
  color: var(--v2-primary);
  font-size: 20px;
}

.v2-confirm-modal p:not(.v2-eyebrow) {
  margin: 14px 0 18px;
  color: var(--v2-muted);
  font-size: 13px;
  line-height: 1.45;
}

.v2-lots-modal-backdrop {
  align-items: stretch;
}

.v2-lots-modal {
  width: min(100%, 860px);
  max-height: min(92vh, 720px);
  margin: auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: var(--v2-surface);
  box-shadow: 0 24px 70px rgb(15 23 20 / 20%);
}

.v2-lots-modal [data-lots-subtitle] {
  margin: 0;
  color: var(--v2-muted);
  font-size: 10px;
}

.v2-lots-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid var(--v2-line);
  background: var(--v2-surface-low);
  padding: 12px 16px;
}

.v2-lots-toolbar .v2-secondary-btn.is-active {
  background: #fff;
  color: var(--v2-primary);
  box-shadow: 0 1px 0 rgba(31, 35, 31, 0.08);
}

.v2-lots-table {
  min-height: 0;
  overflow: auto;
  padding: 14px 16px;
}

.v2-lots-row {
  display: grid;
  grid-template-columns: 56px minmax(170px, 1fr) 90px 78px 100px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--v2-line-soft);
  padding: 10px 8px;
  color: var(--v2-text);
  font-size: 12px;
}

.v2-lots-row.is-header {
  border-bottom-color: var(--v2-line);
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.v2-lots-row.is-selected {
  background: #f3f8f4;
}

.v2-lots-row.is-empty {
  display: block;
  border: 1px dashed var(--v2-line);
  border-radius: 12px;
  color: var(--v2-muted);
  padding: 18px;
}

.v2-lots-link {
  border: 0;
  background: transparent;
  color: var(--v2-primary);
  cursor: pointer;
  padding: 0;
  text-align: left;
  font: inherit;
}

.v2-lot-lines-modal-backdrop {
  z-index: 72;
  background: rgb(20 27 24 / 18%);
}

.v2-lot-lines-modal {
  width: min(100%, 620px);
  max-height: min(82vh, 640px);
  margin: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: var(--v2-surface);
  box-shadow: 0 24px 70px rgb(15 23 20 / 24%);
}

.v2-lot-lines-modal [data-lot-lines-subtitle] {
  margin: 0;
  color: var(--v2-muted);
  font-size: 10px;
}

.v2-lot-lines-table {
  min-height: 0;
  overflow: auto;
  padding: 14px 16px;
}

.v2-lot-lines-row {
  display: grid;
  grid-template-columns: 52px 132px minmax(120px, 1fr) 78px 92px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--v2-line-soft);
  padding: 10px 8px;
  color: var(--v2-text);
  font-size: 12px;
}

.v2-lot-lines-row.is-header {
  border-bottom-color: var(--v2-line);
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.v2-lot-lines-row.is-selected {
  background: #f3f8f4;
}

.v2-lot-lines-row.is-empty {
  display: block;
  border: 1px dashed var(--v2-line);
  border-radius: 12px;
  color: var(--v2-muted);
  padding: 18px;
}

.v2-lots-row[data-lot-key] {
  cursor: pointer;
}

.v2-lots-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--v2-line);
  padding: 14px 16px;
}

.v2-lots-footer span {
  margin-right: auto;
  color: var(--v2-muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .v2-color-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-lots-row {
    grid-template-columns: 44px minmax(120px, 1fr) 70px 60px 82px;
    font-size: 11px;
  }
}

@media (max-width: 460px) {
  .v2-color-options {
    grid-template-columns: 1fr;
  }

  .v2-form-row-four {
    grid-template-columns: 1fr;
  }
}

.v2-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.v2-chip-btn {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--v2-surface-low);
  color: var(--v2-primary);
  font-weight: 800;
}

.v2-progress-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--v2-radius);
  background: var(--v2-surface-low);
}

.v2-progress-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.v2-progress-step {
  position: relative;
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.v2-progress-step::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--v2-line);
  margin: 0 auto 8px;
}

.v2-progress-step.is-done {
  color: var(--v2-primary);
}

.v2-progress-step.is-done::before {
  background: var(--v2-primary);
  box-shadow: 0 0 0 5px #dfe0ff;
}

.v2-config-list,
.v2-client-list,
.v2-production-tabs {
  padding: 0 28px 28px;
  display: grid;
  gap: 10px;
}

.v2-config-shell {
  min-height: 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  padding: 0 22px 22px;
}

.v2-config-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.v2-config-nav button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  background: transparent;
  color: var(--v2-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.v2-config-nav button:hover,
.v2-config-nav button.is-active {
  background: #e6f0ea;
  color: #3f776d;
  box-shadow: inset 0 0 0 1px #c9ddd4;
}

.v2-config-list-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  border-left: 1px solid var(--v2-line);
  padding-left: 18px;
}

.v2-config-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v2-config-list-head strong {
  color: var(--v2-primary);
  font-weight: 500;
}

.v2-check-field {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--v2-muted);
  font-size: 11px;
  font-weight: 650;
}

.v2-check-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--v2-primary-2);
}

.v2-access-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--v2-line-soft);
  border-radius: 12px;
  padding: 14px;
  background: var(--v2-surface);
}

.v2-access-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.v2-access-head > div:first-child {
  display: grid;
  gap: 4px;
}

.v2-access-head span {
  color: var(--v2-muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.v2-access-head small {
  color: var(--v2-muted-2);
  font-size: 12px;
  line-height: 1.35;
}

.v2-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.v2-access-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.v2-access-group {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--v2-line-soft);
  border-radius: 10px;
  padding: 10px 12px 12px;
}

.v2-access-group legend {
  padding: 0 5px;
  color: var(--v2-primary);
  font-size: 12px;
  font-weight: 650;
}

.v2-access-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  color: var(--v2-text);
  font-size: 13px;
}

.v2-access-option input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--v2-primary-2);
}

.v2-config-log-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.v2-client-config-detail {
  padding: 18px;
}

.v2-client-config-form {
  display: grid;
  gap: 14px;
  align-content: start;
  justify-items: start;
}

.v2-client-company-panel,
.v2-client-people-group {
  min-width: 0;
  border: 1px solid var(--v2-line-soft);
  border-radius: 12px;
  padding: 14px;
  background: var(--v2-surface);
}

.v2-client-company-panel {
  width: min(100%, 620px);
}

.v2-client-people-panel {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  overflow: hidden;
}

.v2-client-people-group {
  align-content: start;
  display: grid;
  gap: 12px;
  max-width: 100%;
  overflow: hidden;
}

.v2-client-people-head,
.v2-client-person-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.v2-client-people-head span,
.v2-client-person-title strong {
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v2-client-people-list {
  display: grid;
  gap: 10px;
}

.v2-client-person {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--v2-line-soft);
  border-radius: 10px;
  padding: 10px;
  background: var(--v2-surface);
  overflow: hidden;
}

.v2-client-person-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.v2-client-person .v2-field {
  min-width: 0;
}

.v2-client-person .v2-field input,
.v2-client-person .v2-field select,
.v2-client-person .v2-field textarea {
  background: var(--v2-surface-low);
}

.v2-client-password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: var(--v2-surface-low);
}

.v2-client-password-field input {
  min-width: 0;
}

.v2-client-password-toggle {
  min-height: 28px;
  margin-right: 4px;
  border: 0;
  border-radius: 7px;
  background: var(--v2-surface);
  color: var(--v2-primary);
  padding: 0 8px;
  font-size: 8px;
  font-weight: 600;
  cursor: pointer;
}

.v2-client-flags {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  min-width: 0;
}

.v2-client-info-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.v2-client-info-field span {
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 650;
}

.v2-client-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.v2-client-info-head .v2-secondary-btn {
  min-height: 26px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 8px;
}

.v2-client-info-field small {
  min-height: 36px;
  border-radius: 10px;
  padding: 9px 10px;
  background: var(--v2-surface-low);
  color: var(--v2-muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.v2-client-link-field select[multiple] {
  min-height: 74px;
}

.v2-client-horario-modal {
  width: min(100%, 620px);
  min-height: 0;
  grid-template-rows: auto 1fr;
}

.v2-client-horario-form {
  display: grid;
  gap: 0;
}

.v2-client-horario-rows {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
}

.v2-client-horario-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 96px 96px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--v2-line-soft);
  border-radius: 10px;
  background: var(--v2-surface-low);
  padding: 9px 10px;
}

.v2-client-horario-row input[type="time"] {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: var(--v2-surface);
  color: var(--v2-text);
  padding: 0 8px;
  font-size: 10px;
}

.v2-client-company-panel .v2-form-grid {
  grid-template-columns: minmax(95px, 0.45fr) minmax(180px, 1fr);
}

.v2-list-card {
  border: 1px solid var(--v2-line-soft);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--v2-surface);
  cursor: pointer;
}

.v2-list-card:hover,
.v2-list-card.is-selected {
  border-color: var(--v2-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.v2-config-list-panel .v2-list-card.is-selected,
.v2-client-list .v2-list-card.is-selected {
  border-color: #8fb8a8;
  background: #e6f0ea;
  box-shadow: inset 4px 0 0 #3f776d, 0 8px 22px rgba(63, 119, 109, 0.08);
}

.v2-list-card strong {
  color: var(--v2-primary);
}

.v2-list-card span,
.v2-list-card small {
  color: var(--v2-muted);
}

.v2-empty,
.v2-error {
  margin: 28px;
  border-radius: var(--v2-radius);
  background: var(--v2-surface-low);
  padding: 28px;
  color: var(--v2-muted);
}

.v2-error {
  color: var(--v2-bad);
}

.v2-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  max-width: 360px;
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--v2-primary);
  color: #fff;
  box-shadow: var(--v2-shadow);
  font-weight: 700;
}

.v2-login {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(251, 249, 249, 0.82);
  backdrop-filter: blur(12px);
}

.v2-login[hidden],
.v2-toast[hidden] {
  display: none !important;
}

.v2-image-hover-preview {
  position: fixed;
  z-index: 1200;
  width: min(280px, calc(100vw - 28px));
  height: min(240px, calc(100vh - 28px));
  padding: 8px;
  border: 1px solid var(--v2-line);
  border-radius: 10px;
  background: var(--v2-surface);
  box-shadow: 0 18px 45px rgba(20, 30, 22, 0.18);
  pointer-events: none;
}

.v2-image-hover-preview[hidden] {
  display: none !important;
}

.v2-image-hover-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 7px;
  background: var(--v2-surface-low);
}

.v2-login-card {
  width: min(450px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 24px;
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow);
  border: 1px solid var(--v2-line-soft);
}

.v2-login h2 {
  margin: 0;
  color: var(--v2-primary);
  font-size: 26px;
}

.v2-login p {
  margin: 0;
  color: var(--v2-muted);
}

.v2-login input {
  min-height: 46px;
  border-radius: 12px;
  padding: 0 12px;
}

.v2-login-error {
  color: var(--v2-bad) !important;
  font-weight: 700;
}

.v2-icon-action {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--v2-surface-low);
  color: var(--v2-primary);
}

@media (max-width: 1180px) {
  .v2-main {
    grid-template-columns: 1fr;
  }

  .v2-detail-pane {
    border-top: 1px solid var(--v2-line);
    max-height: 52vh;
  }

  .v2-topnav {
    display: none;
  }
}

@media (max-width: 820px) {
  .v2-topbar {
    padding: 0 14px;
  }

  .v2-brand {
    min-width: 0;
  }

  .v2-version-pill,
  .v2-secondary-btn#v2RefreshBtn {
    display: none;
  }

  .v2-sidebar {
    position: fixed;
    inset: 64px auto 0 0;
    z-index: 30;
    transform: translateX(-105%);
    transition: transform 160ms ease;
    box-shadow: var(--v2-shadow);
  }

  body.v2-menu-open .v2-sidebar {
    transform: translateX(0);
  }

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

  .v2-list-header,
  .v2-toolbar,
  .v2-metrics {
    padding-left: 16px;
    padding-right: 16px;
  }

  .v2-list-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .v2-list-header h1 {
    font-size: 26px;
  }

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

  .v2-toolbar {
    flex-direction: column;
  }

  .v2-card-grid,
  .v2-history-grid,
  .v2-config-list,
  .v2-client-list,
  .v2-production-tabs {
    padding-left: 16px;
    padding-right: 16px;
  }

  .v2-history-toolbar {
    margin-left: 16px;
    margin-right: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 18px;
  }

  .v2-history-pagination {
    padding-left: 16px;
    padding-right: 16px;
    flex-wrap: wrap;
  }

  .v2-config-shell {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

  .v2-config-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .v2-config-nav button {
    flex: 0 0 auto;
  }

  .v2-client-people-panel {
    grid-template-columns: 1fr;
  }

  .v2-client-person-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-detail-top {
    grid-template-columns: 1fr;
  }

  .v2-detail-top .v2-detail-hero {
    justify-content: flex-start;
  }

  .v2-form-row-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .v2-client-person-grid,
  .v2-form-row-four {
    grid-template-columns: 1fr;
  }

  .v2-client-flags {
    grid-template-columns: 1fr;
  }

  .v2-client-horario-row {
    grid-template-columns: 1fr;
  }
}

/* Compact production-grade pass: denser, calmer, closer to a daily work tool. */
:root {
  --v2-bg: #f6f7f5;
  --v2-surface-low: #f1f3ef;
  --v2-surface-mid: #e7ebe4;
  --v2-line: #d7ddd0;
  --v2-line-soft: #e7ebe1;
  --v2-text: #20231f;
  --v2-muted: #687063;
  --v2-muted-2: #80877b;
  --v2-primary: #243322;
  --v2-primary-2: #455741;
  --v2-shadow: 0 12px 34px rgba(31, 42, 29, 0.08);
  --v2-radius: 12px;
}

body {
  font-size: 11px;
  background: var(--v2-bg);
}

.v2-topbar {
  height: 56px;
  padding: 0 22px;
  gap: 16px;
}

.v2-brand {
  min-width: 210px;
  gap: 10px;
}

.v2-brand-title {
  font-size: 18px;
  letter-spacing: 0;
}

.v2-version-pill {
  padding: 4px 8px;
  font-size: 8px;
}

.v2-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 17px;
}

.v2-topnav {
  gap: 4px;
}

.v2-topnav-btn {
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 11px;
}

.v2-secondary-btn,
.v2-primary-btn {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 11px;
}

.v2-sidebar {
  width: 218px;
  flex-basis: 218px;
  padding: 18px 8px;
}

.v2-sidebar-section {
  padding: 0 16px 12px;
  font-size: 8px;
}

.v2-nav-item {
  min-height: 42px;
  gap: 10px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 11px;
}

.v2-nav-item span {
  width: 20px;
}

.v2-main {
  grid-template-columns: minmax(720px, 1fr) minmax(330px, 380px);
}

.v2-list-header {
  padding: 20px 22px 12px;
}

.v2-eyebrow {
  margin-bottom: 4px;
  font-size: 8px;
}

.v2-list-header h1 {
  font-size: 22px;
  line-height: 1.12;
}

.v2-metrics {
  gap: 10px;
  padding: 0 22px 14px;
}

.v2-metric {
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 11px;
}

.v2-metric span {
  font-size: 8px;
}

.v2-metric strong {
  margin-top: 6px;
  font-size: 16px;
}

.v2-metric-production {
  gap: 4px 9px;
  margin-top: 6px;
}

.v2-metric-production strong {
  margin-top: 0;
}

.v2-metric-production .is-produced,
.v2-metric-production .is-remaining {
  font-size: 10px;
}

.v2-toolbar {
  gap: 10px;
  padding: 0 22px 14px;
}

.v2-search {
  border-radius: 10px;
}

.v2-search input,
.v2-toolbar select {
  min-height: 40px;
}

.v2-toolbar select {
  border-radius: 10px;
}

.v2-table {
  min-width: 0;
}

.v2-table th {
  padding: 9px 8px;
  font-size: 8px;
}

.v2-table td {
  padding: 9px 8px;
}

.v2-row:nth-child(even) {
  background: rgba(246, 247, 245, 0.45);
}

.v2-row:hover,
.v2-row.is-selected {
  background: #eef2eb;
}

.v2-machine-badge,
.v2-state-badge,
.v2-size-pill {
  min-height: 21px;
  padding: 0 8px;
  font-size: 9px;
}

.v2-id-stack strong,
.v2-client-stack strong {
  font-size: 11px;
}

.v2-ref-stack small,
.v2-client-stack small,
.v2-id-stack small {
  font-size: 9px;
}

.v2-color-cell {
  gap: 8px;
}

.v2-thumb {
  width: min(48px, 100%);
  height: auto;
  aspect-ratio: 1;
  border-radius: 7px;
}

.v2-color-dot {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  display: inline-block;
  border-radius: 50%;
  vertical-align: middle;
}

.v2-qty {
  font-size: 13px;
}

.v2-size-list {
  gap: 4px;
  max-width: none;
}

.v2-card-grid,
.v2-config-list,
.v2-client-list,
.v2-production-tabs {
  padding: 0 22px 22px;
}

.v2-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 14px 16px;
}

.v2-sample-card-body {
  padding: 5px 1px 0;
}

.v2-detail {
  padding: 22px;
}

.v2-detail-kicker {
  font-size: 10px;
}

.v2-detail h2 {
  margin: 8px 0 14px;
  font-size: 19px;
  line-height: 1.16;
}

.v2-detail-media {
  margin-bottom: 14px;
}

.v2-detail-media img {
  aspect-ratio: 16 / 10;
}

/* Detail image should support inspection without dominating the panel. */
.v2-detail-media {
  max-height: 260px;
}

.v2-detail-media img {
  height: min(260px, 28vh);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  background: var(--v2-surface-low);
}

.v2-detail-hero {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.v2-detail-hero .v2-detail-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.v2-detail-hero .v2-detail-media {
  align-self: start;
  justify-self: end;
  width: 190px;
  height: 190px;
  max-width: 100%;
  margin-bottom: 0;
  display: grid;
  place-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.v2-detail-hero .v2-detail-media img {
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.v2-detail-media .v2-thumb-upload-btn {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.v2-detail-stats {
  gap: 10px;
  margin-bottom: 16px;
}

.v2-stat-card {
  padding: 11px;
  border-radius: 11px;
}

.v2-stat-card span {
  font-size: 8px;
}

.v2-stat-card strong {
  margin-top: 6px;
  font-size: 13px;
}

.v2-tabs {
  gap: 16px;
  margin: 8px 0 14px;
}

.v2-tabs button {
  padding: 9px 0;
  font-size: 11px;
}

.v2-form-grid {
  gap: 10px;
}

.v2-field label,
.v2-login label {
  font-size: 10px;
}

.v2-field input,
.v2-field select,
.v2-field textarea {
  min-height: 38px;
  border-radius: 10px;
}

.v2-detail-actions {
  gap: 8px;
  margin-top: 14px;
}

.v2-chip-btn {
  min-height: 32px;
}

.v2-progress-card {
  margin-top: 14px;
  padding: 14px;
}

.v2-progress-line {
  gap: 8px;
  margin-top: 12px;
}

.v2-list-card {
  padding: 11px 12px;
  border-radius: 11px;
}

.v2-empty,
.v2-error {
  margin: 22px;
  padding: 20px;
}

.v2-login-card {
  border-radius: 18px;
}

.v2-login h2 {
  font-size: 20px;
}

/* Typography correction: smaller, lighter, less mockup-like. */
body {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
}

.v2-brand-title {
  font-size: 16px;
  font-weight: 600;
}

.v2-version-pill,
.v2-sidebar-section,
.v2-eyebrow,
.v2-metric span,
.v2-table th,
.v2-stat-card span {
  font-weight: 500;
  letter-spacing: 0.06em;
}

.v2-topnav-btn,
.v2-nav-item,
.v2-secondary-btn,
.v2-primary-btn,
.v2-link-btn,
.v2-chip-btn,
.v2-tabs button,
.v2-field label,
.v2-login label {
  font-size: 10px;
  font-weight: 500;
}

.v2-list-header h1 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.v2-detail h2 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}

.v2-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  margin-bottom: 14px;
}

.v2-detail-copy {
  min-width: 0;
}

.v2-detail-top .v2-detail-hero {
  margin-bottom: 0;
}

.v2-metric strong {
  font-size: 14px;
  font-weight: 500;
}

.v2-id-stack strong,
.v2-client-stack strong,
.v2-list-card strong,
.v2-sample-card-body strong {
  font-size: 10px;
  font-weight: 500;
}

.v2-ref-stack small,
.v2-client-stack small,
.v2-id-stack small,
.v2-list-card small,
.v2-sample-card-body small,
.v2-sample-card-body span {
  font-size: 9px;
  font-weight: 400;
}

.v2-machine-badge,
.v2-state-badge,
.v2-size-pill {
  min-height: 19px;
  padding: 0 7px;
  font-size: 8px;
  font-weight: 500;
}

.v2-machine-badge {
  background: #e5eadf;
  color: var(--v2-primary);
}

.v2-technique-badge {
  font-size: 8px;
  font-weight: 500;
  min-height: 18px;
  padding: 0 8px;
}

.v2-machine-stack strong {
  font-size: 10px;
}

.v2-qty {
  font-size: 11px;
  font-weight: 500;
}

.v2-table td {
  font-size: 10px;
}

.v2-search input,
.v2-toolbar select,
.v2-field input,
.v2-field select,
.v2-field textarea,
.v2-login input {
  font-size: 10px;
  font-weight: 400;
}

.v2-stat-card strong {
  font-size: 11px;
  font-weight: 500;
}

.v2-progress-card strong {
  font-size: 11px;
  font-weight: 500;
}

.v2-progress-step {
  font-size: 8px;
  font-weight: 400;
}

.v2-login h2 {
  font-size: 18px;
  font-weight: 500;
}

.v2-production-log {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.v2-production-tabbar {
  display: flex;
  align-items: end;
  gap: 10px;
  border-bottom: 1px solid var(--v2-line);
  margin: 0 0 10px;
}

.v2-production-tablist {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  gap: 12px;
  overflow-x: auto;
}

.v2-production-tablist button {
  min-height: 24px;
  border: 0;
  background: transparent;
  color: var(--v2-muted);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  padding: 5px 0;
  white-space: nowrap;
}

.v2-production-tablist button.is-active {
  color: var(--v2-primary);
  box-shadow: inset 0 -2px 0 var(--v2-primary);
}

.v2-production-tabbar-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
  padding-bottom: 3px;
}

.v2-production-tab-action {
  min-height: 23px;
  border: 1px solid var(--v2-line);
  border-radius: 999px;
  background: #fff;
  color: var(--v2-primary);
  cursor: pointer;
  font-size: 8px;
  font-weight: 600;
  padding: 0 8px;
}

.v2-production-tab-action.is-add {
  min-width: 23px;
  padding: 0;
  border-color: #b9d3bd;
  background: #f6fff7;
  color: #2f6a3c;
  font-size: 12px;
}

.v2-production-tab-action.is-delete {
  border-color: #e7b8b0;
  background: #fff3f1;
  color: #9f3e38;
}

.v2-production-tab-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.v2-production-toolbar {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.62fr 0.62fr 0.52fr auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.v2-production-field {
  display: grid;
  gap: 6px;
}

.v2-production-field label {
  color: var(--v2-muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.v2-production-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: var(--v2-surface-low);
  padding: 0 10px;
  outline: 0;
}

.v2-production-field input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.v2-production-field input[type="number"]::-webkit-inner-spin-button,
.v2-production-field input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.v2-production-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.v2-log-btn {
  min-height: 38px;
  border: 1px solid var(--v2-line);
  border-radius: 999px;
  background: #fff;
  color: var(--v2-primary);
  padding: 0 14px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.v2-log-btn.is-open {
  border-color: #e4b7b1;
  background: #fff8f7;
  color: #a8463f;
}

.v2-log-btn.is-lots {
  border-color: #b9d3bd;
  background: #f6fff7;
  color: #2f6a3c;
}

.v2-log-btn.is-delete {
  border-color: #e7b8b0;
  background: #fff3f1;
  color: #9f3e38;
}

.v2-log-btn.is-play {
  width: 38px;
  padding: 0;
  border-color: #b9d3bd;
  background: var(--v2-primary);
  color: #fff;
  font-size: 11px;
}

.v2-production-table-wrap {
  min-height: 210px;
  overflow: visible;
  border: 0;
  border-radius: 0;
}

.v2-production-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.v2-production-table col.is-operator {
  width: 13%;
}

.v2-production-table col.is-type {
  width: 16%;
}

.v2-production-table col.is-machine {
  width: 7%;
}

.v2-production-table col.is-date {
  width: 15%;
}

.v2-production-table col.is-lot {
  width: 10%;
}

.v2-production-table col.is-qty {
  width: 8.25%;
}

.v2-production-table col.is-status {
  width: 6%;
}

.v2-production-table th {
  background: #fbfcf9;
  color: var(--v2-muted);
  border-right: 1px solid var(--v2-line);
  border-bottom: 1px solid var(--v2-line);
  padding: 9px 4px;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  overflow-wrap: anywhere;
}

.v2-production-table th:last-child {
  border-right: 0;
}

.v2-production-table td {
  border-right: 1px solid var(--v2-line);
  border-bottom: 1px solid var(--v2-line-soft);
  padding: 8px 4px;
  font-size: 8px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.v2-production-table td:last-child {
  border-right: 0;
}

.v2-production-table tr[data-action="edit-production-record"] {
  cursor: pointer;
}

.v2-production-table tr[data-action="edit-production-record"]:hover td {
  background: #f2f7ef;
}

.v2-production-table tr.is-selected td {
  background: #e7f1e5;
}

.v2-production-table tr.is-closed td {
  color: var(--v2-muted);
}

.v2-production-table td:first-child,
.v2-production-table td:nth-child(2),
.v2-production-table td:nth-child(5) {
  text-align: left;
}

.v2-production-empty {
  height: 110px;
  color: var(--v2-muted);
  font-size: 14px !important;
  text-align: left !important;
  padding-left: 22px !important;
}

body.v2-focus-mode .v2-main {
  grid-template-columns: minmax(0, 1fr);
}

body.v2-focus-mode .v2-list-pane {
  display: none;
}

body.v2-focus-mode .v2-detail-pane {
  max-height: none;
  border-top: 0;
  background: var(--v2-surface);
}

.v2-focus-view {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  gap: 12px;
}

.v2-focus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.v2-focus-header h2 {
  margin: 0;
  color: var(--v2-primary);
  font-size: 16px;
  font-weight: 500;
}

.v2-focus-columns {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(500px, 1.55fr) minmax(280px, 0.92fr);
  gap: 0;
  border-top: 1px solid var(--v2-line);
}

.v2-focus-column {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 18px 16px;
  border: 0;
  border-right: 1px solid var(--v2-line);
  border-radius: 0;
  background: transparent;
}

.v2-focus-column:last-child {
  border-right: 0;
}

.v2-focus-column-head {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--v2-primary);
  font-size: 11px;
  font-weight: 600;
}

.v2-focus-column .v2-detail-media {
  max-height: 170px;
}

.v2-focus-column .v2-detail-media img {
  height: min(170px, 22vh);
}

.v2-focus-details {
  display: grid;
  gap: 14px;
}

.v2-focus-detail-image {
  width: 100%;
  max-height: 170px;
  overflow: hidden;
  background: var(--v2-surface-low);
  border-bottom: 1px solid var(--v2-line-soft);
}

.v2-focus-detail-image img {
  width: 100%;
  height: min(170px, 22vh);
  object-fit: contain;
  display: block;
}

.v2-focus-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

.v2-focus-detail-item {
  min-width: 0;
  padding: 6px 0;
  border-bottom: 1px solid var(--v2-line-soft);
}

.v2-focus-detail-item span {
  display: block;
  margin-bottom: 2px;
  color: var(--v2-muted);
  font-size: 7px;
  font-weight: 650;
}

.v2-focus-detail-item strong {
  display: block;
  color: var(--v2-text);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.v2-focus-column .v2-form-grid {
  grid-template-columns: 1fr;
}

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

.v2-field input[readonly] {
  color: var(--v2-muted);
  cursor: default;
}

.v2-focus-column.is-production .v2-production-toolbar {
  grid-template-columns: minmax(108px, 1.25fr) minmax(92px, 1fr) minmax(58px, 0.58fr) minmax(58px, 0.58fr) minmax(48px, 0.48fr);
  align-items: end;
}

.v2-focus-column.is-production .v2-production-actions {
  grid-column: 1 / -1;
}

.v2-focus-column.is-production .v2-production-table-wrap {
  overflow: auto;
}

.v2-focus-column.is-production .v2-production-table {
  min-width: 0;
}

.v2-focus-column.is-production .v2-production-table col.is-operator {
  width: 8%;
}

.v2-focus-column.is-production .v2-production-table col.is-type {
  width: 9%;
}

.v2-focus-column.is-production .v2-production-table col.is-machine {
  width: 5%;
}

.v2-focus-column.is-production .v2-production-table col.is-date {
  width: 13%;
}

.v2-focus-column.is-production .v2-production-table col.is-lot {
  width: 6%;
}

.v2-focus-column.is-production .v2-production-table col.is-qty {
  width: 8%;
}

.v2-focus-column.is-production .v2-production-table col.is-status {
  width: 5%;
}

.v2-focus-column.is-production .v2-production-table th {
  padding: 7px 2px;
  font-size: 5px;
}

.v2-focus-column.is-production .v2-production-table td {
  padding: 7px 3px;
  font-size: 7px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.v2-notes-panel {
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.v2-notes-head {
  min-height: 34px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 4px 0 6px;
  border-bottom: 1px solid var(--v2-line-soft);
}

.v2-notes-head strong {
  font-size: 10px;
  font-weight: 600;
}

.v2-notes-head .v2-secondary-btn {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 500;
}

.v2-notes-system-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--v2-muted);
  font-size: 8px;
  font-weight: 400;
}

.v2-notes-system-toggle input,
.v2-note-portal input {
  width: 14px;
  height: 14px;
  accent-color: var(--v2-primary-2);
}

.v2-notes-grid {
  display: grid;
}

.v2-notes-row {
  display: grid;
  grid-template-columns: 42px 72px 78px minmax(0, 1fr);
  min-height: 34px;
  border-bottom: 1px solid var(--v2-line-soft);
}

.v2-notes-row > * {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 4px 5px;
  border-right: 1px solid var(--v2-line-soft);
}

.v2-notes-row > *:last-child {
  border-right: 0;
}

.v2-notes-header {
  min-height: 32px;
  background: transparent;
  color: var(--v2-muted);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.v2-notes-toolbar {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  letter-spacing: 0;
  overflow: hidden;
  padding: 4px 0;
  border-bottom: 1px solid var(--v2-line-soft);
}

.v2-notes-header > span:last-child {
  font-weight: 600;
}

.v2-notes-toolbar span {
  font-size: 8px;
}

.v2-note-tool,
.v2-note-color {
  width: 22px;
  height: 22px;
  border: 1px solid var(--v2-line-soft);
  border-radius: 7px;
  background: var(--v2-surface);
  color: var(--v2-text);
  font-weight: 600;
  font-size: 9px;
}

.v2-notes-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.v2-notes-toolbar select {
  height: 22px;
  border: 1px solid var(--v2-line-soft);
  border-radius: 9px;
  padding: 0 22px 0 8px;
  background: var(--v2-surface);
  font-size: 9px;
  font-weight: 400;
}

.v2-note-color::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  margin: auto;
  border-radius: 999px;
  background: var(--note-color);
  box-shadow: 0 0 0 2px #fff, 0 4px 8px rgba(30, 36, 30, .12);
}

.v2-note-row.is-active {
  background: #edf6f1;
}

.v2-note-row.is-system {
  background: #fafafa;
}

.v2-note-operator {
  color: var(--v2-primary);
  font-size: 8px;
  font-weight: 500;
}

.v2-note-date {
  width: 100%;
  min-height: 24px;
  border: 0;
  background: transparent;
  color: var(--v2-muted);
  font: inherit;
  font-size: 7px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: clip;
}

.v2-note-edit-wrap {
  align-items: stretch;
  gap: 5px;
}

.v2-note-editor {
  flex: 1;
  min-height: 24px;
  max-height: 92px;
  align-items: flex-start;
  padding: 5px 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  line-height: 1.35;
  font-weight: 400;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: auto;
}

.v2-note-editor:focus {
  outline: 0;
  border-color: #b7d7c9;
  background: #fff;
}

.v2-note-delete {
  width: 22px;
  height: 24px;
  align-self: flex-start;
  border: 1px solid var(--v2-line-soft);
  border-radius: 9px;
  background: var(--v2-surface);
  color: var(--v2-muted);
  font-size: 14px;
}

body.v2-focus-mode .v2-notes-row {
  grid-template-columns: 86px minmax(0, 1fr);
}

body.v2-focus-mode .v2-notes-header {
  font-size: 6px;
  letter-spacing: 0.04em;
}

body.v2-focus-mode .v2-note-operator,
body.v2-focus-mode .v2-note-date {
  font-size: 7px;
}

body.v2-focus-mode .v2-note-editor {
  max-height: 76px;
  font-size: 7px;
}

body.v2-focus-mode .v2-note-delete {
  display: none;
}

.v2-notes-panel.is-focus .v2-note-portal,
.v2-notes-panel.is-focus .v2-note-date,
.v2-notes-panel.is-focus .v2-note-operator {
  display: none;
}

.v2-note-meta-stack {
  display: grid;
  align-content: start;
  gap: 2px;
  color: var(--v2-muted);
  font-size: 7px;
  line-height: 1.2;
  white-space: pre-line;
}

.v2-note-meta-stack strong {
  color: var(--v2-primary);
  font-size: 7px;
  font-weight: 600;
}

.v2-note-meta-stack span {
  color: var(--v2-muted);
  font-size: 7px;
  font-weight: 400;
}

.v2-notes-panel.is-focus .v2-note-edit-wrap {
  min-width: 0;
}

.v2-notes-panel.is-focus .v2-note-editor {
  max-height: 120px;
  min-height: 34px;
  width: 100%;
  overflow: auto;
}

.v2-notes-empty {
  padding: 10px 0;
  color: var(--v2-muted);
  font-size: 9px;
  font-weight: 400;
}

.v2-pdf-panel {
  display: grid;
  gap: 12px;
}

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

.v2-pdf-head > div,
.v2-pdf-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.v2-pdf-head span,
.v2-pdf-row span {
  color: var(--v2-muted);
  font-size: 12px;
}

.v2-pdf-list {
  display: grid;
  gap: 8px;
}

.v2-pdf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface-low);
}

.v2-pdf-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-pdf-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.v2-pdf-actions .v2-secondary-btn {
  min-height: 34px;
  padding: 0 12px;
}

.v2-secondary-btn.is-danger {
  border-color: #e7b8b0;
  background: #fff3f1;
  color: #9f3e38;
}

@media (max-width: 1240px) {
  .v2-focus-columns {
    grid-template-columns: 1fr;
  }

  .v2-focus-column {
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--v2-line);
  }

  .v2-focus-column:last-child {
    border-bottom: 0;
  }
}

/* Narrow sidebar pass. */
.v2-sidebar {
  width: 150px;
  flex-basis: 150px;
  padding: 14px 6px;
}

.v2-sidebar-section {
  padding: 0 10px 10px;
  font-size: 8px;
}

.v2-nav-item {
  min-height: 38px;
  gap: 8px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 10px;
}

.v2-nav-item span {
  width: 16px;
  font-size: 9px;
}

.v2-sidebar-footer {
  padding: 10px 8px;
  font-size: 9px;
}

/* Wider detail panel, narrower work list. */
.v2-main {
  grid-template-columns: minmax(650px, 1fr) minmax(420px, 0.72fr);
}

body.v2-view-configuracoes .v2-main {
  grid-template-columns: minmax(520px, 0.72fr) minmax(420px, 0.58fr);
}

@media (max-width: 1180px) {
  .v2-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2-detail-pane {
    border-top: 1px solid var(--v2-line);
    max-height: 52vh;
  }
}

@media (max-width: 920px) {
  .v2-table col.v2-col-machine {
    width: 7%;
  }

  .v2-table col.v2-col-id {
    width: 15%;
  }

  .v2-table col.v2-col-ref {
    width: 14%;
  }

  .v2-table col.v2-col-material {
    width: 9%;
  }

  .v2-table col.v2-col-color {
    width: 6%;
  }

  .v2-table col.v2-col-qty {
    width: 6%;
  }

  .v2-table col.v2-col-sizes {
    width: 13%;
  }

  .v2-table col.v2-col-client {
    width: 22%;
  }

  .v2-table col.v2-col-image {
    width: 8%;
  }

  .v2-table th,
  .v2-table td {
    padding-left: 5px;
    padding-right: 5px;
  }

  .v2-thumb {
    width: min(40px, 100%);
  }
}

/* Server density pass: keep V2 compact on the production display. */
body {
  font-size: 9px;
  line-height: 1.28;
}

.v2-sidebar {
  width: 132px;
  flex-basis: 132px;
  padding: 11px 5px;
}

.v2-sidebar-section {
  padding: 0 9px 8px;
  font-size: 7px;
  letter-spacing: 0.06em;
}

.v2-nav-item {
  min-height: 32px;
  gap: 7px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 500;
}

.v2-nav-item span {
  width: 14px;
  font-size: 8px;
}

.v2-main {
  grid-template-columns: minmax(560px, 1fr) minmax(360px, 0.68fr);
}

body.v2-view-configuracoes .v2-main {
  grid-template-columns: minmax(500px, 0.72fr) minmax(360px, 0.58fr);
}

.v2-list-header {
  padding: 14px 18px 10px;
}

.v2-eyebrow {
  margin-bottom: 3px;
  font-size: 7px;
  letter-spacing: 0.06em;
}

.v2-list-header h1 {
  font-size: 16px;
  line-height: 1.1;
}

.v2-header-actions {
  gap: 7px;
}

.v2-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 13px;
}

.v2-secondary-btn,
.v2-primary-btn,
.v2-chip-btn {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 9px;
}

.v2-search {
  margin: 0 18px 14px;
  border-radius: 9px;
}

.v2-search input,
.v2-toolbar select,
.v2-field input,
.v2-field select,
.v2-field textarea,
.v2-login input {
  min-height: 32px;
  border-radius: 8px;
  font-size: 9px;
}

.v2-detail .v2-field input,
.v2-detail .v2-field select,
.v2-detail .v2-color-trigger {
  min-height: 34px;
  height: 34px;
}

.v2-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, 168px) 32px;
  align-items: center;
  gap: 8px;
  padding: 0 18px 12px;
}

body.v2-view-orcamentos .v2-toolbar {
  grid-template-columns: minmax(0, 1fr) auto 32px;
}

.v2-toolbar .v2-search {
  min-width: 0;
  height: 32px;
  margin: 0;
  padding: 0 12px;
  border-radius: 8px;
}

.v2-toolbar .v2-search input,
.v2-toolbar select {
  width: 100%;
  min-height: 32px;
  height: 32px;
  border-radius: 8px;
}

.v2-toolbar-refresh {
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 8px;
  padding: 0;
  font-size: 11px;
}

.v2-toolbar-new {
  min-height: 32px;
  height: 32px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 9px;
}

.v2-history-toolbar {
  min-height: 36px;
  margin: 0 18px 14px;
  padding: 3px;
}

.v2-history-toolbar button {
  min-height: 28px;
  font-size: 9px;
  font-weight: 550;
}

.v2-history-grid {
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px 12px;
  padding: 0 18px 18px;
}

.v2-history-card {
  padding: 5px;
  border-radius: 9px;
}

.v2-sample-card {
  padding: 5px;
  border-radius: 9px;
}

.v2-history-card:hover,
.v2-history-card.is-selected {
  box-shadow: 0 7px 18px rgba(28, 75, 55, 0.08);
}

.v2-history-image {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 7px;
}

.v2-sample-card img {
  height: 52px;
  border-radius: 7px;
  object-fit: contain;
}

.v2-history-card-body {
  padding-top: 4px;
  gap: 1px;
}

.v2-sample-card-body {
  padding-top: 4px;
  gap: 1px;
}

.v2-history-card-body strong {
  font-size: 8px;
  line-height: 1.1;
}

.v2-history-card-body span {
  font-size: 7px;
  line-height: 1.15;
}

.v2-history-pagination {
  padding: 0 18px 18px;
  gap: 10px;
  font-size: 9px;
}

.v2-list-pagination {
  padding: 8px 18px 18px;
  gap: 10px;
  font-size: 9px;
}

.v2-history-locations {
  gap: 5px;
  margin-top: 5px;
}

.v2-history-locations span {
  min-height: 19px;
  padding: 0 7px;
  font-size: 8px;
}

.v2-table th {
  padding: 7px 5px;
  font-size: 7px;
}

.v2-table td {
  padding: 7px 5px;
  font-size: 9px;
}

.v2-thumb {
  width: min(42px, 100%);
  border-radius: 6px;
}

.v2-detail {
  padding: 15px 18px;
}

.v2-detail-top {
  gap: 12px;
  margin-bottom: 10px;
}

.v2-detail-kicker {
  font-size: 8px;
}

.v2-detail h2 {
  margin: 6px 0 10px;
  font-size: 15px;
  line-height: 1.14;
}

.v2-detail-hero .v2-detail-media {
  width: 132px;
  height: 132px;
  border-radius: 9px;
}

.v2-detail-hero .v2-detail-media img {
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.v2-detail-media .v2-thumb-upload-btn {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.v2-detail-price-box {
  width: min(132px, 100%);
  gap: 5px;
  margin-top: 7px;
  padding: 7px 8px;
  border-radius: 10px;
}

.v2-detail-price-actions .v2-secondary-btn {
  min-height: 26px;
  padding: 0 8px;
  font-size: 8px;
}

.v2-detail-price-field span {
  font-size: 8px;
}

.v2-detail-price-field input {
  min-height: 30px;
  border-radius: 8px;
  font-size: 9px;
  padding: 0 8px;
}

.v2-detail-price-made {
  font-size: clamp(6px, 7cqw, 8px);
}

.v2-tabs {
  gap: 13px;
  margin: 6px 0 11px;
}

.v2-tabs button {
  padding: 7px 0;
  font-size: 9px;
}

.v2-form-grid {
  gap: 8px;
}

.v2-field label,
.v2-login label {
  font-size: 8px;
}

.v2-form-row-four {
  gap: 8px;
}

.v2-list-card {
  padding: 9px 10px;
  border-radius: 9px;
}

.v2-list-card strong,
.v2-id-stack strong,
.v2-client-stack strong,
.v2-sample-card-body strong {
  font-size: 9px;
}

.v2-list-card span,
.v2-list-card small,
.v2-ref-stack small,
.v2-client-stack small,
.v2-id-stack small,
.v2-sample-card-body small,
.v2-sample-card-body span {
  font-size: 8px;
}

