﻿:root {
  color-scheme: light;
  --navy: #061a32;
  --navy-soft: #0d2a48;
  --steel: #24384d;
  --teal: #0e7f73;
  --accent: #1f9f91;
  --gold: #d7a12d;
  --amber: #f3aa2d;
  --panel: #f4f7fb;
  --card: #ffffff;
  --text: #102033;
  --muted: #5c6b7d;
  --line: #d8e1eb;
  --white: #ffffff;
  --danger: #b42318;
  --success: #157f3b;
  --shadow-soft: 0 22px 54px rgba(8, 32, 51, 0.13);
  --shadow-card: 0 16px 34px rgba(8, 32, 51, 0.08);
  --shadow-premium: 0 18px 46px rgba(6, 26, 50, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 161, 45, 0.12), transparent 30rem),
    linear-gradient(135deg, #f7f9fc 0%, #edf2f7 42%, #f9fbfd 100%);
  font-family: Inter, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
}

.page-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.brand-header {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
  text-align: center;
}

.brand-header h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.brand-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.is-hidden {
  display: none !important;
}

.home-panel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 34px;
  color: var(--white);
  background: rgba(8, 32, 51, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.home-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

.home-copy p:last-child,
.home-actions p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.home-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.primary-action {
  width: fit-content;
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  padding: 0 20px;
  color: #ffffff;
  background: var(--teal);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.primary-action:hover {
  background: #0c625c;
}

.form-panel {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.auth-panel,
.saas-panel {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.auth-panel {
  max-width: 720px;
}

.auth-form,
.entity-form {
  display: grid;
  gap: 18px;
}

.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.auth-optional {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.login-access-status {
  padding: 10px 12px;
  border: 1px solid rgba(207, 216, 227, 0.95);
  border-radius: 8px;
  background: #f8fafc;
}

.login-access-status.info {
  color: var(--navy);
  border-color: rgba(12, 91, 140, 0.24);
  background: #eef7fb;
}

.login-access-status.error {
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.24);
  background: #fff7f6;
}

.app-topbar,
.report-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(8, 32, 51, 0.05);
}

.app-topbar h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.45rem;
}

.session-box,
.context-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cloud-status,
.local-status {
  padding: 7px 10px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid #dbe0e7;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.cloud-status.success,
.local-status.success {
  color: var(--success);
  background: #f6fff8;
  border-color: rgba(21, 127, 59, 0.32);
}

.cloud-status.error,
.local-status.error {
  color: var(--danger);
  background: #fff7f6;
  border-color: rgba(180, 35, 24, 0.32);
}

.cloud-status.info,
.local-status.info {
  color: var(--navy);
  background: #fffaf0;
  border-color: rgba(216, 171, 56, 0.42);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(216, 171, 56, 0.45);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--navy);
  background: rgba(216, 171, 56, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.billing-alert {
  padding: 14px 16px;
  color: #6f3f00;
  background: #fff8e7;
  border: 1px solid rgba(216, 171, 56, 0.48);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.session-box strong,
.report-context-bar strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.compact {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.saas-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.saas-tabs button {
  min-height: 42px;
  border: 1px solid #dbe4ee;
  border-radius: 7px;
  color: var(--navy);
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.saas-tabs button.active {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
}

.route-panel {
  display: none;
  gap: 18px;
}

.route-panel.active {
  display: grid;
}

.dashboard-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.dashboard-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 158px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.dashboard-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.dashboard-card strong {
  align-self: center;
  color: var(--navy);
  font-size: 2.35rem;
  line-height: 1;
}

.dashboard-card .mini-button {
  width: 100%;
}

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

.plan-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  min-height: 310px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dfe5eb;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(10, 31, 51, 0.06);
}

.plan-card.current {
  border-color: rgba(216, 171, 56, 0.9);
  box-shadow: 0 16px 34px rgba(216, 171, 56, 0.16);
}

.plan-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
}

.plan-price {
  margin: 0;
  color: var(--gold);
  font-size: 1.45rem;
  font-weight: 900;
}

.plan-features {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.usage-item {
  display: grid;
  gap: 8px;
  min-height: 84px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e1e5ea;
  border-radius: 10px;
}

.usage-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.usage-item strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.workspace-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(8, 32, 51, 0.05);
}

.workspace-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
}

.diary-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-left: 4px solid var(--teal);
}

.diary-hero .eyebrow {
  margin: 0 0 4px;
}

.diary-jump-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}

.diary-jump-nav a {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 9px 12px;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(8, 32, 51, 0.04);
}

.diary-jump-nav a:hover,
.diary-jump-nav a:focus {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
  outline: none;
}

.diary-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.diary-side-panels {
  display: grid;
  gap: 18px;
}

.diary-form {
  gap: 14px;
}

.rdo-macro-section {
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(207, 216, 227, 0.95);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(8, 32, 51, 0.06);
  scroll-margin-top: 18px;
}

.rdo-macro-section[open] {
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 18px 42px rgba(8, 32, 51, 0.08);
}

.rdo-macro-section summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  color: var(--navy);
  background:
    linear-gradient(135deg, rgba(244, 247, 249, 0.98), rgba(255, 255, 255, 0.98));
}

.rdo-macro-section summary::-webkit-details-marker {
  display: none;
}

.rdo-macro-section summary::after {
  content: "+";
  justify-self: end;
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: rgba(15, 118, 110, 0.1);
  font-weight: 900;
}

.rdo-macro-section[open] summary::after {
  content: "-";
  color: #ffffff;
  background: var(--teal);
}

.rdo-macro-section summary span {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--navy);
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
}

.rdo-macro-section summary strong {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.rdo-macro-section summary small {
  grid-column: 2 / 4;
  grid-row: 2;
  min-width: 0;
  padding-right: 40px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.rdo-macro-section .form-subsection {
  margin: 0 14px 14px;
}

.rdo-macro-section .form-subsection:first-of-type {
  margin-top: 0;
}

.rdo-macro-section > .diary-save-button {
  margin: 0 14px 14px;
}

.form-subsection {
  display: grid;
  gap: 14px;
  scroll-margin-top: 18px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.form-subsection h4 {
  margin: 0;
  color: var(--navy);
  font-size: 0.98rem;
}

.inline-editor-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr 0.7fr 0.8fr;
  gap: 12px;
  align-items: end;
}

.production-editor-grid {
  grid-template-columns: 1.3fr 0.75fr 0.65fr 1.1fr;
}

.composition-material-grid {
  grid-template-columns: 1.25fr 0.85fr 0.7fr 1.1fr;
}

.composition-form {
  gap: 14px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.composition-library-card {
  align-content: start;
}

.compact-search {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.estimate-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fffaf0;
  border: 1px solid rgba(216, 171, 56, 0.34);
  border-radius: 8px;
}

.estimate-panel .button-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.estimate-panel .button-row .next-action,
.estimate-panel .button-row .secondary-action,
.estimate-panel .button-row .mini-button {
  width: 100%;
  min-height: 46px;
}

.estimate-panel h5 {
  margin: 0;
  color: var(--navy);
  font-size: 0.95rem;
}

.estimate-warning {
  margin: 0;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.4;
}

.estimate-edit-list {
  display: grid;
  gap: 10px;
}

.estimate-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 0.7fr 0.65fr minmax(0, 1fr);
  gap: 10px;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.share-actions .mini-button {
  min-height: 38px;
}

.material-summary {
  padding: 12px 14px;
  color: var(--navy);
  background: #eef9f7;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.diary-item-list,
.diary-audit {
  display: grid;
  gap: 10px;
}

.diary-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.diary-list-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.94rem;
}

.diary-list-item span,
.diary-list-item p {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

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

.diary-photo-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.diary-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #edf2f7;
}

.diary-photo-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.stock-ia-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-left: 4px solid var(--gold);
  background:
    linear-gradient(135deg, rgba(4, 23, 46, 0.96), rgba(10, 49, 93, 0.92)),
    radial-gradient(circle at top right, rgba(216, 171, 56, 0.2), transparent 18rem);
}

.stock-ia-hero h3,
.stock-ia-hero p,
.stock-ia-hero .eyebrow {
  color: #ffffff;
}

.stock-ia-hero p {
  max-width: 760px;
  opacity: 0.9;
}

.stock-ia-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.stock-ia-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.stock-ia-mode-gateway {
  border-color: rgba(15, 95, 143, 0.2);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%),
    radial-gradient(circle at top right, rgba(14, 127, 115, 0.08), transparent 18rem);
}

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

.stock-ia-mode-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(8, 32, 51, 0.06);
}

.stock-ia-mode-card.featured {
  border-color: rgba(216, 171, 56, 0.52);
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.stock-ia-mode-card > span {
  width: fit-content;
  padding: 5px 9px;
  color: #0f5f8f;
  background: rgba(15, 95, 143, 0.08);
  border: 1px solid rgba(15, 95, 143, 0.16);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stock-ia-mode-card.featured > span {
  color: #6d4300;
  background: rgba(216, 171, 56, 0.16);
  border-color: rgba(216, 171, 56, 0.3);
}

.stock-ia-mode-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
}

.stock-ia-mode-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.stock-ia-mode-card .stock-ia-actions {
  align-self: end;
}

.stock-ia-card {
  display: grid;
  gap: 7px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(207, 216, 227, 0.95);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(8, 32, 51, 0.06);
}

.stock-ia-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stock-ia-card strong {
  color: var(--navy);
  font-size: 1.38rem;
  line-height: 1.15;
}

.stock-ia-quick-example {
  border-color: rgba(216, 171, 56, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 250, 235, 0.96), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at top right, rgba(216, 171, 56, 0.18), transparent 18rem);
}

.stock-ia-quick-example h3 {
  color: var(--navy);
}

.stock-ia-quick-example p:last-child {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.5;
}

.stock-ia-mode-panel {
  border-left: 4px solid rgba(15, 118, 110, 0.7);
}

.stock-ia-empty-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.stock-ia-empty-action span {
  line-height: 1.45;
}

.stock-guided-section {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #f8fbfd;
}

.stock-guided-section h4 {
  margin: 0;
  color: var(--navy);
  font-size: 0.94rem;
}

.stock-guided-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

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

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

.inline-stock-form .full-width {
  grid-column: 1 / -1;
}

.stock-ia-table-wrap {
  overflow-x: auto;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
}

.stock-ia-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.stock-ia-table.compact {
  min-width: 980px;
}

.stock-ia-table th,
.stock-ia-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e7edf3;
  text-align: left;
  vertical-align: top;
}

.stock-ia-table th {
  color: var(--navy);
  background: #f6f9fc;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.stock-ia-insight p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.stock-ia-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stock-ia-actions .mini-button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 0.72rem;
}

.stock-ia-periods,
.stock-ia-quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.stock-ia-periods .mini-button.active {
  color: #081f33;
  border-color: rgba(216, 171, 56, 0.65);
  background: #f6c85f;
}

.stock-ia-purchase-cards {
  margin: 14px 0;
}

.stock-ia-table td:last-child .stock-ia-actions {
  min-width: 110px;
}

.stock-ia-table td:first-child {
  font-weight: 800;
  color: var(--navy);
}

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

.stock-ia-alert {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(207, 216, 227, 0.9);
  border-left: 4px solid var(--muted);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(8, 32, 51, 0.07);
}

.stock-ia-alert strong {
  color: var(--navy);
}

.stock-ia-alert p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.stock-ia-alert.severity-critica {
  border-left-color: var(--danger);
}

.stock-ia-alert.severity-alta {
  border-left-color: #d9822b;
}

.stock-ia-alert.severity-media {
  border-left-color: #d8ab38;
}

.stock-ia-alert-badge {
  width: fit-content;
  padding: 3px 8px;
  color: var(--navy);
  background: #f6f9fc;
  border: 1px solid #dfe7ef;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stock-ia-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.stock-ia-question input {
  min-height: 42px;
}

.stock-ia-answer {
  margin: 12px 0 0;
  padding: 14px;
  color: var(--navy);
  line-height: 1.5;
  background: #f6f9fc;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.stock-note-status {
  margin: 12px 0;
  padding: 12px 14px;
  color: var(--navy);
  background: #f6f9fc;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  font-weight: 800;
}

.stock-note-preview {
  padding: 12px;
  color: var(--muted);
  background: #f6f9fc;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.stock-note-preview img {
  display: block;
  max-width: min(100%, 420px);
  max-height: 240px;
  border-radius: 8px;
  object-fit: contain;
}

.stock-note-items {
  overflow-x: auto;
}

.stock-ia-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.stock-ia-checkbox input {
  width: auto;
  min-height: auto;
}

.stock-ia-toast {
  position: sticky;
  bottom: 14px;
  z-index: 50;
  justify-self: end;
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid rgba(207, 216, 227, 0.95);
  border-radius: 8px;
  color: var(--navy);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(8, 32, 51, 0.14);
}

.stock-ia-toast.success {
  border-color: rgba(21, 127, 59, 0.24);
  background: #f6fff8;
}

.stock-ia-toast.error {
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.24);
  background: #fff7f6;
}

.stock-ia-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 23, 46, 0.52);
}

.stock-ia-modal-backdrop {
  width: min(760px, 100%);
  max-height: min(86vh, 760px);
  overflow-y: auto;
}

.stock-ia-modal-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid rgba(216, 171, 56, 0.32);
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(4, 23, 46, 0.28);
}

.stock-ia-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.stock-ia-modal-header h3 {
  margin: 0;
  color: var(--navy);
}

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

.stock-ia-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.stock-ia-form input,
.stock-ia-form select,
.stock-ia-form textarea {
  width: 100%;
}

.stock-ia-modal-note {
  margin: 0;
  padding: 12px;
  color: var(--navy);
  background: #f6f9fc;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.stock-ia-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.almox-primary-flow {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.4fr);
  gap: 16px;
  align-items: start;
}

.almox-priority-card {
  border-color: rgba(216, 171, 56, 0.42);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 16px 34px rgba(8, 32, 51, 0.08);
}

.almox-primary-flow .almox-action-grid {
  grid-template-columns: 1fr;
}

.almox-primary-flow .almox-action-button {
  min-height: 104px;
}

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

