/* Écrans de gestion composés avec les jetons Sapin. */
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); }
.page-heading h1 { font-size: clamp(28px, 3.3vw, 38px); letter-spacing: -.055em; line-height: 1.18; font-weight: 800; overflow-wrap: anywhere; }
.page-heading p { margin-top: var(--s-2); }
h2 { font-size: 17px; line-height: 1.3; letter-spacing: -.02em; }
.back-link { display: inline-flex; align-items: center; min-height: 36px; margin-bottom: var(--s-2); color: var(--accent); font-weight: 800; text-decoration: none; }
.muted { color: var(--muted); font-size: 13px; }
.break-words { overflow-wrap: anywhere; }

.button, .plain { cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; padding: var(--s-2) var(--s-3); border: 1px solid transparent; border-radius: 9px; background: var(--accent); color: white; text-decoration: none; font-size: 13px; font-weight: 800; text-align: center; transition: transform 120ms var(--ease-out), background-color 120ms ease; }
.button:active:not(:disabled) { transform: scale(.98); }
.button.secondary { color: var(--ink); border-color: var(--line); background: var(--surface); }
.button:disabled { cursor: not-allowed; background: #e9efea; color: var(--muted); }
.plain { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--accent); text-decoration: underline; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.panel, .dashboard-card, .data-list { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: clamp(14px, 2.4vw, 21px); }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--s-3); align-items: start; }
.dashboard-card { display: grid; align-content: start; min-height: 110px; padding: var(--s-4); gap: var(--s-1); text-decoration: none; }
.card-value { margin-top: var(--s-2); font-size: 26px; line-height: 1.18; font-weight: 800; font-variant-numeric: tabular-nums; }
.card-link { display: flex; gap: var(--s-2); margin-top: var(--s-2); color: var(--accent); font-size: 12px; font-weight: 800; }
.section-spacing { margin-top: var(--s-5); }
.section-spacing > h2 { margin-bottom: var(--s-2); }
.empty { padding: var(--s-4); color: var(--muted); }
.data-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: 12px 15px; min-height: 52px; overflow-wrap: anywhere; }
.data-row + .data-row, .record + .record { border-top: 1px solid var(--line); }
.record-name { font-weight: 800; }
.product-value { display: flex; align-items: flex-end; flex-direction: column; flex-shrink: 0; gap: 2px; text-align: right; }
.status { padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status.active { background: var(--mint); color: var(--green); }
.status.neutral { background: #edf1ed; color: var(--muted); }
.status.busy { background: #fcf0dd; color: var(--amber); }
.table-heading { display: flex; justify-content: space-between; align-items: start; gap: var(--s-2); overflow-wrap: anywhere; }
.table-card details { margin-top: var(--s-3); }
.record > summary { padding: 11px 15px; overflow-wrap: anywhere; }
.record > form, .audit-values { padding: 0 15px 15px; }
summary { font-weight: 750; }
summary small { display: block; margin-left: 14px; font-weight: 500; }
details[open] > form { margin-top: var(--s-2); }
.audit-field { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-1) 0; }
.audit-field strong { min-width: 124px; }

.stack, .form-grid { display: grid; gap: var(--s-3); }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 48rem; }
.span-all { grid-column: 1 / -1; }
.inline-form, .search { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s-2); }
.inline-form label, .search label { flex: 1 1 14rem; }
.receipt-form { max-width: 52rem; }
.receipt-form .form-grid { max-width: none; }
.receipt-fields { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
.receipt-row { align-items: baseline; }
.receipt-row > :last-child { flex-shrink: 0; }
.receipt-row > :only-child { min-width: 0; flex-shrink: 1; }
.purchase-order-row { flex-wrap: wrap; }
.purchase-line-quantities { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.purchase-line-quantities dd { font-weight: 750; font-variant-numeric: tabular-nums; }
.search { justify-content: start; max-width: 44rem; margin-bottom: var(--s-4); }
label:not(.p-search, .p-chart-select) { display: grid; gap: var(--s-1); font-weight: 700; }
input:not([type="checkbox"], [type="hidden"]), select { color: var(--ink); }
.stack input:not([type="checkbox"], [type="hidden"]), .form-grid input:not([type="checkbox"], [type="hidden"]), .inline-form input:not([type="checkbox"], [type="hidden"]), .search input, .form-grid select, .stack select, .inline-form select {
    width: 100%; min-width: 0; min-height: 44px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--field); background: var(--surface); font-weight: 500;
}
input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
label.check { display: flex !important; align-items: center; gap: var(--s-2); min-height: 44px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 3px 12px; }
.optional { font-size: 12px; font-weight: 500; color: var(--muted); }
fieldset { min-width: 0; margin: 0; padding: 6px 12px 8px; border: 1px solid var(--line); border-radius: 8px; }
legend { padding: 0 4px; font-weight: 750; }
.settings-list { display: flex; flex-wrap: wrap; gap: 14px 22px; }
dt { font-weight: 750; }
dd { margin: 0; color: var(--muted); }

.public-page { display: grid; place-items: center; min-height: 100dvh; background: #eef5ee; }
.public-page .p-main { width: min(100%, 470px); padding: 18px; }
.auth-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--drawer-shadow); }
.auth-brand { padding: 22px 20px; background: var(--pine); }
.auth-brand img { display: block; max-width: 100%; height: auto; }
.auth-body { padding: clamp(16px, 5vw, 28px); }
.auth-body h1 { font-size: 24px; margin-bottom: var(--s-4); letter-spacing: -.03em; }
.auth-body p + p { margin-top: var(--s-2); }

