.message-form input:invalid { outline: none !important; box-shadow: none !important; border-color: var(--line) !important; }
.message-form input:focus { outline: none !important; box-shadow: 0 0 0 2px rgba(255, 90, 54, .18) !important; }
.chat-actions { position: relative; margin-left: auto; }
.chat-actions .more { margin-left: 0; }
.conversation-menu { position: absolute; z-index: 3; right: 0; top: 27px; display: grid; min-width: 190px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 28px #1112; }
.conversation-menu[hidden] { display: none !important; }
.conversation-menu button { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: var(--white); text-align: left; font-size: 9px; font-weight: 700; }
.conversation-menu button:last-child { border-bottom: 0; color: #b84629; }
.inventory-table .table-head, .inventory-table .inventory-row { grid-template-columns: 2fr 1.5fr .6fr .85fr minmax(174px, auto); }
.inventory-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.inventory-action { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid transparent; border-radius: 50%; padding: 0; background: transparent; color: var(--ink); font: 700 16px/1 Arial, sans-serif; }
.inventory-action:hover { border-color: var(--line); background: var(--acid); }
.inventory-action--delete { color: var(--orange); font-size: 15px; }
.inventory-action--delete:hover { border-color: #ffc2b2; background: #fff0ea; }
.inventory-action--availability { width: 25px; height: 25px; font-size: 15px; }
.inventory-action--availability.is-available { border-color: #a9dca8; color: #238636; }
.inventory-action--availability.is-unavailable { border-color: #ffc0ba; color: #d92d20; }
.inventory-confirm { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 18px; }
.inventory-confirm__backdrop { position: absolute; inset: 0; background: #10131091; }
.inventory-confirm__card { position: relative; z-index: 1; width: min(390px, 100%); padding: 24px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 22px 60px #1114; }
.inventory-confirm__card h2 { margin: 0 0 10px; font-size: 22px; }
.inventory-confirm__card p { margin: 0; color: var(--muted); line-height: 1.45; }
.inventory-confirm__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.inventory-confirm__actions button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); font: 800 12px/1 Manrope, Arial, sans-serif; cursor: pointer; }
.inventory-confirm__cancel { background: var(--white); color: var(--ink); }
.inventory-confirm__delete { border-color: var(--orange) !important; background: var(--orange); color: #fff; }
#partModal .part-modal { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.modal-save-top { width: 100%; margin: 0 0 16px; }
.order-state-note { min-height: 1.35em; margin: -7px 0 14px !important; color: var(--muted) !important; }
.order-actions .primary:disabled { background: #e0e4d9; color: #5e6b5a; cursor: default; }
[data-role-link][hidden] { display: none !important; }

.topbar .cart-link { font-size: 11px; }
.header-chat-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 3px; border: 0; background: transparent; color: var(--ink); font: 700 11px/1.2 Manrope, Arial, sans-serif; white-space: nowrap; cursor: pointer; }
.header-chat-link i { display: grid; min-width: 18px; height: 18px; padding: 0 4px; place-items: center; border-radius: 999px; background: #ff5a36; color: #fff; font-size: 9px; font-style: normal; line-height: 1; }
.header-chat-link:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* Keep sidebar icons and counters compact while making navigation labels easier to read. */
.side-nav button > span:nth-child(2) { font-size: 11px; line-height: 1.3; }
.side-nav button > span:first-child { font-size: 11px; line-height: 1; }
.side-nav .nav-icon { position: relative; display: inline-block; width: 16px; height: 16px; flex: 0 0 16px; color: currentColor; }
.side-nav .nav-icon::before, .side-nav .nav-icon::after { position: absolute; display: block; content: ""; box-sizing: border-box; }
.side-nav .nav-icon--dashboard { border: 1.5px solid currentColor; border-radius: 3px; }
.side-nav .nav-icon--dashboard::before { top: 5px; left: 4px; width: 7px; height: 4px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 7px 7px 0 0; }
.side-nav .nav-icon--dashboard::after { top: 6px; left: 8px; width: 1.5px; height: 4px; background: currentColor; transform: rotate(42deg); transform-origin: bottom; }
.side-nav .nav-icon--car { background: radial-gradient(circle at 4px 13px, currentColor 0 2px, transparent 2.1px), radial-gradient(circle at 12px 13px, currentColor 0 2px, transparent 2.1px); }
.side-nav .nav-icon--car::before { top: 7px; left: 1px; width: 14px; height: 6px; border: 1.5px solid currentColor; border-radius: 4px 4px 2px 2px; }
.side-nav .nav-icon--car::after { top: 4px; left: 5px; width: 7px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; transform: skewX(-17deg); }
.side-nav .nav-icon--wheel { border: 1.5px solid currentColor; border-radius: 50%; }
.side-nav .nav-icon--wheel::before { top: 2px; left: 6px; width: 1.5px; height: 10px; background: currentColor; }
.side-nav .nav-icon--wheel::after { top: 6px; left: 2px; width: 10px; height: 1.5px; background: currentColor; }
.side-nav .nav-icon--message { border: 1.5px solid currentColor; border-radius: 5px; }
.side-nav .nav-icon--message::before { right: 2px; bottom: -3px; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: skewY(-35deg); }
.side-nav .nav-icon--message::after { top: 6px; left: 4px; width: 6px; height: 1.5px; background: currentColor; box-shadow: 0 -3px 0 currentColor; }
.side-nav .nav-icon--key::before { top: 1px; left: 1px; width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; }
.side-nav .nav-icon--key::after { top: 7px; left: 7px; width: 9px; height: 1.5px; background: currentColor; box-shadow: 4px 3px 0 -0.1px currentColor; transform: rotate(-45deg); transform-origin: left center; }

@media (max-width: 760px) {
  .inventory-table .table-head, .inventory-table .inventory-row { min-width: 750px; }
  .header-chat-link { padding: 6px; border: 1px solid var(--line); border-radius: 999px; }
  .header-chat-link span { display: none; }
}
