/* The protected shell adds a page heading outside Home. This dashboard owns
   its heading; other pages keep the shell header when Home is unmounted. */
body:has([data-akre-operations]) .select-none.w-full:has(> header h1) {
  display: none;
}

.akre-operations {
  --ops-orange: #d94f00;
  --ops-ink: #233c32;
  --ops-muted: #59675f;
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 28px 64px;
  color: var(--ops-ink);
  font-size: 14px;
  line-height: 1.55;
}
.akre-operations * {
  box-sizing: border-box;
}
.akre-operations h1,
.akre-operations h2,
.akre-operations h3,
.akre-operations p {
  margin: 0;
}
.akre-operations h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  font-weight: 650;
  margin: 5px 0 9px;
}
.akre-operations h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.akre-operations h3 {
  font-size: 16px;
  font-weight: 650;
  margin: 12px 0 5px;
}
.akre-operations p + p {
  margin-top: 8px;
}
.akre-operations small {
  display: block;
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 3px;
}
.akre-operations button,
.akre-operations input {
  font: inherit;
}
.akre-operations button {
  cursor: pointer;
  border: 1px solid #d4ded7;
  background: white;
  color: var(--ops-ink);
  padding: 9px 13px;
  border-radius: 8px;
  font-weight: 550;
  line-height: 1.3;
}
.akre-operations button:hover {
  border-color: var(--ops-orange);
  background: #fff8f2;
}
.akre-operations button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.akre-operations button:focus-visible,
.akre-operations summary:focus-visible,
.akre-operations input:focus-visible,
.akre-operations a:focus-visible {
  outline: 3px solid #f8ac66;
  outline-offset: 3px;
}
.akre-operations a {
  color: #a54005;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.akre-operations .ops-text-button {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: #994008;
}
.akre-operations .ops-text-button:hover {
  text-decoration: underline;
}
.ops-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  margin-bottom: 20px;
}
.ops-header p {
  color: var(--ops-muted);
}
.ops-header-actions {
  text-align: right;
  flex-shrink: 0;
}
.ops-header-actions small {
  margin-top: 8px;
}
.ops-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a54005;
  font-weight: 700;
}
.ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}
.ops-actions button {
  font-size: 13px;
}
.ops-kpis {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.ops-kpis article {
  background: #fff;
  border: 1px solid #e0e7e1;
  border-radius: 12px;
  padding: 18px 20px;
}
.ops-kpis article:first-child {
  border-top: 3px solid var(--ops-orange);
  padding-top: 16px;
}
.ops-kpis article > span {
  display: block;
  color: var(--ops-muted);
  font-size: 12px;
}
.ops-kpis article > strong {
  display: block;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.4;
}
.ops-kpis small {
  max-width: 250px;
}
.ops-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.ops-panel {
  background: #fff;
  border: 1px solid #e0e7e1;
  border-radius: 12px;
  padding: 21px 23px;
  margin-bottom: 18px;
  min-width: 0;
  scroll-margin-top: 24px;
}
.ops-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 13px;
}
.ops-muted {
  color: var(--ops-muted);
  font-size: 12px;
  margin: 8px 0 12px !important;
}
.ops-warning {
  background: #fff5e8;
  border: 1px solid #eac69b;
  color: #7c3e08;
  border-radius: 8px;
  padding: 11px 14px;
  margin: 10px 0 16px !important;
  font-size: 13px;
}
.akre-operations ul.ops-warning {
  padding-left: 30px;
}
.ops-attention {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ops-attention li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0eb;
}
.ops-attention li:last-child {
  border: 0;
  padding-bottom: 0;
}
.ops-attention p {
  font-size: 12px;
  color: var(--ops-muted);
  margin-top: 4px;
}
.ops-step {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  background: #fff0e2;
  color: #a54005;
  text-align: center;
  font-size: 12px;
  line-height: 25px;
}
.ops-badge {
  display: inline-block;
  background: #edf5ef;
  color: #326443;
  border: 1px solid #d4e6d8;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}
.ops-caution {
  background: #fff4e3;
  color: #855115;
  border-color: #eadac1;
}
.ops-condition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}
.ops-condition-grid > div {
  padding: 10px 12px;
  background: #f6f8f5;
  border-radius: 8px;
}
.ops-condition-grid span {
  font-size: 11px;
  color: var(--ops-muted);
  display: block;
}
.ops-condition-grid strong {
  font-size: 22px;
  font-weight: 550;
  display: block;
  margin-top: 3px;
}
.akre-operations details > summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 550;
  color: var(--ops-ink);
}
.akre-operations details[open] > summary {
  margin-bottom: 8px;
}
.ops-search input {
  border: 1px solid #d4ded7;
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 220px;
  width: 100%;
  background: #fafbf9;
  color: var(--ops-ink);
}
.ops-species {
  border-top: 1px solid #e6ece6;
}
.akre-operations .ops-species > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 12px 2px;
}
.ops-species > summary::-webkit-details-marker {
  display: none;
}
.ops-species > summary > span:first-child {
  padding-left: 19px;
  position: relative;
}
.ops-species > summary > span:first-child:before {
  content: "›";
  position: absolute;
  left: 0;
  font-size: 18px;
  color: var(--ops-orange);
  top: 0;
}
.ops-species[open] > summary > span:first-child:before {
  content: "⌄";
}
.ops-stock-amount {
  text-align: right;
}
.ops-stock-amount > strong {
  font-size: 18px;
}
.ops-table-scroll {
  overflow-x: auto;
  margin: 10px 0;
  max-width: 100%;
}
.akre-operations table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
.akre-operations th {
  background: #f4f7f2;
  color: var(--ops-muted);
  font-size: 11px;
  font-weight: 550;
}
.akre-operations th,
.akre-operations td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6ece6;
  vertical-align: top;
}
.akre-operations td small {
  font-size: 10px;
}
.ops-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid #e6ece6;
}
.ops-request p {
  font-size: 12px;
  color: var(--ops-muted);
}
.ops-request button {
  font-size: 12px;
  flex-shrink: 0;
}
.ops-assessment {
  border-color: #efbd91;
  background: #fffcf8;
  margin-top: 18px;
}
.ops-assessment-line {
  padding: 12px 0;
  border-bottom: 1px solid #e8dfd3;
}
.akre-operations ul {
  list-style: disc;
  padding-left: 20px;
}
.ops-checkpoint-stage {
  border-top: 1px solid #e6ece6;
  margin-top: 15px;
  padding-top: 5px;
  font-size: 12px;
}
.ops-footer-actions ol {
  list-style: decimal;
  padding-left: 20px;
  font-size: 13px;
}
.ops-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1600px) {
  .akre-operations {
    padding-left: 44px;
    padding-right: 44px;
  }
}
@media (max-width: 1000px) {
  .ops-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .ops-top-grid {
    grid-template-columns: 1fr;
  }
  .ops-condition-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ops-conditions details .ops-condition-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 650px) {
  .akre-operations {
    padding: 18px 12px 80px;
  }
  .akre-operations h1 {
    font-size: 26px;
  }
  .ops-header {
    display: block;
  }
  .ops-header-actions {
    text-align: left;
    margin-top: 14px;
  }
  .ops-header-actions small {
    font-size: 10px;
  }
  .ops-kpis {
    gap: 8px;
  }
  .ops-kpis article {
    padding: 13px 12px;
  }
  .ops-kpis article:first-child {
    padding-top: 11px;
  }
  .ops-kpis article > strong {
    font-size: 25px;
  }
  .ops-kpis small {
    font-size: 10px;
  }
  .ops-panel {
    padding: 16px 14px;
  }
  .ops-section-heading {
    align-items: start;
    flex-wrap: wrap;
  }
  .ops-condition-grid,
  .ops-conditions details .ops-condition-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ops-request {
    display: block;
  }
  .ops-request button {
    margin-top: 10px;
  }
  .ops-actions {
    gap: 6px;
  }
  .ops-actions button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .ops-stock-amount small {
    max-width: 110px;
  }
  .ops-search {
    width: 100%;
  }
  .ops-search input {
    max-width: 100%;
  }
}