.almox-action-button {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 16px;
  text-align: left;
  color: var(--navy);
  background: linear-gradient(135deg, #ffffff 0%, #f6f9fc 100%);
  border: 1px solid rgba(216, 171, 56, 0.42);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(8, 32, 51, 0.08);
  cursor: pointer;
}

.almox-action-button strong {
  font-size: 1rem;
}

.almox-action-button span {
  color: var(--muted);
  line-height: 1.45;
}

.almox-note-panel {
  display: grid;
  gap: 14px;
}

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

.almox-note-option {
  display: grid;
  gap: 6px;
  padding: 13px;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.almox-note-option.active {
  border-color: rgba(216, 171, 56, 0.62);
  box-shadow: 0 12px 24px rgba(8, 32, 51, 0.07);
}

.almox-note-option span,
.almox-note-status {
  color: var(--muted);
  line-height: 1.45;
}

.almox-note-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.almox-note-grid label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.almox-note-grid .full-width {
  grid-row: span 2;
}

.almox-note-grid input,
.almox-note-grid textarea,
.almox-note-table input {
  width: 100%;
}

.almox-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.almox-note-status {
  margin: 0;
  padding: 10px 12px;
  background: #f6f9fc;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.almox-note-status.success {
  color: #126c3a;
  background: #eaf7ef;
  border-color: rgba(21, 127, 59, 0.22);
}

.almox-note-status.warning {
  color: #8a5a00;
  background: #fff8e5;
  border-color: rgba(194, 122, 0, 0.25);
}

.almox-note-status.error {
  color: #9f1d18;
  background: #fff7f6;
  border-color: rgba(180, 35, 24, 0.22);
}

.almox-note-file-preview {
  display: grid;
  gap: 10px;
  min-height: 88px;
  padding: 12px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.almox-note-file-preview.is-empty {
  place-items: center start;
  background: #f6f9fc;
}

.almox-ocr-review {
  display: grid;
  gap: 12px;
  padding: 14px;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.almox-ocr-review.is-empty {
  color: var(--muted);
  background: #f6f9fc;
}

.almox-ocr-review.has-risk {
  border-color: rgba(194, 122, 0, 0.32);
  background: #fffdf5;
}

.almox-ocr-review p,
.almox-ocr-review ul {
  margin: 0;
}

.almox-ocr-review-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap: 8px;
}

.almox-ocr-review-summary span {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  background: #f6f9fc;
  border: 1px solid #e5edf5;
  border-radius: 8px;
}

.almox-ocr-review-summary small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.almox-ocr-review-summary b {
  font-size: 1rem;
}

.almox-ocr-review-warning {
  padding: 10px 12px;
  color: #8a5a00;
  background: #fff8e5;
  border: 1px solid rgba(194, 122, 0, 0.25);
  border-radius: 8px;
  font-weight: 700;
}

.almox-ocr-review-list {
  display: grid;
  gap: 6px;
}

.almox-ocr-review-list ul {
  display: grid;
  gap: 4px;
  padding-left: 18px;
  color: var(--muted);
}

.almox-ocr-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 760px) {
  .almox-ocr-review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.almox-note-file-preview.ready {
  color: var(--navy);
  border-color: rgba(15, 95, 143, 0.22);
}

.almox-note-file-preview img {
  display: block;
  max-width: min(100%, 420px);
  max-height: 260px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
}

.almox-note-file-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.almox-note-file-preview .almox-note-ocr-meta {
  width: fit-content;
  padding: 6px 9px;
  color: #126c3a;
  background: #eaf7ef;
  border: 1px solid rgba(21, 127, 59, 0.22);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.almox-note-file-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #f6f9fc;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.almox-note-file-box strong {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #9f1d18;
  background: #fff7f6;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: 8px;
  font-size: 0.8rem;
}

.almox-note-file-box span,
.almox-note-commercial {
  color: var(--muted);
  line-height: 1.45;
}

.almox-note-commercial {
  margin: 0;
  padding: 10px 12px;
  background: #f6f9fc;
  border-left: 3px solid rgba(216, 171, 56, 0.7);
  border-radius: 8px;
}

.almox-note-table-wrap {
  overflow-x: auto;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.almox-note-table {
  min-width: 760px;
}

.almox-note-table input {
  min-height: 34px;
  padding: 7px 8px;
  font-size: 0.82rem;
}

.almox-dashboard-panel {
  display: grid;
  gap: 16px;
  border-color: rgba(15, 95, 143, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}

.almox-dashboard-heading {
  align-items: flex-start;
}

.almox-dashboard-heading h3 {
  margin: 0;
}

.almox-dashboard-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.almox-dashboard-periods .mini-button.active {
  color: #082033;
  background: #f6c85f;
  border-color: rgba(216, 171, 56, 0.7);
}

.almox-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.almox-dashboard-card {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.almox-dashboard-card span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.almox-dashboard-card strong {
  color: currentColor;
  font-size: 1.15rem;
  line-height: 1.1;
}

.almox-dashboard-card small {
  color: var(--muted);
  line-height: 1.25;
}

.almox-clickable-card,
.almox-clickable-row {
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.almox-clickable-card:hover,
.almox-clickable-row:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 95, 143, 0.34);
  box-shadow: 0 10px 22px rgba(8, 32, 51, 0.08);
}

.almox-clickable-card:focus-visible,
.almox-clickable-row:focus-visible {
  outline: 3px solid rgba(15, 95, 143, 0.24);
  outline-offset: 2px;
}

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

.almox-dashboard-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(8, 32, 51, 0.05);
}

.almox-dashboard-block h4,
.almox-dashboard-block p {
  margin: 0;
}

.almox-dashboard-block h4 {
  color: var(--navy);
}

.almox-dashboard-block > p,
.almox-dashboard-empty {
  color: var(--muted);
  line-height: 1.45;
}

.almox-dashboard-ranking,
.almox-dashboard-metric {
  display: grid;
  gap: 8px;
}

.almox-dashboard-bar-row {
  display: grid;
  gap: 6px;
}

.almox-dashboard-bar-row span,
.almox-dashboard-metric-header {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
}

.almox-dashboard-bar-row i,
.almox-dashboard-track {
  display: block;
  height: 9px;
  overflow: hidden;
  background: #edf2f7;
  border-radius: 999px;
}

.almox-dashboard-bar-row i {
  background: linear-gradient(90deg, #0f5f8f, #f6c85f);
}

.almox-dashboard-metric-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.almox-dashboard-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.almox-dashboard-track i.status-danger {
  background: #c24135;
}

.almox-dashboard-track i.status-warning {
  background: #d8ab38;
}

.almox-dashboard-track i.status-ok {
  background: #2f9e64;
}

.almox-dashboard-track i.status-muted {
  background: #94a3b8;
}

.almox-dashboard-note {
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  line-height: 1.45;
}

.almox-item-summary-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 32, 51, 0.42);
}

.almox-item-summary-backdrop {
  width: min(860px, 100%);
  max-height: min(88vh, 820px);
  overflow-y: auto;
}

.almox-item-summary-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(8, 32, 51, 0.22);
}

.almox-item-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.almox-item-summary-grid > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.almox-item-summary-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.almox-item-summary-grid strong {
  color: var(--navy);
}

.almox-item-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.almox-item-summary-history {
  display: grid;
  gap: 10px;
}

.almox-item-summary-history h4,
.almox-item-summary-history p {
  margin: 0;
}

.almox-summary-history-row,
.almox-summary-list-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.almox-summary-history-row p {
  color: var(--muted);
  line-height: 1.4;
}

.almox-search-input {
  width: 100%;
  min-height: 46px;
}

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

.almox-item-card,
.almox-history-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(8, 32, 51, 0.07);
}

.almox-item-card header,
.almox-history-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.almox-item-card h4,
.almox-history-item h4 {
  margin: 0;
  color: var(--navy);
}

.almox-item-card p,
.almox-history-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.almox-meta-grid span {
  padding: 8px 10px;
  color: var(--navy);
  background: #f6f9fc;
  border: 1px solid #e4ebf2;
  border-radius: 7px;
  font-size: 0.82rem;
}

.almox-status {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--navy);
  background: #eaf7ef;
  border: 1px solid rgba(21, 127, 59, 0.2);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.almox-status.warning {
  background: #fff8df;
  border-color: rgba(216, 171, 56, 0.35);
}

.almox-status.critical {
  color: var(--danger);
  background: #fff7f6;
  border-color: rgba(180, 35, 24, 0.24);
}

.almox-history-list {
  display: grid;
  gap: 10px;
}

.almox-history-item.is-entry {
  border-left: 4px solid rgba(21, 127, 59, 0.55);
}

.almox-history-item.is-exit {
  border-left: 4px solid rgba(216, 171, 56, 0.75);
}

.almox-manager-panel {
  display: grid;
  gap: 16px;
  border-color: rgba(15, 95, 143, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}

.almox-manager-heading {
  align-items: flex-start;
}

.almox-manager-heading h3 {
  margin: 0;
}

.almox-manager-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.almox-manager-status {
  width: fit-content;
  padding: 6px 10px;
  color: #0c5132;
  background: #eaf7ef;
  border: 1px solid rgba(21, 127, 59, 0.22);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.almox-manager-status.muted {
  color: #7a4d00;
  background: #fff8df;
  border-color: rgba(216, 171, 56, 0.35);
}

.almox-manager-actions,
.almox-email-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.almox-email-panel {
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.almox-email-panel label {
  display: grid;
  gap: 6px;
  flex: 1 1 260px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.almox-email-panel input {
  min-height: 42px;
  width: 100%;
}

.almox-manager-report,
.almox-manager-grid {
  display: grid;
  gap: 12px;
}

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

.almox-manager-report article,
.almox-manager-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(8, 32, 51, 0.06);
}

.almox-manager-report span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.almox-manager-report p,
.almox-manager-card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.almox-manager-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.almox-manager-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.almox-manager-card-header strong {
  color: var(--navy);
}

.almox-manager-card-header span {
  min-width: 34px;
  padding: 4px 8px;
  text-align: center;
  color: var(--navy);
  background: #f6c85f;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.almox-manager-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.almox-manager-card.status-danger {
  border-left: 4px solid rgba(180, 35, 24, 0.72);
}

.almox-manager-card.status-warning {
  border-left: 4px solid rgba(216, 171, 56, 0.82);
}

.almox-manager-card.status-ok {
  border-left: 4px solid rgba(21, 127, 59, 0.58);
}

.almox-manager-card.is-muted {
  opacity: 0.72;
  background: #f8fafc;
}

.almox-manager-card.is-muted .almox-manager-card-header span {
  background: #e2e8f0;
}

.status-ok {
  color: #126c3a;
}

.status-warning {
  color: #8a5a00;
}

.status-danger {
  color: #9f1d18;
}

.status-muted {
  color: var(--muted);
}

.almox-generated-report {
  display: grid;
  gap: 18px;
}

.almox-report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}

.almox-report-header h3,
.almox-report-section h4 {
  margin: 0;
  color: var(--navy);
}

.almox-report-header p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.almox-report-risk {
  flex: 0 0 auto;
  padding: 7px 11px;
  background: #f8fafc;
  border: 1px solid #dfe7ef;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.almox-report-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.almox-report-stat {
  display: grid;
  gap: 5px;
  min-height: 90px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.almox-report-stat span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.almox-report-stat strong {
  color: currentColor;
  font-size: 1.2rem;
  line-height: 1.1;
}

.almox-report-stat small {
  color: var(--muted);
}

.almox-report-section {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.almox-report-list {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 8px 14px;
  margin: 0;
}

.almox-report-list dt {
  color: var(--navy);
  font-weight: 900;
}

.almox-report-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.almox-report-table-wrap {
  overflow-x: auto;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.almox-report-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
}

.almox-report-table th,
.almox-report-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.84rem;
  line-height: 1.35;
  white-space: nowrap;
}

.almox-report-table th {
  color: var(--navy);
  background: #f6f9fc;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.almox-report-empty,
.almox-report-footer {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.almox-report-footer {
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.82rem;
}

@media (max-width: 1080px) {
  .stock-ia-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .almox-primary-flow {
    grid-template-columns: 1fr;
  }

  .almox-action-grid,
  .almox-card-grid,
  .almox-dashboard-cards,
  .almox-manager-grid,
  .almox-note-options,
  .almox-report-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .almox-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .almox-item-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .stock-ia-hero {
    grid-template-columns: 1fr;
  }

  .stock-ia-badges {
    justify-content: flex-start;
  }

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

  .stock-ia-form {
    grid-template-columns: 1fr;
  }

  .stock-ia-alert-list,
  .stock-ia-question {
    grid-template-columns: 1fr;
  }

  .stock-ia-periods {
    justify-content: flex-start;
  }

  .stock-ia-empty-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .stock-guided-section .stock-ia-form-grid {
    grid-template-columns: 1fr;
  }

  .inline-stock-form {
    grid-template-columns: 1fr;
  }

  .almox-action-grid,
  .almox-card-grid,
  .almox-dashboard-cards,
  .almox-dashboard-grid,
  .almox-manager-report,
  .almox-manager-grid,
  .almox-note-grid,
  .almox-note-options,
  .almox-report-stats,
  .almox-report-list,
  .almox-meta-grid,
  .stock-ia-mode-grid {
    grid-template-columns: 1fr;
  }

  .almox-note-grid .full-width {
    grid-row: auto;
  }

  .almox-dashboard-heading {
    display: grid;
  }

  .almox-dashboard-periods {
    justify-content: flex-start;
  }

  .almox-dashboard-periods .mini-button {
    flex: 1 1 92px;
  }

  .almox-report-header {
    display: grid;
  }

  .almox-manager-actions .mini-button,
  .almox-email-panel .mini-button,
  .almox-note-actions .mini-button {
    flex: 1 1 180px;
  }

  .almox-action-button {
    min-height: 96px;
  }

  .almox-item-card header,
  .almox-history-item header {
    display: grid;
  }
}

@media (max-width: 520px) {
  .stock-ia-cards {
    grid-template-columns: 1fr;
  }
}

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

.indicator-item {
  display: grid;
  gap: 7px;
  min-height: 82px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.indicator-item span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.indicator-item strong {
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.15;
}

.recent-report-card {
  align-content: start;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.entity-list {
  display: grid;
  gap: 10px;
}

.entity-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dfe7ef;
  border-radius: 7px;
  background: #f8fafc;
}

.entity-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.98rem;
}

.entity-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

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

.mini-button {
  min-height: 34px;
  border: 1px solid #cfd7df;
  border-radius: 7px;
  padding: 0 10px;
  color: var(--navy);
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.mini-button.primary {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
}

.mini-button.danger {
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.28);
  background: #fff7f6;
}

.empty-list {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.report-context-bar {
  margin-bottom: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.section-title span {
  width: 4px;
  height: 22px;
  background: var(--teal);
}

.section-title h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
}

.subsection-title {
  margin-top: 10px;
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid #dedede;
}

.report-form {
  display: grid;
  gap: 22px;
}

.wizard-progress {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  background: #edf0f4;
  border-radius: 999px;
}

.progress-fill {
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  border-radius: inherit;
  transition: width 240ms ease;
}

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

.stepper button {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dbe0e7;
  border-radius: 7px;
  color: var(--navy);
  background: #f8fafc;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.stepper button.active,
.stepper button.done {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
}

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

.metric-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(8, 32, 51, 0.05);
}

.metric-card strong {
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.metric-card.risk strong {
  color: var(--danger);
}

.step-panel {
  display: none;
  gap: 22px;
  animation: stepFade 180ms ease;
}

.step-panel.active {
  display: grid;
}

@keyframes stepFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-heading {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  border-left: 4px solid var(--teal);
}

.step-heading .eyebrow {
  margin: 0;
}

.step-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
  align-items: start;
}

label {
  display: grid;
  align-content: start;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 14px;
  color: var(--text);
  background: var(--white);
  font: inherit;
  font-weight: 400;
}

input[type="file"] {
  padding: 9px 12px;
  min-height: 66px;
}

.image-upload-field {
  display: grid;
  gap: 8px;
}

.upload-hint {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.35;
}

.image-preview {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  background: #ffffff;
}

.image-preview.is-empty {
  display: none;
}

.image-preview.ready {
  border-color: rgba(21, 127, 59, 0.35);
  background: #f6fff8;
}

.image-preview.info {
  border-color: rgba(216, 171, 56, 0.4);
  background: #fffaf0;
}

.image-preview.success {
  border-color: rgba(21, 127, 59, 0.35);
  background: #f6fff8;
}

.image-preview.error {
  border-color: rgba(180, 35, 24, 0.36);
  background: #fff7f6;
}

.image-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 6px;
  background: #eef1f4;
}

.image-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.image-preview.error p {
  color: var(--danger);
  font-weight: 700;
}

textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.4;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.16);
  border-color: var(--teal);
}

.full-width {
  width: 100%;
}

.technical-text-field {
  display: grid;
  gap: 8px;
}

.ai-field-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ai-button {
  border-color: rgba(12, 91, 140, 0.35);
  color: #0c4f78;
  background: #eef7fb;
}

.ai-button.primary {
  border-color: rgba(15, 118, 110, 0.5);
  color: var(--navy);
  background: rgba(15, 118, 110, 0.1);
}

.ai-suggestion-panel {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dbe0e7;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(10, 31, 51, 0.12);
}

.ai-suggestion-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ai-suggestion-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
}

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

.ai-image-review {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #dbe0e7;
  border-radius: 8px;
}

.ai-image-review span {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.ai-image-review img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 6px;
  background: #eef1f4;
}

.ai-image-review p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.ai-preview-grid textarea {
  min-height: 180px;
  background: #fbfcfd;
}

.ai-suggestion-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.nonconformities {
  display: grid;
  gap: 18px;
}

.nonconformity-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--card);
  border: 1px solid #dfe7ef;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.nonconformity-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 0.98rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.send-button,
.next-action,
.secondary-action {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.send-button,
.next-action {
  color: #ffffff;
  background: var(--teal);
}

.secondary-action {
  color: var(--navy);
  background: #ffffff;
  border-color: #cfd7df;
}

.send-button:hover,
.next-action:hover {
  background: #0c625c;
}

.secondary-action:hover {
  border-color: var(--navy);
}

.send-button:active,
.next-action:active,
.secondary-action:active {
  transform: translateY(1px);
}

.send-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.step-actions {
  display: grid;
  gap: 12px;
}

.step-actions.two {
  grid-template-columns: 1fr 1.4fr;
}

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

.review-card,
.generation-panel {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.review-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.review-card strong,
.generation-panel p {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.35;
}

.form-log {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-log.error {
  color: var(--danger);
}

.form-log.success {
  color: var(--success);
}

.draft-status {
  min-height: 18px;
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.draft-status.success {
  color: var(--success);
}

/* Fase 4.0 - acabamento visual premium sem alterar fluxos */
.page-shell {
  max-width: 1540px;
}

.brand-header h1 {
  color: var(--navy);
  font-weight: 900;
}

.brand-header p {
  color: var(--muted);
}

.home-panel,
.auth-panel {
  background:
    linear-gradient(145deg, rgba(6, 26, 50, 0.96), rgba(9, 43, 76, 0.92)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=70") center / cover;
}

.auth-panel {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

.auth-panel .section-title h2,
.auth-panel label {
  color: #ffffff;
}

.auth-panel .auth-note {
  color: rgba(255, 255, 255, 0.78);
}

.saas-panel {
  max-width: 1500px;
  padding: 26px;
  background: rgba(248, 250, 253, 0.92);
  border: 1px solid rgba(216, 225, 235, 0.86);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.form-panel {
  max-width: 1180px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.app-topbar,
.report-context-bar,
.wizard-progress {
  border-color: rgba(216, 225, 235, 0.92);
  border-radius: 14px;
  box-shadow: var(--shadow-premium);
}

.app-topbar {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96));
}

.app-topbar h2 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: 0;
}

.app-topbar h2::after {
  content: "Sistema de gestÃ£o de obras e relatÃ³rios tÃ©cnicos";
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.cloud-status,
.local-status,
.plan-badge {
  min-height: 34px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.plan-badge {
  color: #6d4300;
  background: linear-gradient(135deg, rgba(255, 247, 226, 0.98), rgba(255, 234, 184, 0.88));
  border-color: rgba(215, 161, 45, 0.5);
}

.workspace-card,
.dashboard-card,
.plan-card,
.metric-card,
.review-card,
.generation-panel,
.form-subsection,
.composition-form,
.compact-search,
.material-summary,
.image-preview,
.step-heading,
.ai-suggestion-panel {
  border-color: rgba(216, 225, 235, 0.92);
  border-radius: 12px;
  box-shadow: var(--shadow-premium);
}

.workspace-card,
.dashboard-card,
.plan-card,
.metric-card,
.review-card,
.generation-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 254, 255, 0.96));
}

.workspace-card h3,
.form-subsection h4,
.step-heading h3,
.section-title h2 {
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.dashboard-actions-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.dashboard-card {
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  align-items: center;
  min-height: 144px;
  padding: 22px;
  border-radius: 12px;
}

.dashboard-card::before {
  height: 0;
}

.dashboard-card::after {
  content: "OR";
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  color: #ffffff;
  background:
    linear-gradient(145deg, #071c36, #0c3156);
  box-shadow: 0 14px 28px rgba(6, 26, 50, 0.2);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.dashboard-card:nth-child(1)::after {
  content: "CL";
}

.dashboard-card:nth-child(2)::after {
  content: "OB";
}

.dashboard-card:nth-child(3)::after {
  content: "RT";
}

.dashboard-card:nth-child(4)::after {
  content: "IMG";
}

.dashboard-card:nth-child(5)::after {
  content: "PDF";
}

.dashboard-card span,
.dashboard-card strong {
  grid-column: 2;
}

.dashboard-card span {
  color: var(--navy);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.dashboard-card strong {
  align-self: start;
  font-size: 2.25rem;
  font-weight: 900;
}

.dashboard-card .mini-button {
  grid-column: 1 / -1;
}

.entity-item,
.diary-list-item,
.usage-item {
  border-color: rgba(216, 225, 235, 0.92);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(6, 26, 50, 0.04);
}

.entity-item:hover,
.diary-list-item:hover,
.dashboard-card:hover,
.workspace-card:hover,
.plan-card:hover {
  border-color: rgba(215, 161, 45, 0.38);
}

.form-subsection {
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
}

.form-subsection h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.form-subsection h4::before,
.section-title span {
  width: 4px;
  min-width: 4px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--amber));
}

input,
select,
textarea {
  min-height: 42px;
  border-color: #d7e0ea;
  border-radius: 9px;
  background: #ffffff;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #bdcadd;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(215, 161, 45, 0.75);
  box-shadow: 0 0 0 4px rgba(215, 161, 45, 0.16);
}

.send-button,
.next-action,
.primary-action,
.mini-button.primary {
  background: linear-gradient(135deg, #08223f, #0d3a65);
  border-color: #08223f;
  box-shadow: 0 12px 26px rgba(6, 26, 50, 0.16);
}

.send-button:hover,
.next-action:hover,
.primary-action:hover,
.mini-button.primary:hover {
  background: linear-gradient(135deg, #0b2c50, #114779);
}

.secondary-action,
.mini-button {
  border-color: #d3deea;
  border-radius: 9px;
  background: #ffffff;
}

.secondary-action:hover,
.mini-button:hover {
  border-color: rgba(215, 161, 45, 0.58);
  box-shadow: 0 8px 18px rgba(6, 26, 50, 0.08);
}

.stepper button,
.saas-tabs button {
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.stepper button.active,
.stepper button.done {
  background: linear-gradient(135deg, #08223f, #0d3a65);
  border-color: #08223f;
}

.progress-fill {
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

.diary-hero {
  border-left: 0;
  background:
    linear-gradient(135deg, rgba(6, 26, 50, 0.96), rgba(10, 48, 80, 0.92));
  color: #ffffff;
}

.diary-hero h3,
.diary-hero .eyebrow {
  color: #ffffff;
}

.diary-hero p,
.diary-hero .local-status {
  color: rgba(255, 255, 255, 0.78);
}

.diary-jump-nav a {
  border-radius: 999px;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid rgba(216, 225, 235, 0.92);
  box-shadow: 0 8px 18px rgba(6, 26, 50, 0.05);
}

.estimate-panel,
.billing-alert {
  border-color: rgba(215, 161, 45, 0.42);
  background: linear-gradient(180deg, #fffaf0, #fffdf7);
}

@media (min-width: 901px) {
  .saas-panel {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 22px 26px;
  }

  .app-topbar,
  .billing-alert {
    grid-column: 1 / -1;
  }

  .saas-tabs {
    position: sticky;
    top: 24px;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 680px;
    margin: 0;
    padding: 20px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background:
      radial-gradient(circle at top left, rgba(215, 161, 45, 0.24), transparent 13rem),
      linear-gradient(180deg, #06172d 0%, #061f3b 48%, #031326 100%);
    box-shadow: 0 24px 54px rgba(6, 26, 50, 0.28);
  }

  .saas-tabs::before {
    content: "OBRAREPORT";
    display: block;
    margin: 2px 10px 18px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.04em;
  }

  .saas-tabs button {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.82);
    text-align: left;
    background: transparent;
    border-color: transparent;
    border-radius: 10px;
  }

  .saas-tabs button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }

  .saas-tabs button.active {
    color: #ffffff;
    border-color: rgba(215, 161, 45, 0.38);
    background: linear-gradient(90deg, rgba(215, 161, 45, 0.18), rgba(255, 255, 255, 0.08));
    box-shadow: inset 4px 0 0 var(--gold);
  }

  .route-panel {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
    background-attachment: scroll;
  }

  .page-shell {
    width: 100%;
    overflow: clip;
    padding: 12px 10px 88px;
  }

  .brand-header p,
  .home-copy h2,
  .home-copy p,
  .home-actions p {
    overflow-wrap: anywhere;
  }

  .home-copy h2 {
    font-size: 1.65rem;
    line-height: 1.14;
  }

  .form-panel {
    padding: 18px 12px;
  }

  .auth-panel,
  .saas-panel {
    padding: 14px 10px;
  }

  .home-panel {
    max-width: 100%;
    padding: 24px 18px;
  }

  .primary-action,
  .compact {
    width: 100%;
  }

  .app-topbar,
  .report-context-bar,
  .session-box,
  .context-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-topbar {
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px;
  }

  .app-topbar h2 {
    font-size: 1.24rem;
  }

  .session-box {
    gap: 8px;
  }

  .cloud-status,
  .local-status,
  .plan-badge {
    justify-content: center;
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .saas-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -10px 14px;
    padding: 0 10px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .saas-tabs button {
    flex: 0 0 132px;
    min-height: 42px;
    padding: 0 12px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .diary-hero,
  .diary-workspace,
  .diary-list-item {
    grid-template-columns: 1fr;
  }

  .diary-hero {
    gap: 12px;
    padding: 16px;
  }

  .diary-hero h3 {
    font-size: 1.06rem;
    line-height: 1.25;
  }

  .diary-jump-nav {
    position: sticky;
    top: 0;
    z-index: 12;
    margin: -4px -10px 2px;
    padding: 8px 10px 10px;
    background: rgba(244, 247, 249, 0.96);
    border-bottom: 1px solid rgba(207, 216, 227, 0.72);
    backdrop-filter: blur(8px);
  }

  .diary-jump-nav a {
    min-height: 38px;
    padding: 10px 13px;
    font-size: 0.78rem;
  }

  .diary-workspace {
    gap: 14px;
  }

  .diary-side-panels {
    gap: 14px;
  }

  .rdo-macro-section {
    scroll-margin-top: 74px;
    box-shadow: 0 10px 24px rgba(8, 32, 51, 0.06);
  }

  .rdo-macro-section summary {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 66px;
    gap: 10px;
    padding: 14px 12px;
  }

  .rdo-macro-section summary::after {
    grid-column: 2;
    width: 28px;
    height: 28px;
  }

  .rdo-macro-section summary span {
    width: 34px;
    height: 34px;
  }

  .rdo-macro-section summary strong {
    padding-right: 34px;
    font-size: 0.98rem;
  }

  .rdo-macro-section summary small {
    grid-column: 2;
    padding-right: 34px;
    font-size: 0.78rem;
  }

  .rdo-macro-section .form-subsection {
    margin: 0 10px 10px;
  }

  .rdo-macro-section > .diary-save-button {
    margin: 0 10px 10px;
  }

  .workspace-card {
    gap: 14px;
    padding: 14px;
  }

  .form-subsection {
    gap: 12px;
    scroll-margin-top: 74px;
    padding: 14px 12px;
    background: #ffffff;
    border-color: #d8e2ec;
  }

  .form-subsection h4 {
    padding-left: 10px;
    border-left: 3px solid var(--teal);
    font-size: 0.94rem;
    line-height: 1.28;
  }

  .inline-editor-grid,
  .production-editor-grid,
  .composition-material-grid,
  .estimate-edit-grid,
  .diary-photo-grid,
  .indicator-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-actions-grid,
  .entity-item {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    min-height: 132px;
  }

  .section-row {
    align-items: stretch;
    flex-direction: column;
  }

  .entity-actions {
    justify-content: stretch;
  }

  .entity-actions .mini-button {
    flex: 1;
  }

  .diary-list-item,
  .entity-item {
    gap: 10px;
    padding: 12px;
  }

  .diary-list-item .entity-actions,
  .entity-item .entity-actions {
    justify-content: stretch;
  }

  .diary-list-item .mini-button,
  .entity-item .mini-button {
    flex: 1 1 96px;
    min-height: 40px;
  }

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

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

  .metrics-grid,
  .plan-grid,
  .usage-grid,
  .ai-preview-grid,
  .review-grid,
  .step-actions.two {
    grid-template-columns: 1fr;
  }

  .ai-suggestion-header,
  .ai-field-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  label {
    font-size: 0.86rem;
  }

  .mini-button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .share-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .share-actions .mini-button {
    width: 100%;
  }

  .material-summary,
  .estimate-panel,
  .compact-search {
    padding: 12px;
  }

  .estimate-panel .button-row {
    grid-template-columns: 1fr;
  }

  .diary-photo-card img {
    max-height: 240px;
  }

  .indicator-item {
    min-height: 76px;
  }

  .diary-save-button {
    position: sticky;
    bottom: 10px;
    z-index: 18;
    min-height: 54px;
    box-shadow: 0 12px 28px rgba(8, 32, 51, 0.2);
  }

  .nonconformity-card {
    padding: 18px 14px;
  }
}

/* Fase 4.2 - painel com aparÃªncia real de SaaS profissional */
:root {
  --color-primary: var(--navy);
  --color-accent: var(--gold);
  --color-bg: var(--panel);
  --color-card: var(--card);
  --color-border: var(--line);
  --radius-card: 12px;
  --shadow-card-system: 0 12px 30px rgba(6, 26, 50, 0.075);
}

.saas-panel {
  background:
    radial-gradient(circle at top left, rgba(215, 161, 45, 0.08), transparent 26rem),
    linear-gradient(180deg, #f8fafc 0%, #f2f6fa 100%);
}

.app-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 18px 20px;
}

.app-topbar .eyebrow {
  margin-bottom: 6px;
  color: #0e7f73;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.session-box {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  align-items: center;
  justify-content: end;
  gap: 8px;
  max-width: min(100%, 760px);
}

.session-box strong {
  grid-column: 1 / -1;
  justify-self: end;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 900;
}

.session-box .plan-badge,
.session-box .local-status,
.session-box .cloud-status {
  width: auto;
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.72rem;
  line-height: 1;
}

.session-box .compact {
  width: auto;
  min-width: 72px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.78rem;
  box-shadow: none;
}

.session-box #saveNowButton {
  color: #ffffff;
  background: linear-gradient(135deg, #08223f, #0d3a65);
  border-color: #08223f;
}

.session-box #logoutButton {
  color: var(--navy);
  background: #ffffff;
}

.saas-tabs {
  border-radius: var(--radius-card);
}

.dashboard-actions-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.dashboard-card {
  min-height: 136px;
  padding: 18px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-system);
}

.dashboard-card strong {
  font-size: 2rem;
}

.dashboard-card .mini-button {
  justify-self: start;
  width: auto;
  min-width: 116px;
  min-height: 34px;
  padding: 0 14px;
}

.workspace-card,
.form-subsection,
.plan-card,
.entity-item,
.diary-list-item,
.metric-card,
.review-card,
.generation-panel {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-system);
}

.workspace-card {
  gap: 14px;
  padding: 18px;
}

.section-row {
  min-height: 36px;
}

.section-row h3 {
  font-size: 1rem;
}

.entity-item {
  padding: 12px 14px;
}

.form-subsection {
  gap: 12px;
  padding: 16px;
}

.form-subsection h4 {
  font-size: 0.94rem;
}

.mini-button,
.secondary-action,
.next-action,
.send-button {
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .app-topbar {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .session-box {
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
    align-items: center;
    gap: 8px;
  }

  .session-box strong {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .session-box .compact {
    min-width: 70px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 10px 10px 78px;
  }

  .brand-header {
    margin-bottom: 14px;
  }

  .brand-header h1 {
    font-size: 1.85rem;
  }

  .saas-panel {
    padding: 10px;
    border-radius: 14px;
  }

  .app-topbar {
    gap: 12px;
    margin-bottom: 10px;
    padding: 14px;
    align-items: start;
  }

  .app-topbar h2 {
    font-size: 1.18rem;
  }

  .app-topbar h2::after {
    font-size: 0.76rem;
  }

  .session-box {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
  }

  .session-box strong {
    flex: 1 0 100%;
    font-size: 0.82rem;
    text-align: left;
  }

  .session-box .plan-badge,
  .session-box .local-status,
  .session-box .cloud-status {
    flex: 0 1 auto;
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-height: 28px;
    padding: 0 9px;
    white-space: nowrap;
  }

  .session-box .compact,
  .compact {
    flex: 0 0 auto;
    width: auto;
    min-width: 68px;
    min-height: 32px;
    padding: 0 11px;
  }

  .saas-tabs {
    margin: 0 -4px 12px;
    padding: 0 4px 8px;
  }

  .saas-tabs button {
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
  }

  .dashboard-actions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    min-height: 96px;
    padding: 14px;
  }

  .dashboard-card::after {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 0.75rem;
  }

  .dashboard-card span {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.72rem;
  }

  .dashboard-card strong {
    grid-column: 2;
    grid-row: 2;
    font-size: 1.75rem;
  }

  .dashboard-card .mini-button {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    min-width: auto;
    width: auto;
    min-height: 34px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .workspace-card,
  .form-subsection {
    padding: 14px;
  }
}

/* Ajuste visual: fundo corporativo mais premium */
body {
  background:
    radial-gradient(circle at 14% 0%, rgba(33, 115, 189, 0.42), transparent 18rem),
    linear-gradient(180deg, #04172e 0, #0a315d 132px, #0f5f8f 240px, #edf3f8 241px, #f7fafc 100%);
}

.brand-header h1 {
  color: #ffffff;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

/* Acabamento comercial pre-tag estavel */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.page-shell {
  max-width: 1280px;
}

.saas-panel {
  max-width: 1240px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 249, 252, 0.96)),
    radial-gradient(circle at top right, rgba(14, 127, 115, 0.13), transparent 24rem);
}

.app-topbar {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid rgba(188, 203, 219, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 252, 0.96));
}

.app-topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
}

.app-topbar .eyebrow,
.workspace-card h3,
.dashboard-card span,
.section-row h3 {
  letter-spacing: 0;
}

.session-box {
  padding: 10px;
  border: 1px solid rgba(216, 225, 235, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.saas-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(216, 225, 235, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 28px rgba(6, 26, 50, 0.055);
}

.saas-tabs button {
  min-width: 0;
  border-color: transparent;
  border-radius: 10px;
  background: transparent;
}

.saas-tabs button:hover,
.saas-tabs button:focus {
  border-color: rgba(14, 127, 115, 0.18);
  background: rgba(14, 127, 115, 0.08);
  outline: none;
}

.saas-tabs button.active {
  background: linear-gradient(135deg, #08223f, #0e7f73);
  box-shadow: 0 12px 24px rgba(6, 26, 50, 0.18);
}

.dashboard-actions-grid {
  gap: 16px;
}

.dashboard-card {
  min-width: 0;
  border-color: rgba(211, 222, 233, 0.9);
  background:
    linear-gradient(180deg, #ffffff, #f9fcfd);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(6, 26, 50, 0.1);
}

.dashboard-card::after {
  background:
    linear-gradient(145deg, #061a32, #0d4f72);
}

.dashboard-card .mini-button {
  border-color: rgba(8, 32, 51, 0.08);
}

.recent-report-card {
  border-color: rgba(211, 222, 233, 0.9);
  background:
    linear-gradient(180deg, #ffffff, #f8fbfd);
}

.recent-report-card .entity-list {
  min-height: 92px;
}

.floating-pdf-button {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0 22px;
  color: #ffffff;
  background:
    linear-gradient(135deg, #071c36, #0e7f73);
  box-shadow: 0 18px 44px rgba(6, 26, 50, 0.28);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.floating-pdf-button:hover,
.floating-pdf-button:focus {
  background:
    linear-gradient(135deg, #092646, #119283);
  outline: 3px solid rgba(215, 161, 45, 0.28);
  outline-offset: 2px;
}

.floating-pdf-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 900px) {
  .saas-panel {
    max-width: min(100%, 720px);
  }

  .saas-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    overflow: visible;
    padding-inline: 12px;
  }

  .saas-panel {
    width: 100%;
    padding: 12px;
  }

  .app-topbar {
    align-items: stretch;
  }

  .session-box {
    gap: 7px;
    padding: 9px;
  }

  .session-box .plan-badge,
  .session-box .local-status,
  .session-box .cloud-status {
    flex: 1 1 132px;
    min-width: 0;
    white-space: normal;
  }

  .saas-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 12px;
    padding: 6px;
    overflow: visible;
  }

  .saas-tabs button {
    flex: initial;
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .diary-jump-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 8px;
    padding: 8px;
    overflow: visible;
    border: 1px solid rgba(216, 225, 235, 0.78);
    border-radius: 12px;
  }

  .diary-jump-nav a {
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .dashboard-card {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .dashboard-card .mini-button {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
    width: 100%;
  }

  .workspace-card,
  .form-subsection,
  .report-context-bar,
  .wizard-progress {
    max-width: 100%;
  }

  .form-panel {
    padding-bottom: 96px;
  }

  .floating-pdf-button {
    right: 12px;
    bottom: 12px;
    min-width: 128px;
    min-height: 44px;
    padding: 0 18px;
  }
}

.brand-header p {
  color: rgba(255, 255, 255, 0.78);
}

.saas-panel {
  background:
    radial-gradient(circle at top left, rgba(215, 161, 45, 0.07), transparent 24rem),
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 246, 250, 0.98));
  border-color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 12% 0%, rgba(33, 115, 189, 0.4), transparent 14rem),
      linear-gradient(180deg, #04172e 0, #0a315d 104px, #0f5f8f 176px, #edf3f8 177px, #f7fafc 100%);
  }

  .brand-header {
    padding-top: 8px;
  }
}

/* Fase 4.3 - landing page pÃºblica ObraReport */
.landing-page {
  display: grid;
  gap: 28px;
  max-width: 1240px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.landing-page .eyebrow {
  color: #0f766e;
  letter-spacing: 0.06em;
}

.landing-hero,
.landing-section,
.landing-final {
  border: 1px solid rgba(216, 225, 235, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 54px rgba(6, 26, 50, 0.12);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 34px;
  align-items: center;
  min-height: 520px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(33, 115, 189, 0.12), transparent 24rem),
    linear-gradient(135deg, #ffffff, #f8fbfe);
}

.landing-hero .home-copy {
  max-width: 620px;
}

.landing-hero h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(2.3rem, 5vw, 4.45rem);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.landing-hero p {
  margin: 0;
  color: #43546a;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.landing-page .home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.landing-page .primary-action,
.landing-page .secondary-action,
.landing-demo-link,
.landing-final-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 48px;
  border-radius: 11px;
  padding: 0 20px;
  text-decoration: none;
}

.landing-demo-link {
  color: var(--navy);
  background: #ffffff;
}

.landing-mockup {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(216, 225, 235, 0.96);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff, #f4f8fc);
  box-shadow: 0 26px 70px rgba(6, 26, 50, 0.18);
}

.mockup-topbar,
.mockup-metrics,
.mockup-list p {
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #ffffff;
}

.mockup-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.mockup-topbar span,
.mockup-metrics span,
.mockup-list span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mockup-topbar strong,
.mockup-list strong {
  color: var(--navy);
}

.mockup-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.mockup-metrics div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: #f7fafc;
}

.mockup-metrics strong {
  color: var(--navy);
  font-size: 1.9rem;
  line-height: 1;
}

.mockup-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 12px;
  height: 150px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #eef6ff, #ffffff);
}

.mockup-chart span {
  display: block;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #0f5f8f, #061a32);
}

.mockup-chart span:nth-child(1) { height: 44%; }
.mockup-chart span:nth-child(2) { height: 70%; }
.mockup-chart span:nth-child(3) { height: 58%; }
.mockup-chart span:nth-child(4) { height: 84%; }

.mockup-list {
  display: grid;
  gap: 10px;
}

.mockup-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
}

.landing-section {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
}

.home-test-actions {
  border-color: rgba(15, 118, 110, 0.22);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f7fbfc);
}

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

.home-test-button {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 12px;
  color: #334155;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(6, 26, 50, 0.065);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.home-test-button.primary {
  border-color: rgba(15, 118, 110, 0.3);
  background: linear-gradient(180deg, #eefaf8, #ffffff);
}

.home-test-button strong {
  color: var(--navy);
  font-size: 1.04rem;
  line-height: 1.25;
}

.home-test-button span {
  color: #475569;
  line-height: 1.45;
}

.home-test-button:hover,
.home-test-button:focus {
  border-color: rgba(15, 118, 110, 0.36);
  background: rgba(15, 118, 110, 0.08);
  outline: none;
  transform: translateY(-1px);
}

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

.home-feature-actions button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d8e3ee;
  border-radius: 999px;
  color: var(--navy);
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
}

.home-feature-actions button:hover,
.home-feature-actions button:focus {
  color: #ffffff;
  border-color: rgba(15, 118, 110, 0.42);
  background: linear-gradient(135deg, #0f766e, #0f5f8f);
  outline: none;
}

.home-action-status {
  min-height: 20px;
  margin: 0;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 850;
}

.landing-section h3,
.landing-final h3 {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 950;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

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

.landing-card-grid article,
.landing-plan-grid article,
.landing-steps article {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(6, 26, 50, 0.06);
}

.landing-card-grid strong,
.landing-plan-grid strong,
.landing-steps strong {
  color: var(--navy);
  font-size: 1rem;
}

.landing-card-grid span,
.landing-plan-grid span,
.landing-section p {
  color: var(--muted);
  line-height: 1.55;
}

.landing-split,
.landing-demo {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
}

.landing-pill-list,
.landing-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-pill-list li,
.landing-benefits span {
  padding: 10px 13px;
  border: 1px solid #d8e3ee;
  border-radius: 999px;
  color: var(--navy);
  background: #f8fbfd;
  font-weight: 800;
  font-size: 0.9rem;
}

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

.landing-steps article {
  min-height: 124px;
}

.landing-steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #061a32, #0f5f8f);
  font-weight: 900;
}

.landing-browser-frame {
  display: grid;
  gap: 12px;
  min-height: 240px;
  padding: 18px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(6, 26, 50, 0.98), rgba(15, 95, 143, 0.9));
  box-shadow: 0 22px 54px rgba(6, 26, 50, 0.18);
}

.landing-browser-frame div {
  width: 64px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.landing-browser-frame strong {
  align-self: end;
  color: #ffffff;
  font-size: 1.6rem;
}

.landing-browser-frame span {
  color: rgba(255, 255, 255, 0.74);
}

.landing-plan-grid .featured {
  border-color: rgba(15, 95, 143, 0.38);
  background: linear-gradient(180deg, #eff7ff, #ffffff);
}

.landing-final {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(30px, 5vw, 52px);
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(33, 115, 189, 0.24), transparent 26rem),
    linear-gradient(135deg, #061a32, #0f5f8f);
}

.landing-final h3 {
  color: #ffffff;
}

@media (max-width: 900px) {
  .landing-hero,
  .landing-split,
  .landing-demo {
    grid-template-columns: 1fr;
  }

  .landing-card-grid,
  .landing-plan-grid,
  .home-test-grid,
  .landing-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .landing-hero,
  .landing-section,
  .landing-final {
    border-radius: 14px;
  }

  .landing-hero {
    min-height: 0;
    padding: 22px;
  }

  .landing-hero h2 {
    font-size: 2.15rem;
    line-height: 1.04;
  }

  .landing-page .home-actions,
  .mockup-list p {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-page .primary-action,
  .landing-page .secondary-action,
  .landing-demo-link,
  .landing-final-link {
    width: 100%;
  }

  .landing-mockup {
    padding: 12px;
  }

  .mockup-metrics,
  .landing-card-grid,
  .landing-plan-grid,
  .home-test-grid,
  .landing-steps {
    grid-template-columns: 1fr;
  }

  .mockup-chart {
    height: 120px;
  }
}

/* Fase A - separacao visual inicial Admin x Cliente.
   Seguranca final exige validacao no Apps Script/backend. */
.saas-tabs {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  border-color: rgba(216, 225, 235, 0.86);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.1), transparent 13rem),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(6, 26, 50, 0.08);
}

.saas-tabs::before {
  color: var(--navy);
}

.saas-tabs button {
  color: #334155;
  border-color: rgba(203, 213, 225, 0.86);
  background: rgba(255, 255, 255, 0.78);
}

.saas-tabs button:hover,
.saas-tabs button:focus {
  color: var(--navy);
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.08);
}

.saas-tabs button.active {
  color: #ffffff;
  border-color: rgba(15, 118, 110, 0.42);
  background: linear-gradient(135deg, #0f766e, #0f5f8f);
}

.quick-actions-panel {
  display: grid;
  gap: 16px;
  border-color: rgba(15, 118, 110, 0.2);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 14rem),
    linear-gradient(135deg, #ffffff, #f8fbfd);
}

.quick-actions-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.quick-actions-heading p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.quick-action-button {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 8px;
  color: #334155;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(6, 26, 50, 0.055);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.quick-action-button strong {
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.25;
}

.quick-action-button span {
  color: #475569;
  line-height: 1.45;
}

.quick-action-button:hover,
.quick-action-button:focus {
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.client-route-panel .dashboard-card .mini-button {
  display: none;
}

.client-portal-hero,
.client-support-card {
  border-left: 4px solid var(--teal);
}

.client-portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  background:
    radial-gradient(circle at top right, rgba(33, 115, 189, 0.12), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f7fbff);
}

.client-portal-hero p:last-child,
.client-support-card p:last-child,
.client-confidence-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.client-portal-badges,
.client-confidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

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

.client-trust-grid article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(6, 26, 50, 0.05);
}

.client-trust-grid strong {
  color: var(--navy);
  font-size: 0.98rem;
}

.client-trust-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.client-confidence-card {
  display: grid;
  gap: 12px;
  border-color: rgba(15, 95, 143, 0.22);
  background: linear-gradient(180deg, #f6fbff, #ffffff);
}

.client-confidence-list {
  justify-content: flex-start;
}

.client-confidence-list span {
  padding: 9px 11px;
  border: 1px solid #d8e3ee;
  border-radius: 999px;
  color: var(--navy);
  background: #f8fbfd;
  font-size: 0.86rem;
  font-weight: 800;
}

.example-work-card {
  grid-template-rows: auto auto 1fr auto;
  grid-column: span 2;
  border-color: rgba(15, 118, 110, 0.24);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 10rem),
    linear-gradient(135deg, #ffffff, #f3fbfa);
}

.example-work-card::before {
  background: linear-gradient(90deg, #0f766e, #d5a642);
}

.example-work-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  text-transform: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.example-work-card strong {
  align-self: start;
  max-width: 520px;
  font-size: 1.55rem;
  line-height: 1.12;
}

.example-sales-guide {
  display: grid;
  gap: 18px;
  border-color: rgba(15, 118, 110, 0.22);
  background:
    radial-gradient(circle at top right, rgba(213, 166, 66, 0.13), transparent 14rem),
    #ffffff;
}

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

.example-guide-grid article {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #ffffff;
}

.example-guide-grid span {
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.example-guide-grid strong {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.35;
}

.example-guide-grid .example-pdf-step {
  grid-column: span 2;
  min-height: 168px;
  border-color: rgba(15, 118, 110, 0.32);
  background:
    radial-gradient(circle at top right, rgba(213, 166, 66, 0.16), transparent 11rem),
    #f3fbfa;
}

.example-pdf-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.example-pdf-step .mini-button {
  align-self: end;
}

.example-pdf-status {
  margin: 0;
  padding: 13px 16px;
  border: 1px solid rgba(15, 118, 110, 0.26);
  border-radius: 8px;
  color: #0f5f8f;
  background: #f3fbfa;
  font-weight: 800;
}

.example-benefits-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #f8fbfd;
}

.example-benefits-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.example-benefits-card ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.example-benefits-card li {
  color: var(--navy);
  font-weight: 800;
}

.example-benefits-card li::before {
  content: "ok";
  margin-right: 8px;
  color: #0f766e;
  font-weight: 900;
}

.example-whatsapp-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #0f5f8f);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
}

.example-whatsapp-button:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.client-summary-grid .dashboard-card {
  min-height: 126px;
}

[data-user-role="client"] #currentPlanBadge,
[data-user-role="client"] #saveNowButton,
[data-user-role="client"] .billing-alert {
  display: none !important;
}

[data-user-role="client"] .session-box {
  grid-template-columns: repeat(2, max-content);
}

@media (max-width: 760px) {
  .client-portal-hero {
    grid-template-columns: 1fr;
  }

  .client-portal-badges {
    justify-content: flex-start;
  }

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

  .example-work-card {
    grid-column: auto;
  }

  .example-guide-grid,
  .example-benefits-card ul {
    grid-template-columns: 1fr;
  }

  .example-guide-grid .example-pdf-step {
    grid-column: auto;
  }

  .quick-actions-heading {
    grid-template-columns: 1fr;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  [data-user-role="client"] .session-box {
    display: flex;
    grid-template-columns: none;
  }
}

/* Fase urgente - redesign premium do painel interno sem alterar fluxos */
.saas-panel {
  max-width: 1420px;
  padding: clamp(18px, 2.2vw, 30px);
  border-color: rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(215, 161, 45, 0.08), transparent 28rem),
    linear-gradient(180deg, rgba(246, 249, 252, 0.98), rgba(238, 244, 249, 0.98));
  box-shadow: 0 30px 80px rgba(3, 19, 38, 0.22);
}

.app-topbar {
  position: relative;
  isolation: isolate;
  min-height: 210px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(3, 17, 33, 0.98), rgba(5, 31, 58, 0.94) 48%, rgba(5, 31, 58, 0.86)),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 28px),
    radial-gradient(circle at 80% 18%, rgba(215, 161, 45, 0.28), transparent 12rem);
  box-shadow: 0 28px 70px rgba(3, 19, 38, 0.28);
}

.app-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(215, 161, 45, 0.32), transparent 11rem),
    linear-gradient(90deg, rgba(3, 17, 33, 0.92), rgba(3, 17, 33, 0.12));
  z-index: -1;
}

.app-topbar::after {
  content: "PDF | RDO | Materiais | Cliente";
  position: absolute;
  right: clamp(20px, 4vw, 52px);
  bottom: clamp(18px, 3vw, 30px);
  max-width: 320px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(3, 17, 33, 0.42);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-topbar > * {
  position: relative;
  z-index: 1;
}

.app-topbar .eyebrow {
  width: fit-content;
  margin-bottom: 9px;
  padding: 6px 10px;
  border: 1px solid rgba(215, 161, 45, 0.28);
  border-radius: 999px;
  color: #ffe0a3;
  background: rgba(215, 161, 45, 0.12);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.app-topbar h2 {
  max-width: 620px;
  color: #ffffff;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  font-weight: 950;
  line-height: 0.98;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.app-topbar h2::after {
  max-width: 560px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.86rem, 1.2vw, 1rem);
  font-weight: 650;
  line-height: 1.45;
}

.session-box {
  align-self: start;
  padding: 12px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(3, 17, 33, 0.46);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.session-box strong {
  color: #ffffff;
}

.session-box .plan-badge,
.session-box .local-status,
.session-box .cloud-status {
  min-height: 26px;
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.session-box .plan-badge {
  color: #ffe0a3;
  background: rgba(215, 161, 45, 0.14);
}

.session-box #saveNowButton,
.session-box #logoutButton {
  min-height: 30px;
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 901px) {
  .saas-panel {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 22px 24px;
  }

  .app-topbar,
  .billing-alert {
    grid-column: 1 / -1;
  }

  .saas-tabs {
    position: sticky;
    top: 22px;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    min-height: calc(100vh - 44px);
    margin: 0;
    padding: 18px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
      radial-gradient(circle at 18% 0%, rgba(215, 161, 45, 0.22), transparent 12rem),
      linear-gradient(180deg, #06172d 0%, #071f3a 52%, #031326 100%);
    box-shadow: 0 26px 64px rgba(3, 19, 38, 0.32);
  }

  .saas-tabs::before {
    content: "OBRAREPORT";
    display: block;
    margin: 4px 10px 18px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: 0.08em;
  }

  .saas-tabs button {
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.76);
    text-align: left;
    border-color: transparent;
    border-radius: 12px;
    background: transparent;
  }

  .saas-tabs button:hover,
  .saas-tabs button:focus {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
  }

  .saas-tabs button.active {
    color: #ffffff;
    border-color: rgba(215, 161, 45, 0.32);
    background: linear-gradient(90deg, rgba(215, 161, 45, 0.2), rgba(255, 255, 255, 0.08));
    box-shadow: inset 4px 0 0 var(--gold), 0 14px 32px rgba(0, 0, 0, 0.16);
  }

  .route-panel {
    grid-column: 2;
  }
}

.quick-actions-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 28px);
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(3, 17, 33, 0.95), rgba(6, 46, 82, 0.78)),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 26px),
    radial-gradient(circle at 82% 16%, rgba(215, 161, 45, 0.24), transparent 12rem);
  box-shadow: 0 24px 60px rgba(3, 19, 38, 0.22);
}

.quick-actions-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 0%, rgba(215, 161, 45, 0.22), transparent 14rem),
    linear-gradient(90deg, rgba(3, 17, 33, 0.9), rgba(3, 17, 33, 0.18));
  pointer-events: none;
}

.quick-actions-panel > * {
  position: relative;
  z-index: 1;
}

.quick-actions-panel .eyebrow,
.quick-actions-panel h3 {
  color: #ffffff;
}

.quick-actions-panel .quick-actions-heading p:last-child {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
}

.quick-actions-panel .local-status {
  color: #ffe0a3;
  border-color: rgba(215, 161, 45, 0.22);
  background: rgba(3, 17, 33, 0.42);
}

.quick-action-button {
  min-height: 124px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.quick-action-button:hover,
.quick-action-button:focus {
  border-color: rgba(215, 161, 45, 0.4);
  background: #ffffff;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.16);
}

.dashboard-actions-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-card {
  min-height: 146px;
  border: 0;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff, #f7fafc);
  box-shadow: 0 18px 42px rgba(3, 19, 38, 0.09);
}

.dashboard-card::after {
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.28), transparent 1.9rem),
    linear-gradient(145deg, #04172e, #0f5f8f);
}

.dashboard-card span {
  color: #475569;
}

.dashboard-card strong {
  color: #071c36;
}

.dashboard-card .mini-button {
  min-height: 36px;
  border-radius: 10px;
}

.example-work-card {
  border: 1px solid rgba(215, 161, 45, 0.2);
  background:
    radial-gradient(circle at top right, rgba(215, 161, 45, 0.15), transparent 12rem),
    linear-gradient(135deg, #ffffff, #f4fbfa);
}

.workspace-card {
  border-color: rgba(216, 225, 235, 0.82);
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(3, 19, 38, 0.07);
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px 16px;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero .eyebrow,
.route-panel[data-route="almoxarifado"] > .stock-ia-hero h3,
.route-panel[data-route="almoxarifado"] > .stock-ia-hero p {
  margin: 0;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero .eyebrow {
  font-size: 0.68rem;
  line-height: 1.1;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero h3 {
  font-size: 1rem;
  line-height: 1.15;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero p {
  max-width: 620px;
  font-size: 0.78rem;
  line-height: 1.3;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero .stock-ia-badges {
  align-items: center;
  gap: 7px;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero .local-status,
.route-panel[data-route="almoxarifado"] > .stock-ia-hero .cloud-status,
.route-panel[data-route="almoxarifado"] > .stock-ia-hero .mini-button {
  flex: 0 1 auto;
  width: auto;
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.76rem;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .route-panel[data-route="almoxarifado"] > .stock-ia-hero {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: unset;
    padding: 10px 12px;
  }

  .route-panel[data-route="almoxarifado"] > .stock-ia-hero > div:first-child {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
  }

  .route-panel[data-route="almoxarifado"] > .stock-ia-hero p {
    display: none;
  }

  .route-panel[data-route="almoxarifado"] > .stock-ia-hero .stock-ia-badges {
    justify-content: flex-start;
    gap: 6px;
  }

  .route-panel[data-route="almoxarifado"] > .stock-ia-hero .local-status,
  .route-panel[data-route="almoxarifado"] > .stock-ia-hero .cloud-status,
  .route-panel[data-route="almoxarifado"] > .stock-ia-hero .mini-button {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.72rem;
  }
}

.diary-hero {
  min-height: 168px;
  padding: clamp(22px, 3vw, 30px);
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(3, 17, 33, 0.96), rgba(6, 38, 70, 0.82)),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 24px),
    radial-gradient(circle at 80% 18%, rgba(215, 161, 45, 0.22), transparent 12rem);
  box-shadow: 0 24px 58px rgba(3, 19, 38, 0.2);
}

.diary-hero h3 {
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.04;
}

.diary-hero p {
  max-width: 620px;
}

.diary-hero .local-status {
  color: #0b2239;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 30px rgba(3, 19, 38, 0.18);
}

.diary-jump-nav {
  padding: 10px;
  border: 1px solid rgba(216, 225, 235, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(3, 19, 38, 0.06);
}

.diary-jump-nav a {
  border-radius: 10px;
}

.rdo-macro-section {
  border: 0;
  border-radius: 15px;
  box-shadow: 0 18px 40px rgba(3, 19, 38, 0.08);
}

.rdo-macro-section summary {
  background:
    linear-gradient(90deg, #ffffff, #f7fafc);
}

.rdo-macro-section[open] summary {
  border-bottom: 1px solid rgba(216, 225, 235, 0.8);
}

.rdo-macro-section summary span {
  border-radius: 12px;
  background: linear-gradient(145deg, #061a32, #0f5f8f);
}

.form-subsection {
  border-color: rgba(216, 225, 235, 0.82);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

@media (max-width: 900px) {
  .app-topbar {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .app-topbar::after {
    position: relative;
    right: auto;
    bottom: auto;
    width: fit-content;
    max-width: 100%;
    margin-top: 8px;
  }

  .session-box {
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .saas-panel {
    padding: 10px;
    border-radius: 16px;
  }

  .app-topbar {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 14px;
    padding: 20px;
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(3, 17, 33, 0.96), rgba(6, 38, 70, 0.88)),
      repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 24px),
      radial-gradient(circle at 85% 12%, rgba(215, 161, 45, 0.2), transparent 10rem);
  }

  .app-topbar::after {
    display: none;
  }

  .app-topbar h2 {
    font-size: 2rem;
    line-height: 1;
  }

  .session-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .session-box strong {
    grid-column: 1 / -1;
    font-size: 0.78rem;
  }

  .session-box .plan-badge,
  .session-box .local-status,
  .session-box .cloud-status,
  .session-box #saveNowButton,
  .session-box #logoutButton {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.7rem;
  }

  .saas-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
  }

  .quick-actions-panel {
    border-radius: 16px;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    border-radius: 14px;
  }

  .diary-hero {
    min-height: 0;
    border-radius: 16px;
  }
}

/* ConversÃ£o premium da primeira dobra da landing/home */
.page-shell {
  max-width: 1280px;
}

.brand-header {
  margin-bottom: 18px;
}

.landing-hero {
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr);
  gap: clamp(16px, 2.2vw, 24px);
  min-height: 0;
  padding: clamp(20px, 2.8vw, 34px);
}

.landing-hero .home-copy {
  max-width: 820px;
}

.landing-hero h2 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 3.25vw, 3.1rem);
  line-height: 1.02;
}

.landing-hero p {
  max-width: 700px;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.42;
}

.hero-cta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.hero-cta {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(216, 225, 235, 0.94);
  border-radius: 11px;
  color: var(--navy);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(6, 26, 50, 0.06);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
}

.hero-cta.primary {
  color: #ffffff;
  border-color: rgba(15, 118, 110, 0.36);
  background: linear-gradient(135deg, #0f766e, #0f5f8f);
}

.hero-cta:hover,
.hero-cta:focus {
  border-color: rgba(15, 118, 110, 0.36);
  outline: none;
  transform: translateY(-1px);
}

.hero-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.hero-feature-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 9px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid #dbe4ee;
  border-radius: 13px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(6, 26, 50, 0.055);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.hero-feature-card:hover,
.hero-feature-card:focus {
  border-color: rgba(15, 118, 110, 0.34);
  background: #f7fcfb;
  outline: none;
  transform: translateY(-1px);
}

.hero-feature-card > span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #061a32, #0f5f8f);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
}

.hero-feature-card.elo > span {
  background: linear-gradient(135deg, #0f766e, #d5a642);
}

.hero-feature-card strong {
  font-size: 0.86rem;
  line-height: 1.12;
}

.hero-feature-card small {
  color: #607086;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.22;
}

.hero-elo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(15, 95, 143, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at right, rgba(213, 166, 66, 0.14), transparent 12rem),
    linear-gradient(135deg, #ffffff, #f4fbfa);
  box-shadow: 0 12px 28px rgba(6, 26, 50, 0.07);
}

.hero-elo-card div {
  display: grid;
  gap: 4px;
}

.hero-elo-card strong {
  color: var(--navy);
}

.hero-elo-card span {
  color: #5c6b7d;
  font-size: 0.86rem;
  line-height: 1.3;
}

.home-access-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding: 0;
  border: 0;
  color: #0f766e;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
}

.home-access-link:hover,
.home-access-link:focus {
  color: #0f5f8f;
  text-decoration: underline;
  outline: none;
}

.landing-mockup {
  align-self: center;
  gap: 10px;
  padding: 12px;
}

.landing-mockup .mockup-chart {
  height: 70px;
  padding: 12px;
}

.landing-mockup .mockup-list p,
.landing-mockup .mockup-topbar {
  padding: 10px 12px;
}

@media (max-width: 900px) {
  .hero-cta-grid,
  .hero-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .landing-hero h2 {
    font-size: 2rem;
  }

  .hero-cta-grid,
  .hero-feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-elo-card {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-elo-card .secondary-action {
    width: 100%;
  }

.landing-mockup {
    order: 2;
  }
}

/* Fase premium landing - foco comercial sem alterar rotas internas */
.landing-page {
  gap: clamp(24px, 4vw, 42px);
  overflow-x: hidden;
}

.landing-hero,
.landing-section,
.landing-final,
.landing-trust-strip {
  border-color: rgba(216, 225, 235, 0.72);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(6, 26, 50, 0.08);
}

.landing-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(24px, 4vw, 44px);
  padding: clamp(32px, 5vw, 64px);
  background:
    radial-gradient(circle at 82% 18%, rgba(15, 118, 110, 0.16), transparent 22rem),
    radial-gradient(circle at 16% 88%, rgba(213, 166, 66, 0.12), transparent 18rem),
    linear-gradient(135deg, #ffffff 0%, #f6fafc 52%, #edf6f8 100%);
}

.landing-hero .home-copy {
  max-width: 760px;
}

.landing-hero h2 {
  max-width: 740px;
  margin-bottom: 16px;
  letter-spacing: 0;
  font-size: clamp(2.05rem, 4.25vw, 4.05rem);
  line-height: 1.03;
}

.landing-hero p {
  max-width: 690px;
  color: #3f5064;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.58;
}

.hero-cta-grid {
  grid-template-columns: minmax(220px, auto) minmax(170px, auto) minmax(130px, auto);
  justify-content: start;
  gap: 12px;
  margin-top: 26px;
}

.hero-cta {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  border-color: rgba(15, 95, 143, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(6, 26, 50, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-cta.primary,
.landing-final .primary-action {
  color: #071726;
  border-color: rgba(213, 166, 66, 0.46);
  background: linear-gradient(135deg, #f6d36e, #d5a642);
  box-shadow: 0 16px 32px rgba(213, 166, 66, 0.26);
}

.hero-cta.tertiary {
  min-height: 42px;
  align-self: center;
  color: #0f5f8f;
  background: rgba(239, 247, 255, 0.96);
}

.hero-cta:hover,
.hero-cta:focus {
  box-shadow: 0 16px 34px rgba(6, 26, 50, 0.12);
}

.landing-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 253, 0.96));
}

.landing-trust-strip article {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(216, 225, 235, 0.86);
  border-radius: 16px;
  background: #ffffff;
}

.landing-trust-strip span,
.landing-flow span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #061a32, #0f5f8f);
  font-size: 0.72rem;
  font-weight: 950;
}

.landing-trust-strip strong {
  min-width: 0;
  color: var(--navy);
  font-size: 0.94rem;
  line-height: 1.2;
}

.landing-section {
  gap: 22px;
  padding: clamp(30px, 4.5vw, 54px);
  background:
    radial-gradient(circle at top right, rgba(15, 95, 143, 0.07), transparent 20rem),
    rgba(255, 255, 255, 0.97);
}

.home-test-actions {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 20rem),
    linear-gradient(135deg, #ffffff, #f4faf9);
}

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

.home-test-button,
.landing-card-grid article,
.landing-plan-grid article,
.landing-steps article,
.before-after-grid article,
.landing-flow article {
  border-color: rgba(216, 225, 235, 0.82);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(6, 26, 50, 0.075);
}

.home-test-button {
  min-height: 132px;
}

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

.landing-before-after {
  background:
    radial-gradient(circle at 16% 18%, rgba(213, 166, 66, 0.1), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f7fbfc);
}

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

.before-after-grid article {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: #ffffff;
}

.before-after-grid article > span {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #7f1d1d;
  background: #fef2f2;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.before-after-grid article.after > span {
  color: #0f513f;
  background: #eaf8f4;
}

.before-after-grid ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.before-after-grid li {
  position: relative;
  padding-left: 24px;
  color: #405166;
  line-height: 1.45;
}

.before-after-grid li::before {
  position: absolute;
  left: 0;
  color: #d5a642;
  content: "?";
  font-weight: 950;
}

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

.landing-flow article {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 140px;
  padding: 18px;
  background: #ffffff;
}

.landing-flow article:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -11px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #0f5f8f;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(6, 26, 50, 0.12);
  content: ">";
  font-weight: 950;
  transform: translateY(-50%);
}

.landing-flow strong {
  color: var(--navy);
  font-size: 0.94rem;
  line-height: 1.25;
}

.landing-elo-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background:
    radial-gradient(circle at right, rgba(15, 118, 110, 0.12), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f5fbfa);
}

.landing-elo-compact .secondary-action,
.landing-final .secondary-action {
  border: 1px solid rgba(216, 225, 235, 0.78);
  border-radius: 14px;
  color: var(--navy);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(6, 26, 50, 0.08);
}

.landing-plan-grid article {
  min-height: 174px;
  align-content: start;
}

.landing-plan-grid .featured {
  position: relative;
  border-color: rgba(213, 166, 66, 0.58);
  background:
    radial-gradient(circle at top right, rgba(213, 166, 66, 0.18), transparent 12rem),
    linear-gradient(180deg, #fffaf0, #ffffff);
  box-shadow: 0 22px 44px rgba(213, 166, 66, 0.18);
  transform: translateY(-6px);
}

.landing-plan-grid small {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #071726;
  background: linear-gradient(135deg, #f6d36e, #d5a642);
  font-size: 0.72rem;
  font-weight: 950;
}

.landing-final {
  gap: 22px;
  background:
    radial-gradient(circle at 22% 18%, rgba(213, 166, 66, 0.22), transparent 21rem),
    linear-gradient(135deg, #061a32, #0f5f8f);
}

.landing-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.landing-final .primary-action,
.landing-final .secondary-action {
  width: auto;
  min-height: 50px;
  padding: 0 22px;
}

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

  .landing-flow article:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .landing-trust-strip,
  .home-test-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .landing-page {
    width: 100%;
    gap: 20px;
  }

  .landing-hero,
  .landing-section,
  .landing-final,
  .landing-trust-strip {
    border-radius: 18px;
  }

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

  .landing-hero h2 {
    font-size: clamp(2rem, 11vw, 2.65rem);
  }

  .hero-cta-grid,
  .landing-trust-strip,
  .home-test-grid,
  .landing-card-grid,
  .before-after-grid,
  .landing-flow,
  .landing-plan-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta,
  .hero-cta.tertiary,
  .home-test-button,
  .landing-final .primary-action,
  .landing-final .secondary-action,
  .landing-elo-compact .secondary-action {
    width: 100%;
  }

  .landing-flow article:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -11px;
    transform: translateX(50%) rotate(90deg);
  }

  .landing-flow article:nth-child(3)::after {
    display: grid;
  }

  .landing-plan-grid .featured {
    transform: none;
  }

  .landing-final-actions {
    width: 100%;
    flex-direction: column;
  }
}

/* Landing corporativa ObraReport - inspirada no padrÃ£o visual do relatÃ³rio premium */
:root {
  --obra-navy: #071f3a;
  --obra-navy-2: #0d2f52;
  --obra-gold: #d59a2f;
  --obra-gold-soft: #f3d28a;
  --obra-bg: #f6f8fb;
  --obra-card: #ffffff;
  --obra-text: #0f1f33;
  --obra-muted: #607089;
  --obra-border: rgba(15, 31, 51, 0.10);
}

body {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--obra-bg) 46%, #eef3f8 100%);
}

.page-shell {
  max-width: 1240px;
}

.brand-header {
  margin-bottom: 22px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--obra-navy), var(--obra-navy-2));
  box-shadow: 0 18px 42px rgba(7, 31, 58, 0.14);
  text-align: left;
}

.brand-header h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-header p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.landing-page {
  max-width: 1180px;
  padding: 0;
  color: var(--obra-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.landing-page .eyebrow {
  color: var(--obra-gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.landing-hero,
.landing-section,
.landing-final,
.landing-trust-strip {
  border: 1px solid var(--obra-border);
  border-radius: 22px;
  background: var(--obra-card);
  box-shadow: 0 18px 44px rgba(7, 31, 58, 0.08);
}

.landing-hero {
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.78fr);
  gap: clamp(30px, 5vw, 58px);
  align-items: stretch;
  padding: clamp(32px, 5vw, 62px);
  background:
    linear-gradient(90deg, rgba(7, 31, 58, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7, 31, 58, 0.03) 1px, transparent 1px),
    #ffffff;
  background-size: 42px 42px;
}

.landing-hero .home-copy {
  display: grid;
  align-content: center;
  max-width: 690px;
}

.landing-hero h2 {
  max-width: 670px;
  margin: 0 0 18px;
  color: var(--obra-navy);
  font-size: clamp(2.45rem, 5vw, 4.55rem);
  font-weight: 900;
  line-height: 1.01;
}

.landing-hero p {
  max-width: 640px;
  color: var(--obra-muted);
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}

.hero-cta-grid {
  grid-template-columns: repeat(2, minmax(160px, max-content));
  gap: 12px;
  margin-top: 30px;
}

.hero-cta {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(7, 31, 58, 0.14);
  border-radius: 14px;
  color: var(--obra-navy);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(7, 31, 58, 0.07);
}

.hero-cta.primary,
.landing-final .primary-action {
  color: #ffffff;
  border-color: var(--obra-navy);
  background: linear-gradient(135deg, var(--obra-navy), var(--obra-navy-2));
  box-shadow: 0 16px 34px rgba(7, 31, 58, 0.18);
}

.hero-cta:hover,
.hero-cta:focus {
  border-color: rgba(213, 154, 47, 0.52);
  box-shadow: 0 18px 34px rgba(7, 31, 58, 0.12);
  transform: translateY(-1px);
}

.home-access-link {
  width: fit-content;
  margin-top: 18px;
  color: var(--obra-muted);
  text-decoration-color: rgba(213, 154, 47, 0.55);
}

.report-mockup {
  min-height: 440px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-self: center;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(7, 31, 58, 0.14);
}

.report-mockup-cover {
  display: grid;
  gap: 10px;
  padding: 28px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(7, 31, 58, 0.92), rgba(7, 31, 58, 0.72)),
    linear-gradient(135deg, var(--obra-navy), var(--obra-navy-2));
}

.report-mockup-cover span {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.report-mockup-cover strong {
  max-width: 310px;
  font-size: 1.6rem;
  line-height: 1.1;
}

.report-mockup-cover small {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--obra-navy);
  background: var(--obra-gold-soft);
  font-weight: 900;
}

.report-mockup-grid {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.report-mockup-grid article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(15, 31, 51, 0.08);
  border-radius: 12px;
  background: #f9fbfd;
}

.report-mockup-grid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--obra-navy);
  font-size: 0.76rem;
  font-weight: 900;
}

.report-mockup-grid strong {
  color: var(--obra-text);
  font-size: 0.95rem;
}

.report-mockup-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--obra-border);
  color: #ffffff;
  background: var(--obra-navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.report-mockup-footer small {
  color: rgba(255, 255, 255, 0.72);
}

.landing-trust-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.landing-trust-strip article,
.landing-card-grid article,
.landing-flow article,
.landing-browser-frame {
  border: 1px solid rgba(15, 31, 51, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(7, 31, 58, 0.06);
}

.landing-trust-strip span,
.landing-flow span {
  border-radius: 10px;
  color: var(--obra-navy);
  background: #f8ead0;
}

.landing-trust-strip strong,
.landing-card-grid strong,
.landing-flow strong {
  color: var(--obra-navy);
}

.landing-section {
  gap: 24px;
  padding: clamp(32px, 4.5vw, 58px);
  background: #ffffff;
}

.landing-section h3,
.landing-final h3 {
  max-width: 780px;
  color: var(--obra-navy);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
}

.landing-section p {
  color: var(--obra-muted);
  line-height: 1.68;
}

.landing-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.landing-card-grid article {
  min-height: 220px;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.landing-card-grid article::before {
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: var(--obra-gold);
  content: "";
}

.landing-card-grid span {
  color: var(--obra-muted);
  line-height: 1.58;
}

.landing-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.landing-flow article {
  min-height: 160px;
  padding: 22px;
}

.landing-flow article:not(:last-child)::after {
  color: var(--obra-gold);
  background: #ffffff;
}

.landing-split {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.6fr);
  gap: 30px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 31, 58, 0.045), transparent 58%),
    #ffffff;
}

.landing-pill-list {
  gap: 10px;
}

.landing-pill-list li,
.landing-benefits span {
  border-color: rgba(15, 31, 51, 0.08);
  color: var(--obra-navy);
  background: #f9fbfd;
  box-shadow: none;
}

.landing-demo {
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.72fr);
  align-items: center;
}

.landing-browser-frame {
  min-height: 260px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 26px;
}

.landing-browser-frame div {
  width: 100%;
  height: 92px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, var(--obra-navy) 0 34%, transparent 34%),
    repeating-linear-gradient(180deg, #f0f3f7 0 14px, transparent 14px 24px);
}

.landing-browser-frame strong {
  color: var(--obra-navy);
}

.landing-browser-frame span {
  color: var(--obra-muted);
}

.landing-final {
  padding: clamp(34px, 5vw, 62px);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(7, 31, 58, 0.96), rgba(13, 47, 82, 0.96)),
    var(--obra-navy);
}

.landing-final .eyebrow {
  color: var(--obra-gold-soft);
}

.landing-final h3 {
  margin-inline: auto;
  color: #ffffff;
}

.landing-final .secondary-action {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.landing-final .primary-action {
  border-color: var(--obra-gold);
  background: var(--obra-gold);
}

@media (max-width: 1060px) {
  .landing-card-grid,
  .landing-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-flow article:nth-child(2)::after {
    display: none;
  }

  .landing-flow article:nth-child(3)::after {
    display: grid;
  }
}

@media (max-width: 900px) {
  .landing-hero,
  .landing-split,
  .landing-demo {
    grid-template-columns: 1fr;
  }

  .report-mockup {
    width: min(560px, 100%);
  }
}

@media (max-width: 760px) {
  .brand-header {
    border-radius: 18px;
  }

  .landing-hero,
  .landing-section,
  .landing-final,
  .landing-trust-strip {
    border-radius: 18px;
  }

  .landing-hero {
    padding: 24px;
  }

  .landing-hero h2 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .hero-cta-grid,
  .landing-trust-strip,
  .landing-card-grid,
  .landing-flow {
    grid-template-columns: 1fr;
  }

  .hero-cta,
  .landing-final .primary-action,
  .landing-final .secondary-action {
    width: 100%;
  }

  .landing-flow article:not(:last-child)::after,
  .landing-flow article:nth-child(2)::after {
    display: grid;
  }
}

/* Almoxarifado - layout premium seguro */
.route-panel[data-route="almoxarifado"] {
  width: min(100%, 1240px);
  max-width: 1240px;
  margin-inline: auto;
  gap: 18px;
  overflow-x: clip;
}

.route-panel[data-route="almoxarifado"] .workspace-card {
  min-width: 0;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.route-panel[data-route="almoxarifado"] .almox-note-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.route-panel[data-route="almoxarifado"] .almox-note-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.4fr) repeat(2, minmax(220px, 0.8fr));
  gap: 12px;
  align-items: start;
}

.route-panel[data-route="almoxarifado"] .almox-note-grid .full-width {
  grid-row: span 3;
}

.route-panel[data-route="almoxarifado"] .almox-dashboard-grid,
.route-panel[data-route="almoxarifado"] .almox-manager-report {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.route-panel[data-route="almoxarifado"] .almox-manager-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.route-panel[data-route="almoxarifado"] .almox-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.route-panel[data-route="almoxarifado"] .almox-history-list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.almox-entry-card {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.route-panel[data-route="almoxarifado"] .almox-note-grid label {
  scroll-margin: 96px;
}

.almox-entry-card:hover,
.almox-entry-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  outline: none;
}

.almox-history-section {
  display: grid;
  gap: 14px;
}

.almox-history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.almox-history-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.almox-history-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.almox-history-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.85);
}

.almox-history-filter {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.almox-history-filter.active {
  background: #0f172a;
  color: #ffffff;
}

.almox-history-body {
  display: grid;
}

.almox-history-collapsed .almox-history-body {
  display: none;
}

.almox-history-expanded .almox-history-body {
  display: grid;
}

.almox-environment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-color: rgba(15, 95, 143, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}

.almox-environment-header h3,
.almox-environment-form h3 {
  margin: 0;
}

.almox-environment-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.almox-environment-actions select {
  min-height: 38px;
  min-width: min(360px, 100%);
}

.almox-environment-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.almox-environment-form > div:first-child,
.almox-environment-form .almox-environment-actions {
  grid-column: 1 / -1;
}

.almox-environment-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.almox-environment-form input,
.almox-environment-form select {
  width: 100%;
}

.almox-items-section {
  display: grid;
  gap: 14px;
}

.almox-items-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.almox-items-header h3 {
  margin-bottom: 4px;
}

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

.almox-items-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.almox-items-content {
  display: grid;
}

.almox-items-collapsed .almox-items-content {
  display: none;
}

.almox-items-expanded .almox-items-content {
  display: grid;
}

@media (max-width: 1100px) {
  .route-panel[data-route="almoxarifado"] .almox-primary-flow,
  .route-panel[data-route="almoxarifado"] .almox-note-grid {
    grid-template-columns: 1fr;
  }

  .route-panel[data-route="almoxarifado"] .almox-note-grid .full-width {
    grid-row: auto;
  }

  .route-panel[data-route="almoxarifado"] .almox-note-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .route-panel[data-route="almoxarifado"] {
    gap: 12px;
    overflow-x: hidden;
  }

  .route-panel[data-route="almoxarifado"] .almox-note-options,
  .route-panel[data-route="almoxarifado"] .almox-dashboard-grid,
  .route-panel[data-route="almoxarifado"] .almox-manager-report,
  .route-panel[data-route="almoxarifado"] .almox-manager-grid,
  .route-panel[data-route="almoxarifado"] .almox-card-grid,
  .route-panel[data-route="almoxarifado"] .almox-history-list {
    grid-template-columns: 1fr;
  }

  .almox-history-header {
    display: grid;
  }

  .almox-environment-header,
  .almox-environment-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .almox-items-header {
    display: grid;
  }

  .almox-history-actions {
    justify-content: stretch;
  }

  .almox-items-actions {
    justify-content: stretch;
  }

  .almox-history-actions .mini-button,
  .almox-items-actions .mini-button,
  .almox-environment-actions,
  .almox-environment-actions select,
  .almox-environment-actions .mini-button,
  .almox-history-filters {
    width: 100%;
  }

  .almox-history-filters {
    justify-content: center;
  }
}

/* Almoxarifado - correcao visual de overflow antes do commit */
.route-panel[data-route="almoxarifado"] {
  width: 100%;
  max-width: 1240px;
  overflow-x: hidden;
}

.route-panel[data-route="almoxarifado"] *,
.route-panel[data-route="almoxarifado"] *::before,
.route-panel[data-route="almoxarifado"] *::after {
  box-sizing: border-box;
}

.route-panel[data-route="almoxarifado"] .workspace-card,
.route-panel[data-route="almoxarifado"] .almox-primary-flow,
.route-panel[data-route="almoxarifado"] .almox-note-panel,
.route-panel[data-route="almoxarifado"] .almox-note-options,
.route-panel[data-route="almoxarifado"] .almox-note-option,
.route-panel[data-route="almoxarifado"] .almox-note-grid,
.route-panel[data-route="almoxarifado"] .almox-note-grid label,
.route-panel[data-route="almoxarifado"] .almox-note-file-preview,
.route-panel[data-route="almoxarifado"] .almox-note-table-wrap,
.route-panel[data-route="almoxarifado"] .almox-environment-header,
.route-panel[data-route="almoxarifado"] .almox-environment-actions {
  min-width: 0;
  max-width: 100%;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.route-panel[data-route="almoxarifado"] .almox-note-options {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.route-panel[data-route="almoxarifado"] .almox-note-grid {
  grid-template-columns: 1fr;
}

.route-panel[data-route="almoxarifado"] .almox-note-grid .full-width {
  grid-row: auto;
}

.route-panel[data-route="almoxarifado"] .almox-note-grid input,
.route-panel[data-route="almoxarifado"] .almox-note-grid textarea,
.route-panel[data-route="almoxarifado"] .almox-note-table input {
  min-width: 0;
  max-width: 100%;
}

.route-panel[data-route="almoxarifado"] .almox-note-grid input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
}

.route-panel[data-route="almoxarifado"] .almox-note-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  min-width: 0;
  max-width: 100%;
}

.route-panel[data-route="almoxarifado"] .almox-note-actions .mini-button {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.route-panel[data-route="almoxarifado"] .almox-note-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.route-panel[data-route="almoxarifado"] .almox-note-table {
  min-width: 720px;
}

.route-panel[data-route="almoxarifado"] .almox-environment-actions select {
  min-width: 0;
  width: min(100%, 360px);
}

@media (max-width: 1280px) {
  .route-panel[data-route="almoxarifado"] .almox-primary-flow,
  .route-panel[data-route="almoxarifado"] .almox-note-grid {
    grid-template-columns: 1fr;
  }

  .route-panel[data-route="almoxarifado"] .almox-note-grid .full-width {
    grid-row: auto;
  }

  .route-panel[data-route="almoxarifado"] .almox-environment-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .route-panel[data-route="almoxarifado"] .almox-environment-actions,
  .route-panel[data-route="almoxarifado"] .almox-environment-actions select,
  .route-panel[data-route="almoxarifado"] .almox-environment-actions .mini-button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .route-panel[data-route="almoxarifado"] .almox-note-table {
    min-width: 640px;
  }
}

/* Almoxarifado - home premium clara sem alterar logica */
.route-panel[data-route="almoxarifado"] {
  position: relative;
  padding: 4px;
  background:
    linear-gradient(145deg, rgba(238, 247, 250, 0.86), rgba(255, 255, 255, 0.96) 42%, rgba(250, 246, 232, 0.72)),
    #f8fbfd;
  border-radius: 18px;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero {
  order: 1;
}

.route-panel[data-route="almoxarifado"] > .almox-environment-header {
  order: 2;
}

.route-panel[data-route="almoxarifado"] > .stock-demo-access-panel {
  order: 3;
}

.route-panel[data-route="almoxarifado"] > .almox-manager-panel {
  order: 4;
}

.route-panel[data-route="almoxarifado"] > .almox-dashboard-panel {
  order: 5;
}

.route-panel[data-route="almoxarifado"] > .almox-primary-flow {
  order: 6;
}

.route-panel[data-route="almoxarifado"] > #almoxGeneratedReport {
  order: 7;
}

.route-panel[data-route="almoxarifado"] > #almoxSummaryCards {
  order: 8;
}

.route-panel[data-route="almoxarifado"] > .workspace-card:not(.stock-ia-hero):not(.almox-environment-header):not(.stock-demo-access-panel):not(.almox-manager-panel):not(.almox-dashboard-panel):not(.almox-priority-card) {
  order: 9;
}

.route-panel[data-route="almoxarifado"] > .almox-items-section {
  order: 10;
}

.route-panel[data-route="almoxarifado"] > .almox-history-section {
  order: 11;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-insight:last-of-type {
  order: 12;
}

.route-panel[data-route="almoxarifado"] .workspace-card {
  border-color: rgba(15, 95, 143, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(8, 32, 51, 0.08);
  backdrop-filter: blur(12px);
}

.route-panel[data-route="almoxarifado"] .stock-ia-hero {
  min-height: auto;
  padding: 18px;
  border-color: rgba(15, 95, 143, 0.18);
  background:
    linear-gradient(135deg, rgba(15, 95, 143, 0.92), rgba(30, 127, 104, 0.84)),
    #0f5f8f;
  box-shadow: 0 20px 44px rgba(8, 32, 51, 0.14);
}

.route-panel[data-route="almoxarifado"] .stock-ia-hero h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.route-panel[data-route="almoxarifado"] .stock-ia-hero p {
  max-width: 64ch;
}

.route-panel[data-route="almoxarifado"] .almox-environment-header {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.route-panel[data-route="almoxarifado"] .stock-demo-access-panel:empty {
  display: none;
}

.route-panel[data-route="almoxarifado"] .almox-manager-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-color: rgba(30, 127, 104, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 250, 0.88)),
    #ffffff;
}

.route-panel[data-route="almoxarifado"] .almox-manager-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.route-panel[data-route="almoxarifado"] .almox-manager-actions .mini-button {
  width: 100%;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  text-decoration: none;
}

.route-panel[data-route="almoxarifado"] .almox-manager-report,
.route-panel[data-route="almoxarifado"] .almox-manager-grid {
  gap: 10px;
}

.route-panel[data-route="almoxarifado"] .almox-manager-report article,
.route-panel[data-route="almoxarifado"] .almox-manager-card,
.route-panel[data-route="almoxarifado"] .almox-dashboard-card,
.route-panel[data-route="almoxarifado"] .almox-dashboard-block,
.route-panel[data-route="almoxarifado"] .almox-note-option,
.route-panel[data-route="almoxarifado"] .almox-note-file-preview,
.route-panel[data-route="almoxarifado"] .almox-ocr-review,
.route-panel[data-route="almoxarifado"] .almox-history-item,
.route-panel[data-route="almoxarifado"] .almox-item-card {
  border-color: rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(8, 32, 51, 0.06);
}

.route-panel[data-route="almoxarifado"] .almox-dashboard-panel {
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9)),
    #ffffff;
}

.route-panel[data-route="almoxarifado"] .almox-dashboard-cards {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.route-panel[data-route="almoxarifado"] .almox-dashboard-card {
  min-height: 78px;
  padding: 11px;
}

.route-panel[data-route="almoxarifado"] .almox-dashboard-card strong {
  font-size: 1rem;
}

.route-panel[data-route="almoxarifado"] .almox-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.route-panel[data-route="almoxarifado"] .almox-dashboard-block {
  padding: 12px;
  box-shadow: none;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow {
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.route-panel[data-route="almoxarifado"] .almox-priority-card {
  padding: 16px;
  border-color: rgba(216, 171, 56, 0.24);
  background: rgba(255, 255, 255, 0.9);
}

.route-panel[data-route="almoxarifado"] .almox-action-button {
  min-height: 78px;
  padding: 13px;
  border-color: rgba(30, 127, 104, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 250, 0.78));
  box-shadow: 0 10px 24px rgba(8, 32, 51, 0.06);
}

.route-panel[data-route="almoxarifado"] .almox-flow-status {
  border-radius: 14px;
}

.almox-note-collapsible {
  overflow: hidden;
}

.almox-note-collapsible:not([open]) {
  padding-bottom: 16px;
}

.almox-note-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.almox-note-summary::-webkit-details-marker {
  display: none;
}

.almox-note-summary h3,
.almox-note-summary p {
  margin: 0;
}

.almox-note-summary .mini-button {
  flex: 0 0 auto;
  pointer-events: none;
}

.almox-note-collapsible[open] .almox-note-summary {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.route-panel[data-route="almoxarifado"] .almox-note-options {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.route-panel[data-route="almoxarifado"] .almox-note-grid {
  gap: 10px;
}

.route-panel[data-route="almoxarifado"] .almox-note-grid textarea {
  min-height: 116px;
}

.route-panel[data-route="almoxarifado"] .almox-note-commercial,
.route-panel[data-route="almoxarifado"] .almox-note-status {
  border-radius: 12px;
}

.almox-floating-actions {
  position: sticky;
  z-index: 10;
  bottom: 18px;
  justify-self: end;
  order: 99;
  display: flex;
  gap: 8px;
  width: fit-content;
  margin: -8px 8px 0 auto;
  padding: 8px;
  border: 1px solid rgba(15, 95, 143, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px rgba(8, 32, 51, 0.14);
  backdrop-filter: blur(12px);
}

.almox-floating-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f5f8f, #1e7f68);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.almox-floating-actions a:last-child {
  color: #082033;
  background: linear-gradient(135deg, #f6c85f, #f4df9a);
}

/* Almoxarifado - topo operacional integrado */
.route-panel[data-route="almoxarifado"] > .almox-environment-header {
  order: 2 !important;
}

.route-panel[data-route="almoxarifado"] > .almox-manager-panel {
  order: 3 !important;
}

.route-panel[data-route="almoxarifado"] > .almox-dashboard-panel {
  order: 4 !important;
}

.route-panel[data-route="almoxarifado"] > .almox-primary-flow {
  order: 5 !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow {
  grid-template-columns: 1fr !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow > .almox-priority-card:not(.almox-note-collapsible) {
  display: none !important;
}

.route-panel[data-route="almoxarifado"] .almox-command-center,
.route-panel[data-route="almoxarifado"] #almoxManagerPanel {
  padding: 16px;
  border-color: rgba(30, 127, 104, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 250, 0.92) 64%, rgba(252, 247, 232, 0.78)),
    #ffffff;
}

.route-panel[data-route="almoxarifado"] #almoxManagerPanel .almox-manager-heading {
  align-items: center;
}

.route-panel[data-route="almoxarifado"] #almoxManagerPanel .almox-manager-heading .auth-note {
  max-width: 760px;
}

.route-panel[data-route="almoxarifado"] #almoxManagerPanel .almox-manager-note {
  display: none;
}

.route-panel[data-route="almoxarifado"] #almoxManagerPanel .almox-manager-actions {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

.route-panel[data-route="almoxarifado"] #almoxManagerPanel .almox-manager-actions .mini-button {
  color: #ffffff !important;
  border-color: #0b3558 !important;
  background: #0b3558 !important;
  box-shadow: 0 8px 18px rgba(8, 32, 51, 0.14);
  text-align: center !important;
  justify-content: center !important;
}

.route-panel[data-route="almoxarifado"] #almoxManagerPanel .almox-manager-report {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.route-panel[data-route="almoxarifado"] #almoxManagerPanel .almox-manager-grid {
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
}

.route-panel[data-route="almoxarifado"] #almoxManagerPanel .almox-manager-card {
  min-height: 88px;
  padding: 12px;
}

.route-panel[data-route="almoxarifado"] #almoxDashboardPanel {
  padding: 14px;
}

.route-panel[data-route="almoxarifado"] #almoxDashboardPanel .almox-dashboard-grid {
  display: none;
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal {
  margin-top: 0;
}

/* Ajuste pontual: nota compacta no topo junto das acoes */
.route-panel[data-route="almoxarifado"] > .almox-primary-flow {
  order: 4 !important;
}

.route-panel[data-route="almoxarifado"] > .almox-dashboard-panel {
  order: 5 !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow {
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr) !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow > .almox-priority-card:not(.almox-note-collapsible) {
  display: grid !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow .almox-action-button {
  min-height: 68px;
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal {
  align-self: start;
}

/* Ajuste pontual: ambiente real integrado ao topo */
.route-panel[data-route="almoxarifado"] > .almox-environment-header {
  order: 1 !important;
  z-index: 2;
  justify-self: end;
  width: fit-content;
  max-width: min(100%, 620px);
  margin-top: -82px;
  margin-right: 14px;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.route-panel[data-route="almoxarifado"] > .almox-environment-header > div:first-child {
  display: none;
}

.route-panel[data-route="almoxarifado"] > .almox-environment-header .almox-environment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(8, 32, 51, 0.12);
  backdrop-filter: blur(12px);
}

.route-panel[data-route="almoxarifado"] > .almox-environment-header .almox-environment-actions select {
  width: min(280px, 42vw);
  min-height: 36px;
  color: #082033;
  border-color: rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 800;
}

.route-panel[data-route="almoxarifado"] > .almox-environment-header .almox-environment-actions .mini-button {
  min-height: 36px;
  color: #082033;
  border-color: rgba(216, 171, 56, 0.58);
  border-radius: 999px;
  background: linear-gradient(135deg, #f6c85f, #f7e5a8);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Ajuste pontual: cabecalho limpo do almoxarifado */
.route-panel[data-route="almoxarifado"] > .stock-ia-hero .local-status,
.route-panel[data-route="almoxarifado"] > .stock-ia-hero .cloud-status {
  display: none !important;
}

.route-panel[data-route="almoxarifado"] > .almox-environment-header {
  margin-top: -68px;
  margin-right: 230px;
  margin-bottom: 10px;
}

.route-panel[data-route="almoxarifado"] > .almox-environment-header .almox-environment-actions {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.route-panel[data-route="almoxarifado"] > .almox-environment-header .almox-environment-actions select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.route-panel[data-route="almoxarifado"] > .almox-environment-header .almox-environment-actions .mini-button {
  min-height: 38px;
  padding-inline: 14px;
}

/* Correcao cirurgica: cabecalho do Almoxarifado sem sobreposicao */
.route-panel[data-route="almoxarifado"] > .stock-ia-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero .stock-ia-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero .local-status,
.route-panel[data-route="almoxarifado"] > .stock-ia-hero .cloud-status {
  display: none !important;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero .almox-environment-header {
  display: contents !important;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero .almox-environment-header > div:first-child,
.route-panel[data-route="almoxarifado"] > .stock-ia-hero .almox-environment-actions select {
  display: none !important;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero .almox-environment-actions {
  display: contents !important;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero .almox-environment-actions .mini-button,
.route-panel[data-route="almoxarifado"] > .stock-ia-hero .stock-ia-badges > .mini-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .route-panel[data-route="almoxarifado"] > .stock-ia-hero {
    grid-template-columns: 1fr;
  }

  .route-panel[data-route="almoxarifado"] > .stock-ia-hero .stock-ia-badges {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .route-panel[data-route="almoxarifado"] > .stock-ia-hero .almox-environment-actions .mini-button,
  .route-panel[data-route="almoxarifado"] > .stock-ia-hero .stock-ia-badges > .mini-button {
    flex: 1 1 150px;
  }
}

@media (max-width: 1180px) {
  .route-panel[data-route="almoxarifado"] .almox-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .route-panel[data-route="almoxarifado"] {
    padding: 0;
    border-radius: 0;
  }

  .route-panel[data-route="almoxarifado"] .almox-dashboard-grid,
  .route-panel[data-route="almoxarifado"] .almox-primary-flow {
    grid-template-columns: 1fr;
  }

  .almox-note-summary {
    display: grid;
  }

  .almox-floating-actions {
    justify-self: stretch;
    justify-content: center;
    width: calc(100% - 16px);
    margin-inline: 8px;
  }

  .almox-floating-actions a {
    flex: 1 1 0;
  }

  .route-panel[data-route="almoxarifado"] > .almox-environment-header {
    justify-self: stretch;
    width: auto;
    max-width: 100%;
    margin: 0;
    order: 2 !important;
  }

  .route-panel[data-route="almoxarifado"] > .almox-environment-header .almox-environment-actions {
    display: grid;
    grid-template-columns: 1fr;
    border-color: rgba(15, 95, 143, 0.18);
    background: rgba(255, 255, 255, 0.86);
  }

  .route-panel[data-route="almoxarifado"] > .almox-environment-header .almox-environment-actions select {
    width: 100%;
  }
}

/* Correcoes pre-release: acoes de relatorio e header responsivo */
.app-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, max-content);
  align-items: start;
  gap: 18px;
  min-height: 0;
  overflow: visible;
}

.app-topbar::after {
  position: static;
  grid-column: 1 / -1;
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  margin-top: -6px;
}

.app-topbar > div:first-child,
.session-box {
  min-width: 0;
}

.session-box {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(100%, 520px);
}

.session-box strong {
  flex: 1 1 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.session-box .plan-badge,
.session-box .local-status,
.session-box .cloud-status,
.session-box #saveNowButton,
.session-box #logoutButton {
  flex: 1 1 128px;
  justify-content: center;
  min-width: 0;
  white-space: normal;
  text-align: center;
}

.almox-generated-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(220px, 320px) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 95, 143, 0.18);
  border-radius: 8px;
  background: #f6f9fc;
}

.almox-generated-actions p {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.35;
}

.almox-generated-actions label {
  display: grid;
  gap: 5px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.almox-generated-actions input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
}

.route-panel[data-route="almoxarifado"] .almox-manager-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.route-panel[data-route="almoxarifado"] .almox-manager-actions .mini-button {
  width: 100%;
}

@media (min-width: 1281px) {
  .route-panel[data-route="almoxarifado"] .almox-primary-flow {
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  }

  .route-panel[data-route="almoxarifado"] .almox-note-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .app-topbar {
    grid-template-columns: 1fr;
  }

  .app-topbar::after {
    justify-self: start;
    margin-top: 0;
  }

  .session-box {
    justify-content: flex-start;
    max-width: 100%;
  }

  .session-box strong {
    text-align: left;
  }

  .almox-generated-actions {
    grid-template-columns: 1fr 1fr;
  }

  .almox-generated-actions p,
  .almox-generated-actions label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .app-topbar {
    overflow: hidden;
  }

  .app-topbar::after {
    display: none;
  }

  .session-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .session-box strong {
    text-align: left;
  }

  .almox-generated-actions {
    grid-template-columns: 1fr;
  }

  .almox-generated-actions .mini-button {
    width: 100%;
  }
}

/* Stock IA antigo - tabelas legiveis sem arrastar no desktop */
.route-panel[data-route="stock-ia"] .stock-ia-table-wrap {
  max-width: 100%;
  overflow-x: visible;
}

.route-panel[data-route="stock-ia"] .stock-ia-table,
.route-panel[data-route="stock-ia"] .stock-ia-table.compact {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.route-panel[data-route="stock-ia"] .stock-ia-table th,
.route-panel[data-route="stock-ia"] .stock-ia-table td {
  padding: 9px 8px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.route-panel[data-route="stock-ia"] .stock-ia-table th {
  font-size: 0.68rem;
  line-height: 1.2;
}

.route-panel[data-route="stock-ia"] .stock-ia-table td {
  font-size: 0.8rem;
  line-height: 1.35;
}

.route-panel[data-route="stock-ia"] .stock-ia-table td:last-child .stock-ia-actions {
  min-width: 0;
}

.route-panel[data-route="stock-ia"] .stock-ia-table .mini-button {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.stock-demo-access-panel {
  display: grid;
  gap: 14px;
  border-color: rgba(15, 118, 110, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 184, 166, 0.12), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f6fbfb);
}

.stock-demo-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 16px;
  align-items: stretch;
}

.stock-demo-access-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.stock-demo-access-copy h3,
.stock-demo-access-copy p {
  margin: 0;
}

.stock-demo-access-copy h3 {
  color: #061a32;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.18;
}

.stock-demo-access-copy p {
  color: #52637a;
  line-height: 1.5;
}

.stock-demo-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.stock-demo-profile-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(6, 26, 50, 0.12);
  border-radius: 16px;
  color: #ffffff;
  background:
    linear-gradient(135deg, #061a32, #0c4a6e),
    radial-gradient(circle at 86% 0%, rgba(20, 184, 166, 0.28), transparent 12rem);
  box-shadow: 0 18px 42px rgba(6, 26, 50, 0.16);
}

.stock-demo-profile-card span,
.stock-demo-approval-head span {
  color: #5eead4;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stock-demo-profile-card strong {
  font-size: 1.4rem;
  line-height: 1.05;
}

.stock-demo-profile-card small,
.stock-demo-profile-card p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.stock-demo-profile-card p {
  margin: 0;
}

.stock-demo-approval-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.stock-demo-approval-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.stock-demo-approval-head strong {
  display: block;
  margin-top: 3px;
  color: #061a32;
  font-size: 1.08rem;
}

.stock-demo-approval-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 70px));
  gap: 6px;
  text-align: center;
}

.stock-demo-approval-metrics b {
  display: block;
  color: #061a32;
  font-size: 1rem;
}

.stock-demo-approval-metrics small {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
}

.stock-demo-request-list {
  display: grid;
  gap: 8px;
}

.stock-demo-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 13px;
  background: #ffffff;
}

.stock-demo-request.is-pending {
  border-color: rgba(215, 161, 45, 0.42);
  background: #fffaf0;
}

.stock-demo-request.is-approved {
  border-color: rgba(15, 118, 110, 0.28);
  background: #f0fdfa;
}

.stock-demo-request.is-rejected {
  border-color: rgba(185, 28, 28, 0.2);
  background: #fff7f7;
}

.stock-demo-request span,
.stock-demo-request small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

.stock-demo-request strong {
  display: block;
  margin: 3px 0;
  color: #061a32;
  font-size: 0.9rem;
  line-height: 1.25;
}

.stock-demo-request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.stock-demo-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
}

.almox-flow-status {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.92), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.almox-flow-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.almox-flow-status-head span {
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.almox-flow-status-head strong {
  color: #061a32;
  font-size: 0.88rem;
  text-align: right;
}

.almox-flow-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.almox-flow-metrics span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.84);
}

.almox-flow-metrics b {
  color: #061a32;
  font-size: 1.05rem;
  line-height: 1;
}

.almox-flow-metrics small,
.almox-flow-last small,
.almox-flow-last span {
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.35;
}

.almox-flow-status p {
  margin: 0;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.45;
}

.almox-flow-last {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px dashed rgba(15, 118, 110, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.almox-flow-last strong {
  color: #061a32;
  font-size: 0.84rem;
  line-height: 1.35;
}

.almox-flow-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.almox-flow-actions .mini-button {
  width: 100%;
}

@media (max-width: 760px) {
  .stock-demo-access-grid,
  .stock-demo-request {
    grid-template-columns: 1fr;
  }

  .stock-demo-access-actions .mini-button,
  .stock-demo-request-actions .mini-button {
    flex: 1 1 160px;
  }

  .route-panel[data-route="stock-ia"] .stock-ia-table-wrap {
    overflow-x: visible;
  }

  .route-panel[data-route="stock-ia"] .stock-ia-table {
    min-width: 0;
    table-layout: fixed;
  }

  .route-panel[data-route="stock-ia"] .stock-ia-table.compact {
    min-width: 0;
  }

  .route-panel[data-route="stock-ia"] .stock-ia-table th,
  .route-panel[data-route="stock-ia"] .stock-ia-table td {
    padding: 8px 5px;
    font-size: 0.68rem;
    line-height: 1.25;
  }
}

/* Modo publico Stock AI: reaproveita o app real sem expor a casca completa do ObraReport */
body.stock-ai-public-mode {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 185, 0.16), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(215, 161, 45, 0.14), transparent 24rem),
    linear-gradient(180deg, #eef7f8 0%, #f7fafc 45%, #edf4f8 100%);
}

body.stock-ai-public-mode .brand-header,
body.stock-ai-public-mode .app-topbar,
body.stock-ai-public-mode .saas-tabs,
body.stock-ai-public-mode .billing-alert {
  display: none !important;
}

body.stock-ai-public-mode .page-shell {
  max-width: 1280px;
  padding: clamp(14px, 2vw, 26px);
}

body.stock-ai-public-mode .saas-panel {
  display: block;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.stock-ai-public-mode .route-panel {
  grid-column: auto;
}

body.stock-ai-public-mode .route-panel:not(.active) {
  display: none;
}

body.stock-ai-public-mode .route-panel.active {
  display: grid;
}

body.stock-ai-public-mode .route-panel[data-route="almoxarifado"],
body.stock-ai-public-mode .route-panel[data-route="stock-ia"] {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
}

.stock-ai-public-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(6, 26, 50, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(3, 17, 33, 0.98), rgba(5, 48, 82, 0.94)),
    radial-gradient(circle at 88% 0%, rgba(16, 185, 185, 0.28), transparent 18rem);
  box-shadow: 0 24px 58px rgba(3, 19, 38, 0.18);
}

.stock-ai-public-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.stock-ai-public-brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #09a7b7, #0f766e);
  font-weight: 950;
}

.stock-ai-public-brand strong,
.stock-ai-public-brand small {
  display: block;
  line-height: 1.1;
}

.stock-ai-public-brand strong {
  font-size: 1.06rem;
  font-weight: 950;
}

.stock-ai-public-brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.stock-ai-public-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-ai-public-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 850;
}

.stock-ai-public-actions a:first-child {
  color: #061a32;
  background: #ffffff;
}

body.stock-ai-public-mode .route-panel[data-route="almoxarifado"] > .stock-ia-hero {
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 249, 0.96));
  box-shadow: 0 18px 42px rgba(6, 26, 50, 0.09);
}

body.stock-ai-public-mode .route-panel[data-route="almoxarifado"] > .stock-ia-hero .eyebrow {
  color: #0f766e;
}

body.stock-ai-public-mode .route-panel[data-route="almoxarifado"] > .stock-ia-hero h3 {
  color: #061a32;
}

body.stock-ai-public-mode .route-panel[data-route="almoxarifado"] > .stock-ia-hero p {
  color: #5b6b7f;
}

@media (max-width: 720px) {
  .stock-ai-public-shell {
    align-items: stretch;
    flex-direction: column;
    border-radius: 18px;
  }

  .stock-ai-public-actions {
    justify-content: stretch;
  }

  .stock-ai-public-actions a {
    flex: 1 1 150px;
  }
}

/* Emergencia: cabecalho simples do Almoxarifado */
.route-panel[data-route="almoxarifado"] > .stock-ia-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 0 !important;
  padding: 18px !important;
  overflow: visible !important;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero > div:first-child {
  min-width: 0 !important;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero h3 {
  margin: 0 0 6px !important;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero p:not(.eyebrow) {
  margin: 0 !important;
  max-width: 64ch !important;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero .stock-ia-badges {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero .local-status,
.route-panel[data-route="almoxarifado"] > .stock-ia-hero .cloud-status {
  display: none !important;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero #almoxEnvironmentHeader {
  position: static !important;
  display: contents !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  backdrop-filter: none !important;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero #almoxEnvironmentHeader > div:first-child,
.route-panel[data-route="almoxarifado"] > .stock-ia-hero #almoxEnvironmentHeader select {
  display: none !important;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero #almoxEnvironmentHeader .almox-environment-actions {
  display: contents !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.route-panel[data-route="almoxarifado"] > .stock-ia-hero #almoxEnvironmentHeader .mini-button,
.route-panel[data-route="almoxarifado"] > .stock-ia-hero .stock-ia-badges > .mini-button {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  transform: none !important;
  color: #ffffff !important;
  border-color: #0b3558 !important;
  background: #0b3558 !important;
  text-align: center !important;
}

.route-panel[data-route="almoxarifado"] > .almox-environment-technical {
  order: 2 !important;
  justify-self: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.route-panel[data-route="almoxarifado"] > .almox-environment-technical:not(:has(#almoxEnvironmentForm)) {
  display: none !important;
}

.route-panel[data-route="almoxarifado"] > .almox-environment-technical:has(#almoxEnvironmentForm) {
  display: grid !important;
  padding: 16px !important;
  border: 1px solid rgba(15, 95, 143, 0.16) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 14px 30px rgba(8, 32, 51, 0.08) !important;
}

@media (max-width: 760px) {
  .route-panel[data-route="almoxarifado"] > .stock-ia-hero {
    grid-template-columns: 1fr !important;
  }

  .route-panel[data-route="almoxarifado"] > .stock-ia-hero .stock-ia-badges {
    justify-content: stretch !important;
  }

  .route-panel[data-route="almoxarifado"] > .stock-ia-hero #almoxEnvironmentHeader .mini-button,
  .route-panel[data-route="almoxarifado"] > .stock-ia-hero .stock-ia-badges > .mini-button {
    flex: 1 1 150px !important;
  }
}

/* Ajuste operacional: acoes rapidas em faixa horizontal e nota bem posicionada */
.route-panel[data-route="almoxarifado"] > .almox-primary-flow {
  display: grid !important;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr) !important;
  align-items: stretch !important;
  gap: 14px !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow > .almox-priority-card:not(.almox-note-collapsible) {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr) !important;
  align-items: stretch !important;
  gap: 14px !important;
  padding: 14px !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow > .almox-priority-card:not(.almox-note-collapsible) .section-row {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 12px !important;
  margin: 0 !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow > .almox-priority-card:not(.almox-note-collapsible) .section-row h3 {
  margin: 0 !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow > .almox-priority-card:not(.almox-note-collapsible) .section-row .auth-note {
  margin: 0 !important;
  max-width: 48ch !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow .almox-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow .almox-action-button {
  min-height: 132px !important;
  align-content: start !important;
  padding: 14px !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow .almox-flow-status {
  height: 100% !important;
  margin-top: 0 !important;
  align-self: stretch !important;
}

.route-panel[data-route="almoxarifado"] .almox-flow-actions {
  margin-top: auto !important;
}

.route-panel[data-route="almoxarifado"] .almox-flow-actions .mini-button,
.route-panel[data-route="almoxarifado"] .almox-note-summary .mini-button {
  color: #ffffff !important;
  border-color: #0b3558 !important;
  background: #0b3558 !important;
  box-shadow: 0 8px 18px rgba(8, 32, 51, 0.14) !important;
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal {
  align-self: stretch !important;
  display: grid !important;
  align-content: start !important;
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal:not([open]) {
  min-height: 100% !important;
}

.route-panel[data-route="almoxarifado"] .almox-note-summary {
  min-height: 100% !important;
  align-items: center !important;
}

@media (max-width: 1180px) {
  .route-panel[data-route="almoxarifado"] > .almox-primary-flow,
  .route-panel[data-route="almoxarifado"] .almox-primary-flow > .almox-priority-card:not(.almox-note-collapsible) {
    grid-template-columns: 1fr !important;
  }

  .route-panel[data-route="almoxarifado"] .almox-primary-flow .almox-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .route-panel[data-route="almoxarifado"] .almox-primary-flow .almox-action-button {
    min-height: 96px !important;
  }
}

@media (max-width: 760px) {
  .route-panel[data-route="almoxarifado"] .almox-primary-flow > .almox-priority-card:not(.almox-note-collapsible) .section-row,
  .route-panel[data-route="almoxarifado"] .almox-primary-flow .almox-action-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Ajuste operacional: evita duplicar acoes ja presentes na Central superior */
.route-panel[data-route="almoxarifado"] > .almox-primary-flow {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow > .almox-priority-card:not(.almox-note-collapsible) {
  grid-template-columns: 1fr !important;
  align-content: stretch !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow > .almox-priority-card:not(.almox-note-collapsible) .section-row,
.route-panel[data-route="almoxarifado"] .almox-primary-flow .almox-action-grid {
  display: none !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow .almox-flow-status {
  min-height: 100% !important;
  margin: 0 !important;
}

.route-panel[data-route="almoxarifado"] .almox-primary-flow .almox-flow-actions {
  display: none !important;
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal {
  min-height: 100% !important;
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal:not([open]) .almox-note-summary {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

/* Ajuste visual: evita duplicidade entre Central do Gestor e Dashboard inferior */
.route-panel[data-route="almoxarifado"] > #almoxDashboardPanel {
  display: none !important;
}

/* Elo contextual no Almoxarifado: orienta sem alterar estoque */
.route-panel[data-route="almoxarifado"] .almox-elo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  align-items: end;
  gap: 14px;
  padding: 18px;
  color: #ffffff;
  border: 1px solid rgba(112, 168, 255, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 68% 22%, rgba(110, 96, 255, 0.32), transparent 24%),
    linear-gradient(135deg, #061a32 0%, #0b2238 58%, #0f2c46 100%);
  box-shadow: 0 18px 40px rgba(8, 32, 51, 0.16);
  overflow: hidden;
}

.route-panel[data-route="almoxarifado"] .almox-elo-card > div:first-child {
  grid-row: span 2;
}

.route-panel[data-route="almoxarifado"] .almox-elo-card h3,
.route-panel[data-route="almoxarifado"] .almox-elo-card p {
  margin: 0;
}

.route-panel[data-route="almoxarifado"] .almox-elo-card h3 {
  max-width: 22ch;
  color: #ffffff;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.1;
}

.route-panel[data-route="almoxarifado"] .almox-elo-card .eyebrow {
  color: #66e5cf;
}

.route-panel[data-route="almoxarifado"] .almox-elo-card .auth-note {
  display: block;
  margin-top: 4px;
  max-width: 56ch;
  color: rgba(226, 232, 240, 0.82);
}

.route-panel[data-route="almoxarifado"] .almox-elo-orb {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  color: #ffffff;
  background:
    radial-gradient(circle at 38% 35%, #7dd3fc 0 30%, transparent 31%),
    conic-gradient(from 45deg, #60a5fa, #7c3aed, #0b3558, #60a5fa);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(96, 165, 250, 0.28);
  font-weight: 900;
  line-height: 1;
}

.route-panel[data-route="almoxarifado"] .almox-elo-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
}

.route-panel[data-route="almoxarifado"] .almox-elo-actions .mini-button {
  min-height: 36px;
  color: #ffffff !important;
  border-color: rgba(96, 165, 250, 0.38) !important;
  background: rgba(96, 165, 250, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 20px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(10px);
}

.route-panel[data-route="almoxarifado"] .almox-elo-actions .mini-button:hover,
.route-panel[data-route="almoxarifado"] .almox-elo-actions .mini-button:focus-visible {
  background: #2f7dca !important;
}

.route-panel[data-route="almoxarifado"] .almox-elo-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: 999px;
  background: rgba(15, 35, 56, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.route-panel[data-route="almoxarifado"] .almox-elo-input-row input {
  min-width: 0;
  min-height: 34px;
  padding: 0 12px;
  color: #ffffff;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.86rem;
}

.route-panel[data-route="almoxarifado"] .almox-elo-input-row input::placeholder {
  color: rgba(226, 232, 240, 0.68);
}

.route-panel[data-route="almoxarifado"] .almox-elo-input-row .mini-button {
  min-height: 34px;
  color: #ffffff !important;
  border-color: #2f7dca !important;
  background: #2f7dca !important;
  box-shadow: 0 8px 18px rgba(8, 32, 51, 0.22);
}

@media (max-width: 760px) {
  .route-panel[data-route="almoxarifado"] .almox-elo-card {
    grid-template-columns: 1fr;
  }

  .route-panel[data-route="almoxarifado"] .almox-elo-card > div:first-child {
    grid-row: auto;
  }

  .route-panel[data-route="almoxarifado"] .almox-elo-actions {
    grid-template-columns: 1fr;
  }

  .route-panel[data-route="almoxarifado"] .almox-elo-actions .mini-button {
    width: 100%;
  }

  .route-panel[data-route="almoxarifado"] .almox-elo-input-row {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
}
body.stock-full-context .route-panel[data-route="almoxarifado"] [data-stock-full-banner] {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  color: #0f5132;
  background: rgba(209, 250, 229, 0.78);
  font-weight: 800;
}

body.stock-full-context.stock-full-profile-loja .route-panel[data-route="almoxarifado"] #almoxManagerPanel .almox-manager-report,
body.stock-full-context.stock-full-profile-loja .route-panel[data-route="almoxarifado"] #almoxManagerPanel .almox-elo-card,
body.stock-full-context.stock-full-profile-loja .route-panel[data-route="almoxarifado"] #almoxManagerPanel #almoxManagerCards {
  opacity: 0.72;
}

body.stock-full-context.stock-full-profile-gestor .route-panel[data-route="almoxarifado"] #almoxManagerPanel {
  outline: 2px solid rgba(15, 118, 110, 0.2);
}

body.stock-full-context.stock-full-profile-gestor .route-panel[data-route="almoxarifado"] .almox-manager-actions #almoxViewPanelButton,
body.stock-full-context.stock-full-profile-gestor .route-panel[data-route="almoxarifado"] .almox-manager-actions #almoxManagerAuditButton,
body.stock-full-context.stock-full-profile-gestor .route-panel[data-route="almoxarifado"] .almox-manager-actions #almoxEmailButton,
body.stock-full-context.stock-full-profile-gestor .route-panel[data-route="almoxarifado"] .almox-manager-actions #almoxDownloadPdfButton,
body.stock-full-context.stock-full-profile-gestor .route-panel[data-route="almoxarifado"] .almox-manager-actions a[href="#almoxHistorySection"] {
  border-color: rgba(15, 118, 110, 0.38);
  background: rgba(240, 253, 250, 0.94);
  color: #115e59;
}

.almox-offline-panel {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: rgba(240, 253, 250, 0.78);
  color: #1f2937;
}

.almox-offline-panel strong {
  display: block;
  margin-bottom: 4px;
  color: #115e59;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.almox-offline-panel span {
  color: #0f5132;
  font-weight: 800;
}

.almox-offline-panel p {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Ajuste responsivo: Entrada Assistida dentro do Stock Full sem corte lateral. */
.route-panel[data-route="almoxarifado"] #almoxNotaFiscal,
.route-panel[data-route="almoxarifado"] #almoxNotaFiscal > *,
.route-panel[data-route="almoxarifado"] #almoxNotaFiscal label,
.route-panel[data-route="almoxarifado"] #almoxNotaFiscal .auth-note,
.route-panel[data-route="almoxarifado"] #almoxNotaFiscal .almox-note-status,
.route-panel[data-route="almoxarifado"] #almoxNotaFiscal .almox-note-commercial,
.route-panel[data-route="almoxarifado"] #almoxNotaFiscal .almox-ocr-review,
.route-panel[data-route="almoxarifado"] #almoxNotaFiscal .almox-note-file-preview {
  min-width: 0;
  max-width: 100%;
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal {
  width: 100%;
  overflow-x: hidden;
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal .almox-note-summary {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal .almox-note-summary > div {
  min-width: 0;
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal .almox-note-options {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal .almox-note-option,
.route-panel[data-route="almoxarifado"] #almoxNotaFiscal .mini-button,
.route-panel[data-route="almoxarifado"] #almoxNotaFiscal input,
.route-panel[data-route="almoxarifado"] #almoxNotaFiscal textarea {
  overflow-wrap: anywhere;
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal .almox-note-grid {
  grid-template-columns: minmax(0, 1fr);
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal input,
.route-panel[data-route="almoxarifado"] #almoxNotaFiscal textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal input[type="file"] {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal .almox-note-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal .almox-note-actions .mini-button {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.route-panel[data-route="almoxarifado"] #almoxNotaFiscal .almox-note-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .route-panel[data-route="almoxarifado"] #almoxNotaFiscal .almox-note-summary {
    grid-template-columns: 1fr;
  }
}

/* Stock Full v2 dashboard independente */
.route-panel[data-route="almoxarifado"] .stock-full-dashboard {
  display: none;
}

body.stock-full-context .route-panel[data-route="almoxarifado"] .stock-full-dashboard:not(.is-hidden) {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(21, 94, 117, 0.18);
  background:
    radial-gradient(circle at top right, rgba(216, 171, 56, 0.18), transparent 34%),
    linear-gradient(135deg, #f8fbfc 0%, #eef6f7 100%);
  box-shadow: 0 22px 48px rgba(8, 32, 51, 0.12);
}

body.stock-full-context .stock-full-dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  color: #ffffff;
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(5, 22, 37, 0.96), rgba(17, 94, 89, 0.9)),
    linear-gradient(90deg, #061626, #155e59);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 30px rgba(8, 32, 51, 0.18);
}

body.stock-full-context .stock-full-dashboard-hero h3,
body.stock-full-context .stock-full-dashboard-hero p,
body.stock-full-context .stock-full-dashboard-hero span {
  margin: 0;
  color: #ffffff;
}

body.stock-full-context .stock-full-dashboard-hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 8px;
  color: #ffe7a1;
  border: 1px solid rgba(216, 171, 56, 0.48);
  border-radius: 999px;
  background: rgba(216, 171, 56, 0.12);
}

body.stock-full-context .stock-full-dashboard-hero h3 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 0.95;
}

body.stock-full-context .stock-full-dashboard-hero span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

body.stock-full-context .stock-full-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 260px;
}

body.stock-full-context .stock-full-dashboard-actions .mini-button {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

body.stock-full-context .stock-full-dashboard-actions .mini-button.primary {
  color: #062033;
  background: #f4c95d;
}

body.stock-full-context .stock-full-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.stock-full-context .stock-full-metric-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(21, 94, 117, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(8, 32, 51, 0.08);
}

body.stock-full-context .stock-full-metric-card span {
  color: #526172;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.stock-full-context .stock-full-metric-card strong {
  color: #061626;
  font-size: 2rem;
  line-height: 1;
}

body.stock-full-context .stock-full-metric-card small {
  color: #64748b;
  font-weight: 800;
}

body.stock-full-context .stock-full-metric-card.status-danger {
  border-color: rgba(185, 28, 28, 0.28);
  background: #fff7f4;
}

body.stock-full-context .stock-full-metric-card.status-warning {
  border-color: rgba(180, 83, 9, 0.26);
  background: #fffbeb;
}

body.stock-full-context .stock-full-metric-card.status-ok {
  border-color: rgba(22, 101, 52, 0.24);
  background: #f0fdf4;
}

body.stock-full-context .stock-full-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: start;
}

body.stock-full-context .stock-full-monitor-panel,
body.stock-full-context .stock-full-side-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(21, 94, 117, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(8, 32, 51, 0.08);
}

body.stock-full-context .stock-full-side-stack {
  display: grid;
  gap: 16px;
}

body.stock-full-context .stock-full-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.stock-full-context .stock-full-panel-heading.compact {
  display: block;
}

body.stock-full-context .stock-full-panel-heading h4,
body.stock-full-context .stock-full-panel-heading p {
  margin: 0;
}

body.stock-full-context .stock-full-panel-heading h4 {
  color: #0b2134;
  font-size: 1rem;
}

body.stock-full-context .stock-full-panel-heading p {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.4;
}

body.stock-full-context .stock-full-search {
  display: grid;
  gap: 4px;
  min-width: 220px;
  color: #526172;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.stock-full-context .stock-full-search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(21, 94, 117, 0.18);
  border-radius: 10px;
  background: #f8fafc;
}

body.stock-full-context .stock-full-monitor-table {
  display: grid;
  gap: 7px;
}

body.stock-full-context .stock-full-monitor-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) 0.7fr 0.7fr 0.7fr 0.8fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  color: #0b2134;
  text-align: left;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #ffffff;
}

button.stock-full-monitor-row {
  cursor: pointer;
}

button.stock-full-monitor-row:hover,
button.stock-full-monitor-row:focus-visible {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 10px 20px rgba(8, 32, 51, 0.08);
}

body.stock-full-context .stock-full-monitor-row.is-header {
  padding-block: 8px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  background: #f1f5f9;
}

body.stock-full-context .stock-full-monitor-row strong,
body.stock-full-context .stock-full-monitor-row small {
  display: block;
}

body.stock-full-context .stock-full-monitor-row small {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.74rem;
}

body.stock-full-context .stock-full-monitor-row i,
body.stock-full-context .stock-full-activity-item > span {
  display: inline-flex;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 999px;
  background: #64748b;
}

body.stock-full-context .stock-full-monitor-row i.status-danger {
  background: #b91c1c;
}

body.stock-full-context .stock-full-monitor-row i.status-warning {
  background: #b45309;
}

body.stock-full-context .stock-full-monitor-row i.status-ok {
  background: #166534;
}

body.stock-full-context .stock-full-urgent-list,
body.stock-full-context .stock-full-activity-list {
  display: grid;
  gap: 10px;
}

body.stock-full-context .stock-full-urgent-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-radius: 10px;
  background: #fffaf0;
}

body.stock-full-context .stock-full-urgent-item strong,
body.stock-full-context .stock-full-urgent-item span {
  display: block;
}

body.stock-full-context .stock-full-urgent-item span {
  margin-top: 4px;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 800;
}

body.stock-full-context .stock-full-activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.stock-full-context .stock-full-activity-item:last-child {
  border-bottom: 0;
}

body.stock-full-context .stock-full-activity-item > span {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #ffffff;
  font-weight: 900;
  background: #0f766e;
}

body.stock-full-context .stock-full-activity-item.is-exit > span {
  background: #b45309;
}

body.stock-full-context .stock-full-activity-item p,
body.stock-full-context .stock-full-activity-item small {
  margin: 0;
}

body.stock-full-context .stock-full-activity-item p {
  color: #0b2134;
  font-weight: 900;
}

body.stock-full-context .stock-full-activity-item small,
body.stock-full-context .stock-full-empty {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
}

@media (max-width: 980px) {
  body.stock-full-context .stock-full-metric-grid,
  body.stock-full-context .stock-full-dashboard-grid {
    grid-template-columns: 1fr;
  }

  body.stock-full-context .stock-full-dashboard-hero,
  body.stock-full-context .stock-full-panel-heading {
    display: grid;
  }

  body.stock-full-context .stock-full-dashboard-actions,
  body.stock-full-context .stock-full-search {
    width: 100%;
    min-width: 0;
  }

  body.stock-full-context .stock-full-monitor-row {
    grid-template-columns: minmax(160px, 1.4fr) 0.7fr 0.7fr 0.7fr 0.9fr;
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  body.stock-full-context .stock-full-monitor-table {
    overflow-x: auto;
  }

  body.stock-full-context .stock-full-monitor-row {
    min-width: 620px;
  }

  body.stock-full-context .stock-full-metric-card {
    min-height: auto;
  }
}
/* Stock Full mobile premium dashboard */
.stock-full-mobile-nav {
  display: none;
}

body.stock-full-context {
  background: #020916;
}

body.stock-full-context .route-panel[data-route="almoxarifado"] {
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 14px 96px;
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.24), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(20, 184, 166, 0.14), transparent 28%),
    linear-gradient(180deg, #020916 0%, #06111f 48%, #020916 100%);
}

body.stock-full-context .route-panel[data-route="almoxarifado"] > .stock-ia-hero,
body.stock-full-context .route-panel[data-route="almoxarifado"] > .almox-environment-header,
body.stock-full-context .route-panel[data-route="almoxarifado"] > .stock-demo-access-panel {
  display: none !important;
}

body.stock-full-context .route-panel[data-route="almoxarifado"] .stock-full-dashboard:not(.is-hidden) {
  display: grid;
  gap: 14px;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 18px 0 22px;
  color: #f8fafc;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.stock-full-context .stock-full-app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 10px 2px 8px;
  background: linear-gradient(180deg, rgba(2, 9, 22, 0.96), rgba(2, 9, 22, 0.72));
  backdrop-filter: blur(18px);
}

body.stock-full-context .stock-full-brand-block strong {
  display: block;
  color: #ffffff;
  font-size: clamp(1.45rem, 7vw, 2.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

body.stock-full-context .stock-full-brand-block strong span {
  color: #2f8cff;
}

body.stock-full-context .stock-full-brand-block small {
  display: block;
  margin-top: 4px;
  color: #a7b2c4;
  font-weight: 700;
}

body.stock-full-context .stock-full-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.stock-full-context .stock-full-icon-button,
body.stock-full-context .stock-full-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  color: #dbeafe;
  background: rgba(15, 30, 51, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.stock-full-context .stock-full-icon-button {
  font-size: 1.55rem;
  cursor: pointer;
}

body.stock-full-context .stock-full-icon-button.has-badge {
  position: relative;
  font-size: 1.1rem;
}

body.stock-full-context .stock-full-icon-button.has-badge::after {
  content: "3";
  position: absolute;
  top: -4px;
  right: -2px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  background: #ef4444;
}

body.stock-full-context .stock-full-avatar {
  color: #7dd3fc;
  font-size: 0.82rem;
  font-weight: 900;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(37, 99, 235, 0.12));
}

body.stock-full-context .stock-full-global-search {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 30, 51, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 32px rgba(0, 0, 0, 0.22);
}

body.stock-full-context .stock-full-global-search span,
body.stock-full-context .stock-full-global-search i {
  color: #93a4ba;
  font-style: normal;
  text-align: center;
}

body.stock-full-context .stock-full-global-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #e5edf8;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
}

body.stock-full-context .stock-full-global-search input::placeholder {
  color: #8090a6;
}

body.stock-full-context .stock-full-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 2px;
  padding: 18px;
  color: #ffffff;
  border: 1px solid rgba(47, 140, 255, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at right top, rgba(47, 140, 255, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(6, 18, 34, 0.96), rgba(7, 25, 44, 0.9));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.26);
}

body.stock-full-context .stock-full-dashboard-hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 8px;
  padding: 5px 9px;
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
}

body.stock-full-context .stock-full-dashboard-hero h3,
body.stock-full-context .stock-full-dashboard-hero span {
  margin: 0;
}

body.stock-full-context .stock-full-dashboard-hero h3 {
  max-width: 680px;
  color: #fff;
  font-size: clamp(1.4rem, 6vw, 2.5rem);
  line-height: 1.02;
}

body.stock-full-context .stock-full-dashboard-hero span {
  display: block;
  max-width: 720px;
  margin-top: 8px;
  color: #a7b2c4;
  line-height: 1.45;
}

body.stock-full-context .stock-full-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

body.stock-full-context .stock-full-dashboard-actions .mini-button {
  min-height: 38px;
  border-color: rgba(148, 163, 184, 0.18);
  color: #dbeafe;
  background: rgba(15, 30, 51, 0.72);
}

body.stock-full-context .stock-full-dashboard-actions .mini-button.primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

body.stock-full-context .stock-full-metric-grid,
body.stock-full-context .stock-full-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.stock-full-context .stock-full-metric-card,
body.stock-full-context .stock-full-secondary-card,
body.stock-full-context .stock-full-monitor-panel,
body.stock-full-context .stock-full-side-panel,
body.stock-full-context .stock-full-chart-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(12, 28, 49, 0.94), rgba(7, 19, 34, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 18px 34px rgba(0, 0, 0, 0.22);
}

body.stock-full-context .stock-full-metric-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 146px;
  overflow: hidden;
  padding: 16px;
}

body.stock-full-context .stock-full-metric-card::after {
  content: "";
  align-self: end;
  width: 100%;
  height: 28px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, rgba(47, 140, 255, 0.65), transparent);
  clip-path: polygon(0 72%, 8% 62%, 17% 75%, 27% 48%, 39% 56%, 52% 22%, 64% 38%, 76% 16%, 89% 34%, 100% 8%, 100% 100%, 0 100%);
  opacity: 0.8;
}

body.stock-full-context .stock-full-metric-card.metric-2::after { background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.75), transparent); }
body.stock-full-context .stock-full-metric-card.metric-3::after { background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.75), transparent); }
body.stock-full-context .stock-full-metric-card.metric-1::after { background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.75), transparent); }

body.stock-full-context .stock-full-metric-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #60a5fa;
  font-style: normal;
  font-weight: 900;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.16);
}

body.stock-full-context .stock-full-metric-card.metric-1 .stock-full-metric-icon { color: #a78bfa; background: rgba(124, 58, 237, 0.18); }
body.stock-full-context .stock-full-metric-card.metric-2 .stock-full-metric-icon { color: #4ade80; background: rgba(22, 163, 74, 0.18); }
body.stock-full-context .stock-full-metric-card.metric-3 .stock-full-metric-icon { color: #fb923c; background: rgba(234, 88, 12, 0.18); }

body.stock-full-context .stock-full-metric-card span,
body.stock-full-context .stock-full-metric-card small {
  color: #a7b2c4;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: none;
}

body.stock-full-context .stock-full-metric-card strong {
  color: #f8fafc;
  font-size: clamp(1.45rem, 6vw, 2rem);
  line-height: 1;
}

body.stock-full-context .stock-full-secondary-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 86px;
  padding: 13px;
}

body.stock-full-context .stock-full-secondary-card > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #93c5fd;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.14);
}

body.stock-full-context .stock-full-secondary-card.is-warning > span { color: #fbbf24; background: rgba(245, 158, 11, 0.14); }
body.stock-full-context .stock-full-secondary-card.is-danger > span { color: #f87171; background: rgba(239, 68, 68, 0.14); }
body.stock-full-context .stock-full-secondary-card.is-info > span { color: #2dd4bf; background: rgba(20, 184, 166, 0.14); }

body.stock-full-context .stock-full-secondary-card strong,
body.stock-full-context .stock-full-secondary-card small,
body.stock-full-context .stock-full-secondary-card em {
  display: block;
  font-style: normal;
}

body.stock-full-context .stock-full-secondary-card strong { color: #fff; font-size: 1.45rem; line-height: 1; }
body.stock-full-context .stock-full-secondary-card small { color: #dbeafe; font-weight: 800; }
body.stock-full-context .stock-full-secondary-card em { margin-top: 2px; color: #8ea0b7; font-size: 0.78rem; }

body.stock-full-context .stock-full-chart-grid,
body.stock-full-context .stock-full-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

body.stock-full-context .stock-full-chart-card,
body.stock-full-context .stock-full-monitor-panel,
body.stock-full-context .stock-full-side-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

body.stock-full-context .stock-full-chart-card header,
body.stock-full-context .stock-full-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.stock-full-context .stock-full-chart-card h4,
body.stock-full-context .stock-full-panel-heading h4,
body.stock-full-context .stock-full-panel-heading p {
  margin: 0;
}

body.stock-full-context .stock-full-chart-card h4,
body.stock-full-context .stock-full-panel-heading h4 {
  color: #f8fafc;
  font-size: 1rem;
}

body.stock-full-context .stock-full-chart-card header span,
body.stock-full-context .stock-full-panel-heading p,
body.stock-full-context .stock-full-empty {
  color: #8ea0b7;
  font-size: 0.82rem;
}

body.stock-full-context .stock-full-link-button {
  border: 0;
  color: #60a5fa;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

body.stock-full-context .stock-full-category-content {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

body.stock-full-context .stock-full-donut {
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#2f8cff 0 38%, #22c55e 38% 56%, #f59e0b 56% 70%, #8b5cf6 70% 82%, #ef4444 82% 92%, #94a3b8 92% 100%);
  position: relative;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
}

body.stock-full-context .stock-full-donut::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: #071322;
}

body.stock-full-context .stock-full-category-content ul,
body.stock-full-context .stock-full-ai-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.stock-full-context .stock-full-category-content li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #dbeafe;
  font-size: 0.86rem;
}

body.stock-full-context .stock-full-category-content li i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}

body.stock-full-context .stock-full-line-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 10px;
  min-height: 190px;
  padding: 16px 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(47, 140, 255, 0.05), transparent);
}

body.stock-full-context .stock-full-line-chart span {
  display: grid;
  align-items: end;
  gap: 8px;
  height: 100%;
  color: #8ea0b7;
  font-size: 0.76rem;
  text-align: center;
}

body.stock-full-context .stock-full-line-chart span::before {
  content: "";
  display: block;
  height: var(--h);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #38bdf8, #2563eb);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.32);
}

body.stock-full-context .stock-full-monitor-table,
body.stock-full-context .stock-full-urgent-list,
body.stock-full-context .stock-full-activity-list {
  display: grid;
  gap: 10px;
}

body.stock-full-context .stock-full-monitor-row.is-header {
  display: none;
}

body.stock-full-context .stock-full-monitor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 12px;
  color: #f8fafc;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(4, 14, 27, 0.64);
}

body.stock-full-context .stock-full-monitor-row > span:nth-child(1) {
  grid-row: span 4;
}

body.stock-full-context .stock-full-monitor-row > span:nth-child(2)::before { content: "Estoque "; color: #8ea0b7; }
body.stock-full-context .stock-full-monitor-row > span:nth-child(3)::before { content: "Min. "; color: #8ea0b7; }
body.stock-full-context .stock-full-monitor-row > span:nth-child(4)::before { content: "Giro "; color: #8ea0b7; }

body.stock-full-context .stock-full-monitor-row strong,
body.stock-full-context .stock-full-monitor-row small {
  display: block;
}

body.stock-full-context .stock-full-monitor-row strong {
  color: #fff;
}

body.stock-full-context .stock-full-monitor-row small,
body.stock-full-context .stock-full-monitor-row > span:not(:first-child) {
  color: #9fb0c6;
  font-size: 0.78rem;
}

body.stock-full-context .stock-full-monitor-row > span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #f8fafc;
  font-weight: 900;
}

body.stock-full-context .stock-full-monitor-row i,
body.stock-full-context .stock-full-activity-item > span {
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #64748b;
}

body.stock-full-context .stock-full-monitor-row i.status-danger { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12); }
body.stock-full-context .stock-full-monitor-row i.status-warning { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12); }
body.stock-full-context .stock-full-monitor-row i.status-ok { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12); }

body.stock-full-context .stock-full-urgent-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.08);
}

body.stock-full-context .stock-full-urgent-item strong,
body.stock-full-context .stock-full-urgent-item span {
  display: block;
}

body.stock-full-context .stock-full-urgent-item strong { color: #fff; }
body.stock-full-context .stock-full-urgent-item span { margin-top: 4px; color: #fbbf24; font-size: 0.82rem; }
body.stock-full-context .stock-full-urgent-item .mini-button { color: #fff; border-color: rgba(245, 158, 11, 0.28); background: rgba(245, 158, 11, 0.14); }

body.stock-full-context .stock-full-activity-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

body.stock-full-context .stock-full-activity-item:last-child { border-bottom: 0; }
body.stock-full-context .stock-full-activity-item > span {
  grid-row: span 2;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #fff;
  font-weight: 900;
  background: #22c55e;
}
body.stock-full-context .stock-full-activity-item.is-exit > span { background: #ef4444; }
body.stock-full-context .stock-full-activity-item p,
body.stock-full-context .stock-full-activity-item small,
body.stock-full-context .stock-full-activity-item em { margin: 0; }
body.stock-full-context .stock-full-activity-item p { color: #fff; font-weight: 850; }
body.stock-full-context .stock-full-activity-item em { color: #86efac; font-style: normal; font-weight: 900; }
body.stock-full-context .stock-full-activity-item.is-exit em { color: #f87171; }
body.stock-full-context .stock-full-activity-item small { grid-column: 2 / -1; color: #8ea0b7; font-size: 0.78rem; }

body.stock-full-context .stock-full-ai-panel {
  border-color: rgba(47, 140, 255, 0.22);
  background:
    radial-gradient(circle at left bottom, rgba(47, 140, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(12, 28, 49, 0.96), rgba(7, 19, 34, 0.96));
}

body.stock-full-context .stock-full-ai-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #dbeafe;
  font-size: 0.9rem;
}

body.stock-full-context .stock-full-ai-list span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.16);
}

body.stock-full-context .stock-full-mobile-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  top: calc(100dvh - 76px - max(0px, env(safe-area-inset-bottom))) !important;
  bottom: auto;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(3, 13, 27, 0.94);
  box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

body.stock-full-context .stock-full-mobile-nav button {
  display: grid;
  gap: 3px;
  place-items: center;
  min-width: 0;
  min-height: 48px;
  border: 0;
  color: #8ea0b7;
  background: transparent;
  font-size: clamp(0.58rem, 2.6vw, 0.76rem);
  cursor: pointer;
}

body.stock-full-context .stock-full-mobile-nav button span {
  font-size: 1rem;
}

body.stock-full-context .stock-full-mobile-nav button.is-active,
body.stock-full-context .stock-full-mobile-nav button:hover {
  color: #2f8cff;
}

body.stock-full-context .stock-full-mobile-nav .stock-full-new-action span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: -26px;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f8cff, #2563eb);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.42);
}

@media (min-width: 760px) {
  body.stock-full-context .route-panel[data-route="almoxarifado"] {
    padding-inline: 24px;
  }

  body.stock-full-context .stock-full-dashboard-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  body.stock-full-context .stock-full-chart-grid,
  body.stock-full-context .stock-full-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.stock-full-context .stock-full-side-stack {
    display: grid;
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  body.stock-full-context .stock-full-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.stock-full-context .stock-full-secondary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.stock-full-context .stock-full-dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.98fr);
  }

  body.stock-full-context .stock-full-mobile-nav {
    left: 50%;
    right: auto;
    width: min(720px, calc(100% - 40px));
    transform: translateX(-50%);
  }
}

@media (max-width: 420px) {
  body.stock-full-context .route-panel[data-route="almoxarifado"] {
    padding-inline: 10px;
  }

  body.stock-full-context .stock-full-category-content {
    grid-template-columns: 1fr;
  }

  body.stock-full-context .stock-full-donut {
    width: 118px;
    justify-self: center;
  }

  body.stock-full-context .stock-full-mobile-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    left: 6px;
    right: 6px;
    padding: 7px 4px;
  }
}
/* Stock Full final visual polish */
body.stock-full-context .stock-full-app-header { order: 1; }
body.stock-full-context .stock-full-global-search { order: 2; }
body.stock-full-context #stockFullMetricCards { order: 3; }
body.stock-full-context .stock-full-secondary-grid { order: 4; }
body.stock-full-context .stock-full-chart-grid { order: 5; }
body.stock-full-context .stock-full-dashboard-grid { order: 6; }
body.stock-full-context .stock-full-dashboard-hero { order: 7; }

body.stock-full-context .route-panel[data-route="almoxarifado"] .stock-full-dashboard:not(.is-hidden) {
  padding-bottom: 108px;
}

body.stock-full-context .stock-full-urgent-item {
  border-color: rgba(248, 113, 113, 0.42);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.42), rgba(15, 23, 42, 0.88));
}

body.stock-full-context .stock-full-urgent-item span {
  color: #fecaca;
  font-weight: 900;
}

body.stock-full-context .stock-full-ai-panel li {
  padding: 9px 10px;
  border: 1px solid rgba(96, 165, 250, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.48);
}

body.stock-full-context .stock-full-mobile-nav .stock-full-new-action span {
  width: 54px;
  height: 54px;
  margin-top: -31px;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

@media (max-width: 700px) {
  body.stock-full-context .route-panel[data-route="almoxarifado"] .stock-full-dashboard:not(.is-hidden) {
    gap: 10px;
    padding-bottom: 112px;
  }

  body.stock-full-context .stock-full-global-search {
    min-height: 58px;
  }

  body.stock-full-context .stock-full-metric-grid {
    gap: 10px;
  }

  body.stock-full-context .stock-full-metric-card {
    min-height: 0;
    height: 126px;
    gap: 5px;
    padding: 11px;
    align-content: start;
  }

  body.stock-full-context .stock-full-metric-card::after {
    height: 14px;
  }

  body.stock-full-context .stock-full-metric-icon {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }

  body.stock-full-context .stock-full-metric-card span,
  body.stock-full-context .stock-full-metric-card small {
    font-size: 0.72rem;
    line-height: 1.15;
  }

  body.stock-full-context .stock-full-metric-card strong {
    font-size: clamp(1.05rem, 5.2vw, 1.35rem);
    line-height: 1.05;
  }

  body.stock-full-context .stock-full-dashboard-hero {
    padding: 14px;
  }

  body.stock-full-context .stock-full-dashboard-hero h3 {
    font-size: 1.35rem;
    line-height: 1.08;
  }
}


body.stock-full-context .stock-full-ai-panel,
body.stock-full-context .stock-full-dashboard-hero,
body.stock-full-context .stock-full-side-panel:last-child {
  scroll-margin-bottom: 104px;
}
@media (min-width: 900px) {
  body.stock-full-context .route-panel[data-route="almoxarifado"] .stock-full-dashboard:not(.is-hidden) {
    padding-bottom: 24px;
  }

  body.stock-full-context .stock-full-mobile-nav {
    display: none;
  }
}

/* Stock Full critical finish: visible management actions */
body.stock-full-context .stock-full-command-strip {
  order: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 12px;
  background: rgba(7, 19, 34, 0.92);
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.22);
}

body.stock-full-context .stock-full-command-strip .mini-button {
  min-height: 46px;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 0.82rem;
  white-space: normal;
}

body.stock-full-context #stockFullMetricCards { order: 4; }
body.stock-full-context .stock-full-secondary-grid { order: 5; }
body.stock-full-context .stock-full-chart-grid { order: 6; }
body.stock-full-context .stock-full-dashboard-grid { order: 7; }
body.stock-full-context .stock-full-dashboard-hero { order: 8; }

body.stock-full-context .almox-manager-panel,
body.stock-full-context .almox-dashboard-panel,
body.stock-full-context .almox-primary-flow,
body.stock-full-context .almox-manager-report {
  border-color: rgba(96, 165, 250, 0.16);
  background: linear-gradient(180deg, rgba(8, 22, 39, 0.96), rgba(5, 15, 29, 0.96));
  color: #e5edf8;
}

body.stock-full-context .almox-manager-panel h3,
body.stock-full-context .almox-dashboard-panel h3,
body.stock-full-context .almox-primary-flow h3,
body.stock-full-context .almox-manager-report h3 {
  color: #f8fafc;
}

body.stock-full-context .almox-manager-panel .auth-note,
body.stock-full-context .almox-dashboard-panel .auth-note,
body.stock-full-context .almox-primary-flow .auth-note {
  color: #a7b2c4;
}

@media (max-width: 700px) {
  body.stock-full-context .stock-full-command-strip {
    grid-template-columns: 1fr;
    position: relative;
    z-index: 2;
  }

  body.stock-full-context .stock-full-command-strip .mini-button {
    min-height: 50px;
    font-size: 0.9rem;
  }
}


/* Stock Full SaaS aberto 1 */
body.stock-full-context.stock-full-auth-required .stock-full-dashboard,
body.stock-full-context.stock-full-auth-required .almox-environment-header,
body.stock-full-context.stock-full-auth-required .almox-manager-panel,
body.stock-full-context.stock-full-auth-required .almox-dashboard-panel,
body.stock-full-context.stock-full-auth-required .almox-priority-card,
body.stock-full-context.stock-full-auth-required #almoxItemsSection,
body.stock-full-context.stock-full-auth-required #almoxHistorySection {
  display: none !important;
}

body.stock-full-context .stock-full-login-panel {
  max-width: 980px;
  margin: 18px auto;
  padding: 0;
  border: 1px solid rgba(59, 130, 246, 0.24);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.2), transparent 34%), #071321;
  color: #f8fafc;
}

body.stock-full-context .stock-full-login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 24px;
  padding: 24px;
  align-items: center;
}

body.stock-full-context .stock-full-login-card h3,
body.stock-full-context .stock-full-admin-panel h4 {
  margin: 0;
  color: #f8fafc;
}

body.stock-full-context .stock-full-login-card span,
body.stock-full-context .stock-full-login-card .auth-note,
body.stock-full-context .stock-full-admin-panel p {
  color: #a7b2c4;
}

body.stock-full-context .stock-full-login-form {
  display: grid;
  gap: 12px;
}

body.stock-full-context .stock-full-login-form label {
  display: grid;
  gap: 6px;
  color: #cbd5e1;
  font-weight: 800;
}

body.stock-full-context .stock-full-login-form input,
body.stock-full-context .stock-full-import-preview input {
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
}

body.stock-full-context .stock-full-brand-block em {
  display: block;
  margin-top: 2px;
  color: #a7b2c4;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

body.stock-full-context .stock-full-admin-panel {
  order: 4;
  padding: 14px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 14px;
  background: rgba(7, 19, 34, 0.92);
  color: #f8fafc;
}

body.stock-full-context .stock-full-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

body.stock-full-context .stock-full-admin-card {
  min-height: 76px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.74);
}

body.stock-full-context .stock-full-admin-card span {
  display: block;
  color: #8ea0b7;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

body.stock-full-context .stock-full-admin-card strong {
  display: block;
  margin-top: 6px;
  color: #f8fafc;
  font-size: 1rem;
}

body.stock-full-context .stock-full-admin-card small {
  display: block;
  color: #38bdf8;
  margin-top: 4px;
}

body.stock-full-context .stock-full-import-preview {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

body.stock-full-context .stock-full-import-rows {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

body.stock-full-context .stock-full-import-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.8fr 0.8fr 0.6fr;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  color: #dbeafe;
  font-size: 0.82rem;
}

body.stock-full-context [data-stock-full-permission][disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

@media (max-width: 760px) {
  body.stock-full-context .stock-full-login-card,
  body.stock-full-context .stock-full-admin-grid,
  body.stock-full-context .stock-full-import-row {
    grid-template-columns: 1fr;
  }

  body.stock-full-context .stock-full-login-card {
    padding: 18px;
  }
}
