:root {
  --brand-lime: #7cff4d;
  --brand-green: #38b000;
  --brand-deep: #0a6b2e;
  --brand-deep-hover: #075523;
  --brand-dark: #0f1f17;
  --brand-black: #020604;

  --brand-lime-soft: #eaffdf;
  --green-soft: #edf8f0;

  --ink: #17221b;
  --muted: #68766d;
  --line: #dce5df;
  --line-strong: #c2d0c7;

  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-soft: #f8faf8;

  --danger: #a73333;
  --warning: #856517;
  --success: #176537;
  --info: #245b84;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow: 0 8px 24px rgba(15, 31, 23, 0.07);
  --shadow-hover: 0 14px 34px rgba(15, 31, 23, 0.11);
}


/* =========================================================
   BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand-lime);
  outline-offset: 2px;
}


/* =========================================================
   ESTRUTURA
   ========================================================= */

.header-inner,
.nav-inner,
.container {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
}

.container {
  padding-top: 32px;
  padding-bottom: 56px;
}


/* =========================================================
   CABEÇALHO SAFRAOPS
   ========================================================= */

.site-header {
  color: #fff;
  background:
    linear-gradient(
      110deg,
      #020604 0%,
      #06130d 48%,
      #0b2115 100%
    );
  border-bottom: 1px solid rgba(124, 255, 77, 0.12);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
}

.brand:hover {
  color: #fff;
  text-decoration: none;
}

.brand-symbol {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
}

.brand-symbol img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.brand-name span {
  color: var(--brand-lime);
}

.brand-tagline {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}


/* =========================================================
   USUÁRIO
   ========================================================= */

.user-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-area form {
  margin: 0;
}

.user-identification {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}

.user-label {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.47);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.user-identification strong {
  max-width: 220px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* =========================================================
   NAVEGAÇÃO PRINCIPAL
   ========================================================= */

.main-nav {
  background: #0a1911;
  border-bottom: 1px solid rgba(124, 255, 77, 0.1);
  overflow-x: auto;
}

.nav-inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.nav-inner a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 17px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.nav-inner a:hover {
  color: #fff;
  background: rgba(124, 255, 77, 0.06);
  text-decoration: none;
}

.nav-inner a.active {
  color: var(--brand-lime);
}

.nav-inner a.active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand-lime);
}

.mobile-nav {
  display: none;
}


/* =========================================================
   TÍTULOS
   ========================================================= */

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.page-heading h1,
.auth-card h1 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  margin: 0 0 13px;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 650;
}

.muted,
.row-meta {
  color: var(--muted);
  font-size: 14px;
}


/* =========================================================
   BOTÕES
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand-deep);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.button:hover {
  color: #fff;
  background: var(--brand-deep-hover);
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(10, 107, 46, 0.18);
}

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

.button-secondary {
  background: var(--brand-lime-soft);
  color: var(--brand-dark);
}

.button-secondary:hover {
  background: #dfffcf;
  color: var(--brand-dark);
}

.button-danger,
.button-danger:hover {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.button-danger-secondary {
  color: var(--danger);
  background: transparent;
  border-color: #d9aaaa;
}

.button-danger-secondary:hover {
  color: #842525;
  background: #fbecec;
  border-color: var(--danger);
}

.danger-zone {
  max-width: 720px;
  border-color: #e1bcbc;
}

.deletion-object-name {
  padding: 14px;
  background: #f8f4f0;
  border-radius: var(--radius-sm);
}

.button-quiet {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-quiet:hover {
  color: var(--brand-lime);
  background: rgba(124, 255, 77, 0.12);
  border-color: rgba(124, 255, 77, 0.3);
  box-shadow: none;
}


/* =========================================================
   PAINÉIS E CARDS
   ========================================================= */

.panel,
.detail-card,
.form-card,
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 21px;
}

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

.panel-heading h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 650;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

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

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 19px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.78;
  background:
    linear-gradient(
      90deg,
      var(--brand-deep),
      var(--brand-lime)
    );
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: #b7cdbf;
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
}

.quick-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 21px;
}

