#tracking-form[hidden], #tracking-result[hidden], #content-body [hidden] { display: none !important; }
.tracking-page { width: min(740px, 90%); margin: clamp(26px, 6vw, 70px) auto; }
.tracking-page h1 { font-size: clamp(30px, 5vw, 50px); }
.tracking-form { display: flex; gap: 12px; align-items: end; margin: 24px 0; }
.tracking-form label { flex: 1; }
.tracking-form label, .ops-card label, .ops-status-form label { display: grid; gap: 6px; min-width: 0; }
.tracking-form input, .ops-card input, .ops-status-form select {
  width: 100%; min-width: 0; padding: 10px; border: 1px solid #d7c4c7; border-radius: 4px;
}
.tracking-form .button { min-height: 46px; }
#tracking-status { min-height: 1.5em; color: #7a303a; }
.tracking-timeline { list-style: none; padding: 0 0 0 18px; margin: 18px 0; border-left: 2px solid #e5c6ca; }
.tracking-timeline li { display: grid; gap: 4px; padding: 0 0 18px 8px; position: relative; }
.tracking-timeline li::before { content: ""; position: absolute; inset: 7px auto auto -24px; width: 10px; height: 10px; border-radius: 50%; background: #a73940; }
.tracking-timeline time, .ops-note { color: #6d6165; font-size: 13px; }
.account-track-link { margin: 20px 0 0; color: #8a2931; }
.account-track-link a, .ops-actions a { text-decoration: underline; text-underline-offset: 3px; }
.ops-card { background: white; border: 1px solid #eadfe0; border-radius: 6px; margin: 14px 0; padding: clamp(14px, 3vw, 25px); }
.ops-card summary, .ops-order summary { cursor: pointer; overflow-wrap: anywhere; }
.ops-card form { margin-top: 14px; }
.ops-actions, .ops-status-form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ops-actions h2 { margin-right: auto; }
.ops-actions label { min-width: 140px; }
.ops-order { border-bottom: 1px solid #eadfe0; padding: 14px 0; }
.ops-order p { margin: 8px 0; overflow-wrap: anywhere; }
.ops-badge { display: inline-block; background: #f7ebec; color: #81323a; border-radius: 4px; padding: 3px 8px; font-size: 13px; }
.ops-metrics { margin: 12px 0; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.ops-metrics strong { overflow-wrap: anywhere; }
.ops-balances { list-style: none; margin: 10px 0; padding: 0; }
.ops-balances li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eadfe0; padding: 8px 0; overflow-wrap: anywhere; }
.ops-ledger-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; border-bottom: 1px solid #eadfe0; padding: 12px 0; overflow-wrap: anywhere; }
.ops-ledger-entry div { display: grid; gap: 4px; }
.ops-ledger-entry div span { color: #6d6165; font-size: 13px; }
.ops-ledger-entry p { margin: 0; }
.ops-ledger-entry button { font-size: 12px !important; }
@media(max-width:600px) {
  .tracking-form { display: grid; grid-template-columns: 1fr; }
  .tracking-form .button { justify-content: center; }
  .ops-actions label { flex: 1 1 125px; min-width: 0; }
  .ops-ledger-entry { grid-template-columns: 1fr; }
  .ops-ledger-entry button { justify-self: start; }
}

.inventory-notice {
  margin: 12px 0;
  padding: 12px 16px;
  border-left: 3px solid #a73940;
  background: #fff3f4;
  color: #762d36;
}
.inventory-list { display: grid; gap: 10px; }
.inventory-item { border: 1px solid #eadfe0; border-radius: 5px; padding: 12px; overflow-wrap: anywhere; }
.inventory-item > div { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 6px 0; }
.inventory-item > div span { font-size: 13px; color: #6d5156; }
.inventory-order-fields { margin: 0; padding: 12px; min-width: 0; border: 1px solid #eadfe0; }
.inventory-order-line { display: grid; grid-template-columns: minmax(0,1fr) minmax(70px,100px) auto; gap: 8px; align-items: end; margin-bottom: 10px; }
#content-body .inventory-check { display: flex; align-items: center; margin-top: 10px; }
#content-body .inventory-check input { width: auto; }
@media(max-width:600px) {
  .inventory-order-line { grid-template-columns: minmax(0,1fr) minmax(60px,80px); }
  .inventory-order-line button { grid-column: 1/-1; justify-self: start; }
  .inventory-order-fields button, #inventory-low { min-height: 44px; }
}

.ops-phone-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .65rem;
  margin-block: .75rem;
}
.ops-phone-form label { display: grid; gap: .3rem; }
