:root {
  --ink: #1b2320;
  --muted: #64716b;
  --subtle: #8a9790;
  --page: #f3f7f5;
  --surface: #ffffff;
  --surface-2: #edf3ef;
  --line: #d9e3dd;
  --nav: #101715;
  --nav-soft: #17211d;
  --accent: #0f8f82;
  --accent-strong: #087568;
  --coral: #d85d49;
  --amber: #d69a19;
  --violet: #6f61d9;
  --ok: #188251;
  --danger: #b83b36;
  --shadow: 0 18px 45px rgba(17, 25, 22, 0.12);
  --radius: 8px;
  --sidebar: 276px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.45;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-pulse {
  0%,
  100% {
    box-shadow: 0 16px 40px rgba(17, 25, 22, 0.07);
  }
  50% {
    box-shadow: 0 18px 52px rgba(216, 93, 73, 0.22);
  }
}

@keyframes scan-line {
  from {
    transform: translateX(-35%);
  }
  to {
    transform: translateX(35%);
  }
}

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

button,
input,
select,
textarea {
  border: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  background: var(--nav);
  color: #f2f8f5;
  padding: 20px 16px;
}

.brand {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 6px;
  text-decoration: none;
}

.brand img,
.login-logo {
  width: 46px;
  height: 46px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.brand strong,
.login-title strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand small,
.login-title span {
  display: block;
  margin-top: 2px;
  color: #b8c9c1;
  font-size: 0.78rem;
}

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

.nav-button {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-radius: var(--radius);
  background: transparent;
  color: #d8e6df;
  padding: 10px 12px;
  text-align: left;
}

.nav-button > span:not(.nav-count-badge) {
  min-width: 0;
  padding-right: 24px;
}

.nav-count-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: #ffffff;
  padding: 0 6px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(226, 0, 116, 0.28);
}

.nav-button:hover,
.nav-button.is-active {
  background: var(--nav-soft);
  color: #ffffff;
}

.nav-button.is-active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-sublist {
  display: grid;
  gap: 4px;
  margin: -2px 0 6px 18px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-subbutton {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border-radius: var(--radius);
  background: transparent;
  color: #b8c9c1;
  padding: 8px 10px;
  text-align: left;
  font-size: 0.86rem;
}

.nav-subbutton:hover,
.nav-subbutton.is-active {
  background: rgba(15, 143, 130, 0.14);
  color: #ffffff;
}

.sidebar-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 16px;
}

.user-pill {
  display: grid;
  gap: 2px;
  color: #edf7f2;
  font-size: 0.9rem;
}

.user-pill span {
  color: #afc4ba;
  font-size: 0.78rem;
}

.workspace {
  min-height: 100vh;
  margin-left: var(--sidebar);
}

.backend-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(184, 59, 54, 0.24);
  background: #fff5f4;
  color: #7f211d;
  padding: 10px clamp(18px, 4vw, 42px);
  font-size: 0.9rem;
}

.backend-warning strong {
  white-space: nowrap;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  border-bottom: 1px solid rgba(217, 227, 221, 0.8);
  background: rgba(243, 247, 245, 0.94);
  padding: 18px clamp(18px, 4vw, 42px);
  backdrop-filter: blur(14px);
}

.topbar h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.topbar-actions,
.inline-actions,
.card-actions,
.toolbar,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.content {
  display: grid;
  gap: 26px;
  padding: 26px clamp(18px, 4vw, 42px) 46px;
}

.public-site {
  min-height: 100vh;
  background: #f7faf8;
  scroll-padding-top: 86px;
}

.public-site section {
  scroll-margin-top: 84px;
}

.public-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  border-bottom: 1px solid rgba(217, 227, 221, 0.86);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px clamp(16px, 4vw, 54px);
  box-shadow: 0 10px 32px rgba(17, 25, 22, 0.08);
  backdrop-filter: blur(14px);
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.public-brand img {
  width: 44px;
  height: 44px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.public-brand strong,
.public-brand small {
  display: block;
  overflow-wrap: anywhere;
}

.public-brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: #425049;
  font-size: 0.92rem;
  font-weight: 700;
}

.public-nav a {
  text-decoration: none;
}

.public-nav a:hover {
  color: var(--accent-strong);
}

