/*
 * Mockup theme alignment (docs/maxeme/VISUAL-CHECK-2026-11-17.md).
 * Loaded after app.css and maxeme-theme.css. Each section is one numbered item (T1, T2, …) and was
 * committed on its own, so a single item can be reverted with `git revert <commit>`; dropping the
 * <link> in templates/base.html.twig removes all of it.
 */

/* T1 Top bar: "Group › Page" breadcrumb on the left, user menu on the right. */
.admin-content-header { justify-content: space-between; background: #f8f9fa; border-bottom: 1px solid #e5e7eb; }
.admin-content-header .mx-crumb { font-size: 0.75rem; color: #6b7280; }

/* T2 Sidebar: blue highlight on the current page, mockup item sizes, brand block, searches, and the
   "‹ Collapse" label. Desktop only; the phone menu keeps its own look. */
@media (min-width: 981px) {
    .site-admin .brand { padding: 12px 14px; }
    .site-admin .brand-copy { color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: .02em; }
    .site-admin .brand-copy small { color: #fff; opacity: .85; font-size: .68rem; font-weight: 400; letter-spacing: .08em; margin-top: 2px; }
    .site-admin .nav .nav-group-title { font-size: .8125rem; font-weight: 500; color: #181c2e; border: 0; border-radius: 0; padding: 7px 12px; }
    .site-admin .nav a.nav-sub { font-size: .78rem; font-weight: 400; color: #333; border: 0; border-radius: 0; min-height: 0; padding: 4px 12px 4px 38px; }
    .site-admin .nav a.nav-sub:hover { background: #e2e2e2; }
    .site-admin .nav a.nav-sub.is-current,
    .site-admin .nav-sub.is-current { background: #428bca !important; color: #fff !important; font-weight: 600; }
    .site-admin .nav a.nav-sub.is-current:hover { background: #3071a9 !important; }
    .mx-side-search { padding: 10px 12px 14px; }
    .mx-side-search h5 { font-size: .68rem; margin-bottom: 3px; }
    .mx-side-search form + form { margin-top: 9px; }
    .mx-side-field { border-color: #ccc; }
    .mx-side-field input { padding: 5px 8px; font-size: .78rem; }
    .mx-side-search .mx-side-go { flex-basis: 34px; width: 34px; border-radius: 0; }
    .site-admin .sidebar-collapse-toggle { justify-content: flex-start; gap: 4px; padding: 6px 12px; font-size: .75rem; color: #555; }
    .site-admin .sidebar-collapse-toggle[aria-expanded="true"]::after { content: "Collapse"; }
    /* Rows run edge to edge like the mockup; the add icon floats over the right end of its row. */
    .site-admin .nav { padding-left: 0; padding-right: 0; }
    .site-admin .nav-sub-row { position: relative; margin: 0; }
    .site-admin .nav-sub-row > a.nav-affordance { position: absolute; right: 8px; margin: 0; }
    .site-admin .nav-sub-row > a.nav-sub.is-current + a.nav-affordance { color: #fff; }
    .mx-side-search { margin-left: 0; margin-right: 0; }
}

/* T3 Tables: mockup density and type sizes, flat filter boxes, head controls keep their case, the
   last column's resize grip no longer sticks out (that 6px drew an empty scrollbar under tables), and
   links inside cells are blue. Document tables (.invoice-document) are left alone. */
.site-admin .content-frame table:not(.invoice-document table) th { padding: 9px 12px; font-size: .7rem; letter-spacing: .04em; }
.site-admin .content-frame table:not(.invoice-document table) td { padding: 9px 12px; font-size: .82rem; }
.site-admin .wide-table-wrap th:first-child,
.site-admin .wide-table-wrap td:first-child { padding-left: 12px; }
.site-admin .content-frame th .button,
.site-admin .content-frame th button,
.site-admin .content-frame th select,
.site-admin .content-frame th input,
.site-admin .content-frame th a { text-transform: none; letter-spacing: 0; }
.site-admin .content-frame table:not(.invoice-document table) th { text-align: left; }
.site-admin .content-frame table:not(.invoice-document table) th.num { text-align: right; }
.table-card .filter-row th { padding: 0; background: #fbfcfe; }
.table-card .filter-row input,
.table-card .filter-row select { height: 30px; min-height: 30px; border: 0; border-right: 1px solid #d6d9de; border-radius: 0; padding: 0 7px; font-size: .78rem; background: #fff; }
.site-admin th:last-child > .col-resize-handle { right: 0; width: 6px; }
.site-admin .content-frame td a:not(.button):not(.mx-btn) { color: #428bca; }
.site-admin .content-frame td a:not(.button):not(.mx-btn):hover { text-decoration: underline; }
/* The Actions heading carries an inline centre in several templates; the mockup puts it on the left. */
.site-admin .content-frame table th[style*="text-align:center"]:last-child { text-align: left !important; }

/* T4 Buttons and inputs: buttons in table rows, table headers and the page header are the mockup's
   small size; the row "more" button is an outline "⋯"; inputs use the mockup's border and radius. */
.site-admin .content-frame td .button,
.site-admin .content-frame .table-header .button,
.site-admin .content-frame .panel-title-row .button,
.site-admin .content-frame .mx-btn-sm { height: 28px; min-height: 28px; padding: 0 9px; border-radius: 5px; font-size: .76rem; font-weight: 500; }
.site-admin .content-frame td .row-action-menu .row-action-toggle:not(.btn-pdf), .site-admin .content-frame .row-action-toggle:not(.btn-pdf) { width: auto !important; min-width: 28px !important; height: 28px !important; min-height: 28px !important; padding: 0 9px !important; border-radius: 5px !important; border: 1px solid #ccc !important; background: #fff !important; color: #333 !important; font-size: .76rem; transform: none; }
.site-admin .content-frame .row-action-toggle:not(.btn-pdf):hover { background: #e6e6e6 !important; transform: none; }
.site-admin .content-frame .row-action-toggle:not(.btn-pdf)::after { content: "⋯"; width: auto; height: auto; border: 0; transform: none; line-height: 1; }
.site-admin .content-frame input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.filter-row input),
.site-admin .content-frame select:not(.filter-row select),
.site-admin .content-frame textarea { border-color: #d1d5db; border-radius: 6px; font-size: .84rem; }

/* T5 Status badges: the mockup tints appointment status pills (13% of the status colour behind
   text in that colour) instead of filling them solid. */
.site-admin .badge.mx-appt-badge, .mx-appt-badge { color: var(--mx-appt-colour, #6b7280) !important; background: color-mix(in srgb, var(--mx-appt-colour, #6b7280) 13%, transparent) !important; }
.mx-appt-badge.appt-new { --mx-appt-colour: var(--mx-appt-new); }
.mx-appt-badge.appt-in_progress { --mx-appt-colour: var(--mx-appt-in-progress); }
.mx-appt-badge.appt-complete { --mx-appt-colour: var(--mx-appt-complete); }
.mx-appt-badge.appt-extended { --mx-appt-colour: var(--mx-appt-extended); }
.mx-appt-badge.appt-no_show { --mx-appt-colour: var(--mx-appt-no-show); }
.mx-appt-badge.appt-cancelled { --mx-appt-colour: var(--mx-appt-cancelled); }

/* T6 Page frame and cards: the mockup's content sits 24px in from the sidebar with cards spaced
   apart; form cards are rounded (12px), list cards stay square with a grey header like the mockup's
   .table-card. */
@media (min-width: 981px) {
    .site-admin .content-frame { padding: 0 24px 80px; }
    .site-admin .content-frame > .admin-content-header { margin: 0 -24px 6px; }
    .site-admin .content-frame > .panel.compact-panel { padding-left: 0; padding-right: 0; }
}
.site-admin .content-frame .form-card { border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 20px 22px; margin-bottom: 16px; }
.site-admin .content-frame .mx-card { border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.site-admin .content-frame .table-card { border: 1px solid #e5e7eb; margin-bottom: 18px; }
.site-admin .content-frame .table-header { padding: 14px 18px; background: #f9fafb; }
.site-admin .content-frame .table-header h2 { font-size: .92rem; font-weight: 700; }

/* T7 Back button: the mockup's plain outline button with a small "←" in a circle. */
.site-admin .button.back-button { min-width: 0; color: #333; border-color: #ccc; background: #fff; gap: 6px; }
.site-admin .button.back-button::before { content: "←"; width: 16px; height: 16px; margin-right: 0; padding: 0; border: 1.5px solid currentColor; border-radius: 50%; color: inherit; background: transparent; font-size: .6rem; font-weight: 700; }
.site-admin .button.back-button:hover { color: #333; border-color: #adadad; background: #e6e6e6; transform: none; }
.site-admin .button.back-button:hover::before { color: inherit; background: transparent; }

/* T8 Form buttons: Cancel / Save sit at the bottom right, as in the mockup's .form-actions. */
.site-admin .content-frame .form-actions:not(.inline-form-grid > .form-actions) { justify-content: flex-end; gap: 6px; }

/* T9 Form labels above their fields (the mockup's .field), with the hint in small grey beside the
   label text, instead of a 170px label column on the left. */
.site-admin .form-grid:not(.address-form-grid):not(.product-form-grid):not(.inline-form-grid) > label:not(.check-row):not(.radio-choice):not(.file-upload-label):not(.note-modal-field):not(.rich-text-field) { grid-template-columns: minmax(0, 1fr); row-gap: 4px; align-items: start; font-size: .78rem; font-weight: 600; color: #374151; }
.site-admin .form-grid:not(.inline-form-grid) > label > span > small.muted-line, .site-admin .form-grid label > span small, .site-admin .form-grid label > span .muted-line { display: inline; margin: 0 0 0 3px; font-weight: 400; color: #6b7280; font-size: .72rem; }

/* P1 Calendar (appointments): outline toolbar buttons, smaller title, bold day headers, small grey
   hour labels, no yellow "today" column in Day/Week (the month cell keeps it), 12px event text,
   small grey weekday heads in Month. The slot calendar on the appointment form shares these. */
.mx-calendar, .appointment-calendar-wrap {
    --fc-button-bg-color: #fff; --fc-button-border-color: #ccc; --fc-button-text-color: #333;
    --fc-button-hover-bg-color: #e6e6e6; --fc-button-hover-border-color: #adadad;
    --fc-button-active-bg-color: #3071a9; --fc-button-active-border-color: #3071a9;
}
.mx-calendar .fc .fc-button, .appointment-calendar-wrap .fc .fc-button { height: 28px; padding: 0 9px; font-size: .76rem; font-weight: 500; border-radius: 6px; box-shadow: none !important; }
.mx-calendar .fc .fc-button-group > .fc-button, .appointment-calendar-wrap .fc .fc-button-group > .fc-button { border-radius: 0; }
.mx-calendar .fc .fc-button-group > .fc-button:first-child, .appointment-calendar-wrap .fc .fc-button-group > .fc-button:first-child { border-radius: 6px 0 0 6px; }
.mx-calendar .fc .fc-button-group > .fc-button:last-child, .appointment-calendar-wrap .fc .fc-button-group > .fc-button:last-child { border-radius: 0 6px 6px 0; }
.mx-calendar .fc .fc-button-primary:not(:disabled).fc-button-active, .appointment-calendar-wrap .fc .fc-button-primary:not(:disabled).fc-button-active { color: #fff; }
.mx-calendar .fc .fc-button:disabled, .appointment-calendar-wrap .fc .fc-button:disabled { opacity: .55; }
.mx-calendar .fc-toolbar-title, .appointment-calendar-wrap .fc-toolbar-title { font-size: 1rem; font-weight: 700; }
.mx-calendar .fc-timegrid .fc-col-header-cell-cushion { font-size: .8rem; font-weight: 700; color: #1f2937; padding: 7px 4px; }
.mx-calendar .fc-col-header-cell { background: #f4f5f7; }
.mx-calendar .fc-timegrid-slot-label-cushion { font-size: .68rem; color: #6b7280; }
.mx-calendar .fc-timegrid-col.fc-day-today { background: #fff; }
.site-admin .content-frame .fc td a:not(.button) { color: inherit; }
/* FullCalendar's own grid keeps its cell padding and centring (the T3 table rule must not reach it). */
.site-admin .content-frame .fc table:not(.invoice-document table) th,
.site-admin .content-frame .fc table:not(.invoice-document table) td { padding: 0; font-size: inherit; letter-spacing: normal; }
.site-admin .content-frame .fc table:not(.invoice-document table) th { text-align: center; }
.mx-calendar .mx-event-lines { font-size: .76rem; }
.mx-calendar .fc-dayGridMonth-view .fc-col-header-cell-cushion { text-transform: uppercase; font-size: .7rem; font-weight: 500; color: #6b7280; }

/* P2 Appointment form: read-only Client and Phone in grey boxes; the slot calendar fills the column
   (the "who starts at this time" list drops below it, and only once a slot is picked); hour labels
   grey as in the mockup. */
.appt-form-grid input[readonly] { background: #f5f6f8; }
.appointment-calendar-wrap.is-day { grid-template-columns: minmax(0, 1fr); }
#timeslot-detail { height: auto; margin-top: 10px; }
#timeslot-detail:has(#timeslot-detail-container[hidden]) { display: none; }
#timeslot-detail-list { height: auto; max-height: 240px; }
.appointment-calendar-wrap .fc-timegrid-slot-label { color: #6b7280; background: #f9fafb; }
.appointment-calendar-wrap .fc-event .fc-title { text-align: left; padding-left: 6px; }

/* P3 Repair order: small uppercase column headings in the top card, the customer as a blue link, the
   rule note under Status, a compact Totals box on the right with 70px rate boxes, and the Notes /
   History header buttons centred as in the mockup. */
.mx-ro-head .section-label { text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; font-weight: 700; color: #6b7280; margin-bottom: 6px; }
.mx-ro-info a { color: #428bca; }
.mx-ro-note { font-size: .74rem; margin: 6px 0 0; }
.mx-ro-totals { width: auto; min-width: 460px; margin-left: auto; }
.site-admin .content-frame .mx-ro-totals td { border-bottom: 0; padding-top: 5px; padding-bottom: 5px; }
.site-admin .content-frame input.mx-rate-input { display: inline-block; width: 70px; min-height: 26px; height: 26px; padding: 0 6px; margin: 0 4px; }
.mx-ro-totals .mx-ro-total td { border-top: 2px solid #1f2937 !important; padding-top: 8px; }
#notes-card .table-header h2, #ro-history .table-header h2 { flex: 1; }
#notes-card .table-header::after, #ro-history .table-header::after { content: ""; flex: 1; }

/* P6 Client profile: the Pending / Past group rows on a light blue band (mockup). */
.mx-group-row td { background: #eaf2fa !important; }

/* P7 Vehicle page: the details card headed "VEHICLE", separate rounded stat tiles, and the Repair
   History filters straight after the heading (mockup). */
.mx-vehicle-top { margin: 6px 0 16px; }
.mx-vehicle-top .section-label { text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; font-weight: 700; color: #6b7280; }
.mx-dl dd a { color: #428bca; }
.mx-stats { align-self: start; }
.mx-stat { border-radius: 12px; border-color: #e5e7eb; padding: 14px 16px; }
#vehicle-history .table-header { justify-content: flex-start; }
#vehicle-history .mx-history-filter { margin-right: auto; display: flex; gap: 8px; }

/* P8 Dashboard: each block is a white rounded card (border, 12px radius, 20/22 padding) with its title
   in the card and a blue link beside it; counts in Needs attention are bold (zero stays grey). */
.site-admin .content-frame .mx-dash .table-card { border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 20px 22px; margin-bottom: 14px; }
.site-admin .content-frame .mx-dash .table-header { background: transparent; border-bottom: 0; padding: 0 0 12px; justify-content: space-between; }
.site-admin .content-frame .mx-dash .table-header h2 { font-size: .95rem; }
.mx-dash .table-header a { color: #428bca; font-size: .85rem; font-weight: 500; }
.mx-dash-todo a { padding: 8px 2px; border-bottom: 1px solid #e5e7eb; }
.mx-dash-todo a:last-child { border-bottom: 0; }
.mx-dash-todo b { font-weight: 700; color: #1f2937; }
.mx-dash-todo b.is-zero { font-weight: 400; color: #6b7280; }

/* P9 Services: the Active on/off switch (mockup .switch) on the list, and the Status box on the form. */
.mx-switch { position: relative; display: inline-block; width: 42px; height: 24px; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: #d0d5dd; cursor: pointer; vertical-align: middle; }
.mx-switch span { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.mx-switch.is-on { background: #428bca; }
.mx-switch.is-on span { transform: translateX(18px); }
.mx-service-status { display: grid; gap: 4px; align-content: start; }
.mx-service-status .mx-field-title { font-size: .78rem; font-weight: 600; color: #374151; }
.mx-service-status .check-row { display: flex; align-items: center; gap: 6px; font-weight: 500; }

/* P13 Payment report: the Overall row is bold on a light band, and Clear is a plain link (mockup). */
.site-admin .content-frame table tfoot td { background: #fafbfc; font-weight: 600; }
.mx-clear-link { margin-left: 6px; font-size: .78rem; color: #428bca; }
.site-admin .content-frame th .mx-method-filter, .site-admin .content-frame th summary { text-transform: none; letter-spacing: 0; }

/* P14 Repair Order Board: each column's number in a blue circle (mockup). */
.mx-board-step { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #428bca; color: #fff; font-size: .72rem; font-weight: 700; margin-right: 4px; }

/* P15 Stock adjustment: two columns (Quantity | Reference, Note | When) with Product, Location and
   Reason across, as in the mockup. */
.site-admin #adjust-form.form-grid { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.site-admin #adjust-form.form-grid > .span-2 { grid-column: 1 / -1; }

/* P16 Settings › Tax Rates: a compact card about half the page wide, grey code chips, and the note and
   Save on one row inside the card (mockup). */
.site-admin .content-frame .mx-tax-rates { max-width: 640px; }
.mx-tax-rates td code { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #f3f4f6; font-size: .72rem; }
.mx-tax-rates input[type="text"] { max-width: 220px; }
.mx-tax-rates input[type="number"] { max-width: 70px; }
.mx-tax-rates-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; }
.mx-tax-rates-foot .muted-line { margin: 0; font-size: .74rem; }

/* P18 Product form: two columns across the card (mockup), with Remarks / Short / Long Description in a
   closed section underneath instead of a third column. */
.product-form-card .product-form-grid { grid-template-columns: minmax(0, 1fr); }
.product-form-card .product-form-grid .mx-product-more { display: block; grid-column: 1 / -1; border-top: 1px solid #e5e7eb; padding-top: 10px; }
.mx-product-more > summary { cursor: pointer; font-size: .82rem; font-weight: 600; color: #374151; }
.mx-product-more[open] > summary { margin-bottom: 10px; }
.mx-product-more > label { display: grid; gap: 4px; margin-bottom: 12px; }
.product-image-field .field-label { text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; font-weight: 700; color: #6b7280; }
.product-image-field .image-dropzone-inner { min-height: 0; padding: 14px; }
.product-image-field .image-dropzone-inner svg, .product-image-field .image-dropzone-inner .dropzone-icon { display: none; }

/* P19 Invoice remark: the text, then a small blue "Add remark" / "Edit remark" link that opens the box
   (mockup), in a white card above the invoice. */
.site-admin .content-frame .mx-remark-card { background: #fff !important; border: 1.5px solid #e5e7eb !important; border-radius: 12px !important; padding: 10px 14px !important; margin-bottom: 12px; }
.mx-remark-text-block { white-space: pre-wrap; margin-top: 4px; }
.mx-remark-edit-toggle > summary { display: inline-block; cursor: pointer; font-size: .8rem; color: #428bca; list-style: none; }
.mx-remark-edit-toggle > summary::-webkit-details-marker { display: none; }
.mx-remark-edit-toggle[open] > summary { margin-bottom: 6px; }

/* T11 Re-check fixes for tables (follow-up to T3): column headings are the mockup's 11.2px and keep
   their capitals even when the heading is a sort link (T3's "keep case" now covers only buttons and
   form controls in a heading); filter boxes are square with dark 500-weight text. */
.site-admin .content-frame .table-card table thead > tr:not(.filter-row):not(.column-groups) > th,
.site-admin .content-frame table:not(.invoice-document table) thead > tr:not(.filter-row) > th { font-size: .7rem; padding: 9px 12px; }
.site-admin .content-frame thead > tr:not(.filter-row) > th > a,
.site-admin .content-frame thead > tr:not(.filter-row) > th a.sort-link,
.site-admin .content-frame thead > tr:not(.filter-row) > th button:not(.button) { text-transform: uppercase; letter-spacing: .04em; }
.site-admin .content-frame .table-card tr.filter-row input,
.site-admin .content-frame .table-card tr.filter-row select { border-radius: 0 !important; color: #000; font-weight: 500; border-top: 0; border-bottom: 0; border-left: 0; }

/* T12 Badges: the mockup's palette — success green #15803d on #dcfce7, info #428bca on #eff6ff,
   warn #92400e on #fffbeb, danger #d9534f on #fff1f2, danger-soft #b42318 on #fee4e2. */
.site-admin .badge.success { color: #15803d; background: #dcfce7; }
.site-admin .badge.info { color: #428bca; background: #eff6ff; }
.site-admin .badge.warn { color: #92400e; background: #fffbeb; }
.site-admin .badge.danger { color: #d9534f; background: #fff1f2; }
.site-admin .badge.danger-soft { color: #b42318; background: #fee4e2; }

/* T13 Headings and header buttons: page and card headings use the mockup's 1.6 line height (24px
   rows), card titles in form cards are .95rem; buttons on the right of a page header (Back, Logs,
   Edit…) are the normal 32px size — only the ones beside the title are small (T4). Form inputs are
   36px tall like the mockup's. */
.site-admin .content-frame h1, .site-admin .content-frame .panel-title-row h1, .site-admin .content-frame h2, .site-admin .content-frame .table-header h2 { line-height: 1.6 !important; }
.site-admin .content-frame .form-card > h2 { font-size: .95rem; }
.site-admin .content-frame .panel-title-row .panel-actions .button, .site-admin .content-frame .panel-title-row .panel-actions .mx-btn-sm { height: 32px; min-height: 32px; padding: 0 12px; border-radius: 8px; font-size: .8125rem; }
.site-admin .content-frame .form-card input[type="text"],
.site-admin .content-frame .form-card input[type="email"],
.site-admin .content-frame .form-card input[type="tel"],
.site-admin .content-frame .form-card input[type="number"],
.site-admin .content-frame .form-card input[type="date"],
.site-admin .content-frame .form-card select { min-height: 36px; }

/* P21 Filter bars in a card: the report / board / reminders date bar and the Activity Log filters sit
   in a white rounded card, as in the mockup. */
.site-admin .content-frame .mx-report-query { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 14px 18px; margin: 14px 18px 10px; }
.site-admin .content-frame .panel.compact-panel:has(> .mx-log-filters) { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }

/* P22 Clients / Vehicles: the row's open-profile 🔍 button is the mockup's small outline button. */
.site-admin .content-frame td .button.mx-row-icon { height: 24px; min-height: 24px; padding: 0 7px; border-radius: 5px; background: #fff; color: #333; border: 1px solid #ccc; }
.site-admin .content-frame td .button.mx-row-icon:hover { background: #e6e6e6; }

/* P23 Error Log: the row's View link is the mockup's small outline button. */
.site-admin .content-frame td a.table-action.info { display: inline-flex; align-items: center; height: 28px; padding: 0 9px; border-radius: 5px; border: 1px solid #ccc; background: #fff; color: #333; font-size: .76rem; font-weight: 500; }
.site-admin .content-frame td a.table-action.info:hover { background: #e6e6e6; }

/* P24 Products: the column-group row (PRODUCT CORE / CATALOG CONTROLS / PRODUCT PRICING) in the
   mockup's grey band, uppercase and centred. */
.site-admin .content-frame .wide-product-table .column-groups th { background: #eceef2 !important; color: #4b5563 !important; text-transform: uppercase; letter-spacing: .04em; font-size: .7rem; font-weight: 500; text-align: center; }

/* L2 My Profile: the profile card and Update Password side by side; label / value pairs left-aligned;
   New / Repeat password on one row (mockup). */
.site-admin .content-frame .mx-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.site-admin .content-frame .mx-profile-grid .mx-profile-card { max-width: none; margin: 0; }
.site-admin .content-frame .mx-profile-grid .profile-detail-list li { display: grid; grid-template-columns: 110px 1fr; justify-content: start; border-bottom: 0; padding: 3px 0; }
.site-admin .content-frame .mx-profile-grid .profile-detail-list li > strong { font-weight: 400; text-align: left; }
/*   (doubled class: core's .form-grid:not(…) rule is more specific than a plain one) */
.site-admin .content-frame .mx-profile-grid .mx-profile-password .form-grid.form-grid { grid-template-columns: 1fr 1fr; column-gap: 12px; }
@media (max-width: 900px) { .site-admin .content-frame .mx-profile-grid { grid-template-columns: 1fr; } }

/* L3 / L4 Two cards side by side (the mockup's .grid2): activity detail, role page. Label / value card
   as the mockup's .kv. */
.site-admin .content-frame .mx-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.site-admin .content-frame .mx-grid2 > * { margin: 0; min-width: 0; }
.site-admin .content-frame .mx-kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 0; font-size: .82rem; }
.site-admin .content-frame .mx-kv dt { color: #6b7280; font-weight: 400; }
.site-admin .content-frame .mx-kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 900px) { .site-admin .content-frame .mx-grid2 { grid-template-columns: 1fr; } }

/* L5 Invoice builder: Client Info and Vehicle Info in two columns (the notes full width); wider Quantity
   and Price boxes; the row "+" in the mockup's blue, square − / + buttons. (Classes doubled: core's
   .form-grid:not(…) one-column rule is more specific than a plain selector.) */
.site-admin .content-frame .form-grid.mx-form-cols2.mx-form-cols2.mx-form-cols2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; }
.site-admin .content-frame .form-grid.mx-form-cols2 > .span-2 { grid-column: 1 / -1; }
.site-admin .content-frame .mx-item-table td.item-quantity { width: 150px; }
.site-admin .content-frame .mx-item-table td.item-price { width: 170px; }
.site-admin .content-frame .mx-item-table td.item-quantity input, .site-admin .content-frame .mx-item-table td.item-price input { width: 100%; }
.site-admin .content-frame .mx-item-table .mini-action { border-radius: 4px; width: 22px; height: 22px; font-size: .85rem; }
.site-admin .content-frame .mx-item-table .mini-action.item-add { border-color: #357ebd; background: #428bca; }
.site-admin .content-frame .mx-item-table .mini-action.item-add:hover { border-color: #285e8e; background: #3071a9; }

/* L7 Email page (quote / work order / invoice): a compact card, the Attachment label above its file,
   Cancel / Send inside the card (mockup). */
.site-admin .content-frame .form-card.mx-email-card { max-width: 680px; }
.site-admin .content-frame .mx-email-card .mx-attachment { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.site-admin .content-frame .mx-email-card .form-actions { margin-top: 12px; }

/* C1 Products list: Edit, Stock, Logs side by side (mockup). */
.site-admin .wide-product-table td[data-label="Actions"] .action-group { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 4px; align-items: center; }
.site-admin .wide-product-table td[data-label="Actions"] .action-group > * { white-space: nowrap; }

/* C4 Movement History: Filter / Reset on their own line under the last filter box. */
.site-admin .mx-filter-buttons { display: flex; gap: 4px; margin-top: 4px; white-space: nowrap; }
/* C5 Product Lookup: the search box and Find on one row. */
.site-admin .mx-inline-find { display: flex; gap: 8px; align-items: flex-end; }
.site-admin .mx-inline-find label { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.site-admin .mx-inline-find .button { height: 38px; }

/* C9 Vendor form: a compact two-column card. */
.site-admin .content-frame .form-card.mx-vendor-form-card { max-width: 720px; }