.quick-actions span {
  margin-right: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.quick-actions a,
.context-links a {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 7px 12px;
  background: #eef8f1;
  border: 1px solid #d9e9de;
  border-radius: var(--radius-sm);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 650;
}

.quick-actions a:hover,
.context-links a:hover {
  background: var(--brand-lime-soft);
  border-color: #bfdda8;
  text-decoration: none;
}

.agenda-preview {
  margin-bottom: 20px;
}

.dashboard-awaiting {
  margin-top: 20px;
}

.portfolio-summary {
  margin-top: 20px;
  padding: 18px 21px;
  background:
    linear-gradient(
      135deg,
      #f8fbf9 0%,
      #f0f8f2 100%
    );
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.portfolio-summary h2 {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.portfolio-summary > div {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.portfolio-summary a,
.portfolio-summary span {
  color: var(--ink);
}

.portfolio-summary strong {
  margin-right: 4px;
  color: var(--brand-deep);
  font-size: 19px;
}


/* =========================================================
   GRIDS
   ========================================================= */

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}


/* =========================================================
   LISTAS
   ========================================================= */

.data-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.data-list li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.data-list li:first-child {
  border-top: 0;
}

.data-list a {
  display: inline-block;
  padding: 5px 0;
  font-weight: 650;
}


/* =========================================================
   TABELAS
   ========================================================= */

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

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

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

th {
  background: #f1f6f2;
  color: #4d5c53;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: #fbfdfb;
}

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

.embedded-table {
  box-shadow: none;
}

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

.table-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #edf7f0;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
}

.table-actions a:hover {
  background: var(--brand-lime-soft);
  text-decoration: none;
}

.pagination-empty {
  padding: 20px 0;
  color: var(--muted);
  text-align: center;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf0ee;
  color: #47534c;
  font-size: 11px;
  font-weight: 700;
}

.badge-draft {
  background: #edf0ee;
  color: #47534c;
}

.badge-sent {
  background: #e2effb;
  color: #245b84;
}

.badge-completed {
  background: #ddf3e5;
  color: #176537;
}

.badge-cancelled {
  background: #edf0ee;
  color: #47534c;
}

.badge-planned {
  background: #fff1cc;
  color: #785900;
}

.badge-overdue {
  background: #f7e2e2;
  color: #8a2828;
}

.badge-today {
  background: #fff0ce;
  color: #865c00;
}

.badge-upcoming {
  background: #e2effb;
  color: #245b84;
}


/* =========================================================
   FILTROS E FORMULÁRIOS
   ========================================================= */

.filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filters label,
.form-stack label {
  display: block;
  margin-bottom: 6px;
  color: #3d4a42;
  font-size: 13px;
  font-weight: 600;
}

.filters select,
.filters input,
.form-stack input,
.form-stack select,
.form-stack textarea {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #bdc9c1;
  border-radius: var(--radius-sm);
  font: inherit;
}

.filters select:focus,
.filters input:focus,
.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 3px rgba(56, 176, 0, 0.1);
}

.form-stack textarea {
  min-height: 110px;
  resize: vertical;
}

.form-stack input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.form-stack > div {
  margin-bottom: 16px;
}

.form-card {
  width: 100%;
  max-width: 820px;
  padding: 25px;
}

.form-card h1 {
  margin-top: 0;
}

.form-errors,
.errorlist {
  color: var(--danger);
  font-weight: 600;
}

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

.filter-grow {
  flex: 2 !important;
  min-width: 220px !important;
}

.agenda-filters > div {
  min-width: 145px;
  flex: 1;
}

.season-filters > div {
  min-width: 135px;
  flex: 1;
}

.item-form {
  margin-bottom: 12px;
  padding: 15px;
  background: #fcfdfc;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.item-form .delete-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.wizard-progress {
  margin-bottom: 22px;
  overflow-x: auto;
}

.wizard-progress ol {
  display: flex;
  min-width: 720px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-progress li {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 7px;
  padding: 11px 8px;
  color: var(--muted);
  border-bottom: 3px solid var(--line);
  font-size: 13px;
  font-weight: 650;
}

.wizard-progress li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  background: var(--line);
  border-radius: 50%;
}

.wizard-progress li.active,
.wizard-progress li.complete {
  color: var(--brand-dark);
  border-color: var(--brand-lime);
}

.wizard-progress li.active span,
.wizard-progress li.complete span {
  background: var(--brand-lime);
}

.routine-wizard-card {
  max-width: 980px;
}

.routine-wizard-card > h2 {
  margin-top: 0;
}

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

.routine-field-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(240px, 1.2fr);
  align-items: end;
  gap: 18px;
  padding: 16px;
  background: #fcfdfc;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.routine-field-choice {
  display: flex !important;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  cursor: pointer;
}

.routine-field-choice input {
  width: 20px;
  min-height: 20px;
}