.public-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-hero {
  position: relative;
  display: grid;
  min-height: 94svh;
  align-items: center;
  overflow: hidden;
  background: #101715;
  color: #ffffff;
  padding: 118px clamp(18px, 6vw, 76px) 86px;
}

.public-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.45;
}

.public-hero .hero-copy,
.public-hero .hero-panel,
.public-band {
  animation: rise-in 520ms ease both;
}

.public-hero .hero-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(174, 231, 220, 0.16), transparent);
  pointer-events: none;
  animation: scan-line 4.6s linear infinite alternate;
}

.public-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  content: "";
  background: #f7faf8;
  clip-path: polygon(0 74%, 100% 20%, 100% 100%, 0% 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(15, 143, 130, 0.12);
  color: var(--accent-strong);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-hero .eyebrow {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #aee7dc;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 18px 0 0;
  font-size: clamp(2.45rem, 6vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #c5d4ce;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.btn.light {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn.light:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-copy .button-row {
  margin-top: 30px;
}

.hero-panel {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  right: clamp(18px, 5vw, 74px);
  bottom: 96px;
  display: grid;
  width: min(430px, 36vw);
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-panel-head,
.hero-metrics {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hero-panel-head span,
.hero-ticket p,
.hero-metrics span {
  color: #c8d8d0;
}

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

.hero-metrics div,
.hero-ticket {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  padding: 12px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.2rem;
}

.hero-metrics span {
  display: block;
  margin-top: 3px;
  font-size: 0.74rem;
}

.hero-ticket {
  display: grid;
  gap: 8px;
}

.hero-ticket strong {
  font-size: 1.08rem;
}

.hero-ticket p {
  margin: 0;
  font-size: 0.86rem;
}

.hero-ticket.compact {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.public-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.public-section-title {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 28px;
}

.public-section-title h2,
.split-band h2,
.contact-band h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.public-section-title p,
.split-band p,
.contact-band p,
.public-card p,
.portal-choices p {
  margin: 0;
  color: var(--muted);
}

.public-card-grid,
.portal-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.public-card,
.portal-choices article,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(17, 25, 22, 0.07);
  padding: 22px;
}

.public-card {
  display: grid;
  gap: 14px;
  min-height: 220px;
}

.public-card h3,
.portal-choices h3 {
  margin: 0;
  font-size: 1.24rem;
}

.public-card-icon,
.portal-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--accent-strong);
}

.split-band,
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.proof-list {
  display: grid;
  gap: 12px;
}

.proof-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  color: #2d3934;
  font-weight: 750;
}

.proof-list .icon {
  color: var(--accent);
}

.os-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.portal-choices article {
  display: grid;
  gap: 16px;
}

.contact-band {
  align-items: center;
}

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

.login-modal {
  width: min(100%, 480px);
  padding: 0;
}

.login-modal .form-grid,
.login-modal .demo-access {
  padding: 0 22px 22px;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  background: var(--page);
}

.login-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  background: var(--nav);
  color: #f6fbf8;
  padding: clamp(28px, 5vw, 58px);
}

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

.login-art {
  display: grid;
  gap: 18px;
}

.login-art h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.login-art p {
  max-width: 580px;
  margin: 0;
  color: #c1d4cc;
  font-size: 1rem;
}

.login-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
}

.login-stat {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
}

.login-stat strong {
  display: block;
  font-size: 1.35rem;
}

.login-stat span {
  color: #b8cbc2;
  font-size: 0.78rem;
}

.login-main {
  display: grid;
  align-items: center;
  padding: clamp(22px, 5vw, 60px);
}

.login-panel {
  width: min(100%, 460px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.login-panel h2,
.section-title h2,
.modal-panel h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.login-panel p,
.section-title p,
.empty-state,
.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
}

.demo-access {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.demo-chip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.demo-chip code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.form-grid,
.compact-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  margin-top: 22px;
}

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

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

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

.field label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

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

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

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(15, 143, 130, 0.75);
  box-shadow: 0 0 0 3px rgba(15, 143, 130, 0.12);
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

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

.check-grid .checkbox-line {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
  padding: 8px 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 9px 13px;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  border-color: #bccdc4;
  background: #f9fbfa;
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.btn.primary:hover {
  background: var(--accent-strong);
}

.btn.danger {
  border-color: rgba(184, 59, 54, 0.22);
  color: var(--danger);
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
}

.btn.dark {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
}

.section-title,
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

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

.kpi-card,
.order-card,
.client-card,
.finance-card,
.material-card,
.tool-panel,
.portal-summary,
.portal-profile-card,
.portal-vip-card,
.portal-balance-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 25, 22, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.kpi-card:hover,
.order-card:hover,
.client-card:hover,
.finance-card:hover,
.material-card:hover,
.public-card:hover,
.portal-choices article:hover,
.portal-profile-card:hover,
.portal-vip-card:hover,
.portal-balance-card:hover {
  border-color: rgba(15, 143, 130, 0.28);
  box-shadow: 0 18px 46px rgba(17, 25, 22, 0.12);
  transform: translateY(-2px);
}

.kpi-card {
  display: grid;
  gap: 12px;
  min-height: 128px;
  padding: 18px;
}

.kpi-card .kpi-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--accent);
}

