/* AgriCompass II — interface clarity update, 4 November 2026.
   Presentation only: calculation, persistence and import schemas are unchanged. */

:root {
  --ac-compact-gap: 0.7rem;
}

/* Keep the primary navigation focused on destinations rather than warnings. */
.sidebar-note,
.sidebar .reset-link {
  display: none !important;
}

.s7u-side-menu {
  gap: 0.4rem !important;
}

.s7u-side-label {
  margin: 0.85rem 0 0.35rem !important;
}

.s7u-nav-item {
  min-height: 46px !important;
  padding: 0.65rem 0.75rem !important;
}

.e1-nav-label {
  line-height: 1.24 !important;
}

/* The header retains the current plan, sharing and help. Backup and print live
   in Plans & data and the relevant report screens. */
.top-actions {
  gap: 0.45rem !important;
}

.top-actions .ac-top-secondary {
  display: none !important;
}

.active-plan-chip {
  max-width: 285px;
}

/* Compact journey navigation. The stages remain directly selectable, while
   repeated status prose is removed from the visual layer. */
.s7u-journey {
  padding: 1rem 1.15rem !important;
}

.s7u-journey-head {
  align-items: center !important;
  margin-bottom: 0.35rem !important;
}

.s7u-journey-head .e1-journey-title > div > p {
  display: none !important;
}

.s7u-journey-head h2 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem) !important;
}

.s7u-reviewed-count {
  font-size: 0.78rem !important;
  padding: 0.3rem 0.55rem !important;
}

.s7u-steps {
  margin: 0.45rem 0 0.65rem !important;
}

.s7u-step {
  gap: 0.25rem !important;
  min-height: 62px !important;
  padding: 0.25rem 0.2rem !important;
}

.s7u-circle {
  width: 30px !important;
  height: 30px !important;
  font-size: 0.86rem !important;
}

.s7u-step-label {
  font-size: 0.8rem !important;
  line-height: 1.15 !important;
}

.s7u-step-status,
.s7u-position > span,
.s7u-save-row > small {
  display: none !important;
}

.s7u-position {
  margin: 0.4rem 0 !important;
  padding-top: 0.55rem !important;
}

.s7u-actions {
  gap: 0.55rem !important;
}

.s7u-actions .button,
.s7u-save-row .button {
  min-height: 40px !important;
  padding: 0.55rem 0.85rem !important;
}

.s7u-save-row {
  justify-content: flex-end !important;
  margin-top: 0.35rem !important;
  min-height: 40px;
}

.s7u-help {
  display: none !important;
}

.workspace .page-heading .eyebrow {
  display: none !important;
}

/* Home: the three journey cards already include machinery-only planning. */
.w-home > .button-row,
.ac-release-detail {
  display: none !important;
}

.w-home .page-heading,
.w-current-plan,
.x-task-grid > * {
  padding: 1.15rem !important;
}

.x-task-grid h2 {
  font-size: 1.3rem !important;
}

/* Gross Margin is embedded inside the selected journey, so its second logo,
   header, hero and area-summary strip are unnecessary repetitions. */
.gm-module > .topbar,
.gm-module > .farm-hero,
.gm-module > .area-reconciliation {
  display: none !important;
}

.gm-module {
  margin-top: 0 !important;
}

.gm-module .s7u-crop-guide {
  padding: 0.8rem !important;
  margin-bottom: 0.85rem !important;
  gap: 0.65rem !important;
}

.gm-module .s7u-crop-guide nav {
  gap: 0.4rem !important;
}

.gm-module .s7u-crop-guide nav .button,
.gm-module .s7u-crop-guide nav button {
  min-height: 40px !important;
  padding: 0.5rem 0.7rem !important;
}

.gm-module .gm-season-shortcut {
  display: none !important;
}

.workspace[data-ac-stage="seasonal options"] .gm-module .s7u-crop-guide,
.workspace[data-ac-stage="results"] .gm-module .s7u-crop-guide,
.workspace[data-ac-stage="risk & reward"] .gm-module .s7u-crop-guide,
.workspace[data-ac-stage="review & save"] .gm-module .s7u-crop-guide {
  display: none !important;
}

.gm-module .wide-panel,
.gm-module .relative-risk-panel {
  padding: clamp(1rem, 2vw, 1.45rem) !important;
}

.gm-module footer {
  font-size: 0.82rem !important;
}

.gm-module .farm-table .gm-inline-edit-cell {
  min-width: 108px;
}