.service-line { display: grid; gap: var(--s-1); padding: 12px 15px; overflow-wrap: anywhere; }
.service-line + .service-line { border-top: 1px solid var(--line); }
.service-line summary, .record summary { min-height: 44px; padding-block: 9px; }
.money-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: 12px 15px; }
.money-summary dd { color: var(--ink); font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.money-summary dd, .product-value { font-variant-numeric: tabular-nums; }
.product-list-photo { width: 54px; aspect-ratio: 3 / 2; flex: none; overflow: hidden; border-radius: 7px; }
.product-list-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-listing { display: flex; gap: var(--s-2); align-items: center; min-width: 0; }
.catalog-photo { max-width: 48rem; }
.catalog-photo-preview { max-width: min(100%, 210px); width: 100%; aspect-ratio: 3 / 2; border-radius: 9px; }
.catalog-photo .p-notice { margin-block: var(--s-3); }
.product-thumb { width: 50px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
    .button:hover:not(:disabled) { background: var(--accent-hover); }
    .button.secondary:hover, .dashboard-card:hover { border-color: #9ab4a4; background: #f2f7f2; }
}
@media (max-width: 480px) {
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .data-row { gap: var(--s-2); padding-inline: var(--s-2); }
}
@media (max-width: 760px), (pointer: coarse) {
    .stack input, .form-grid input, .inline-form input, .search input, .form-grid select, .stack select, .inline-form select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .button { transition: none; }
}

/* Tableau de bord */
.p-report-date { display: flex; align-items: center; gap: var(--s-2); }
.p-report-date svg { width: 16px; height: 16px; }
.p-day-summary {
    display: grid;
    grid-template-columns: 1.25fr 1.15fr 1fr 1fr;
    margin-bottom: var(--s-6);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.p-day-summary > div { min-width: 0; padding: var(--s-5); }
.p-day-summary > div + div { border-left: 1px solid var(--line); }
.p-day-summary dt { display: flex; align-items: center; gap: var(--s-2); color: var(--muted); font-size: 13px; }
.p-day-summary dt svg { width: 17px; height: 17px; }
.p-day-summary dd { margin-top: var(--s-3); color: var(--ink); font-size: 2.2rem; font-weight: 800; line-height: 1.15; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.p-day-summary > div:first-child { background: var(--pine); }
.p-day-summary > div:first-child dt { color: #d6edda; }
.p-day-summary > div:first-child dd { color: white; }
.p-overview .p-insights { grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 1fr); gap: var(--s-5); }
.p-overview .p-insights-single { grid-template-columns: minmax(0, 1fr); }
.p-overview .p-performance, .p-overview .p-attention { padding: var(--s-5); }
.p-performance .p-panel-heading { flex-wrap: wrap; }
.p-performance .p-panel-heading p, .p-legend, .p-overview .p-activity table { font-size: 12px; }
.p-performance .p-chart-empty { background: var(--background); border-radius: 8px; min-height: 180px; }
.p-attention-row { grid-template-columns: 24px minmax(0, 1fr) auto; min-height: 48px; padding: var(--s-2) 0; }
.p-attention-row .p-icon-tile { width: 24px; height: 24px; background: transparent; }
.p-attention-row strong { font-size: 13px; }
.p-attention-row strong:last-child { min-width: 24px; text-align: center; border-radius: 6px; background: var(--background); font-variant-numeric: tabular-nums; }
.p-shortcuts { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.p-shortcuts .p-dashboard-shortcut { min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.p-shortcut-icon { color: var(--green); }
.p-shortcut-icon svg { width: 17px; height: 17px; }
.p-shortcuts .p-dashboard-shortcut > svg { width: 14px; height: 14px; }
.p-overview .section-spacing { margin-top: var(--s-6); }
.p-overview .section-spacing > h2 { margin-bottom: var(--s-3); }

/* Catalogue */
.p-register { overflow: hidden; }
.p-register-tools, .p-register-search { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); }
.p-register-tools { justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); }
.p-register-search .p-search { width: 16rem; max-width: 100%; }
.p-register-search button svg { display: none; }
.p-register-tools h2 { display: flex; align-items: center; gap: var(--s-2); }
.p-result-count { background: var(--mint); color: var(--green); border-radius: 6px; padding: 2px 7px; font-size: 12px; font-variant-numeric: tabular-nums; }
.p-product-table { width: 100%; border-collapse: collapse; text-align: start; }
.p-product-table th, .p-product-table td { padding: 12px 16px; border-top: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.p-product-table thead, .p-form-actions { background: var(--background); }
.p-product-table thead th { font-size: 12px; color: var(--muted); font-weight: 750; }
.p-product-table tbody td { font-size: 13px; }
.p-product-table th:first-child { width: 36%; }
.p-product-table .p-price-col { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.p-product-table .p-status-col { text-align: center; }
.p-product-table .product-listing { gap: var(--s-3); }
.p-product-table .product-thumb { flex: none; width: 48px; aspect-ratio: 1.2; }
.p-product-table .record-name { color: var(--pine); text-decoration-color: #a1b8ab; }
.p-product-table .p-product-meta, .p-mobile-status { display: none; color: var(--muted); font-size: 12px; font-weight: 500; }
.p-register .pagination { padding: var(--s-4) var(--s-5); margin: 0; border-top: 1px solid var(--line); }
.p-register-empty { display: grid; justify-items: center; gap: var(--s-3); border-top: 1px solid var(--line); padding: var(--s-8); color: var(--muted); }

/* Fiche produit */
.p-editor-layout { max-width: 54rem; }
.p-editor-existing { max-width: none; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(18rem, 1fr); gap: var(--s-5); align-items: start; }
.p-editor-aside > :first-child { margin-top: 0; }
.p-editor-aside .catalog-photo-preview { max-width: 100%; max-height: 185px; }
.p-editor-aside input[type="file"] { max-width: 100%; }
.p-editor-aside .inline-form { display: grid; justify-items: start; }
.p-editor-aside .inline-form label { width: 100%; min-width: 0; }
.p-product-form { padding-top: var(--s-5); }
.p-form-section { border: 0; padding: 0 var(--s-6) var(--s-5); }
.p-form-section + .p-form-section { padding-top: var(--s-4); }
.p-form-section legend { float: left; width: 100%; padding: 0 0 var(--s-3); margin: 0 0 var(--s-4); border-bottom: 1px solid var(--line); color: var(--pine); font-size: 17px; }
.p-form-section .form-grid { clear: both; max-width: none; gap: var(--s-4); }
.p-form-field { display: grid; min-width: 0; align-content: start; gap: var(--s-1); }
.p-form-field label { font-size: 13px; }
.p-form-field [aria-invalid="true"] { border-color: var(--red) !important; }
.p-field-error { font-size: 12px; color: var(--red); }
.p-availability .check { display: inline-flex !important; margin-right: var(--s-4); }
.p-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); padding: var(--s-4) var(--s-6); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }

@media (hover: hover) and (pointer: fine) {
    .p-site-switch:hover, .p-product-table .record-name:hover { color: var(--accent); text-decoration: underline; }
    .p-shortcuts a:hover, .p-attention-row:hover, .p-product-table tbody tr:hover { background: var(--mint); }
}
@media (max-width: 1080px) {
    .p-editor-existing { grid-template-columns: minmax(0, 1fr); }
    .p-editor-layout { max-width: 54rem; }
    .p-product-table .p-category-col, .p-product-table .p-station-col { display: none; }
    .p-product-table .p-product-meta { display: block; }
}
@media (max-width: 1000px) {
    .p-overview .p-insights { grid-template-columns: minmax(0, 1fr); }
    .p-day-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .p-day-summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .p-day-summary > div:nth-child(3) { border-left: 0; }
}
@media (max-width: 600px) {
    .p-register-tools, .p-form-section, .p-form-actions { padding-inline: var(--s-4); }
    .p-register-search { width: 100%; }
    .p-register-search .p-search { flex: 1 1 9rem; }
    .p-register-search button { min-width: 44px; }
    .p-register-search button span, .p-register-search .p-search svg { display: none; }
    .p-register-search button svg { display: block; width: 18px; height: 18px; }
    .p-product-table .p-status-col { display: none; }
    .p-mobile-status { display: block; }
    .p-product-table th, .p-product-table td { padding: 12px 8px; }
    .p-product-table th:first-child { width: 65%; }
    .p-product-table .product-listing { gap: var(--s-2); }
    .p-product-table .product-thumb { width: 36px; }
    .p-day-summary > div { padding: var(--s-3); }
    .p-day-summary dt { align-items: flex-start; font-size: 12px; }
    .p-day-summary dd { font-size: 1.65rem; }
    .p-overview .p-performance, .p-overview .p-attention { padding: var(--s-4); }
    .p-form-actions .button { flex: 1 1 12rem; }
}

/* Registres de gestion */
.p-ledger { overflow: hidden; }
.p-ledger table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.p-ledger th, .p-ledger td { padding: var(--s-3) var(--s-5); overflow-wrap: anywhere; }
.p-ledger thead th { background: var(--background); font-size: 12px; font-weight: 750; color: var(--muted); }
.p-ledger tbody tr { border-top: 1px solid var(--line); }
.p-ledger th[scope="row"] { font-weight: 700; }
.p-ledger .muted { margin-top: var(--s-1); font-weight: 500; }
.p-ledger :is(th, td):last-child { text-align: right; }
.p-ledger td .actions { justify-content: flex-end; }
.record-name { color: var(--pine); text-decoration-color: #9db8a7; }
.p-ledger .pagination, .p-stock-register .pagination { margin: 0; padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); }
.p-ledger .empty, .data-list > .empty { padding: var(--s-8) var(--s-5); text-align: center; }
form + .p-ledger { margin-top: var(--s-4); }
.money-summary { padding: 1px; gap: 1px; overflow: hidden; background: var(--line); border: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.money-summary > div { min-width: 0; background: var(--surface); padding: var(--s-4); }
.money-summary dt { color: var(--muted); font-size: 12px; }
.money-summary dd { margin-top: var(--s-2); font-size: 1.35rem; }
.money-summary > div:last-child { background: var(--pine); }
.money-summary > div:last-child dt { color: #d6edda; }
.money-summary > div:last-child dd { color: white; }

/* Service en salle et aux postes */
.p-table-stats { padding: var(--s-1); gap: var(--s-1); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.p-table-stat { border: 0; border-radius: 9px; box-shadow: none; }
.p-table-stat[aria-pressed="true"] { background: var(--pine); color: white; }
.p-table-stat[aria-pressed="true"] strong + span { color: #d6edda; }
.p-table-stat strong + span { font-size: 12px; }
.p-floor-zone + .p-floor-zone { margin-top: var(--s-6); }
.p-floor-zone > h2 { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); color: var(--pine); overflow-wrap: anywhere; }
.p-floor-zone > h2 svg { width: 18px; height: 18px; }
.p-floor-zone .p-table-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.p-table-card { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-3); padding: var(--s-4); }
.p-table-card-top { align-items: baseline; flex-wrap: wrap; }
.p-table-card-top h3 { font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere; }
.p-table-card .p-table-details { min-height: 0; margin: 0; overflow-wrap: anywhere; }
.p-table-details span, .p-card-action { font-size: 12px; }
.p-table-card a.p-card-action { background: var(--mint); border-color: transparent; color: var(--pine); }
.p-queue-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-ticket-header { padding: var(--s-4) var(--s-4) var(--s-1); background: var(--background); overflow-wrap: anywhere; }
.p-ticket-server { padding: 0 var(--s-4) var(--s-3); background: var(--background); }
.p-ticket-line { padding: var(--s-3) var(--s-4); }
.p-ticket-item { flex-wrap: wrap; }
.p-ticket-item strong { font-size: 14px; overflow-wrap: anywhere; }
.p-ticket-item span, .p-ticket-id, .p-ticket-server { font-size: 12px; }
.p-ticket-delivery { flex-wrap: wrap; }
.p-ticket-priority { border: 1px solid #be8f4b; }
.p-cart-heading { background: var(--pine); color: white; padding: var(--s-4); }
.p-cart-heading > .p-badge { white-space: normal; overflow-wrap: anywhere; }
.p-product-name, .p-sent-line, .p-cart-total { overflow-wrap: anywhere; }
.p-product-grid .p-product { display: flex; flex-direction: column; }
.p-product-grid .p-product-photo, .p-product-grid .p-product-body { width: 100%; }
.p-product-grid .p-product-body { flex: 1; align-content: space-between; gap: var(--s-2); padding: var(--s-3); }
.p-product-meta strong { overflow-wrap: anywhere; }
.p-order-workspace .p-cart-subtotal, .p-order-workspace .p-cart-section h3 { font-size: 12px; }
.p-order-workspace .p-cart-total { align-items: baseline; }
.p-queue-summary > div { border-top: 0; }

/* Stock et saisie */
.p-stock-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.p-stock-register > h2 { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-4) var(--s-5); }
.p-stock-filter { padding: var(--s-3) var(--s-5); background: var(--background); border-block: 1px solid var(--line); }
.p-stock-filter label { flex: 1 1 9rem; min-width: 0; }
.p-stock-register h2 + .p-stock-lines { border-top: 1px solid var(--line); }
.p-stock-lines .data-row, .p-stock-lines .service-line { padding: var(--s-3) var(--s-5); }
.p-stock-lines .table-heading > :last-child, .p-stock-lines .data-row > strong { font-variant-numeric: tabular-nums; }
.p-stock-lines .service-line > .p-badge { justify-self: start; }
.check-grid { gap: var(--s-2); }
.check-grid label.check { padding: var(--s-2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.check-grid label:has(input:checked) { background: var(--mint); border-color: #8caa97; color: var(--pine); }
.form-grid label, .stack label { min-width: 0; }
.panel.form-grid, .receipt-form { gap: var(--s-4); }
.panel.form-grid > .span-all:last-child:has(> button[type="submit"]), .receipt-form > .actions:last-child { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--s-2); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.receipt-form fieldset, .form-grid > fieldset { padding: var(--s-3) var(--s-4); }
.receipt-form legend, .form-grid > fieldset > legend { color: var(--pine); }
.settings-list { padding-block: var(--s-3); gap: var(--s-5); }
.settings-list dt { font-size: 12px; color: var(--muted); }
.settings-list dd { color: var(--ink); font-weight: 700; }
.record[open] > summary { background: var(--mint); color: var(--pine); }
.p-role-permissions summary { width: fit-content; min-height: 44px; padding-block: 10px; color: var(--green); font-size: 13px; }
.p-role-permissions ul { padding: 0 0 var(--s-2) var(--s-5); }
.audit-field { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr); padding: var(--s-2) 0; }
.audit-field + .audit-field { border-top: 1px solid var(--line); }
.audit-field dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-2); color: var(--ink); }
.audit-field dd > svg { align-self: center; width: 14px; height: 14px; color: var(--muted); }
.p-audit-before { color: var(--muted); }
.audit-values { padding-top: var(--s-3); overflow-wrap: anywhere; }
.record > form { padding-top: var(--s-3); }
.table-card summary, details.panel > summary { min-height: 44px; align-content: center; color: var(--pine); }
details.panel[open] > summary { margin-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.public-page .auth-brand { padding: var(--s-5) var(--s-6); }
.auth-body .stack { gap: var(--s-4); }
.auth-body .button { min-width: 0; }
.auth-body > p a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 750; }
.p-access-link { text-align: start; }
.p-access-link span { flex: 1; overflow-wrap: anywhere; }

@media (hover: hover) and (pointer: fine) {
    .p-ledger tbody tr:hover { background: #f6faf7; }
    .record-name:hover { text-decoration-color: currentColor; }
    .p-table-stat[aria-pressed="true"]:hover { background: var(--pine); }
}
@media (max-width: 1080px) {
    .p-stock-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
    .p-queue-summary > div:nth-child(3) { border-top: 0; border-left: 1px solid var(--line); }
    .p-heading { flex-wrap: wrap; }
}
@media (max-width: 600px) {
    .audit-field { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
    .p-table-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .p-table-stat { grid-column: span 2; padding: var(--s-2); }
    .p-table-stat:nth-last-child(-n+2) { grid-column: span 3; }
    .p-table-stat .p-icon-tile { display: none; }
    .p-queue-summary { grid-template-columns: minmax(0, 1fr); }
    .p-queue-summary > div { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
    .p-queue-summary > div:nth-child(n+2) { border-left: 0; border-top: 1px solid var(--line); }
    .p-queue-summary dd { margin: 0; }
    .p-ledger th, .p-ledger td { padding: var(--s-3) var(--s-2); }
    .p-ledger th[scope="row"] { min-width: 7rem; }
    .p-ledger .status, .p-ledger .p-badge { white-space: normal; }
    .p-stock-register > h2, .p-stock-filter, .p-stock-lines .data-row, .p-stock-lines .service-line { padding-inline: var(--s-3); }
    .p-stock-filter { align-items: stretch; }
    .p-stock-filter label { flex-basis: 100%; }
    .receipt-row { flex-wrap: wrap; }
    .p-order-workspace .p-cart-total strong:last-child { white-space: normal; text-align: right; }
}
