.achats-article-metrics {display: grid;grid-template-columns: repeat(2, minmax(0, 1fr));gap: 14px;}
.achats-article-metrics span {display: block;margin-bottom: 6px;}
.achats-article-metrics strong {display: block;font-variant-numeric: tabular-nums;}
.achats-article-table {--table-min-width: 360px;}
.achats-head {display: flex;align-items: flex-start;justify-content: space-between;gap: 18px;text-align: left;}
.achats-table input {width: 100%;min-height: 34px;padding: 8px;}
.achats-table .narrow {width: 82px;}
.achats-table .date-input {width: 180px;}
.achats-table .name-input {min-width: 190px;}
.achats-table .link-input {min-width: 200px;}
.achats-login input {width: 100%;margin: 10px 0 15px;}
.achats-number {font-variant-numeric: tabular-nums;white-space: nowrap;}
.achats-source {max-width: 280px;overflow-wrap: anywhere;}
.achats-search {display: flex;align-items: center;gap: 12px;}
.achats-search input, .achats-search-controls input[type="search"] {flex: 1;min-width: 180px;}
.achats-search-with-summary {display: block;}
.achats-search-controls {display: flex;align-items: center;gap: 12px;}
.achats-search-summary {display: grid;grid-template-columns: repeat(4, minmax(0, 1fr));gap: 14px;margin-top: 16px;padding-top: 15px;border-top: 1px solid var(--color-border);}
.achats-search-summary span {display: block;margin-bottom: 5px;}
.achats-search-summary strong {display: block;font-variant-numeric: tabular-nums;}
.achats-summary-period {grid-column: 1 / -1;margin: 0;}
.achats-sort {padding: 0;border: 0;background: none;color: inherit;cursor: pointer;}
.achats-sort:hover {color: var(--color-accent-strong);}
.achats-price-up {color: #b42318;}
.achats-view-toggle {display: flex;flex-wrap: wrap;align-items: center;gap: 6px 12px;margin: -5px 0 16px;color: var(--color-muted);}
.achats-view-toggle a {color: inherit;text-decoration: underline;text-underline-offset: 3px;}
.achats-view-toggle a[aria-current="page"] {color: #26323c;text-decoration: none;}
.achats-view-toggle a:hover {color: var(--color-accent-strong);}
.achats-edit-toolbar {display: flex;align-items: center;justify-content: space-between;gap: 14px;}

.achats-suggestion {display: block;margin: 0 0 4px;color: #17623a;}
.achats-edit-bottom {display: flex;justify-content: flex-end;margin-top: 14px;}
.achats-table {--table-min-width: 920px;--table-cell-padding: 10px 9px;--table-font-size: 1rem;--table-heading-size: .83rem;}
.achats-history-table {--table-font-size: .78rem;--table-cell-padding: 8px 6px;--table-heading-size: .76rem;}
/* Le tableau éditable reste compact pour afficher chaque ligne avec son action. */
.achats-articles-table {--table-min-width: 1050px;--table-font-size: .74rem;--table-cell-padding: 6px 5px;--table-cell-align: middle;--table-heading-size: .72rem;table-layout: fixed;}
.achats-articles-table th:nth-child(1) {width: 14%;}
.achats-articles-table th:nth-child(2) {width: 14%;}
.achats-articles-table th:nth-child(3) {width: 19%;}
.achats-articles-table th:nth-child(4) {width: 6%;}
.achats-articles-table th:nth-child(5) {width: 5%;}
.achats-articles-table th:nth-child(6) {width: 12%;}
.achats-articles-table th:nth-child(7), .achats-articles-table th:nth-child(8) {width: 8%;}
.achats-articles-table th:nth-child(9) {width: 14%;}
.achats-articles-table input {min-width: 0;padding: 5px 4px;}
.achats-articles-table .narrow, .achats-articles-table .date-input, .achats-articles-table .name-input, .achats-articles-table .link-input, .achats-articles-table .aliment-select {width: 100%;min-width: 0;}
.achats-articles-table .aliment-select {max-width: 100%;padding: 5px 3px;font-size: .72rem;}
.achats-articles-table .field-price, .achats-articles-table .field-quantity {padding-inline: 2px;}
.achats-articles-table .achats-btn.small {padding: 6px 7px;white-space: nowrap;}
@media (max-width: 700px) {.achats-page {padding-inline: 0;}.achats-head {flex-direction: column;}.achats-search {align-items: stretch;flex-wrap: wrap;}.achats-search input, .achats-search-controls input[type="search"] {flex-basis: 100%;}.achats-search-controls {flex-wrap: wrap;}.achats-search-summary {grid-template-columns: repeat(2, minmax(0, 1fr));}.achats-edit-toolbar {align-items: stretch;flex-direction: column;}}
.achats-store-filter fieldset {min-width: 0;margin: 0;padding: 8px 12px 12px;border: 1px solid var(--color-border);border-radius: var(--radius-control);}
.achats-store-filter legend {padding: 0 4px;margin-bottom: 0;font-size: var(--font-size-subheading);}
.achats-store-options {display: flex;flex-wrap: wrap;gap: 6px 18px;}
.achats-store-options label {display: flex;align-items: center;gap: 7px;cursor: pointer;}
.achats-store-options input {width: 18px;height: 18px;margin: 0;accent-color: var(--color-accent);}
.achats-store-actions {justify-content: flex-start;margin-top: 10px;}
.achats-filter-summary .achats-search-controls {margin-top: 14px;flex-wrap: wrap;gap: 10px;}
.achats-filter-summary .achats-search-summary {grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));}
.achats-filter-help {margin: 12px 0;}
.achats-period-statistics details + details {margin-top: 18px;}
.achats-period-statistics summary {padding: 10px 0;cursor: pointer;}
.achats-period-table {--table-min-width: 640px;--table-font-size: .85rem;--table-cell-padding: 10px;}
.achats-period-table caption {text-align: left;}
.achats-period-table td {font-variant-numeric: tabular-nums;white-space: nowrap;}
@media (max-width: 700px) {.achats-filter-summary .achats-search-summary {grid-template-columns: repeat(2, minmax(0, 1fr));}.achats-filter-summary .achats-search-controls input[type="search"] {width: 100%;min-width: 0;flex-basis: 100%;}}