.routine-field-choice span,
.routine-field-choice small {
  display: block;
}

.routine-inline-create {
  margin-top: 18px;
  padding: 14px;
  background: #f8fbf8;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.routine-inline-create > summary {
  width: fit-content;
  cursor: pointer;
  list-style: none;
}

.routine-inline-create > summary::-webkit-details-marker {
  display: none;
}

.routine-inline-form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.routine-inline-form > div:last-of-type {
  margin-bottom: 16px;
}

.routine-inline-empty {
  margin-top: 16px;
}

.routine-season-create {
  grid-column: 1 / -1;
  margin-top: 0;
}

.routine-item-row {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 1.3fr auto;
  gap: 12px;
  align-items: end;
}

.routine-date-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

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

.routine-review-grid > section {
  padding: 17px;
  background: #fcfdfc;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.routine-review-grid h3 {
  margin: 0 0 13px;
  color: var(--brand-dark);
}

.routine-event-total {
  margin: 20px 0;
  padding: 16px;
  background: rgba(56, 176, 0, 0.09);
  border-left: 4px solid var(--brand-lime);
  border-radius: 8px;
}


/* =========================================================
   DETALHES
   ========================================================= */

.detail-card {
  margin-bottom: 20px;
  padding: 23px;
}

.detail-card h2 {
  margin: 0 0 15px;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 650;
}

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

.detail-list div {
  min-width: 0;
}

.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.detail-list dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}


/* =========================================================
   MENSAGENS
   ========================================================= */

.message {
  margin-bottom: 18px;
  padding: 12px 15px;
  background: #eaf7ed;
  color: var(--brand-deep);
  border: 1px solid #cbe1d0;
  border-radius: var(--radius-sm);
}

.message.error {
  background: #f8e6e6;
  color: var(--danger);
  border-color: #edc9c9;
}

.message.warning {
  background: #fff1cc;
  color: #785900;
  border-color: #eddca8;
}


/* =========================================================
   ESTADOS VAZIOS
   ========================================================= */

.empty-state {
  padding: 50px 20px;
  background: var(--surface);
  border: 1px dashed #b8c6bd;
  border-radius: var(--radius);
  text-align: center;
}

.inline-empty {
  padding: 14px 0;
}

.inline-empty p {
  color: var(--muted);
}

.pending-value {
  color: #856517;
  font-weight: 600;
}


/* =========================================================
   LOGIN
   ========================================================= */

.auth-card {
  max-width: 420px;
  margin: 7vh auto;
  padding: 31px;
}

.auth-card h1 {
  margin-bottom: 5px;
}


/* =========================================================
   AÇÕES
   ========================================================= */

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

.instructions {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}


/* =========================================================
   AGENDA
   ========================================================= */

.period-shortcuts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.period-shortcuts a {
  padding: 8px 13px;
  background: #fff;
  color: #435047;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.period-shortcuts a:hover {
  background: #f5faf6;
  border-color: #b5ccb9;
  text-decoration: none;
}

.period-shortcuts a.active {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}


/* =========================================================
   HIERARQUIA
   ========================================================= */

.summary-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  font-weight: 600;
}

.farm-hierarchy {
  margin-bottom: 18px;
}

.context-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}


/* =========================================================
   LINKS COMPARTILHADOS
   ========================================================= */

.generated-link {
  margin-top: 16px;
  padding: 14px;
  background: #eff8f1;
  border: 1px solid #d6eadb;
  border-radius: 9px;
}

.generated-link label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.copy-row {
  display: flex;
  gap: 8px;
}

.copy-row input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #afc6b7;
  border-radius: 8px;
  font: inherit;
}

.share-card > form .button,
.share-list form .button {
  width: 100%;
}

.share-list form {
  margin-top: 8px;
}

.share-card h3 {
  margin: 22px 0 6px;
}


/* =========================================================
   PÁGINA PÚBLICA
   ========================================================= */

.public-page {
  min-height: 100vh;
  background: #edf3ef;
}

