:root { color-scheme: light; font-family: system-ui, -apple-system, sans-serif; color: #19202a; background: #f4f5f7; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #3474d4; outline-offset: 3px; }
.topbar { background: #20252b; color: #fff; }
.topbar-inner { max-width: 980px; margin: auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { color: #ffca28; font-size: 1.25rem; font-weight: 750; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: .9rem; }
nav form { margin: 0; }
.text-button { background: transparent; border: 0; color: inherit; padding: 0; text-decoration: underline; text-underline-offset: .2em; }
.container { max-width: 980px; margin: 28px auto; padding: 0 20px 32px; }
h1 { font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.3; margin: 24px 0 10px; }
h2 { font-size: 1.12rem; margin: 0 0 6px; overflow-wrap: anywhere; }
.muted, .identity, .help { color: #56616f; }
.identity { font-size: .9rem; }
.company-context { background: #fff2c6; border-inline-start: 4px solid #bb8a00; padding: 14px 18px; border-radius: 8px; }
.company-context strong { display: block; font-size: 1.2rem; overflow-wrap: anywhere; }
.eyebrow { display: block; font-size: .85rem; margin-bottom: 4px; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: 16px; margin-top: 24px; }
.panel { background: #fff; border: 1px solid #dce0e5; border-radius: 12px; padding: 22px; }
.company-card { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.company-card p { margin: 6px 0 0; }
.is-selected { border: 2px solid #24764f; padding: 21px; }
.selected-label { color: #1b6844; font-weight: 700; }
.empty-state { grid-column: 1 / -1; }
.auth-panel { max-width: 480px; margin: 32px auto; }
.auth-panel h1 { margin-top: 0; }
.field { margin: 18px 0; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.field input { width: 100%; min-height: 46px; border: 1px solid #919ba7; border-radius: 6px; padding: 10px 12px; background: white; color: #19202a; }
input[type="tel"], input[type="password"] { direction: ltr; }
.help { font-size: .85rem; margin-top: 6px; }
.help ul, .errors ul { padding-inline-start: 22px; }
.errors { color: #a52a25; font-size: .9rem; }
.notice { padding: 12px 16px; background: #fff2c6; border-radius: 6px; }
.button { display: inline-block; background: #20252b; color: #fff; border: 1px solid #20252b; border-radius: 7px; padding: 11px 18px; min-height: 46px; font-weight: 600; }
.button:hover { background: #37424f; }
.orders-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; }
.orders-filter .field { flex: 1 1 240px; min-width: 0; margin: 0; }
.orders-filter select { width: 100%; min-height: 46px; padding: 10px; border: 1px solid #919ba7; border-radius: 6px; background: #fff; color: #19202a; font: inherit; }
.manager-orders { display: grid; gap: 14px; }
.manager-order-heading { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.manager-order-heading > div { min-width: 0; }
.order-company { margin: 0 0 8px; font-weight: 700; color: #1b6844; overflow-wrap: anywhere; }
.order-status { padding: 4px 10px; border-radius: 6px; background: #edf0f4; font-size: .85rem; }
.manager-order-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.manager-order-details dt { color: #56616f; font-size: .85rem; }
.manager-order-details dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.orders-pagination { margin-top: 24px; justify-content: center; }
@media (max-width: 540px) {
  .container { padding-inline: 14px; margin-top: 20px; }
  .topbar-inner { padding: 14px; }
  nav { gap: 14px; }
  .panel { padding: 18px; }
  .is-selected { padding: 17px; }
  .button { width: 100%; }
  .manager-order-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