.gm-module .gm-inline-edit {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) auto;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}

.gm-module .gm-inline-value {
  width: 100%;
  min-width: 64px;
  max-width: 96px;
  height: 42px;
  padding: 0.45rem 0.5rem;
  border: 1px solid #aac0b2;
  border-radius: 8px;
  background: #fff;
  color: #17382e;
  font: inherit;
  text-align: right;
}

.gm-module .gm-inline-value:focus {
  border-color: #168b72;
  outline: 3px solid rgba(22, 139, 114, 0.2);
}

.gm-module .gm-inline-edit span {
  color: #53675f;
  font-size: 0.82rem;
  white-space: nowrap;
}

.gm-module .gm-inline-not-applicable {
  color: #74847d;
  text-align: center;
}

/* One-screen quick-estimate cost entry. The table uses the existing active
   approximate category totals and leaves detailed product budgets read-only. */
.gm-module .gm-quick-cost-summary {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 2px solid #d8e2dc;
}

.gm-module .gm-quick-cost-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.gm-module .gm-quick-cost-head h3,
.gm-module .gm-quick-cost-head p {
  margin: 0.2rem 0;
}

.gm-module .gm-quick-cost-head > span {
  color: #53675f;
  font-weight: 700;
  white-space: nowrap;
}

.gm-module .gm-quick-cost-table {
  min-width: 1280px;
}

.gm-module .gm-quick-cost-table th,
.gm-module .gm-quick-cost-table td {
  padding: 0.65rem 0.55rem;
  vertical-align: middle;
}

.gm-module .gm-quick-cost-table th:first-child,
.gm-module .gm-quick-cost-table td:first-child {
  min-width: 180px;
}

.gm-module .gm-quick-cost-table th small {
  display: block;
  margin-top: 0.2rem;
  color: #667870;
  font-weight: 500;
}

.gm-module .gm-quick-cost-input {
  width: 92px;
  min-height: 40px;
  padding: 0.45rem 0.5rem;
  border: 1px solid #a9beb1;
  border-radius: 7px;
  background: #fff;
  color: #17382e;
  font: inherit;
  text-align: right;
}

.gm-module .gm-quick-cost-input:focus {
  border-color: #168b72;
  outline: 3px solid rgba(22, 139, 114, 0.18);
}

.gm-module .gm-quick-cost-input:disabled {
  border-style: dashed;
  background: #eef2ef;
  color: #788780;
}

.gm-module .gm-quick-cost-table output {
  display: inline-block;
  min-width: 82px;
  text-align: right;
}

.gm-module .gm-quick-cost-table tfoot {
  background: #174f3d;
  color: #fff;
  font-weight: 750;
}

.gm-module .gm-cost-method-chip {
  display: inline-block;
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.gm-module .gm-cost-method-chip.quick {
  background: #e5f3ec;
  color: #155a42;
}

.gm-module .gm-cost-method-chip.detailed {
  background: #eef0f5;
  color: #4b586c;
}

.gm-module .gm-quick-cost-note {
  margin: 0.65rem 0 0;
  color: #5b6c64;
  font-size: 0.84rem;
}

/* Detailed product cards: product selection is explicit, the redundant cost
   type field is removed, and fertiliser freight has one fixed price unit. */
.gm-module .gm-input-card[class*='p3-input-'] .gm-input-field-7 {
  grid-column: span 2;
}

.gm-module .gm-input-card[class*='p3-input-'] .gm-input-field-9 {
  grid-column: 3;
  align-items: flex-end;
}

.gm-module .gm-product-select {
  width: 100%;
}

.gm-module .gm-fixed-unit {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid #c2cec6;
  border-radius: 6px;
  background: #f2f6f3;
  color: #29483a;
  font-weight: 750;
}

/* Whole-fleet scope stays visible on every machinery screen. */
.e2-fleet-overview {
  padding: 1rem !important;
}

.e2-fleet-overview .panel-head {
  margin-bottom: 0.75rem;
}

.e2-fleet-overview .panel-head h2,
.e2-fleet-overview .panel-head p {
  margin: 0.2rem 0;
}

.e2-fleet-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.65rem;
}

.e2-fleet-strip article {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cbd9d1;
  border-radius: 9px;
  background: #f7faf8;
}

.e2-fleet-strip span,
.e2-fleet-strip small {
  color: #566a60;
}

/* Detailed Gross Margin inputs: show a compact category summary first and
   reveal only the category the user chooses to edit. Values and calculations
   remain in the existing React components. */