.kpi-card strong {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1;
}

.kpi-card span {
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.list-grid {
  display: grid;
  gap: 12px;
}

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

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

.schedule-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.schedule-column h3,
.subsection-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-card,
.client-card,
.finance-card,
.material-card {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.order-top,
.client-top,
.finance-top,
.material-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-title,
.client-name,
.finance-title,
.material-title {
  min-width: 0;
}

.order-title strong,
.client-name strong,
.finance-title strong,
.material-title strong {
  display: block;
  overflow-wrap: anywhere;
}

.order-title span,
.client-name span,
.finance-title span,
.material-title span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.meta-row,
.money-row,
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge.status-done {
  border-color: rgba(24, 130, 81, 0.2);
  background: rgba(24, 130, 81, 0.1);
  color: var(--ok);
}

.badge.status-queue,
.badge.status-pending {
  border-color: rgba(214, 154, 25, 0.24);
  background: rgba(214, 154, 25, 0.12);
  color: #8c610f;
}

.badge.status-progress {
  border-color: rgba(111, 97, 217, 0.22);
  background: rgba(111, 97, 217, 0.12);
  color: var(--violet);
}

.badge.status-scheduled {
  border-color: rgba(15, 143, 130, 0.22);
  background: rgba(15, 143, 130, 0.1);
  color: var(--accent-strong);
}

.badge.pay-paid {
  border-color: rgba(24, 130, 81, 0.2);
  background: rgba(24, 130, 81, 0.1);
  color: var(--ok);
}

.badge.pay-partial {
  border-color: rgba(111, 97, 217, 0.2);
  background: rgba(111, 97, 217, 0.11);
  color: var(--violet);
}

.badge.pay-open {
  border-color: rgba(216, 93, 73, 0.24);
  background: rgba(216, 93, 73, 0.11);
  color: var(--coral);
}

.priority-high {
  color: var(--coral);
}

.priority-urgent {
  color: var(--danger);
}

.tool-panel {
  padding: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.money {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.empty-state {
  border: 1px dashed #c8d5ce;
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(16, 23, 21, 0.58);
  padding: 26px;
}

.modal-panel {
  width: min(920px, 100%);
  max-height: calc(100vh - 52px);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-head,
.modal-body,
.modal-actions {
  padding: 18px;
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head {
  border-bottom: 1px solid var(--line);
}

.modal-actions {
  border-top: 1px solid var(--line);
  background: #fbfdfc;
  position: sticky;
  bottom: 0;
}

.material-qty-grid {
  display: grid;
  gap: 10px;
}

.material-lines {
  display: grid;
  gap: 12px;
}

.material-line-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.55fr) 90px 95px 110px 110px;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
  padding: 12px;
}

.material-name-field {
  min-width: 0;
}

.quick-client-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 143, 130, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 143, 130, 0.06);
  padding: 12px;
}

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

.ticket-card.is-new,
.admin-ticket-card.is-new {
  border-color: rgba(216, 93, 73, 0.32);
  animation: soft-pulse 2.2s ease-in-out infinite;
}

.ticket-card.is-new .order-title strong::after,
.admin-ticket-card.is-new .portal-ticket-main strong::after {
  display: inline-flex;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(216, 93, 73, 0.12);
  color: var(--coral);
  padding: 2px 8px;
  content: "novo";
  font-size: 0.7rem;
  text-transform: uppercase;
}

.support-offline-note {
  border-left: 3px solid var(--amber);
  background: rgba(214, 154, 25, 0.12);
  padding: 10px 12px;
}

.support-public-grid,
.support-desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.support-start-panel,
.support-info-panel,
.support-status-panel,
.chat-panel,
.support-history-card,
.client-ticket-history {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(17, 25, 22, 0.07);
  padding: 18px;
}

.support-start-panel {
  display: grid;
  gap: 14px;
}

.support-info-panel,
.support-status-panel {
  display: grid;
  gap: 14px;
}

.support-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.support-mini-stats div,
.queue-position {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 14px;
}

.support-mini-stats strong,
.queue-position strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.support-mini-stats span,
.queue-position span {
  color: var(--muted);
  font-size: 0.82rem;
}

.support-chat-shell {
  display: grid;
  grid-template-columns: minmax(230px, 0.35fr) minmax(0, 0.65fr);
  gap: 18px;
}

.support-fab {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 143, 130, 0.28);
  padding: 12px 18px;
}

.support-fab span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.support-widget {
  position: fixed;
  right: 12px;
  bottom: 18px;
  z-index: 75;
  display: grid;
  width: min(380px, calc(100vw - 24px));
  max-height: min(680px, calc(100svh - 36px));
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 26px 80px rgba(17, 25, 22, 0.24);
}

.support-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--accent);
  color: #ffffff;
  padding: 14px;
}

