:root {
  color-scheme: light;
  --ink: #12171b;
  --graphite: #1c2328;
  --metal: #d8dde2;
  --metal-dark: #828c94;
  --blue: #0f67a8;
  --blue-dark: #073a73;
  --blue-soft: #dceefa;
  --paper: #f4f6f7;
  --white: #ffffff;
  --line: #d4dbe0;
  --muted: #63717c;
  --amber: #c58b38;
  --danger: #b85447;
  --shadow: 0 24px 54px rgba(18, 23, 27, 0.18);
  --radius: 8px;
  --header-height: 76px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(212, 219, 224, 0.75);
  background: rgba(244, 246, 247, 0.94);
  padding: 10px clamp(18px, 4vw, 58px);
  backdrop-filter: blur(14px);
}

.brand,
.erp-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(18, 23, 27, 0.22);
}

.brand strong,
.erp-brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.05;
}

.brand small,
.erp-brand small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  color: #26313a;
  font-size: 0.92rem;
  font-weight: 800;
}

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: var(--radius);
}

.site-nav a:not(.nav-pill):hover {
  color: var(--blue);
}

.nav-pill {
  padding: 0 16px;
  background: var(--ink);
  color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(790px, calc(100svh - var(--header-height) - 36px));
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 40%, rgba(15, 103, 168, 0.42), transparent 28%),
    radial-gradient(circle at 68% 54%, rgba(216, 221, 226, 0.14), transparent 24%),
    linear-gradient(125deg, #111518 0%, #1d252b 42%, #343b40 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 12, 15, 0.88) 0%, rgba(9, 12, 15, 0.64) 48%, rgba(9, 12, 15, 0.22) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 96px);
  content: "";
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.05) 48% 50%, transparent 50%),
    linear-gradient(45deg, transparent 0 48%, rgba(15, 103, 168, 0.16) 48% 50%, transparent 50%);
  background-size: 220px 220px;
  opacity: 0.6;
}

.hero-logo {
  position: absolute;
  right: clamp(-70px, 6vw, 120px);
  bottom: clamp(32px, 7vw, 100px);
  width: clamp(310px, 38vw, 560px);
  border-radius: 50%;
  filter: drop-shadow(0 32px 42px rgba(0, 0, 0, 0.5));
  opacity: 0.95;
}

.hero-content {
  display: grid;
  width: min(760px, calc(100% - 36px));
  align-content: center;
  gap: 20px;
  padding: clamp(56px, 8vw, 108px) clamp(18px, 4vw, 58px);
  color: var(--white);
}

.eyebrow {
  margin: 0;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.85rem, 7vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions,
.erp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 850;
  line-height: 1;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, #1f80bf, var(--blue));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(15, 103, 168, 0.28);
}