.gm-module .ac-input-category {
  border: 1px solid #cbd8d0 !important;
  border-radius: 12px !important;
  background: #fbfcfb !important;
  margin: 0.8rem 0 !important;
  overflow: hidden;
}

.gm-module .ac-input-category > .line-head,
.gm-module .ac-input-category > .gm-budget-head {
  margin: 0 !important;
  min-height: 64px;
  padding: 0.75rem 0.9rem !important;
  align-items: center !important;
  gap: 0.65rem !important;
}

.gm-module .ac-input-category > .line-head {
  background: #f4f8f5;
}

.gm-module .gm-seed-levy.ac-input-category > .gm-budget-head + .gm-budget-head {
  border-top: 1px solid #dce5df;
}

.gm-module .ac-input-category-toggle {
  order: 10;
  margin-left: auto;
  min-width: 118px;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #9fb5a8;
  border-radius: 9px;
  background: #fff;
  color: #174f3d;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.gm-module .ac-input-category-toggle::after {
  content: ' ▲';
  font-size: 0.72em;
}

.gm-module .ac-input-category-toggle[aria-expanded='false']::after {
  content: ' ▼';
}

.gm-module .ac-input-category-toggle:hover {
  background: #eef5f0;
}

.gm-module .ac-input-category-toggle:focus-visible {
  outline: 3px solid #346f97;
  outline-offset: 2px;
}

.gm-module .p3-cost-group.ac-input-category--collapsed > :not(.line-head),
.gm-module .gm-machinery-editor.ac-input-category--collapsed > :not(.gm-budget-head),
.gm-module .gm-seed-levy.ac-input-category--collapsed > :not(.gm-budget-head) {
  display: none !important;
}

.gm-module .ac-input-category--collapsed > .line-head .category-actions button {
  display: none !important;
}

.gm-module .ac-input-category:not(.ac-input-category--collapsed) > :not(.line-head):not(.gm-budget-head) {
  margin-left: 0.9rem;
  margin-right: 0.9rem;
}

.gm-module .ac-input-category:not(.ac-input-category--collapsed) > :last-child {
  margin-bottom: 0.9rem;
}

/* Advanced scoring explanations remain available, but do not compete with
   the editable risk-and-reward controls and results. */
.mallee-matrix .risk-method,
.mallee-matrix > .report-note {
  display: none !important;
}

.ac-method-details,
.ac-technical-details {
  border: 1px solid #cbd7cf;
  border-radius: 12px;
  background: #f7faf7;
  padding: 0.75rem 0.9rem;
}

.ac-method-details summary,
.ac-technical-details summary {
  cursor: pointer;
  color: #174f3d;
  font-weight: 750;
}

.ac-method-details div,
.ac-technical-details div {
  margin-top: 0.75rem;
  color: #475a52;
}

.ac-method-details p,
.ac-technical-details p,
.ac-technical-details li {
  margin: 0.4rem 0;
}

/* Plans & data: keep day-to-day plan actions prominent and move edition
   comparisons and governance detail into one optional disclosure. */
.data-privacy-page .storage-location-panel,
.data-privacy-page .capability-unavailable,
.data-privacy-page .privacy-principles {
  display: none !important;
}

.share-panel > p {
  display: none !important;
}

.share-panel {
  padding: 1rem 1.15rem !important;
}

.privacy-summary-grid article {
  padding: 0.9rem !important;
}

.privacy-summary-grid article p {
  margin-bottom: 0 !important;
}

.plan-manager .data-note,
.benchmark-pilot-link p {
  max-width: 82ch;
}

/* Forms: make advanced disclosures clearly secondary. */
.panel details,
.wide-panel details {
  margin-top: 0.65rem;
}

.panel > p:last-child {
  max-width: 90ch;
}

/* The assessment scope is repeated throughout machinery planning. Keep it
   visible, but present it as one compact control row. */
.e2-scope {
  display: grid !important;
  grid-template-columns: auto auto minmax(240px, 1fr) !important;
  align-items: center !important;
  gap: 0.7rem 1rem !important;
  padding: 0.85rem 1rem !important;
}

.e2-scope h2,
.e2-scope p,
.e2-scope .button-row {
  margin: 0 !important;
}

.e2-scope h2 {
  font-size: 1rem !important;
}

.e2-scope p {
  font-size: 0.84rem !important;
  line-height: 1.35 !important;
}