.public-header {
  padding: 17px 20px;
  background:
    linear-gradient(
      110deg,
      #020604 0%,
      #07170f 100%
    );
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.public-header > div,
.public-container {
  width: min(100% - 28px, 680px);
  margin: auto;
}

.public-container {
  padding: 28px 0 48px;
}

.public-container > h1 {
  margin: 3px 0 20px;
  color: var(--brand-dark);
  font-size: 30px;
  line-height: 1.18;
}

.public-eyebrow {
  margin: 0;
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.public-card {
  margin-bottom: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.public-card h2 {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 18px;
}

.public-summary {
  display: grid;
  gap: 5px;
  font-size: 16px;
}

.public-summary strong {
  color: var(--brand-deep);
  font-size: 21px;
}

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

.public-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.public-details dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 650;
}

.public-products {
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-products li {
  display: grid;
  gap: 3px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.public-products li:first-child {
  padding-top: 0;
  border-top: 0;
}

.public-products li:last-child {
  padding-bottom: 0;
}

.public-form-card > p {
  color: var(--muted);
}

.public-submit {
  width: 100%;
  font-size: 15px;
}

.public-message {
  padding: 38px 22px;
  text-align: center;
}

.public-message h1 {
  margin: 8px 0;
}

.success-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--brand-lime-soft);
  color: var(--brand-deep);
  border-radius: 50%;
  font-size: 32px;
  font-weight: 800;
}

.public-card-eyebrow {
  margin: 0 0 4px;
  color: var(--brand-deep);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.public-status-card > h2 {
  margin-bottom: 6px;
}

.public-status-date,
.public-status-message {
  margin: 0;
  color: var(--muted);
}

.public-status-cancelled {
  color: var(--danger);
}

.public-feedback {
  margin-bottom: 14px;
  padding: 13px 15px;
  color: var(--brand-dark);
  background: var(--brand-lime-soft);
  border: 1px solid #bfdda8;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.public-confirmation {
  margin-top: 16px;
}

.public-confirmation > summary {
  list-style: none;
}

.public-confirmation > summary::-webkit-details-marker {
  display: none;
}

.public-confirmation[open] > .public-confirmation-trigger {
  display: none;
}

.public-confirmation-trigger {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  cursor: pointer;
}

.public-confirmation-form {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.public-confirmation-form h3 {
  margin: 0 0 16px;
  color: var(--brand-dark);
  font-size: 18px;
}

.public-confirmation-form input,
.public-confirmation-form textarea {
  min-height: 48px;
  font-size: 16px;
}

.public-confirmation-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 10px;
}

.public-confirmation-actions .button {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

.public-confirmed-state {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 14px;
}

.public-confirmed-state .success-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  font-size: 24px;
}

.public-confirmed-state > div:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.public-confirmed-state span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .public-confirmation-actions {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   RESPONSIVO - TABLET
   ========================================================= */

@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   RESPONSIVO - MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .header-inner,
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 68px;
    gap: 10px;
  }

  .brand-symbol {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 12px;
  }

  .brand-symbol img {
    width: 46px;
    height: 46px;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-tagline {
    font-size: 9px;
    margin-top: 4px;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    margin-left: auto;
  }

  .mobile-nav summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    min-height: 44px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary::before {
    content: "☰";
    margin-right: 7px;
    font-size: 18px;
  }

  .mobile-nav[open] summary::before {
    content: "×";
  }

  .mobile-nav nav {
    position: fixed;
    z-index: 100;
    top: 68px;
    left: 0;
    right: 0;
    display: grid;
    padding: 10px 12px 16px;
    background: #08150e;
    border-bottom: 1px solid rgba(124, 255, 77, 0.12);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  }

  .mobile-nav nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-weight: 600;
  }

  .mobile-nav nav a:hover {
    background: rgba(124, 255, 77, 0.08);
    color: var(--brand-lime);
    text-decoration: none;
  }

  .user-area {
    gap: 8px;
  }

  .user-identification {
    display: none;
  }

  .container {
    padding-top: 22px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-heading .button {
    width: 100%;
  }

  .panel-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

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

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

  .stat-card {
    padding: 15px;
  }

  .stat-card strong {
    font-size: 27px;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .detail-card,
  .panel {
    padding: 18px;
  }

  .form-card {
    padding: 18px;
  }

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

  .filters > div,
  .agenda-filters > div {
    width: 100%;
    min-width: 0;
  }

  .filters .button {
    width: 100%;
  }

  .period-shortcuts a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .actions {
    flex-direction: column;
  }

  .actions .button {
    width: 100%;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table tr {
    padding: 11px 14px;
    border-bottom: 8px solid var(--bg);
  }

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

  .responsive-table td {
    position: relative;
    min-height: 32px;
    padding: 6px 0 6px 40%;
    border: 0;
    overflow-wrap: anywhere;
  }

  .responsive-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 37%;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  .responsive-table td.pagination-empty {
    padding: 20px;
  }

  .responsive-table td.pagination-empty::before {
    content: none;
  }

  .responsive-table .table-actions {
    display: flex;
    padding-left: 40%;
  }

  .table-actions a {
    min-height: 44px;
  }

  .item-form {
    padding: 13px;
  }

  .wizard-progress ol {
    min-width: 650px;
  }

  .routine-field-row,
  .routine-item-row,
  .routine-date-row,
  .routine-review-grid {
    grid-template-columns: 1fr;
  }

  .routine-item-row .delete-row,
  .routine-date-row .delete-row {
    min-height: 44px;
  }

  .routine-inline-create > summary,
  .routine-inline-form > .button,
  .routine-inline-empty .button {
    width: 100%;
  }

  .auth-card {
    margin: 4vh auto;
  }
}


/* =========================================================
   RESPONSIVO - CELULAR PEQUENO
   ========================================================= */

@media (max-width: 480px) {
  .header-inner,
  .container {
    width: min(100% - 20px, 1180px);
  }

  .brand {
    gap: 8px;
  }

  .brand-symbol {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-symbol img {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-tagline {
    display: none;
  }

  .mobile-nav summary {
    min-width: 46px;
    padding: 8px;
    font-size: 0;
  }

  .mobile-nav summary::before {
    margin: 0;
    font-size: 22px;
  }

  .button-quiet {
    padding: 7px 10px;
  }

  .page-heading h1,
  .auth-card h1 {
    font-size: 26px;
  }

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

  .stat-card {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .stat-card strong {
    margin: 0;
    font-size: 28px;
  }

  .panel,
  .detail-card,
  .form-card,
  .auth-card {
    padding: 16px;
  }

  .responsive-table td {
    padding: 6px 0;
  }

  .responsive-table td::before {
    position: static;
    display: block;
    width: auto;
    margin-bottom: 1px;
  }

  .responsive-table .table-actions {
    padding-left: 0;
  }

  .compact-mobile-table td {
    padding-top: 5px;
  }

  .period-shortcuts {
    gap: 7px;
  }

  .period-shortcuts a {
    flex: 1 1 calc(50% - 7px);
    justify-content: center;
    text-align: center;
    padding: 7px 9px;
  }

  .period-shortcuts a:last-child {
    flex-basis: 100%;
  }

  .row-meta {
    overflow-wrap: anywhere;
  }

  .item-form .delete-row {
    align-items: flex-start;
    flex-direction: row;
  }

  .message {
    padding: 11px 12px;
  }

  .portfolio-summary > div {
    gap: 10px 18px;
  }
}


/* =========================================================
   RESPONSIVO PÁGINA PÚBLICA
   ========================================================= */

@media (max-width: 600px) {
  .copy-row {
    flex-direction: column;
  }

  .copy-row .button {
    width: 100%;
  }

  .public-container {
    padding-top: 20px;
  }

  .public-container > h1 {
    font-size: 26px;
  }

  .public-card {
    padding: 17px;
  }

  .public-details {
    grid-template-columns: 1fr;
  }

  .public-form-card .form-stack > div {
    margin-bottom: 15px;
  }
}

/* =========================================================
   LOGIN SAFRAOPS
   ========================================================= */

.login-shell {
  min-height: calc(100vh - 166px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

.login-showcase {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(124, 255, 77, 0.15),
      transparent 28%
    ),
    radial-gradient(
      circle at 18% 85%,
      rgba(56, 176, 0, 0.13),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #020604 0%,
      #06160e 48%,
      #0b2b17 100%
    );
}

.login-showcase::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(124, 255, 77, 0.08);
  border-radius: 50%;
}

.login-showcase::after {
  content: "";
  position: absolute;
  right: 40px;
  bottom: -180px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(124, 255, 77, 0.05);
  border-radius: 50%;
}

.login-showcase-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
}

.login-showcase-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--brand-lime);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.login-showcase h1 {
  max-width: 470px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.login-showcase h1 span {
  display: block;
  color: var(--brand-lime);
}

.login-showcase-brand > p {
  max-width: 540px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.7;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.24);
}

.login-benefits {
  display: grid;
  gap: 16px;
  max-width: 500px;
  margin-top: 42px;
}

.login-benefit {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.login-benefit-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  color: #06130d;
  background: var(--brand-lime);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.login-benefit div {
  display: grid;
  gap: 2px;
}

.login-benefit strong {
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

.login-benefit small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.5;
}

.login-showcase-footer {
  margin: 46px 0 0 !important;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 11px !important;
  font-weight: 500;
}


.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f5f9f6 100%
    );
}

.login-card {
  width: 100%;
  max-width: 430px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-card-heading {
  margin-bottom: 30px;
}

.login-card-heading h1 {
  margin-bottom: 8px;
  font-size: 34px;
}

.login-card-heading .muted {
  margin: 0;
  line-height: 1.65;
}

.login-form > div {
  margin-bottom: 19px;
}

.login-form input {
  min-height: 50px;
  padding: 12px 14px;
  border-color: #c8d4cc;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
}

.login-form input:hover {
  border-color: #9fb4a6;
}

.login-form input:focus {
  border-color: var(--brand-green);
  outline: none;
  box-shadow:
    0 0 0 3px rgba(124, 255, 77, 0.18);
}

.login-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  background:
    linear-gradient(
      90deg,
      var(--brand-deep),
      var(--brand-green)
    );
  font-size: 14px;
  font-weight: 700;
}

.login-submit:hover {
  background:
    linear-gradient(
      90deg,
      #075523,
      #2b9500
    );
}

.login-error {
  margin-bottom: 20px !important;
  padding: 11px 13px;
  color: var(--danger);
  background: #fbecec;
  border: 1px solid #efcaca;
  border-radius: 9px;
  font-size: 13px;
}

.login-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  color: #88958d;
  font-size: 11px;
}

.login-security-note span {
  color: var(--brand-green);
  font-size: 9px;
}


/* =========================================================
   LOGIN RESPONSIVO
   ========================================================= */

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

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

  .login-showcase-inner {
    min-height: auto;
    padding: 46px;
  }

  .login-showcase h1 {
    font-size: 44px;
  }

  .login-benefits {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    margin-top: 32px;
  }

  .login-benefit {
    display: block;
  }

  .login-benefit-icon {
    margin-bottom: 9px;
  }

  .login-showcase-footer {
    margin-top: 30px !important;
  }

  .login-form-side {
    padding: 46px;
  }
}


@media (max-width: 600px) {
  .login-shell {
    min-height: auto;
    border-radius: 12px;
  }

  .login-showcase-inner {
    padding: 34px 26px;
  }

  .login-showcase h1 {
    font-size: 38px;
  }

  .login-showcase-brand > p {
    font-size: 14px;
  }

  .login-benefits {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 28px;
  }

  .login-benefit {
    display: flex;
  }

  .login-benefit-icon {
    margin-bottom: 0;
  }

  .login-showcase-footer {
    display: none;
  }

  .login-form-side {
    padding: 34px 24px 40px;
  }

  .login-card-heading h1 {
    font-size: 29px;
  }
}

/* =========================================================
   SAFRAOPS - IMAGEM DO LOGIN
   ========================================================= */

.login-showcase {
  background:
    linear-gradient(
      110deg,
      rgba(1, 8, 5, 0.94) 0%,
      rgba(2, 24, 12, 0.88) 48%,
      rgba(5, 47, 21, 0.76) 100%
    ),
    url("../img/backgrounds/safraops-login.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================================
   FUNDO GERAL DA TELA DE LOGIN
   ========================================================= */

.auth-body {
  min-height: 100vh;

  background:
    linear-gradient(
      120deg,
      rgba(1, 8, 5, 0.74) 0%,
      rgba(3, 25, 13, 0.60) 50%,
      rgba(6, 49, 22, 0.52) 100%
    ),
    url("../img/backgrounds/safraops-login.jpg");

  background-size: cover;
  background-position: 58% center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}


/* Cabeçalho integrado ao fundo */

.auth-body .auth-site-header {
  background: rgba(1, 10, 6, 0.8);
  backdrop-filter: blur(10px);

  border-bottom:
    1px solid rgba(124, 255, 77, 0.12);
}


/* Área que centraliza o login */

.auth-body .auth-container {
  min-height: calc(100vh - 62px);

  display: flex;
  align-items: center;

  padding-top: 28px;
  padding-bottom: 28px;
}


/* Card principal destacado sobre a fotografia */

.auth-body .login-shell {
  width: 100%;

  border:
    1px solid rgba(255, 255, 255, 0.16);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.34);
}

/* =========================================================
   REFINAMENTO VISUAL DO LOGIN SAFRAOPS
   ========================================================= */

/* Card principal mais compacto e sofisticado */
.auth-body .login-shell {
  min-height: 610px;
  max-height: 680px;

  border-radius: 16px;

  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}


/* Painel esquerdo: foto um pouco mais visível */
.auth-body .login-showcase {
  background:
    linear-gradient(
      110deg,
      rgba(1, 10, 6, 0.6) 0%,
      rgba(2, 29, 14, 0.48) 50%,
      rgba(5, 54, 24, 0.34) 100%
    ),
    url("../img/backgrounds/safraops-login.jpg");

  background-size: cover;
  background-position: 58% center;
  background-repeat: no-repeat;
}


/* Painel de autenticação mais integrado à marca */
.auth-body .login-form-side {
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f7faf8 100%
    );
}


/* Conteúdo do painel esquerdo um pouco mais compacto */
.auth-body .login-showcase-inner {
  min-height: 610px;
  padding: 54px 50px;
}


/* Formulário com largura ligeiramente menor */
.auth-body .login-card {
  max-width: 390px;
}


/* Campos um pouco mais premium */
.auth-body .login-form input {
  background: rgba(255, 255, 255, 0.96);

  border-color: #c5d2c9;

  box-shadow:
    inset 0 1px 2px rgba(15, 31, 23, 0.025);
}


/* Botão com destaque um pouco maior */
.auth-body .login-submit {
  min-height: 52px;

  box-shadow:
    0 9px 22px rgba(26, 143, 0, 0.15);
}

/* =========================================================
   SAFRAOPS - REFINAMENTO FINAL DO LOGIN
   ========================================================= */

.auth-body .login-shell {
  min-height: 610px;
  max-height: 680px;

  border-radius: 16px;

  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}


/* Foto interna mais visível */
.auth-body .login-showcase {
  background:
    linear-gradient(
      110deg,
      rgba(1, 10, 6, 0.6) 0%,
      rgba(2, 29, 14, 0.48) 50%,
      rgba(5, 54, 24, 0.34) 100%
    ),
    url("../img/backgrounds/safraops-login.jpg");

  background-size: cover;
  background-position: 58% center;
  background-repeat: no-repeat;
}


/* Conteúdo esquerdo mais equilibrado */
.auth-body .login-showcase-inner {
  min-height: 610px;
  padding: 54px 50px;
}


/* Área branca mais integrada */
.auth-body .login-form-side {
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f7faf8 100%
    );
}


/* Formulário ligeiramente mais compacto */
.auth-body .login-card {
  max-width: 390px;
}


/* Campos */
.auth-body .login-form input {
  background: rgba(255, 255, 255, 0.96);
  border-color: #c5d2c9;

  box-shadow:
    inset 0 1px 2px rgba(15, 31, 23, 0.025);
}


/* Botão principal */
.auth-body .login-submit {
  min-height: 52px;

  box-shadow:
    0 9px 22px rgba(26, 143, 0, 0.15);
}


/* Marca superior um pouco maior */
.auth-body .auth-brand img {
  width: 48px;
  height: 48px;
}

.auth-body .auth-brand-name {
  font-size: 21px;
}

.auth-body .auth-header-inner {
  width: calc(100% - 40px);
  max-width: none;
}

.auth-body .auth-brand-tagline {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
}

.auth-body .login-showcase h1 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

@media (max-width: 600px) {
  .auth-body {
    background-position: 62% center;
  }

  .auth-body .auth-header-inner {
    width: calc(100% - 24px);
  }

  .auth-body .login-showcase {
    background-position: 60% center;
  }
}

/* =========================================================
   SAFRAOPS - REFINAMENTO FINAL DO DASHBOARD
   ========================================================= */

/* Fundo geral mais integrado à identidade */
.app-body {
  background: #f1f5f2;
}


/* Cards operacionais com status visual */
.stats-grid-operational .stat-card:nth-child(1)::before {
  background: #d94b4b;
}

.stats-grid-operational .stat-card:nth-child(2)::before {
  background: #d9a126;
}

.stats-grid-operational .stat-card:nth-child(3)::before {
  background: linear-gradient(
    90deg,
    var(--brand-deep),
    var(--brand-lime)
  );
}

.stats-grid-operational .stat-card:nth-child(4)::before {
  background: #3b82b5;
}


/* Carteira acompanhada */
.portfolio-summary {
  background:
    linear-gradient(
      135deg,
      #f3faf5 0%,
      #eaf5ed 100%
    );

  border-color: #cfe1d4;
}


/* Um pouco mais de contraste nos números */
.portfolio-summary strong,
.stat-card strong {
  color: #092416;
}


/* =========================================================
   LOGIN SAFRAOPS - OTIMIZAÇÃO MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .auth-body .auth-site-header {
    min-height: 56px;
  }

  .auth-body .auth-header-inner {
    width: calc(100% - 28px);
  }

  .auth-body .auth-brand {
    gap: 8px;
  }

  .auth-body .auth-brand img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .auth-body .auth-brand-name {
    font-size: 18px;
  }

  .auth-body .auth-brand-tagline {
    margin-top: 3px;
    font-size: 8px;
  }

  .auth-body .auth-container {
    width: min(100% - 20px, 1180px);
    min-height: auto;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 18px;
  }

  .auth-body .login-shell {
    min-height: 0;
    max-height: none;
    border-radius: 12px;
  }

  .auth-body .login-showcase {
    min-height: 0;
    background-position: 58% center;
  }

  .auth-body .login-showcase-inner {
    min-height: 0;
    padding: 20px 20px 18px;
  }

  .auth-body .login-showcase-eyebrow {
    margin-bottom: 8px;
    font-size: 9px;
    letter-spacing: 0.09em;
  }

  .auth-body .login-showcase h1 {
    font-size: clamp(27px, 8.5vw, 34px);
    line-height: 1;
  }

  .auth-body .login-showcase-brand > p {
    display: none;
  }

  .auth-body .login-benefits {
    display: flex;
    gap: 16px;
    margin-top: 14px;
  }

  .auth-body .login-benefit {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .auth-body .login-benefit:nth-child(n + 3) {
    display: none;
  }

  .auth-body .login-benefit-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
    margin: 0;
    border-radius: 6px;
    font-size: 11px;
  }

  .auth-body .login-benefit div {
    display: block;
  }

  .auth-body .login-benefit strong {
    font-size: 11px;
  }

  .auth-body .login-benefit small,
  .auth-body .login-showcase-footer {
    display: none;
  }

  .auth-body .login-form-side {
    padding: 24px 20px 26px;
  }

  .auth-body .login-card {
    max-width: none;
  }

  .auth-body .login-card-heading {
    margin-bottom: 20px;
  }

  .auth-body .login-card-heading .eyebrow {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .auth-body .login-card-heading h1 {
    margin-bottom: 5px;
    font-size: 26px;
    line-height: 1.15;
  }

  .auth-body .login-card-heading .muted {
    font-size: 13px;
    line-height: 1.5;
  }

  .auth-body .login-form > div {
    margin-bottom: 14px;
  }

  .auth-body .login-form label {
    margin-bottom: 5px;
    font-size: 12px;
  }

  .auth-body .login-form input {
    min-height: 48px;
    padding: 11px 13px;
    font-size: 16px;
  }

  .auth-body .login-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 2px;
  }

  .auth-body .login-security-note {
    margin-top: 16px;
  }
}


/* =========================================================
   DASHBOARD AUTENTICADO - OTIMIZAÇÃO MOBILE
   ========================================================= */

@media (max-width: 820px) {
  .app-body .page-heading {
    margin-bottom: 20px;
  }

  .app-body .page-heading h1 {
    line-height: 1.15;
  }

  .app-body .section-title {
    margin-bottom: 12px;
  }

  .app-body .stats-grid-operational {
    grid-template-columns: 1fr;
    margin-bottom: 20px;
  }

  .app-body .stat-card {
    min-width: 0;
    padding: 15px 16px;
  }

  .app-body .quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 20px;
  }

  .app-body .quick-actions > span {
    grid-column: 1 / -1;
    margin: 0 0 2px;
  }

  .app-body .quick-actions > a {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding: 8px 10px;
    text-align: center;
  }
}


@media (max-width: 480px) {
  .app-body .page-heading {
    margin-bottom: 18px;
  }

  .app-body .page-heading .eyebrow {
    margin-bottom: 4px;
  }

  .app-body .stats-grid,
  .app-body .stats-grid-operational {
    gap: 10px;
  }

  .app-body .stat-card {
    min-height: 72px;
    padding: 13px 15px;
  }

  .app-body .stat-card span {
    line-height: 1.35;
  }

  .app-body .stat-card strong {
    flex: 0 0 auto;
    font-size: 27px;
  }

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

  .app-body .quick-actions > span {
    grid-column: auto;
  }
}