.support-widget-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.support-widget-brand img {
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.support-widget-body {
  display: grid;
  gap: 14px;
  max-height: calc(100svh - 110px);
  overflow: auto;
  padding: 14px;
}

.support-widget-form {
  display: grid;
  gap: 12px;
}

.widget-welcome,
.widget-status {
  display: grid;
  gap: 6px;
  border-radius: var(--radius);
  background: #f7f9f8;
  padding: 12px;
}

.widget-welcome span,
.widget-status span {
  color: var(--muted);
  font-size: 0.86rem;
}

.widget-chat-messages {
  max-height: 340px;
}

.widget-compose {
  position: sticky;
  bottom: 0;
  background: #ffffff;
}

.widget-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.chat-panel {
  display: grid;
  gap: 12px;
  min-height: 420px;
}

.agent-chat-panel {
  min-height: 560px;
}

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

.chat-head span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.chat-bubble {
  display: grid;
  gap: 4px;
  max-width: 78%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px 12px;
}

.chat-bubble.agent {
  justify-self: end;
  border-color: rgba(15, 143, 130, 0.22);
  background: rgba(15, 143, 130, 0.1);
}

.chat-bubble.system {
  justify-self: center;
  max-width: 92%;
  background: #f7f9f8;
  color: var(--muted);
}

.chat-bubble p {
  margin: 0;
}

.chat-bubble span {
  color: var(--subtle);
  font-size: 0.72rem;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.chat-compose.with-attachments {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.chat-input {
  min-height: 78px;
  max-height: 180px;
  resize: vertical;
}

.chat-compose.with-attachments .send-button {
  grid-column: 1 / -1;
  width: 100%;
}

.attach-button {
  cursor: pointer;
}

.attachment-preview,
.message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-preview {
  grid-column: 1 / -1;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid rgba(15, 143, 130, 0.2);
  border-radius: 999px;
  background: rgba(15, 143, 130, 0.08);
  color: var(--accent-strong);
  padding: 6px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.attachment-chip span {
  overflow-wrap: anywhere;
}

.attachment-chip small {
  color: var(--muted);
  font-weight: 700;
}

.attachment-chip.has-thumb {
  align-items: center;
  border-radius: var(--radius);
  padding: 5px 8px 5px 5px;
}

.attachment-thumb {
  width: 46px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 143, 130, 0.14);
}

.attachment-file-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 143, 130, 0.1);
}

.support-queue-card.is-next {
  border-color: rgba(15, 143, 130, 0.35);
}

.client-ticket-history {
  margin-top: 18px;
}

.ticket-history-list,
.ticket-thread {
  display: grid;
  gap: 10px;
}

.support-history-card {
  display: grid;
  gap: 12px;
}

.ticket-thread {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.ticket-thread-item {
  border-left: 3px solid var(--line);
  background: #fbfdfc;
  padding: 8px 10px;
}

.ticket-thread-item.from-agent {
  border-left-color: var(--accent);
}

.ticket-thread-item p {
  margin: 4px 0 0;
}

.ticket-thread-item span {
  color: var(--subtle);
  font-size: 0.76rem;
}

.material-qty-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.portal-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(140px, 0.28fr));
  gap: 16px;
  padding: 18px;
}