@media (max-width: 980px) {
  .s7u-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }

  .s7u-actions .button.primary {
    grid-column: 1 / -1;
  }

  .s7u-save-row .button {
    width: 100%;
  }

  .e2-scope {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .s7u-journey {
    padding: 0.85rem !important;
  }

  .gm-module .ac-input-category > .line-head,
  .gm-module .ac-input-category > .gm-budget-head {
    min-height: 58px;
    padding: 0.65rem 0.7rem !important;
  }

  .gm-module .ac-input-category-toggle {
    width: 100%;
    margin-left: 0;
  }

  .gm-module .gm-quick-cost-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gm-module .gm-input-card[class*='p3-input-'] .gm-input-field-7,
  .gm-module .gm-input-card[class*='p3-input-'] .gm-input-field-9 {
    grid-column: 1;
    align-items: stretch;
  }

  .s7u-reviewed-count {
    display: none !important;
  }

  .s7u-steps {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.35rem !important;
  }

  .s7u-steps::before,
  .s7u-steps::after,
  .s7u-step::after {
    display: none !important;
  }

  .s7u-step {
    border: 1px solid #d2ddd7 !important;
    border-radius: 9px !important;
    min-height: 68px !important;
  }

  .s7u-step[aria-current="step"] {
    background: #edf7f2 !important;
    border-color: #168b72 !important;
  }

  .active-plan-chip {
    max-width: 100%;
  }
}

/* 5 November: direct report access, contextual videos and a clearer MSF mark. */
.app > .topbar .brand-logos { height: auto; }
.app > .topbar .brand-logos .msf-logo { width: 160px; height: auto; max-width: none; }
.app > .topbar .brand { gap: 18px; }
.app > .topbar .ac-reports-button {
  background: #215a47;
  border-color: #215a47;
  color: #fff;
  font-weight: 750;
}
.ac-reports-nav {
  margin: 20px 0 16px;
  padding: 13px 9px 9px;
  border: 1px solid #b8cfc3;
  border-radius: 11px;
  background: #eef6f1;
}
.ac-reports-nav > h2 {
  margin: 0 10px 8px;
  color: #1d4f3d;
  font-size: .92rem;
  font-weight: 800;
}
.app .s7u-side .ac-reports-nav nav button.s7u-nav-item {
  font-size: .84rem;
  color: #163e2d !important;
  background: transparent;
  box-shadow: none;
}
.app .s7u-side .ac-reports-nav .s7u-nav-item .e1-nav-label,
.app .s7u-side .ac-reports-nav .s7u-nav-item .e1-icon,
.app .s7u-side .ac-reports-nav .s7u-nav-item .e1-icon svg {
  color: inherit !important;
  opacity: 1;
}
.app .s7u-side .ac-reports-nav .s7u-nav-item .e1-icon { background: #d8e8df; }
.app .s7u-side .ac-reports-nav nav button.s7u-nav-item:hover { background: #dcece3; }
.app .s7u-side .ac-reports-nav nav button.s7u-nav-item[aria-current="page"],
.app .s7u-side .ac-reports-nav nav button.s7u-nav-item[aria-current="page"]:hover {
  background: #d2e5da;
  box-shadow: inset 3px 0 #23654b;
  font-weight: 700;
}
.app .s7u-side .ac-reports-nav nav button.s7u-nav-item:focus-visible {
  background: #dcece3;
  outline: 3px solid #946400;
  outline-offset: 2px;
}
.ac-page-video { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.ac-video-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: .82rem; }
.ac-video-link span { font-size: .72rem; }
.ac-task-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.ac-task-actions .button { margin-top: 0 !important; }
.ac-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ac-report-card { display: flex; flex-direction: column; align-items: flex-start; }
.ac-report-card h2 { font-size: 1.2rem; margin: 0 0 8px; }
.ac-report-card p { margin: 0 0 18px; line-height: 1.55; color: #475a52; }
.ac-report-card .button { margin-top: auto; }
.ac-report-context { color: #52665c; font-size: .9rem; margin: 8px 0 0; }
.gm-quick-cost-table th { white-space: normal; }
@media (max-width: 720px) {
  .app > .topbar .brand-logos .msf-logo { width: 122px; }
  .app > .topbar .brand { gap: 12px; }
  .ac-report-grid { grid-template-columns: minmax(0, 1fr); }
  .ac-page-video { justify-content: flex-start; }
  .ac-task-actions { align-items: stretch; }
}
@media print {
  .ac-page-video, .ac-video-link, .ac-task-actions, .ac-reports-button, .ac-reports-nav { display: none !important; }
}
