@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Montserrat:wght@500;600;700&display=swap");

:root {
  --bg: #eef3f9;
  --panel: #ffffff;
  --panel-soft: #f6f8fc;
  --line: #dfe7f1;
  --text: #1c2840;
  --muted: #6e7b91;
  --primary: #5c96ff;
  --primary-strong: #387cf4;
  --primary-soft: #e9f1ff;
  --success: #35b56a;
  --success-soft: #eaf8f0;
  --danger: #ef5b57;
  --danger-soft: #ffefee;
  --warning: #f2a54a;
  --warning-soft: #fff6e8;
  --shadow: 0 10px 28px rgba(29, 55, 90, 0.05);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(92, 150, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #f6f9fd 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.container.center {
  max-width: 1040px;
  margin: 72px auto;
  padding: 48px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
  border: 1px solid rgba(228, 236, 246, 0.9);
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.landing-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.split-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  width: min(1320px, 100%);
  min-height: calc(100vh - 64px);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(222, 231, 242, 0.9);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(27, 51, 84, 0.12);
}

.split-auth-hero {
  position: relative;
  padding: 56px 56px 48px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.18), transparent 18%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(145deg, #4bb4d8 0%, #5d8cf0 55%, #7084f3 100%);
  color: #fff;
}

.split-auth-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-height: 100%;
  max-width: 540px;
}

.split-auth-symbol,
.auth-brand-symbol {
  position: relative;
  flex: 0 0 auto;
}

.split-auth-symbol {
  width: 136px;
}

.auth-brand-symbol {
  width: 72px;
  height: 56px;
  margin-bottom: 12px;
}

.split-auth-symbol-image,
.auth-brand-symbol-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.split-auth-symbol-image {
  filter: none;
  filter:
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.55))
    drop-shadow(0 0 38px rgba(255, 255, 255, 0.3));
}

.split-auth-description {
  max-width: 520px;
  margin: 0;
  color: #ffffff;
}

.split-auth-description.landing-subtitle-montserrat {
  color: #ffffff;
}

.split-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  background:
    radial-gradient(circle at top left, rgba(92, 150, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
}

.auth.auth-embedded {
  width: min(100%, 520px);
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.auth-brand-logo-full {
  display: block;
  width: min(100%, 220px);
  height: auto;
  margin-bottom: 18px;
  object-fit: contain;
  object-position: left center;
}

.auth.auth-embedded .brand-title {
  margin-bottom: 10px;
  text-align: left;
  color: var(--text);
  font-size: 36px;
}

.auth.auth-embedded .subtitle {
  margin-bottom: 28px;
  text-align: left;
  color: var(--muted);
  font-size: 16px;
}

.split-auth-forgot {
  margin-top: 8px;
}

.split-auth-forgot a {
  color: #7d889c;
  font-size: 13px;
  font-weight: 700;
}

.split-auth-actions {
  margin-top: 24px;
}

.split-auth-submit {
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  font-size: 17px;
}

.split-auth-register {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.split-auth-register a {
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 800;
}

.landing-shell {
  width: min(1180px, 100%);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: stretch;
  padding: 40px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94)),
    radial-gradient(circle at top right, rgba(92, 150, 255, 0.18), transparent 34%);
  border: 1px solid rgba(228, 236, 246, 0.9);
  border-radius: 36px;
  box-shadow: 0 24px 60px rgba(29, 55, 90, 0.08);
}

.landing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.landing-logo {
  width: min(100%, 520px);
  max-height: 168px;
  object-fit: contain;
  object-position: left center;
}

.landing-title {
  margin: 0 0 12px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.landing-subtitle {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.landing-subtitle-montserrat {
  font-family: "Montserrat", "Segoe UI", Tahoma, sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  letter-spacing: -0.025em;
  color: #20314d;
}

.landing-actions {
  margin-top: 32px;
}

.landing-highlight {
  display: grid;
  gap: 16px;
  align-content: center;
}

.landing-highlight-card {
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.9));
  border: 1px solid rgba(219, 230, 244, 0.95);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(47, 79, 122, 0.08);
}

.landing-highlight-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-highlight-card strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(51, 83, 124, 0.08);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
}

