/*
 * This is a manifest file that'll be compiled into application.css.
 */

turbo-frame {
  display: block;
}

/* Auto-numbering for draft order lines (survives turbo insert/delete) */
#order_lines {
  counter-reset: order-line;
}

#order_lines > [id^="order_line_"] {
  counter-increment: order-line;
}

.order-line-number::before {
  content: counter(order-line);
}

/* Staff workspace: compact navigation and the existing BOPLALIT palette. */
.staff-nav-link, .staff-nav-menu summary { color: #dedee3; cursor: pointer; padding: .4rem .3rem; }
.staff-nav-link:hover, .staff-nav-menu summary:hover { color: white; }
.staff-nav-menu { position: relative; }
.staff-nav-menu summary { list-style: none; display: flex; align-items: center; gap: .25rem; }
.staff-nav-menu summary::-webkit-details-marker { display: none; }
.staff-nav-menu summary::after { content: ""; width: .4rem; height: .4rem; flex: 0 0 auto; margin: -.2rem .15rem 0 .45rem; border-right: 1.5px solid #a1a1aa; border-bottom: 1.5px solid #a1a1aa; transform: rotate(45deg); }
.staff-nav-menu[open] summary::after { margin-top: .2rem; transform: rotate(225deg); }
.staff-nav-panel { position: absolute; top: calc(100% + .6rem); right: 0; z-index: 60; min-width: 15rem; max-width: min(90vw, 24rem); padding: .5rem; background: white; border: 1px solid #dedee3; border-radius: .7rem; box-shadow: 0 10px 30px #0002; color: #242429; }
.staff-nav-panel a, .staff-nav-panel button, .staff-nav-email { display: block; padding: .7rem .8rem; text-align: left; width: 100%; overflow-wrap: anywhere; }
.staff-nav-panel a:hover, .staff-nav-panel button:hover { background: #f3f3f5; border-radius: .4rem; }
.staff-nav-panel button { cursor: pointer; }
.staff-nav-email { color: #72727e; font-size: .75rem; border-bottom: 1px solid #eee; }
.staff-nav-exit { color: white; border: 1px solid #666; border-radius: .4rem; padding: .4rem .7rem; }
.customer-preview-banner { border: 1px solid #e5c497; background: #fffaf0; color: #66431c; padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-radius: .7rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.customer-preview-banner p { font-size: .8rem; margin-top: .3rem; }
.customer-preview-banner a { white-space: nowrap; text-decoration: underline; font-size: .85rem; }
.staff-dashboard { max-width: 96rem; margin: 0 auto; color: #252529; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: .5rem 0 2rem; flex-wrap: wrap; }
.dashboard-eyebrow { font-size: .67rem; letter-spacing: .15em; font-weight: 700; color: #86868f; margin-bottom: .6rem; }
.dashboard-heading h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.2; }
.dashboard-heading p:not(.dashboard-eyebrow) { color: #777781; font-size: .9rem; margin-top: .6rem; }
.dashboard-primary { display: inline-flex; padding: .85rem 1.25rem; background: #242428; color: #fff; border: 1px solid #242428; border-radius: .65rem; font-weight: 600; font-size: .85rem; }
.dashboard-primary:hover { background: #414146; }
.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.dashboard-card { position: relative; display: flex; flex-direction: column; padding: 1.25rem 1.4rem; border: 1px solid #dddde3; border-radius: .8rem; background: white; box-shadow: 0 2px 3px #00000003; }
.dashboard-card:hover { border-color: #aaaab4; }
.dashboard-card.is-selected { border-color: #c17b80; }
.dashboard-card-label { color: #60606b; font-size: .85rem; font-weight: 600; }
.dashboard-card strong { font-size: 2.3rem; line-height: 1.3; letter-spacing: -.05em; margin: .65rem 0 .4rem; }
.dashboard-card-caption { font-size: .73rem; color: #85858f; }
.dashboard-card-dot { position: absolute; right: 1.3rem; top: 1.5rem; width: .45rem; height: .45rem; background: #c92e37; border-radius: 50%; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0,1fr) 18rem; gap: 1.5rem; align-items: start; }
.dashboard-panel { background: white; border: 1px solid #dddde3; border-radius: .8rem; overflow: hidden; }
.dashboard-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.4rem; }
.dashboard-panel-heading h2 { font-size: 1rem; font-weight: 650; }
.dashboard-panel-heading p { font-size: .75rem; color: #888891; margin-top: .3rem; }
.dashboard-panel-heading a { font-size: .76rem; color: #a9212a; white-space: nowrap; }
.dashboard-filters { display: flex; gap: .25rem; padding: 0 1.4rem 1rem; }
.dashboard-filters a { padding: .45rem .65rem; font-size: .75rem; color: #70707a; border-radius: .4rem; }
.dashboard-filters .is-selected { background: #f0f0f3; color: #26262d; font-weight: 600; }
.dashboard-table-scroll { overflow-x: auto; }
.dashboard-table { width: 100%; min-width: 35rem; font-size: .8rem; text-align: left; }
.dashboard-table th { background: #fafafa; padding: .85rem 1.4rem; font-size: .67rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; color: #81818c; border-block: 1px solid #eeeef1; }
.dashboard-table td { padding: 1.1rem 1.4rem; border-bottom: 1px solid #eeeef1; max-width: 20rem; overflow-wrap: anywhere; }
.dashboard-table tr:last-child td { border-bottom: none; }
.dashboard-table td a { font-weight: 600; text-decoration: none; }
.dashboard-table td a:hover { color: #b02029; text-decoration: underline; }
.dashboard-table small { display: block; margin-top: .3rem; color: #85858f; }
.dashboard-status { font-size: .71rem; color: #745824; background: #faf4e8; border: 1px solid #efe2c7; border-radius: .35rem; padding: .3rem .45rem; white-space: nowrap; }
.dashboard-empty { padding: 3rem 1.5rem; text-align: center; color: #82828b; font-size: .85rem; }
.dashboard-empty strong { display: block; color: #464650; margin-bottom: .5rem; }
.dashboard-side { display: grid; gap: 1.5rem; }
.dashboard-list-metrics { padding: 0 1.4rem .8rem; }
.dashboard-list-metrics a { display: flex; justify-content: space-between; padding: .75rem 0; border-top: 1px solid #eeeef1; font-size: .8rem; color: #71717d; }
.dashboard-list-metrics strong { color: #35353d; }
.dashboard-list-metrics .dashboard-attention { color: #b42832; }
.dashboard-shortcuts { padding: 0 .65rem .65rem; }
.dashboard-shortcuts a { display: block; padding: .7rem .75rem; font-size: .8rem; border-radius: .4rem; }
.dashboard-shortcuts a:hover { background: #f6f6f8; color: #b02029; }
@media (max-width: 1050px) { .dashboard-columns { grid-template-columns: 1fr; } .dashboard-side { grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); } }
@media (max-width: 600px) { .staff-navigation { position: relative; width: 100%; } .staff-nav-menu { position: static; } .staff-nav-panel { right: 0; min-width: min(15rem, 100%); max-width: 100%; } .dashboard-heading { margin-top: 0; } .dashboard-cards { gap: .65rem; } .dashboard-card { padding: 1rem; } .dashboard-card strong { font-size: 1.8rem; } .dashboard-card-dot { right: 1rem; top: 1.25rem; } }

.dashboard-list-metrics a:hover { background: #fafafa; color: #a9212a; }
.dashboard-list-metrics a:focus-visible { outline: 2px solid #a9212a; outline-offset: 2px; border-radius: .2rem; }
