/* Internal workspace only. The login intentionally retains its original stylesheet. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;550;600;650;700&display=swap');

#app,
#modalRoot,
#toastRoot {
  --bg: #101010;
  --panel: #141414;
  --panel2: #1c1c1c;
  --line: #2b2b2b;
  --text: #eeeeee;
  --muted: #a0a0a0;
  --accent: #eeeeee;
  --accent2: #eeeeee;
  --on-accent: #151515;
  --hover: #222222;
  --success: #a0efc4;
  --success-bg: #16462e;
  --danger: #ffadb0;
  --danger-bg: #4f232b;
  --warning: #ffd477;
  --warning-bg: #463615;
  --preparing: #d6d3ce;
  --preparing-bg: #302e2a;
  --review: #efd270;
  --review-bg: #3c331c;
  --adjustment: #ffc185;
  --adjustment-bg: #492b15;
  --ordered: #e4ddc9;
  --ordered-bg: #343128;
  --inactive: #c6c8ce;
  --inactive-bg: #303238;
  --chart: #59c799;
  --shadow: none;
  color-scheme: dark;
  color: var(--text);
  font:
    400 15px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  letter-spacing: -0.012em;
}
body[data-workspace-theme='light'] :is(#app, #modalRoot, #toastRoot) {
  --bg: #fafafa;
  --panel: #ffffff;
  --panel2: #f4f4f3;
  --line: #e3e3e0;
  --text: #20211e;
  --muted: #666861;
  --hover: #eeeee9;
  --accent: #ffcf18;
  --accent2: #856409;
  --on-accent: #123f70;
  --focus: #856409;
  --success: #096138;
  --success-bg: #def5e7;
  --danger: #9b1c31;
  --danger-bg: #ffe4ea;
  --warning: #775000;
  --warning-bg: #fff2c5;
  --preparing: #4a463e;
  --preparing-bg: #eeece7;
  --review: #705600;
  --review-bg: #fcf2cd;
  --adjustment: #914000;
  --adjustment-bg: #fff0df;
  --ordered: #514937;
  --ordered-bg: #eeeae1;
  --inactive: #4b5563;
  --inactive-bg: #e9ecf0;
  --chart: #98700a;
  color-scheme: light;
}
body[data-workspace-theme='gerdau'] :is(#app, #modalRoot, #toastRoot) {
  --accent: #d3aa38;
  --accent2: #e4c467;
  --on-accent: #1d190d;
  --chart: #d3aa38;
}
#app {
  min-height: 100dvh;
  background: var(--bg);
}
#app *,
#modalRoot *,
#toastRoot * {
  box-sizing: border-box;
}
#app :is(h2, h3, h4, strong, b),
#modalRoot :is(h3, h4, b, strong) {
  font-family: inherit;
}
#app :is(button, input, select, textarea),
#modalRoot :is(button, input, select, textarea) {
  font: inherit;
  letter-spacing: inherit;
}
#app button,
#modalRoot button {
  transition:
    background-color 0.12s,
    border-color 0.12s;
}
:is(#app, #modalRoot) :is(button, a, input, textarea, select):focus-visible {
  outline: 2px solid var(--focus, var(--accent));
  outline-offset: 3px;
  box-shadow: none;
}
#app .sidebar {
  width: 224px;
  padding: 20px 12px 12px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
#app .side-brand {
  display: block;
  padding: 2px 12px 23px;
}
#app .workspace-identity b {
  display: block;
  font:
    600 22px/1.4 Inter,
    sans-serif;
  letter-spacing: -0.035em;
}
#app #accountGreeting {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}
#app .workspace-logo {
  display: block;
  position: relative;
  width: 149px;
  height: 42px;
  overflow: hidden;
  background: #edc447;
  border-radius: 4px;
}
#app .workspace-logo img {
  position: absolute;
  width: 153px;
  max-width: none;
  height: auto;
  top: -56px;
  left: -2px;
}
#app .side-brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}
#app #mainNav {
  display: block;
  overflow-y: auto;
}
#app #mainNav {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
#app .nav-link {
  min-height: 36px;
  padding: 7px 10px;
  margin: 2px 0;
  gap: 10px;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-weight: 450;
  box-shadow: none;
}
#app .nav-link:hover,
#app .nav-link.active {
  color: var(--text);
  background: var(--hover);
  box-shadow: none;
}
#app .nav-link.active {
  font-weight: 550;
}
#app .nav-link em {
  font-size: 12px;
}
#app #themeButton {
  display: grid;
  grid-template-columns: 16px 1fr;
  column-gap: 10px;
  row-gap: 2px;
}
#app #themeButton em {
  grid-column: 2;
  margin: 0;
  white-space: nowrap;
}
#app .nav-link .nav-count {
  margin-left: auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  padding: 0 5px;
  border-radius: 4px;
}
#app .nav-link svg {
  flex: 0 0 16px;
}
#app .nav-caption {
  padding: 0 10px;
  margin: 26px 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.055em;
}
#app .side-bottom {
  padding-top: 12px;
  border-color: var(--line);
}
#app .side-user {
  padding: 14px 10px 4px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
}
#app .side-user small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
#app .content {
  width: calc(100% - 224px);
  margin-left: 224px;
  padding: 0 0 48px;
  min-width: 0;
}
#app .topbar {
  min-height: 101px;
  padding: 25px 34px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
#app .topbar .eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
#app .topbar h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.035em;
  font-weight: 600;
}
#app .top-actions {
  gap: 12px;
}
#app .avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
#app #view {
  padding: 30px 34px;
  max-width: 1680px;
  margin: 0 auto;
}
#app .workspace-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 24px;
  color: var(--muted);
}
#app .workspace-intro p {
  margin: 0;
}
#app .workspace-date {
  font-size: 14px;
  white-space: nowrap;
}
:is(#app, #modalRoot) :is(.primary, .secondary, .icon-button) {
  min-height: 34px;
  border-radius: 6px;
  padding: 7px 11px;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  box-shadow: none;
  gap: 7px;
}
:is(#app, #modalRoot) .primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--on-accent);
}
:is(#app, #modalRoot) .primary:hover {
  filter: brightness(0.93);
  transform: none;
}
:is(#app, #modalRoot) :is(.secondary, .icon-button) {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
}
:is(#app, #modalRoot) :is(.secondary, .icon-button):hover {
  background: var(--hover);
  border-color: var(--muted);
}
:is(#app, #modalRoot) button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
:is(#app, #modalRoot) .danger-button {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 40%, var(--line));
}
:is(#app, #modalRoot) :is(.panel, .config-card) {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  padding: 20px;
}
#app .panel-head {
  margin: 0 0 20px;
  gap: 14px;
}
#app .notification-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
}
#app .panel-head:has(> .notification-actions) {
  flex-wrap: wrap;
}
#app .notification-actions button {
  max-width: 100%;
  white-space: normal;
}
#app .panel-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 550;
  letter-spacing: -0.018em;
}
#app .panel-head p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 4px 0 0;
}
#app .metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--panel);
}
#app .metric {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 20px;
  text-align: left;
  background: transparent;
  color: var(--text);
}
#app .metric:last-child {
  border-right: 0;
}
#app .metric:hover {
  background: var(--hover);
}
#app .metric-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
#app .status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 6px;
}
#app .metric strong {
  display: block;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
#app .metric small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
#app .dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
#app .table-panel {
  padding: 0;
  overflow: hidden;
}
#app .table-panel > .panel-head {
  padding: 19px 20px 0;
}
#app .table-wrap {
  width: 100%;
  overflow-x: auto;
}
#app .data-table {
  min-width: 720px;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
#app .data-table th {
  height: 35px;
  padding: 8px 14px;
  color: var(--muted);
  background: var(--panel2);
  font-size: 12px;
  font-weight: 450;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
#app .data-table td {
  height: 63px;
  padding: 12px 14px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
}
#app .data-table tr:last-child td {
  border-bottom: 0;
}
#app .data-table tbody tr:hover {
  background: var(--hover);
}
#app .compact-table {
  min-width: 560px;
}
#app .compact-table .request-description,
#app .compact-table .item-sub {
  max-width: 240px;
}
#app #mainNav > .nav-caption:first-child {
  margin-top: 4px;
}
#app .data-table .request-description {
  display: block;
  max-width: 330px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#app .data-table .request-description.request-title {
  max-width: 560px;
  min-width: 240px;
  font-size: 15px;
  font-weight: 600;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
#modalRoot .request-reference-detail {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
#modalRoot .request-reference-detail p {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
#modalRoot .request-reference-detail > button {
  flex-shrink: 0;
}
#modalRoot #purchaseReferenceTitle {
  min-height: 110px;
  font-size: 15px;
  line-height: 1.6;
}
#modalRoot #purchaseReferenceForm .field-helper {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 10px;
}
#app .data-table .item-sub {
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#app .person-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
#app .person-initial {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: var(--muted);
  flex-shrink: 0;
  background: var(--panel2);
}
:is(#app, #modalRoot) .item-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 400;
}
:is(#app, #modalRoot) .badge {
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel2);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
:is(#app, #modalRoot) .badge.success {
  background: var(--success-bg);
  color: var(--success);
  border-color: currentColor;
}
:is(#app, #modalRoot) .badge.warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: currentColor;
}
:is(#app, #modalRoot) .badge.danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: currentColor;
}
:is(#app, #modalRoot) .badge.muted {
  color: var(--inactive);
  background: var(--inactive-bg);
  border-color: currentColor;
}
:is(#app, #modalRoot) .badge.preparing {
  color: var(--preparing);
  background: var(--preparing-bg);
  border-color: currentColor;
}
:is(#app, #modalRoot) .badge.review {
  color: var(--review);
  background: var(--review-bg);
  border-color: currentColor;
}
:is(#app, #modalRoot) .badge.adjustment {
  color: var(--adjustment);
  background: var(--adjustment-bg);
  border-color: currentColor;
}
:is(#app, #modalRoot) .badge.ordered {
  color: var(--ordered);
  background: var(--ordered-bg);
  border-color: currentColor;
}
:is(#app, #modalRoot)
  .badge:is(.success, .warning, .danger, .muted, .preparing, .review, .adjustment, .ordered) {
  border-color: color-mix(in srgb, currentColor 24%, transparent);
}
#app .priority {
  font-size: 12px;
  font-weight: 450;
  color: var(--warning);
}
#app .table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 43px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
#app .table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0 20px 17px;
}
:is(#app, #modalRoot) :is(input, select, textarea) {
  padding: 8px 10px;
  min-height: 35px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: revert;
}
:is(#app, #modalRoot) input::placeholder,
:is(#app, #modalRoot) textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
:is(#app, #modalRoot) input[type='date']::-webkit-calendar-picker-indicator {
  filter: none;
}
:is(#app, #modalRoot) a {
  color: var(--accent2);
}
#app .table-toolbar .search-field {
  flex: 1 1 220px;
}
#app .table-toolbar select {
  width: auto;
  max-width: 100%;
}
:is(#app, #modalRoot) label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
#app .table-toolbar label,
#app .finance-filters label {
  margin: 0;
}
#app .urgent-panel {
  padding: 0;
  border: 0;
  background: transparent;
}
#app .urgent-panel > .panel-head {
  margin-bottom: 12px;
}
#app .urgent-list {
  border-top: 1px solid var(--line);
}
#app .urgent-row {
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  width: 100%;
  background: transparent;
  color: var(--text);
  display: flex;
  gap: 10px;
  text-align: left;
}
#app .urgent-row:hover {
  background: var(--hover);
}
#app .urgent-row svg {
  color: var(--warning);
  margin-top: 2px;
  flex-shrink: 0;
}
#app .urgent-row b {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
#app .urgent-row small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 12px;
}
#app .urgent-row .badge {
  margin-top: 9px;
}
#app .empty {
  padding: 45px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
#app .empty strong {
  font:
    500 16px/1.5 Inter,
    sans-serif;
  color: var(--text);
}
#app .empty svg {
  display: block;
  margin: 0 auto 12px;
  color: var(--muted);
}
#app .settings-grid {
  display: block;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
}
#app .config-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
#app .config-card h3 {
  font-size: 15px;
  font-weight: 550;
  margin: 0 0 3px;
}
#app .config-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
#app .history-cleanup {
  margin-top: 28px;
}
#app .finance-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
#app .finance-filters select {
  min-width: 160px;
}
#app .finance-summary {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
}
#app .finance-stat {
  padding: 20px 20px 20px 0;
}
#app .finance-stat small {
  color: var(--muted);
  font-size: 12px;
}
#app .finance-stat strong {
  display: block;
  font-weight: 500;
  font-size: 27px;
  letter-spacing: -0.04em;
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}
#app .finance-stat p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
#app .finance-charts {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
  margin: 0 0 24px;
}
#app .chart-label {
  color: var(--muted);
  font-size: 12px;
}
#app .line-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--chart);
}
#app .line-chart text {
  fill: var(--muted);
  font:
    11px Inter,
    sans-serif;
}
#app .chart-grid {
  stroke: var(--line);
  stroke-dasharray: 3 5;
}
#app .sector-row {
  padding: 10px 0;
}
#app .sector-row > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
#app .sector-track {
  height: 5px;
  margin-top: 8px;
  background: var(--panel2);
  border-radius: 2px;
  overflow: hidden;
}
#app .sector-track i {
  display: block;
  height: 100%;
  background: var(--chart);
}
#app .number-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#app .notice {
  display: flex;
  gap: 9px;
  align-items: start;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--panel);
  font-size: 14px;
}
#app .finance-status-tabs {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
#app .finance-status-tabs button[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--accent2);
}
#app .financial-snapshot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
#app .financial-snapshot strong {
  display: block;
  font-size: 24px;
  font-weight: 500;
  margin: 8px 0;
}
#app .quick-list {
  gap: 0;
}
#app .quick-item {
  padding: 17px 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
}
#app .quick-item:hover {
  background: var(--hover);
}
#app .quick-item b {
  font-weight: 500;
}
#app .notification-new {
  background: color-mix(in srgb, var(--accent) 5%, var(--panel));
}
#app .mobile-bar {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}
#app .mobile-bar button,
#app .mobile-bar b {
  color: var(--text);
  font-family: inherit;
}
#app .mobile-bar button {
  min-width: 40px;
  min-height: 40px;
}
#modalRoot .modal-backdrop {
  background: #0009;
  padding: 24px;
}
#modalRoot .modal {
  width: min(740px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 40px #0003;
}
#modalRoot .modal-head {
  padding: 20px 24px;
  border-color: var(--line);
  align-items: center;
}
#modalRoot .modal-head h3 {
  font:
    550 19px/1.5 Inter,
    sans-serif;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
#modalRoot .modal-close {
  min-width: 32px;
  min-height: 32px;
  border-radius: 4px;
  color: var(--muted);
}
#modalRoot .modal-body {
  padding: 22px 24px;
}
#modalRoot .detail-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px;
  overflow-wrap: anywhere;
}
#modalRoot .detail-box small {
  font-size: 12px;
  color: var(--muted);
}
#modalRoot .detail-box b {
  font-size: 14px;
  font-weight: 500;
}
#modalRoot .timeline {
  border-color: var(--line);
}
#modalRoot .timeline-item:before {
  background: var(--muted);
}
#modalRoot .timeline-item b {
  font-size: 14px;
  font-weight: 450;
}
#modalRoot .timeline-item small {
  color: var(--muted);
  font-size: 12px;
}
#modalRoot .permission-list label {
  color: var(--text);
  border-color: var(--line);
  font-size: 14px;
  font-weight: 400;
  border-radius: 5px;
}
#modalRoot :is(.check-row input, .permission-list input) {
  min-height: 0;
  accent-color: var(--accent);
}
#modalRoot .alert {
  color: var(--warning);
  background: var(--warning-bg);
  border-color: transparent;
  border-radius: 5px;
}
#modalRoot .field-helper {
  color: var(--muted);
}
#modalRoot .field-helper {
  font-size: 12px;
  line-height: 1.6;
}
#modalRoot .financial-detail {
  padding: 16px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#modalRoot .theme-options {
  display: grid;
  gap: 10px;
}
#modalRoot .theme-option {
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  text-align: left;
}
#modalRoot .theme-option[aria-pressed='true'] {
  border-color: var(--accent);
}
#modalRoot .theme-option small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
#modalRoot .theme-swatch {
  height: 32px;
  width: 44px;
  border: 1px solid #555;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #161616;
  color: #eee;
  font-size: 14px;
}
#modalRoot .theme-swatch.light {
  background: #fafafa;
  color: #9a750a;
}
#modalRoot .theme-swatch.gerdau {
  color: #d3aa38;
}
#toastRoot .toast {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 4px 16px #0002;
}
#app .sr-only,
#modalRoot .sr-only {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1600px) {
  #app #view {
    padding: 36px 48px;
  }
  #app .topbar {
    padding-inline: 48px;
  }
}
@media (min-width: 1201px) and (max-width: 1450px) {
  #app .compact-table .updated-column {
    display: none;
  }
}
@media (max-width: 1200px) {
  #app .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #app .urgent-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
  #app .metric {
    padding: 17px 12px;
  }
}
@media (min-width: 1001px) {
  #app .sidebar {
    transform: none;
  }
  #app .mobile-bar {
    display: none;
  }
}
@media (max-width: 1000px) {
  #app .sidebar {
    z-index: 12;
    transform: translateX(-100%);
  }
  #app .sidebar.open {
    transform: none;
    box-shadow: 10px 0 50px #0005;
  }
  #app .content {
    width: 100%;
    margin-left: 0;
    padding-top: 57px;
  }
  #app .topbar {
    padding: 22px 24px;
    min-height: 90px;
  }
  #app #view {
    padding: 24px;
  }
  #app .finance-charts {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  #app #view {
    padding: 20px 16px;
  }
  #app .topbar {
    padding: 19px 16px;
    align-items: center;
  }
  #app .topbar h2 {
    font-size: 21px;
  }
  #app .top-actions .primary {
    font-size: 12px;
    padding: 6px 9px;
  }
  #app .workspace-intro {
    align-items: start;
  }
  #app .workspace-date {
    display: none;
  }
  #app .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #app .metric {
    border-bottom: 1px solid var(--line);
  }
  #app .metric:nth-child(even) {
    border-right: 0;
  }
  #app .metric:last-child {
    grid-column: 1/-1;
    border-bottom: 0;
  }
  #app .metric strong {
    margin-top: 7px;
    font-size: 25px;
  }
  #app .urgent-list {
    grid-template-columns: 1fr;
  }
  #app .config-card {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  #app .table-toolbar {
    padding-inline: 14px;
  }
  #app .table-toolbar select {
    width: 100%;
  }
  #app .finance-summary {
    grid-template-columns: 1fr 1fr;
  }
  #app .finance-stat:first-child {
    grid-column: 1/-1;
    border-bottom: 1px solid var(--line);
  }
  #app .finance-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  #app .finance-filters select {
    min-width: 0;
  }
  #app .finance-status-tabs {
    margin: 0;
  }
  #modalRoot .modal-backdrop {
    padding: 12px;
  }
  #modalRoot .modal-body {
    padding: 18px;
  }
  #modalRoot .form-actions {
    flex-wrap: wrap;
  }
  #modalRoot .form-actions button {
    flex: 1 1 auto;
  }
  #modalRoot .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  #app *,
  #modalRoot * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Readable type scale v2. */