.portal-summary h2 {
  margin: 0;
}

.portal-summary p {
  margin: 6px 0 0;
  color: var(--muted);
}

.summary-box {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.summary-box strong {
  display: block;
  font-size: 1.25rem;
}

.summary-box span {
  color: var(--muted);
  font-size: 0.82rem;
}

.portal-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.portal-profile-card,
.portal-vip-card {
  padding: 22px;
}

.portal-profile-card h2,
.portal-vip-card h2 {
  margin: 6px 0 16px;
}

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

.client-detail-item {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.client-detail-item span,
.portal-balance-card span,
.portal-balance-card small,
.vip-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.client-detail-item strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.portal-vip-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(15, 143, 130, 0.24);
  background:
    linear-gradient(135deg, rgba(15, 143, 130, 0.1), rgba(255, 255, 255, 0.94) 52%),
    #ffffff;
}

.portal-vip-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--amber), var(--violet));
  content: "";
}

.vip-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
}

.vip-products {
  display: grid;
  gap: 10px;
}

.vip-product {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 143, 130, 0.22);
  border-radius: 999px;
  background: rgba(15, 143, 130, 0.1);
  color: var(--accent-strong);
  padding: 9px 12px;
  font-weight: 800;
}

.vip-product.muted {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.portal-vip-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.portal-ticket-card {
  padding: 0;
  overflow: hidden;
}

.portal-ticket-toggle {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  background: transparent;
  color: inherit;
  padding: 16px;
  text-align: left;
}

.portal-ticket-toggle:hover {
  background: #fbfdfc;
}

.portal-ticket-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.portal-ticket-main strong,
.portal-ticket-main small {
  overflow-wrap: anywhere;
}

.portal-ticket-main small {
  color: var(--muted);
}

.portal-ticket-chevron {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  transition: transform 180ms ease;
}

.portal-ticket-card.is-open .portal-ticket-chevron {
  transform: rotate(90deg);
}

.portal-ticket-card .ticket-thread {
  margin: 0 16px 16px;
}

.admin-ticket-actions,
.admin-ticket-reply {
  margin: 0 16px 16px;
}

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

.portal-balance-card {
  padding: 18px;
}

.portal-balance-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.portal-balance-card.is-paid {
  border-color: rgba(24, 130, 81, 0.2);
  background: linear-gradient(135deg, rgba(24, 130, 81, 0.1), #ffffff 60%);
}

.portal-balance-card.is-open {
  border-color: rgba(214, 154, 25, 0.26);
  background: linear-gradient(135deg, rgba(214, 154, 25, 0.12), #ffffff 60%);
}

.invoice-card {
  padding: 18px;
}

.portal-contract-shell {
  display: grid;
  gap: 18px;
}

.contract-document {
  position: relative;
  display: grid;
  gap: 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 143, 130, 0.18);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(17, 25, 22, 0.08);
  padding: clamp(18px, 3vw, 32px);
}

.contract-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  padding: 10px 14px;
}

.contract-ribbon span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contract-head,
.contract-parties,
.contract-terms-grid,
.contract-signatures {
  display: grid;
  gap: 16px;
}

.contract-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.contract-head h2 {
  margin: 6px 0 0;
}

.contract-head img {
  width: 62px;
  height: 62px;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}

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

.contract-party,
.contract-term,
.contract-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
  padding: 14px;
}

.contract-party span,
.contract-term span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.contract-party strong,
.contract-term strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.contract-party p,
.contract-section p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.contract-section h3 {
  margin: 0 0 12px;
}

.contract-future-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-color: rgba(214, 154, 25, 0.28);
  background: rgba(214, 154, 25, 0.1);
}

.contract-future-note .icon {
  color: var(--amber);
  flex: 0 0 auto;
}

.contract-signatures {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  padding-top: 28px;
}

.timeline {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 9px;
  color: var(--muted);
  font-size: 0.84rem;
}

.timeline-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
}

.toast {
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid rgba(15, 143, 130, 0.2);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  color: var(--ink);
}

.persistent-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border-color: rgba(15, 143, 130, 0.32);
}

.persistent-notice strong {
  display: block;
  margin-bottom: 4px;
}

.persistent-notice p {
  margin: 0;
  color: var(--muted);
}