.button-primary:hover {
  background: linear-gradient(180deg, #1c78b6, var(--blue-dark));
}

.button-ghost {
  border-color: rgba(216, 221, 226, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.button-ghost-dark {
  border-color: #c7d0d6;
  background: var(--white);
  color: var(--blue-dark);
}

.button-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  font-weight: 900;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) 0;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin-top: -28px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #313a42;
  border-radius: var(--radius);
  background: #313a42;
  box-shadow: var(--shadow);
}

.metric {
  min-height: 126px;
  background: linear-gradient(180deg, #ffffff, #f3f7fa);
  padding: 24px;
}

.metric strong {
  display: block;
  color: var(--blue-dark);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.section-heading {
  display: grid;
  max-width: 820px;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.service-card,
.panel,
.summary-tile,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-card {
  display: grid;
  min-height: 226px;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.service-card h3,
.panel h3 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.25;
}

.service-card p,
.timeline p,
.contact-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #eaf5fc, #d7eaf7);
  color: var(--blue-dark);
  font-weight: 900;
}

.process-band {
  width: 100%;
  max-width: none;
  background:
    linear-gradient(180deg, #e9edf0, #f4f6f7);
  padding-right: max(18px, calc((100vw - 1180px) / 2));
  padding-left: max(18px, calc((100vw - 1180px) / 2));
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  gap: 10px;
  min-height: 196px;
  border-top: 4px solid var(--blue);
  background: var(--white);
  padding: 22px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.timeline span {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
}

.timeline strong {
  font-size: 1.05rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 32px;
  align-items: start;
}

.contact-section > div:first-child {
  display: grid;
  gap: 14px;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.contact-panel img {
  width: min(240px, 80%);
  margin: 0 auto 8px;
  border-radius: 50%;
}

.contact-panel .button {
  width: 100%;
}

.contact-panel p {
  color: var(--ink);
}

.erp-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  width: min(1480px, calc(100% - 28px));
  min-height: 900px;
  margin: 0 auto 36px;
  overflow: hidden;
  border: 1px solid #242b31;
  border-radius: var(--radius);
  background: #edf1f4;
  box-shadow: var(--shadow);
}

.erp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    linear-gradient(180deg, #14191d, #222b31 52%, #111518);
  padding: 18px;
  color: var(--white);
}

.erp-sidebar .brand-logo {
  width: 58px;
  height: 58px;
}

.erp-sidebar .erp-brand {
  margin-bottom: 18px;
}

.erp-sidebar small {
  color: rgba(216, 221, 226, 0.7);
}

.erp-tab {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 0 12px;
  text-align: left;
  font-weight: 800;
}

.erp-tab span {
  display: grid;
  width: 32px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(216, 221, 226, 0.86);
  font-size: 0.72rem;
}

.erp-tab:hover,
.erp-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.erp-tab.active span {
  background: var(--blue);
  color: var(--white);
}

.erp-workspace {
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
}

.erp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.erp-header h2 {
  margin: 4px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
}

.icon-button:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  gap: 18px;
}

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

.summary-tile {
  display: grid;
  min-height: 138px;
  align-content: space-between;
  gap: 12px;
  padding: 20px;
}

.summary-tile span {
  color: var(--muted);
  font-weight: 850;
}

.summary-tile strong {
  color: var(--blue-dark);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.summary-tile small {
  color: var(--muted);
}

.split-layout,
.form-layout {
  display: grid;
  grid-template-columns: minmax(460px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.form-layout.compact {
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel-heading {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  padding: 0;
  font-size: 0.88rem;
  font-weight: 900;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}

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

th {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

td {
  color: #26313a;
  font-size: 0.89rem;
}

td strong {
  display: block;
}

td span {
  color: var(--muted);
}

.row-actions {
  display: inline-flex;
  gap: 6px;
}

.row-actions button {
  min-width: 34px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--danger);
  font-weight: 900;
}

.row-actions button[data-convert-quote],
.row-actions button[data-complete-order] {
  color: var(--blue-dark);
}

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: var(--radius);
  background: #edf1f4;
  color: #43515b;
  padding: 0 9px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.badge.done {
  background: #dff0df;
  color: #1f6f37;
}

.badge.urgent,
.badge.low {
  background: #f6e1dd;
  color: var(--danger);
}

.badge.blue {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.form-panel {
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

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

label {
  display: grid;
  gap: 7px;
  color: #334049;
  font-size: 0.82rem;
  font-weight: 850;
}

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

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c7d0d6;
  border-radius: var(--radius);
  background: #fbfcfd;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 103, 168, 0.14);
}

.form-panel .button {
  width: 100%;
  margin-top: 14px;
}

.quote-preview {
  display: flex;
  min-height: 48px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid #a7cfe8;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: 0 14px;
  font-size: 1rem;
  font-weight: 900;
}

.cost-bars {
  display: grid;
  gap: 14px;
}

.cost-bar {
  display: grid;
  gap: 6px;
}

.cost-bar-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8ec;
}

.bar-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  transition: width 0.22s ease;
}

.empty-state {
  border: 1px dashed #bec9d0;
  border-radius: var(--radius);
  background: #fbfcfd;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 36px));
  transform: translateY(18px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  padding: 13px 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

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

.erp-page {
  background: #e9eef2;
}

.erp-app {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  width: min(1500px, calc(100% - 28px));
  min-height: calc(100vh - 104px);
  margin: 18px auto 36px;
  overflow: hidden;
  border: 1px solid #242b31;
  border-radius: var(--radius);
  background: #edf1f4;
  box-shadow: var(--shadow);
}

.erp-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, #14191d, #222b31 52%, #111518);
  padding: 18px;
  color: var(--white);
}

.erp-menu .erp-brand {
  margin-bottom: 18px;
}

.erp-menu .brand-logo {
  width: 58px;
  height: 58px;
}

.erp-menu .erp-tab {
  text-decoration: none;
}

.erp-content {
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
}

.erp-content .erp-header h1 {
  margin: 4px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.notice {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 13px 16px;
  font-weight: 800;
}

.notice.success {
  border-color: #aad3b6;
  background: #e7f5ea;
  color: #1f6f37;
}

.notice.danger {
  border-color: #e2b4ae;
  background: #fbebe9;
  color: var(--danger);
}

.install-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 28%, rgba(15, 103, 168, 0.28), transparent 32%),
    linear-gradient(125deg, #111518, #28313a);
}

.install-shell {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  place-items: center;
  padding: 28px;
}

.install-panel {
  display: grid;
  width: min(620px, 100%);
  gap: 14px;
}

.install-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.install-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.install-logo {
  width: 150px;
  margin: 0 auto 8px;
  border-radius: 50%;
}

.mini-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue-dark);
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.mini-button:hover {
  border-color: var(--blue);
}

.mini-button.danger {
  color: var(--danger);
}

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

.quote-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
}

.quote-items-head h4 {
  margin: 0;
}

.quote-items {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.quote-item-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.15fr) minmax(240px, 1.6fr) 76px 86px 108px 100px 92px;
  gap: 8px;
  align-items: end;
  border: 1px solid #d9e1e6;
  border-radius: var(--radius);
  background: #f8fafb;
  padding: 10px;
}

.quote-item-row label {
  min-width: 0;
}

.quote-item-row input,
.quote-item-row select {
  min-width: 0;
}

.quote-item-row output {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: flex-end;
  color: var(--blue-dark);
  font-weight: 900;
}

.quote-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-actions form {
  margin: 0;
}

.form-panel .quote-items + .form-grid {
  margin-top: 6px;
}

.inline-form {
  margin: 0;
}

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

.action-grid form,
.action-grid .button {
  width: 100%;
}

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

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

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

  .erp-shell,
  .split-layout,
  .form-layout,
  .form-layout.compact {
    grid-template-columns: 1fr;
  }

  .erp-sidebar {
    position: sticky;
    top: var(--header-height);
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(6, minmax(128px, 1fr));
    overflow-x: auto;
  }

  .erp-sidebar .erp-brand {
    display: none;
  }

  .form-panel {
    position: static;
  }

  .erp-app,
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .erp-menu {
    display: grid;
    grid-template-columns: repeat(6, minmax(128px, 1fr));
    overflow-x: auto;
  }

  .erp-menu .erp-brand {
    display: none;
  }

  .quote-item-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-item-row output,
  .quote-item-row button {
    width: 100%;
  }

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

@media (max-width: 860px) {
  .service-grid,
  .intro-band,
  .contact-section,
  .dashboard-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    right: -120px;
    bottom: 22px;
    width: 360px;
    opacity: 0.45;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 68px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 700px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(9, 12, 15, 0.9), rgba(9, 12, 15, 0.68));
  }

  .hero-content {
    align-content: end;
    padding-top: 72px;
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .metric,
  .service-card,
  .timeline li {
    min-height: auto;
  }

  .erp-shell {
    width: 100%;
    margin-bottom: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .erp-sidebar {
    top: 124px;
    grid-template-columns: repeat(6, minmax(142px, 1fr));
    padding: 12px;
  }

  .erp-menu {
    grid-template-columns: repeat(6, minmax(142px, 1fr));
    padding: 12px;
  }

  .erp-app {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

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

  .erp-actions {
    width: 100%;
  }

  .icon-button {
    flex: 1 1 0;
    width: auto;
  }

  .full-span {
    grid-column: auto;
  }

  .action-grid,
  .report-filter {
    grid-template-columns: 1fr;
  }
}

.brand strong,
.erp-brand strong,
.brand small,
.erp-brand small,
.site-nav,
.erp-tab,
.button,
.button-icon,
.icon-button,
.mini-button,
label,
.text-button,
.notice,
.badge,
.row-actions button,
.cost-bar-header,
th {
  font-weight: 600;
}

.eyebrow,
.summary-tile span,
.summary-tile strong,
.panel h3,
.service-card h3,
.metric strong,
.card-icon,
.timeline span,
.timeline strong,
td strong,
.quote-preview,
.quote-item-row output,
.metric span {
  font-weight: 650;
}

.hero h1,
.section-heading h2,
.contact-section h2,
.erp-content .erp-header h1 {
  font-weight: 700;
}

input,
textarea,
select,
td {
  font-weight: 400;
}

.slim-filter {
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .erp-content {
    padding: 14px;
  }

  .erp-content .erp-header h1 {
    font-size: clamp(1.45rem, 8vw, 2.1rem);
  }

  .erp-menu {
    gap: 6px;
  }

  .erp-menu .erp-tab {
    min-width: 154px;
    padding: 0 10px;
  }

  .panel,
  .summary-tile {
    padding: 14px;
  }

  .quote-item-row {
    grid-template-columns: 1fr;
  }

  .quote-item-row output {
    justify-content: flex-start;
  }

  .table-wrap {
    margin: 0 -4px;
    padding-bottom: 4px;
  }

  table {
    min-width: 720px;
  }

  .button,
  .mini-button {
    min-height: 42px;
  }
}

@media print {
  .topbar,
  .hero,
  .intro-band,
  #servicos,
  #estrutura,
  #contato,
  .erp-sidebar,
  .erp-actions,
  .text-button,
  .row-actions,
  .toast {
    display: none !important;
  }

  .erp-shell {
    display: block;
    border: 0;
    box-shadow: none;
  }

  .tab-panel {
    display: block;
    page-break-after: always;
  }
}
