/* 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: #ff6f14;
  --ops-ink: #0f172a;
  --ops-muted: #64748b;
  padding: 8px 4px 24px;
  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: 600;
  margin: 5px 0 9px;
}
.akre-operations h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.akre-operations h3 {
  font-size: 16px;
  font-weight: 600;
  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 #e2e8f0;
  background: white;
  color: var(--ops-ink);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.3;
}
.akre-operations button:hover {
  border-color: var(--ops-orange);
  background: #fff7ed;
}
.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: var(--ops-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.akre-operations .ops-text-button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  text-align: left;
  color: var(--ops-orange);
}
.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: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ops-orange);
  font-weight: 600;
}
.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: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.ops-kpis article {
  background: #fff;
  border: 1px solid #ffedd5;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(89, 56, 24, 0.08);
}

.ops-kpis article > span {
  display: block;
  color: var(--ops-muted);
  font-size: 12px;
}
.ops-kpis article > strong {
  display: block;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.4;
}
.ops-kpis small {
  max-width: 250px;
}
.ops-workspace {
  display: grid;
  gap: 20px;
  align-items: start;
}
.ops-main-column,
.ops-sidebar {
  min-width: 0;
}
.ops-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ffedd5;
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 18px 50px rgba(89, 56, 24, 0.08);
  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 #e2e8f0;
}
.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: var(--ops-orange);
  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: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.ops-condition-grid small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ops-ink);
}
.ops-condition-grid .ops-battery-delayed {
  color: #855115;
}
.ops-conditions details .ops-condition-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ops-condition-grid > div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #f6c79e;
  border-radius: 27px;
  box-shadow: 0 14px 32px rgba(89, 56, 24, 0.06);
}
.ops-condition-grid span {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ea5a00;
  display: block;
}
.ops-condition-grid strong {
  font-size: 32px;
  font-weight: 700;
  display: block;
  margin-top: 12px;
}
.akre-operations details > summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
  color: var(--ops-ink);
}
.akre-operations details[open] > summary {
  margin-bottom: 8px;
}
.ops-search input {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 220px;
  width: 100%;
  background: #fff;
  color: var(--ops-ink);
}
.ops-species {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 12px;
  background: white;
}
.akre-operations .ops-species > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 16px 20px;
}
.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;
  background: #f8fafc;
  border-radius: 16px;
  padding: 12px 16px;
}
.ops-stock-amount > strong {
  font-size: 20px;
}
.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: #f8fafc;
  color: var(--ops-muted);
  font-size: 11px;
  font-weight: 600;
}
.akre-operations th,
.akre-operations td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  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 #e2e8f0;
}
.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 #e2e8f0;
  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;
}
/* Values and composition taken from the pre-operations live snapshot. */
.ops-header {
  padding: 24px;
  border: 1px solid #ffedd5;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 249, 241, 0.98),
    rgba(255, 255, 255, 0.98)
  );
  box-shadow: 0 18px 50px rgba(89, 56, 24, 0.08);
}
.ops-header h1 {
  font-size: 36px;
}
.ops-header-actions button {
  border-color: #fed7aa;
}
.ops-conditions {
  border: 1px solid rgba(250, 182, 129, 0.75);
  border-radius: 30px;
  background: linear-gradient(135deg, #fffdfa, #fff4ea);
}
.ops-conditions h2 {
  font-size: 30px;
  color: #172033;
}
.ops-quick-actions .ops-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}
.ops-quick-actions button {
  width: 100%;
  text-align: left;
  border-radius: 18px;
  background: #f8fafc;
  color: #334155;
}
.ops-quick-actions button:hover {
  background: #fff7ed;
  color: var(--ops-orange);
}
.akre-operations .ops-species > summary:hover {
  background: rgba(255, 247, 237, 0.6);
}
.ops-species > summary > span:first-child > strong {
  font-size: 20px;
}
.ops-species[open] > summary {
  border-bottom: 1px solid #e2e8f0;
}
.ops-species .ops-table-scroll {
  margin: 0;
  padding: 16px;
  background: #f8fafc;
}
.ops-attention .ops-text-button {
  color: #0f172a;
}
.ops-attention .ops-text-button:hover {
  color: var(--ops-orange);
}
@media (min-width: 640px) {
  .akre-operations {
    padding: 8px 8px 24px;
  }
}
@media (min-width: 1280px) {
  .ops-workspace {
    grid-template-columns: minmax(0, 1.7fr) minmax(20rem, 1fr);
  }
}
@media (max-width: 1000px) {
  .ops-kpis {
    grid-template-columns: 1fr 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: 8px 4px 80px;
  }
  .akre-operations h1 {
    font-size: 30px;
  }
  .ops-header {
    display: block;
    padding: 20px;
  }
  .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 > 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%;
  }
}