.mobile-list {
  display: none;
}

.print-sheet {
  display: grid;
  gap: 18px;
  padding: 26px;
  color: #111714;
}

.print-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 2px solid #111714;
  padding-bottom: 16px;
}

.print-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.print-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

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

.print-box {
  border: 1px solid #cfd8d2;
  border-radius: 6px;
  padding: 12px;
}

.print-box h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.print-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 20px;
}

.signature-line {
  border-top: 1px solid #111714;
  padding-top: 8px;
  text-align: center;
}

@media (max-width: 1180px) {
  .kpi-grid,
  .cards-grid,
  .schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 620px);
    margin-top: 34px;
  }

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

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

  .material-line-row {
    grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(90px, 0.5fr));
  }

  .support-public-grid,
  .support-desk-grid,
  .support-chat-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .public-header {
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: auto;
  }

  .public-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .public-hero {
    padding-top: 150px;
  }

  .split-band,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    inset: auto;
    width: 100%;
    max-height: none;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 12px;
  }

  .brand {
    min-width: 220px;
  }

  .nav-list {
    display: flex;
    min-width: max-content;
  }

  .nav-button {
    width: auto;
  }

  .nav-sublist {
    display: flex;
    min-width: max-content;
    margin: 0;
    padding-left: 0;
    border-left: 0;
  }

  .sidebar-footer {
    display: none;
  }

  .workspace {
    margin-left: 0;
  }

  .topbar {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-side {
    min-height: auto;
  }
}

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

  .public-header {
    padding: 10px 12px;
  }

  .public-brand {
    width: 100%;
  }

  .public-actions {
    width: 100%;
  }

  .public-actions .btn {
    flex: 1 1 150px;
  }

  .public-nav {
    font-size: 0.86rem;
  }

  .public-hero {
    min-height: auto;
    padding: 184px 16px 70px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }

  .hero-panel {
    padding: 12px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .public-band {
    width: min(100% - 28px, 1180px);
    padding: 56px 0;
  }

  .public-card-grid,
  .portal-choices,
  .register-grid {
    grid-template-columns: 1fr;
  }

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

  .kpi-grid,
  .cards-grid,
  .schedule-grid,
  .form-row,
  .form-row.three,
  .portal-summary,
  .portal-profile-grid,
  .client-detail-grid,
  .portal-finance-grid,
  .contract-head,
  .contract-parties,
  .contract-terms-grid,
  .contract-signatures,
  .print-grid,
  .print-signatures {
    grid-template-columns: 1fr;
  }

  .login-stats {
    grid-template-columns: 1fr;
  }

  .section-title,
  .section-head,
  .modal-head,
  .modal-actions,
  .print-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .material-qty-row {
    grid-template-columns: 1fr;
  }

  .material-line-row {
    grid-template-columns: 1fr 1fr;
  }

  .material-name-field {
    grid-column: 1 / -1;
  }

  .chat-bubble {
    max-width: 94%;
  }

  .chat-compose {
    grid-template-columns: 1fr;
  }

  .chat-compose.with-attachments {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .chat-compose.with-attachments > .btn:not(.attach-button) {
    grid-column: 1 / -1;
  }

  .support-start-panel,
  .support-info-panel,
  .support-status-panel,
  .chat-panel,
  .support-history-card,
  .client-ticket-history {
    padding: 14px;
  }

  .support-fab {
    right: 12px;
    bottom: 14px;
    min-height: 50px;
    padding: 10px 14px;
  }

  .support-widget {
    right: 0;
    bottom: 0;
    width: 100vw;
    max-height: 92svh;
    border-radius: 8px 8px 0 0;
  }

  .btn {
    min-height: 44px;
    max-width: 100%;
    white-space: normal;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  .orders-table {
    display: none;
  }

  .mobile-list {
    display: grid;
    gap: 12px;
  }

  .input,
  .select,
  .textarea {
    min-height: 46px;
    font-size: 1rem;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }

  .print-sheet,
  .print-sheet * {
    visibility: visible !important;
  }

  .modal-backdrop,
  .modal-panel {
    position: static !important;
    inset: auto !important;
    display: block !important;
    overflow: visible !important;
    background: #ffffff !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
    max-height: none !important;
  }

  .modal-head,
  .modal-actions {
    display: none !important;
  }

  .print-sheet {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 18mm;
  }
}