.btn.success {
  border-color: transparent;
  background: linear-gradient(135deg, #41c974 0%, #2fa360 100%);
  color: #fff;
}

.btn.danger {
  border-color: transparent;
  background: linear-gradient(135deg, #ff6c64 0%, #ef4f4b 100%);
  color: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.forgot-link {
  display: block;
  margin-top: 8px;
  text-align: right;
}

.forgot-link a {
  color: var(--muted);
  text-decoration: none;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 308px;
  padding: 26px 0;
  background: rgba(255, 255, 255, 0.93);
  border-right: 1px solid rgba(216, 227, 242, 0.9);
  backdrop-filter: blur(18px);
}

.nav-toggle-input,
.mobile-topbar,
.mobile-nav-overlay {
  display: none;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 24px;
  padding: 16px 20px 22px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #70a3ff 0%, #3b7cf4 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(59, 124, 244, 0.18);
}

.brand-logo {
  width: 46px;
  height: 46px;
  padding: 5px;
  border-radius: 14px;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(222, 231, 241, 0.9);
  background: #fff;
}

.brand-copy strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.sidebar .nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 18px 0;
}

.sidebar .nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  color: #2f3c53;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar .nav a:hover,
.sidebar .nav a.active {
  background: var(--primary-soft);
  color: var(--primary-strong);
  transform: translateX(2px);
}

.nav-icon,
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg,
.icon svg,
.icon-only svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content {
  margin-left: 308px;
  padding: 24px;
}

.page-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-header,
.panel,
.table-panel,
.chart-panel,
.auth,
.public-proposal {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(228, 234, 243, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
}

.page-header h1,
.content h1 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.page-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel,
.table-panel,
.chart-panel {
  padding: 20px 22px;
}

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

.stat-card {
  min-height: 152px;
  padding: 22px;
  background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
  border: 1px solid #edf1f7;
  border-radius: 18px;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-icon.clients {
  background: #eef0ff;
  color: #6f67d8;
}

.stat-icon.proposals {
  background: #f4efff;
  color: #9a7df2;
}

.stat-icon.approved {
  background: var(--success-soft);
  color: var(--success);
}

.stat-icon.value {
  background: #fff4df;
  color: #e49a1e;
}

.stat-icon.pending {
  background: var(--warning-soft);
  color: var(--warning);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stat-value {
  display: block;
  margin-top: 10px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.panel-title {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

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

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

.freight-inline-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.8fr 1.1fr;
  gap: 14px;
  align-items: end;
  min-width: 1100px;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.field .required {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(56, 124, 244, 0.55);
  box-shadow: 0 0 0 3px rgba(92, 150, 255, 0.12);
}

.field .help {
  color: var(--muted);
  font-size: 13px;
}

.field .help[data-state="success"] {
  color: var(--success);
}

.field .help[data-state="warning"] {
  color: var(--warning);
}

.field .help[data-state="danger"] {
  color: var(--danger);
}

.field.invalid .error-msg {
  display: block;
}

.field .error-msg {
  display: none;
  color: #b7001f;
  font-size: 13px;
}

.password-row {
  position: relative;
}

.password-toggle {
  position: absolute;
  top: 41px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--primary-strong);
  cursor: pointer;
  font-weight: 700;
}

.errors {
  padding: 12px 14px;
  border: 1px solid #ffd1cd;
  border-radius: 14px;
  background: #fff1ef;
  color: #b6231d;
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 15px 16px 12px;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr {
  background: #fff;
}

tbody tr:nth-child(even) {
  background: #fcfdff;
}

tbody td {
  padding: 14px 16px;
  border-top: 1px solid #edf2f8;
  vertical-align: middle;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.proposal-number {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.status-badge,
.status-select {
  display: inline-flex;
  align-items: center;
  min-width: 118px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.status-badge {
  justify-content: center;
}

.status-rascunho {
  background: #eef1f6;
  color: #6d7786;
}

.status-enviado {
  background: #e8f1ff;
  color: #2d76ea;
}

.status-aprovado {
  background: #e9f8ef;
  color: #219153;
}

.status-cancelado {
  background: #ffedeb;
  color: #d73c38;
}

.status-select {
  appearance: none;
  cursor: pointer;
}

.status-form {
  margin: 0;
}

.item-actions,
.icon-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-actions form {
  margin: 0;
}

.tooltip-wrap {
  position: relative;
  display: inline-flex;
}

.icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(229, 235, 243, 0.9);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
  color: #58657a;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(44, 67, 101, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.icon-only:hover {
  transform: translateY(-1px);
  border-color: rgba(203, 215, 231, 0.95);
  box-shadow: 0 12px 24px rgba(44, 67, 101, 0.1);
}

.icon-only.whatsapp {
  background: var(--success-soft);
  border-color: rgba(157, 221, 182, 0.9);
  color: var(--success);
}

.icon-only.edit {
  background: #fff4df;
  border-color: rgba(243, 214, 166, 0.9);
  color: #e49a1e;
}

.icon-only.public {
  background: #eef0ff;
  border-color: rgba(214, 215, 255, 0.92);
  color: #6f67d8;
}

.icon-only.delete {
  background: var(--danger-soft);
  border-color: rgba(255, 202, 198, 0.95);
  color: var(--danger);
}

.icon-only.whatsapp:hover {
  color: #28984a;
}

.icon-only.edit:hover {
  color: #c98419;
}

.icon-only.public:hover {
  color: #5c55be;
}

.icon-only.delete:hover {
  color: #da403c;
}

.tooltip-text {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 6px 9px;
  border-radius: 8px;
  background: #182235;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.tooltip-wrap:hover .tooltip-text,
.tooltip-wrap:focus-within .tooltip-text {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

input[readonly] {
  background: #f4f7fb;
  color: #617086;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}

.proposal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.proposal-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.proposal-form-notes {
  grid-column: 1 / -1;
}

.proposal-items-wrap,
.proposal-freight-wrap {
  margin-top: 6px;
  border: 1px solid rgba(228, 234, 243, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
}

.proposal-items-table {
  min-width: 760px;
}

.proposal-freight-table {
  min-width: 880px;
}

.proposal-inline-summary {
  margin-top: 8px;
  font-size: 14px;
}

.proposal-freight-title {
  margin-top: 18px;
}

.proposal-freight-help {
  margin-top: 8px;
}

.proposal-hidden-total {
  display: none;
}

.summary-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
}

.summary-strip strong {
  font-size: 16px;
}

.auth {
  max-width: 470px;
  margin: 52px auto;
  padding: 26px;
}

.auth .brand-title {
  display: block;
  margin-bottom: 6px;
  text-align: center;
  color: var(--primary-strong);
  font-size: 30px;
  font-weight: 800;
}

.auth .subtitle {
  display: block;
  margin-bottom: 20px;
  text-align: center;
  color: var(--muted);
}

.public-proposal {
  max-width: 980px;
  margin: 34px auto;
  padding: 0;
  overflow: hidden;
}

.public-proposal-top {
  min-height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
}

.public-proposal-body {
  padding: 28px;
}

.public-proposal .meta-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 20px;
  background: #f8fafd;
  border-radius: 16px;
}

.public-proposal .divider {
  height: 1px;
  margin: 40px 0;
  background: var(--line);
}

.public-proposal .contact-box {
  text-align: center;
  color: var(--muted);
}

.public-proposal .contact-box strong {
  display: block;
  margin: 12px 0 6px;
  color: var(--text);
  font-size: 16px;
}

.logo-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
}

.logo-preview img {
  display: block;
  max-width: 180px;
  max-height: 72px;
  object-fit: contain;
}

.empty-state {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1220px) {
  .stats-grid,
  .filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .split-auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-auth-hero,
  .split-auth-panel {
    padding: 28px;
  }

  .split-auth-hero-inner {
    max-width: none;
  }

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

  .landing-copy {
    min-height: auto;
  }

  .nav-toggle-input {
    position: fixed;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(216, 227, 242, 0.9);
    backdrop-filter: blur(18px);
  }

  .mobile-nav-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
  }

  .mobile-nav-button span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.03em;
}

  .mobile-brand .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .mobile-brand .brand-logo {
    width: 36px;
    height: 36px;
    padding: 4px;
    border-radius: 12px;
  }

  .mobile-brand .brand-mark svg {
    width: 18px;
    height: 18px;
  }

  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(16, 24, 40, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  .sidebar {
    z-index: 40;
    width: min(308px, calc(100vw - 28px));
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  .content {
    margin-left: 0;
    padding: 18px;
  }

  .page-header,
  .split-grid,
  .public-proposal .meta-card {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-toggle-input:checked ~ .mobile-nav-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle-input:checked ~ .sidebar {
    transform: translateX(0);
  }

  .nav-toggle-input:checked + .mobile-topbar .mobile-nav-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle-input:checked + .mobile-topbar .mobile-nav-button span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-input:checked + .mobile-topbar .mobile-nav-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 720px) {
  .landing-page {
    padding: 18px;
  }

  .split-auth-shell {
    border-radius: 28px;
  }

  .split-auth-hero,
  .split-auth-panel {
    padding: 22px;
  }

  .split-auth-symbol {
    width: 112px;
  }

  .landing-hero {
    padding: 22px;
    border-radius: 28px;
  }

  .landing-logo {
    max-height: 120px;
  }

  .landing-subtitle-montserrat {
    font-size: 20px;
  }

  .container.center,
  .panel,
  .table-panel,
  .chart-panel,
  .page-header,
  .auth,
  .public-proposal-body {
    padding: 18px;
  }

  .stats-grid,
  .filter-form,
  .filter-form.compact {
    grid-template-columns: 1fr;
  }

  .proposal-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .proposal-form-page .actions {
    flex-direction: column;
  }

  .proposal-form-page .actions .btn {
    width: 100%;
  }

  .proposal-items-wrap,
  .proposal-freight-wrap {
    border-radius: 16px;
  }

  .proposal-inline-summary,
  .proposal-freight-help .help {
    font-size: 13px;
  }

  .proposal-items-table,
  .proposal-freight-table,
  .proposal-items-table thead,
  .proposal-freight-table thead,
  .proposal-items-table tbody,
  .proposal-freight-table tbody,
  .proposal-items-table tr,
  .proposal-freight-table tr,
  .proposal-items-table td,
  .proposal-freight-table td {
    display: block;
    width: 100%;
  }

  .proposal-items-table,
  .proposal-freight-table {
    min-width: 0;
  }

  .proposal-items-table thead,
  .proposal-freight-table thead {
    display: none;
  }

  .proposal-items-table tbody tr,
  .proposal-freight-table tbody tr {
    padding: 14px;
  }

  .proposal-items-table tbody tr + tr,
  .proposal-freight-table tbody tr + tr {
    border-top: 1px solid #edf2f8;
  }

  .proposal-items-table tbody td,
  .proposal-freight-table tbody td {
    border-top: 0;
    padding: 0;
  }

  .proposal-items-table tbody td + td,
  .proposal-freight-table tbody td + td {
    margin-top: 12px;
  }

  .proposal-items-table tbody td::before,
  .proposal-freight-table tbody td::before {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    content: "";
  }

  .proposal-items-table tbody td:nth-child(1)::before {
    content: "Produto";
  }

  .proposal-items-table tbody td:nth-child(2)::before {
    content: "Quantidade";
  }

  .proposal-items-table tbody td:nth-child(3)::before {
    content: "Toneladas";
  }

  .proposal-items-table tbody td:nth-child(4)::before {
    content: "Valor unit.";
  }

  .proposal-items-table tbody td:nth-child(5)::before {
    content: "Valor total";
  }

  .proposal-items-table tbody td:nth-child(6)::before {
    content: "Acoes";
  }

  .proposal-freight-table tbody td:nth-child(1)::before {
    content: "Cidade/UF";
  }

  .proposal-freight-table tbody td:nth-child(2)::before {
    content: "Frete por tonelada";
  }

  .proposal-freight-table tbody td:nth-child(3)::before {
    content: "Prazo do frete";
  }

  .proposal-freight-table tbody td:nth-child(4)::before {
    content: "Total em toneladas";
  }

  .proposal-freight-table tbody td:nth-child(5)::before {
    content: "Valor total da proposta";
  }

  .proposal-items-table tbody td input,
  .proposal-items-table tbody td select,
  .proposal-freight-table tbody td input,
  .proposal-freight-table tbody td select {
    width: 100%;
  }

  .proposal-items-table .item-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .proposal-items-table .item-actions .btn {
    width: 100%;
  }

  .sidebar .brand {
    margin: 0 16px;
    padding: 14px 14px 20px;
  }

  .sidebar .nav {
    padding: 18px 12px 0;
  }

  thead th,
  tbody td {
    padding-left: 10px;
    padding-right: 10px;
  }
}
