:root {
    color-scheme: light;
    font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    --green: #326cb3;
    --green-dark: #174f8f;
    --leaf: #326cb3;
    --leaf-soft: #eaf4fb;
    --fruit: #62c1c4;
    --fruit-soft: #e5f6f6;
    --leclerc-blue: #0b70b5;
    --leclerc-orange: #ed8b18;
    --readonly: #eef1ec;
    --readonly-border: #d5ddd0;
    --blue: #4169E1;
    --line: #d7dfd2;
    --danger: #CD5C5C;
    --muted: #607066;
}

ul {
    list-style-type: none;
}

* {
    box-sizing: border-box;
}

/* Poiska ---------------------------------------------------------------- */
.poisika-app {
    --poisika-blue: #326cb3;
    --poisika-turquoise: #62c1c4;
    --poisika-blue-dark: #174f8f;
    --poisika-blue-light: #eaf4fb;
    --poisika-ink: #123047;
    --green: #326cb3;
    --green-dark: #174f8f;
    --leaf: #326cb3;
    --leaf-soft: #eaf4fb;
    --fruit: #62c1c4;
    --fruit-soft: #e5f6f6;
    --line: #cddfe9;
    background: #f4f8fb;
    color: var(--poisika-ink);
}

.poisika-app .app-header {
    border-bottom-color: var(--poisika-turquoise);
}

body .app-header,
body.auth-page {
    background: linear-gradient(135deg, #071426 0%, #0b2945 52%, #155274 100%);
}

body.auth-page {
    background: linear-gradient(135deg, #071426 0%, #0b2945 52%, #155274 100%);
}

body.auth-page .auth-card {
    border: 1px solid rgba(98, 193, 196, 0.22);
    background: #07182d;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
}

body.auth-page .auth-form button {
    background: #326cb3;
}

body.auth-page .auth-form button:hover {
    background: #4384c8;
}

body.auth-page .auth-switch a {
    color: #62c1c4;
}

.poisika-app .primary-action,
.poisika-app button.primary,
.poisika-app .table-poster-button {
    background: var(--poisika-blue);
    border-color: var(--poisika-blue);
    color: #fff;
}

.poisika-app .primary-action:hover,
.poisika-app button.primary:hover,
.poisika-app .table-poster-button:hover {
    background: var(--poisika-blue-dark);
}

.poisika-app .index-heading h1 {
    color: var(--poisika-blue-dark);
}

.poisika-app table.dataTable thead th {
    background: var(--poisika-blue);
    color: #fff;
}

.poisika-app table.dataTable tbody tr:nth-child(even) {
    background: var(--poisika-blue-light);
}

.table-edit {
    box-sizing: border-box;
    width: 100%;
    min-width: 82px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 7px 6px;
}

.table-edit:hover,
.table-edit:focus {
    background: #fff;
    border-color: var(--poisika-turquoise);
    outline: none;
}

.table-inline-radio {
    display: inline-flex;
    align-items: center;
    min-width: 55px;
    border: 1px solid #9bc9e2;
    border-radius: 6px;
    background: var(--poisika-blue-light);
    color: var(--poisika-blue-dark);
    box-shadow: 0 1px 3px rgba(23, 79, 143, 0.12);
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.table-inline-radio input[type="radio"] {
    display: none !important;
    appearance: none !important;
}

.table-inline-radio input[type="radio"] + label {
    display: none;
    width: 100%;
    min-width: 55px;
    padding: 7px 6px;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
}

.table-inline-radio::before,
.table-inline-radio::after,
.table-inline-radio label::before,
.table-inline-radio label::after {
    display: none !important;
    content: none !important;
}

.table-inline-radio input[type="radio"]:checked + label {
    display: inline-flex;
}

.table-inline-radio:hover,
.table-inline-radio:focus-visible {
    border-color: var(--poisika-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(50, 108, 179, 0.14);
}

.modal-inline-radio {
    min-width: 120px;
    height: 40px;
    width: fit-content;
}

.modal-inline-radio input[type="radio"] + label {
    min-width: 120px;
    height: 100%;
    box-sizing: border-box;
    padding: 0 14px;
}

.modal-switch-control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
}

.modal-switch-control > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.modal-switch-control:has(input:checked) > span {
    color: var(--poisika-blue-dark);
}

.unit-field legend,
.defrosted-field legend {
    display: grid;
    gap: 5px;
}

.unit-field legend .unit-field-label,
.defrosted-field legend .unit-field-label {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.defrosted-field legend .field-helper-spacer {
    visibility: hidden;
    font-size: 12px;
    font-weight: 400;
}

.table-defrosted-switch {
    vertical-align: middle;
}

.table-defrosted-radio:has(input[value="1"]:checked) {
    border-color: #28a745;
    background: #e8f6ec;
    color: #1f7a35;
}

.table-defrosted-radio:has(input[value="0"]:checked) {
    border-color: #dc3545;
    background: #fce8ea;
    color: #9f1f2d;
}

.table-defrosted-radio:has(input[value="1"]:checked):hover,
.table-defrosted-radio:has(input[value="1"]:checked):focus-visible {
    border-color: #1f8d38;
    background: #f4fbf6;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.16);
}

.table-defrosted-radio:has(input[value="0"]:checked):hover,
.table-defrosted-radio:has(input[value="0"]:checked):focus-visible {
    border-color: #bd2130;
    background: #fff5f6;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.14);
}

.table-poster-button {
    display: inline-block;
    border-radius: 7px;
    padding: 7px 10px;
    text-decoration: none;
    font-weight: 700;
}

.table-poster-button.is-incomplete {
    background: #8a9cac;
}

.table-delete {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #fff0f0;
    color: #a42c2c;
    font-size: 1.25rem;
    cursor: pointer;
}

.poisika-dialog select,
.poisika-dialog input {
    width: 100%;
    box-sizing: border-box;
}

.poisika-dialog select,
.poisika-dialog input:not([type="radio"]):not([type="checkbox"]) {
    min-height: 40px;
}

.poisika-dialog label[hidden] {
    display: none;
}

.poisika-dialog .dialog-header p {
    margin: 4px 0 0;
    color: var(--poisika-ink);
}

.poisika-dialog #articleForm .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.poisika-product-identity-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
}

.poisika-sales-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(160px, 1fr) 140px 180px;
    gap: 14px;
    min-width: 0;
}

.poisika-dates-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 170px));
    gap: 8px;
    width: min(348px, 100%);
}

.poisika-dialog .poisika-date-start {
    grid-column: 1;
}

@media (max-width: 720px) {
    .poisika-dialog #articleForm .form-grid {
        grid-template-columns: 1fr;
    }

    .poisika-dialog #articleForm .wide,
    .poisika-dialog .poisika-date-start {
        grid-column: auto;
    }

    .poisika-product-identity-row {
        grid-template-columns: 1fr;
    }

    .poisika-sales-row {
        grid-template-columns: 1fr;
    }
}

.poisika-radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.poisika-radio-options label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 9px 12px;
    cursor: pointer;
}

.poisika-radio-options input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.poisika-radio-options label:has(input:focus-visible) {
    outline: 3px solid rgba(18, 119, 184, 0.24);
    outline-offset: 2px;
}

.unit-field .poisika-radio-options label:has(input:checked) {
    border-color: #4da9df;
    color: #0d5695;
    background: #e5f4fc;
    box-shadow: inset 0 0 0 1px #9ed2ee;
}

.defrosted-field .poisika-radio-options label:first-child:has(input:checked) {
    border-color: #df606a;
    color: #9f1d2a;
    background: #fbe5e7;
    box-shadow: inset 0 0 0 1px #efa4aa;
}

.defrosted-field .poisika-radio-options label:last-child:has(input:checked) {
    border-color: #55ad72;
    color: #176b38;
    background: #e1f4e7;
    box-shadow: inset 0 0 0 1px #9bd3ad;
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    border-radius: 9px;
    background: var(--poisika-blue-dark, #174f8f);
    color: #fff;
    padding: 12px 18px;
    transition: .2s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background: #a42c2c;
}

table thead tr:first-child > th:first-child {
    border-top-left-radius: 14px;
}

table thead tr:first-child > th:last-child {
    border-top-right-radius: 14px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: #f4f7f2;
    color: #142014;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0 0 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.header-brand {
	position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
	top: -15px;
}

.header-brand .brand-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 14px;
}

.header-brand .brand-logo {
    width: min(280px, 34vw);
    height: auto;
    max-height: 115px;
    object-fit: contain;
}

.app-header h1 {
    margin: 0;
    font-size: 28px;
}

.header-stats {
    flex: 0 0 auto;
    align-self: flex-end;
    margin-bottom: 22px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.10);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.header-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 50px;
    margin-left: auto;
    white-space: nowrap;
}

.header-store-name {
    max-width: 320px;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    text-align: right;
    text-decoration: none;
    text-overflow: ellipsis;
    text-transform: uppercase;
	padding-right: 22px;
}

.header-store-name:hover {
    text-decoration: underline;
}

.header-user-tools {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 5px;
    width: 100%;
	background-color: #f4f7f2;
	border-top-left-radius: 25px;
	padding: 8px;
}

.header-config-dropdown {
    position: relative;
    z-index: 1100;
}

.header-config-dropdown > summary {
    list-style: none;
    cursor: pointer;
}

.header-config-dropdown > summary::-webkit-details-marker {
    display: none;
}

.header-config-dropdown[open] > .header-config-link {
    background: var(--leaf-soft);
}

#menu04,
#menu04 span {
    display: inline-block;
    box-sizing: border-box;
}

#menu04 {
    position: relative;
    width: 25px;
    height: 25px;
}

#menu04 span {
    position: absolute;
    left: 2.5px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #314437;
}

#menu04 span:nth-of-type(1) {
    top: 4px;
    transition: top .3s;
}

#menu04 span:nth-of-type(2) {
    top: 11.5px;
    transition: opacity .3s;
}

#menu04 span:nth-of-type(3) {
    bottom: 4px;
    transition: bottom .3s;
}

.header-config-dropdown[open] #menu04 span:nth-of-type(1) {
    top: 11.5px;
    transform: rotate(-45deg);
    transition: top .3s cubic-bezier(.36, -.42, .68, -.56), transform .3s .3s;
}

.header-config-dropdown[open] #menu04 span:nth-of-type(2) {
    opacity: 0;
    transition: opacity .05s .3s;
}

.header-config-dropdown[open] #menu04 span:nth-of-type(3) {
    bottom: 11.5px;
    transform: rotate(45deg);
    transition: bottom .3s cubic-bezier(.36, -.42, .68, -.56), transform .3s .3s;
}

@media (prefers-reduced-motion: reduce) {
    #menu04 span {
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}

.header-config-menu {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 10px);
    right: 0;
    display: flex;
    flex-direction: column;
    width: max-content;
    min-width: 230px;
    padding: 7px;
    border: 1px solid #d7dfd2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(8, 39, 26, 0.2);
}

.header-config-menu::before {
    position: absolute;
    top: -6px;
    right: 21px;
    width: 11px;
    height: 11px;
    border-top: 1px solid #d7dfd2;
    border-left: 1px solid #d7dfd2;
    background: #fff;
    content: "";
    transform: rotate(45deg);
}

.header-config-menu a {
    position: relative;
    padding: 10px 12px;
    border-radius: 8px;
    color: #314437;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.header-config-menu a:hover,
.header-config-menu a:focus-visible {
    color: var(--green-dark);
    background: var(--leaf-soft);
    outline: none;
}

.header-config-link,
.header-contact-link,
.header-admin-link,
.header-admin-view-link,
.header-logout-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 52px;
    padding: 4px 4px;
    border-radius: 10px;
    color: #fff;
    background: transparent;
    text-decoration: none;
}

.header-config-link:hover,
.header-contact-link:hover,
.header-admin-link:hover,
.header-admin-view-link:hover,
.header-logout-link:hover {
    background: var(--leaf-soft);
}

.header-tool-form {
    display: contents;
}

.header-tool-form button {
    font: inherit;
    cursor: pointer;
}

.header-config-link img,
.header-contact-link img,
.header-admin-link img,
.header-admin-view-link img,
.header-logout-link img {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.header-tool-helper {
    color: #314437;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.header-contact-link {
    position: relative;
}

.header-contact-badge {
    position: absolute;
    top: -2px;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    /* border: 2px solid var(--green-dark); */
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.header-actions,
.dialog-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions {
    position: relative;
}

.header-actions.is-relocating {
    display: none;
}

.table-actions {
    flex: 0 0 auto;
    align-self: center;
    justify-content: flex-start;
}

.table-actions button {
    height: 38px;
    padding: 0 14px;
    white-space: nowrap;
}

.header-actions .icon-action {
    min-width: 62px;
    height: 54px;
    padding: 6px 9px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1;
    color: var(--text);
    background: transparent;
}

.table-actions .icon-action {
    height: 54px;
    padding: 6px 9px;
}

.icon-action img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.icon-action-helper {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.05;
}

.header-actions .icon-action:hover {
    background: rgba(0, 98, 168, 0.08);
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 28px 0;
    color: var(--muted);
    background: #f4f7f2;
    font-size: 13px;
    font-weight: 700;
}

.page-breadcrumb a {
    color: var(--leclerc-blue);
    text-decoration: none;
}

.page-breadcrumb a:hover {
    text-decoration: underline;
}

.page-breadcrumb span[aria-current="page"] {
    color: #314437;
}

.page-breadcrumb--config,
.page-breadcrumb--contact {
    padding-right: 18px;
    padding-left: 18px;
}

.page-breadcrumb--config {
    width: min(1500px, calc(100% - 36px));
    margin: 0 auto;
    padding-right: 0;
    padding-left: 0;
}

.page-breadcrumb--contact {
    width: min(920px, calc(100% - 36px));
    margin: 0 auto;
    padding-right: 0;
    padding-left: 0;
}

main {
    flex: 1 0 auto;
    padding: 22px 24px 40px;
}

.app-footer {
    flex-shrink: 0;
    padding: 18px 24px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    background: #ffffff;
}

.app-footer a,
.app-footer a:hover,
.app-footer a:focus,
.app-footer a:active,
.app-footer a:visited {
    color: inherit;
    text-decoration: none;
}

button,
.button,
input,
select {
    font: inherit;
}

button,
.button {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    background: var(--leclerc-blue);
    cursor: pointer;
    text-decoration: none;
	min-width: 80px;
}

button.secondary,
.button.secondary {
    background: var(--leclerc-blue);
}

button.primary-action {
    background: var(--leclerc-orange);
}

#briiCounter {
    background: var(--leclerc-blue);
}

#copySelectionButton {
    background: var(--leclerc-blue);
}

#printBriiButton {
    background: var(--leclerc-blue);
}

#createPosterButton {
    background: var(--leclerc-orange);
}

#addArticleButton {
    background: var(--leclerc-orange);
}

.header-actions .icon-action,
.header-actions .icon-action.secondary,
.header-actions .icon-action.primary-action,
#briiCounter.icon-action,
#copySelectionButton.icon-action,
#printBriiButton.icon-action,
#createPosterButton.icon-action,
#addArticleButton.icon-action {
    background: transparent;
}

.brii-counter {
    cursor: default;
}

.brii-counter .icon-action-helper strong {
    font-size: 15px;
    font-weight: 900;
}

.brii-counter.has-selection .icon-action-helper strong {
    color: var(--leclerc-orange);
}

button.danger {
    background: var(--danger);
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #f0c27a;
    border-radius: 8px;
    background: var(--fruit-soft);
}

.action-help-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 30;
    width: max-content;
    max-width: min(360px, calc(100vw - 32px));
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    padding: 12px 14px;
    border: 1px solid #f0c27a;
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.action-help-popover strong {
    font-weight: 800;
}

.header-actions .icon-action {
    position: relative;
}

.header-actions .icon-action:hover .action-help-popover,
.header-actions .icon-action:focus-visible .action-help-popover {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#articlesTable {
    width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 14px;
}

#articlesTable_wrapper,
#articlesTable_wrapper input,
#articlesTable_wrapper select,
#articlesTable_wrapper button {
    font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

#articlesTable.dataTable thead th,
#articlesTable_wrapper .dt-scroll-head table.dataTable thead th,
#articlesTable:not(.dataTable) thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 54px;
    min-height: 54px;
    padding: 5px 4px;
    border-bottom: 3px solid var(--fruit) !important;
    background: var(--leaf) !important;
    color: #fff;
    font-weight: 400;
    white-space: normal;
    line-height: 1.15;
    text-align: left !important;
    vertical-align: middle;
    word-break: normal;
}

#articlesTable thead,
#articlesTable thead tr,
#articlesTable_wrapper table.dataTable thead,
#articlesTable_wrapper table.dataTable thead tr {
    background: var(--leaf) !important;
}

#articlesTable_wrapper .dt-scroll-body #articlesTable thead,
#articlesTable_wrapper .dt-scroll-body #articlesTable thead tr,
#articlesTable_wrapper .dt-scroll-body #articlesTable thead th {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
    visibility: collapse !important;
}

#articlesTable_wrapper table.dataTable thead th,
#articlesTable_wrapper .dt-scroll-head table.dataTable thead th,
.dt-container table.dataTable thead th {
    text-align: left !important;
}

#articlesTable thead th.dt-center,
#articlesTable thead th.dt-right,
#articlesTable thead th.dt-type-numeric,
#articlesTable thead th.dt-type-date {
    text-align: left !important;
}

#articlesTable thead th .dt-column-header,
#articlesTable thead th.dt-center .dt-column-header,
#articlesTable thead th.dt-right .dt-column-header,
#articlesTable thead th.dt-type-numeric .dt-column-header,
#articlesTable thead th.dt-type-date .dt-column-header,
#articlesTable_wrapper table.dataTable thead th .dt-column-header,
#articlesTable_wrapper .dt-scroll-head table.dataTable thead th .dt-column-header,
.dt-container table.dataTable thead th .dt-column-header {
    justify-content: flex-start !important;
    text-align: left !important;
    align-items: center !important;
    gap: 4px !important;
}

#articlesTable thead th.dt-type-numeric .dt-column-header,
#articlesTable thead th.dt-type-date .dt-column-header,
#articlesTable_wrapper table.dataTable thead th.dt-type-numeric .dt-column-header,
#articlesTable_wrapper table.dataTable thead th.dt-type-date .dt-column-header,
.dt-container table.dataTable thead th.dt-type-numeric .dt-column-header,
.dt-container table.dataTable thead th.dt-type-date .dt-column-header {
    flex-direction: row !important;
}

#articlesTable thead th .dt-column-title,
#articlesTable_wrapper table.dataTable thead th .dt-column-title,
#articlesTable_wrapper .dt-scroll-head table.dataTable thead th .dt-column-title,
.dt-container table.dataTable thead th .dt-column-title {
    flex: 1 1 auto;
    text-align: left !important;
}

#articlesTable thead th .dt-column-order,
#articlesTable_wrapper table.dataTable thead th .dt-column-order,
.dt-container table.dataTable thead th .dt-column-order {
    margin-left: auto !important;
    text-align: right !important;
}

#articlesTable tbody td {
    padding: 5px 4px;
    border-top-color: #d9e3d2;
    border-bottom-color: #d9e3d2;
    border-left: 0;
    border-right: 1px solid rgba(93, 125, 79, 0.14);
    text-align: center !important;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#articlesTable tbody td:first-child {
    border-left: 1px solid rgba(93, 125, 79, 0.14) !important;
}

#articlesTable tbody td:last-child {
    border-right: 1px solid rgba(93, 125, 79, 0.14) !important;
}

#articlesTable thead th:first-child {
    border-left: 0 !important;
}

#articlesTable thead th:last-child {
    border-right: 0 !important;
}

#articlesTable tbody td.col-designation,
#articlesTable tbody td.col-origine,
#articlesTable tbody td.col-variete {
    text-align: left !important;
}

#articlesTable_wrapper .dt-scroll-head table.dataTable thead th {
    border-left: 0 !important;
    border-right: 1px solid rgba(93, 125, 79, 0.14) !important;
}

#articlesTable_wrapper .dt-scroll-head {
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--leaf) !important;
}

#articlesTable_wrapper .dt-scroll-headInner,
#articlesTable_wrapper .dt-scroll-headInner table.dataTable {
    overflow: hidden !important;
    border-radius: 0 !important;
    background: var(--leaf) !important;
}

#articlesTable_wrapper .dt-scroll-head table.dataTable thead,
#articlesTable_wrapper .dt-scroll-head table.dataTable thead tr {
    background: var(--leaf) !important;
}

#articlesTable_wrapper .dt-scroll-head table.dataTable thead th:first-child {
    border-left: 0 !important;
    border-top-left-radius: 10px !important;
}

#articlesTable_wrapper .dt-scroll-head table.dataTable thead th:last-child {
    border-right: 0 !important;
    border-top-right-radius: 10px !important;
}

#articlesTable tbody tr:nth-child(even) td {
    background-color: #eef8e9;
}

#articlesTable tbody tr:nth-child(odd) td {
    background-color: #fff;
}

#articlesTable tbody tr:hover td {
    background-color: #dff1d8;
}

.select-cell,
.actions-cell {
    text-align: center;
}

#articlesTable .col-select {
    width: 40px !important;
}

#articlesTable .col-plu {
    width: 56px !important;
}

#articlesTable .col-designation {
    width: 215px !important;
}

#articlesTable .col-origine {
    width: 136px !important;
}

#articlesTable .col-variete {
    width: 132px !important;
}

#articlesTable .col-calibre {
    width: 78px !important;
}

#articlesTable .col-categorie,
#articlesTable .col-money,
#articlesTable .col-percent,
#articlesTable .col-number {
    width: 64px !important;
}

#articlesTable .col-date {
    width: 68px !important;
}

#articlesTable .col-actions {
    width: 46px !important;
}

#articlesTable .col-delete {
    width: 46px !important;
}

#articlesTable tbody td.actions-cell {
    position: relative;
    z-index: 2;
    overflow: visible;
    text-align: center !important;
}

#articlesTable tbody td.actions-cell:focus-within,
#articlesTable tbody td.actions-cell:hover {
    z-index: 60;
}

#articlesTable thead th.actions-cell {
    display: table-cell;
}

.small-button {
    padding: 5px 6px;
    border-radius: 6px;
    font-size: 11px;
}

.button.disabled-action {
    background: #8c9688;
    color: #eef1ec;
    cursor: not-allowed;
    opacity: 0.8;
    pointer-events: none;
}

.status-icon,
button.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    min-height: 24px;
    max-height: 24px;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    overflow: visible;
}

.status-valid {
    background: #16823a;
}

.status-invalid {
    position: relative;
    background: #9ca3af;
    color: #f8fafc;
    cursor: not-allowed;
}

#articlesTable_wrapper button.status-invalid {
    position: relative;
    z-index: 80;
    overflow: visible !important;
    cursor: not-allowed !important;
}

.status-help-popover {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    z-index: 999;
    display: block;
    box-sizing: border-box;
    width: 280px;
    max-width: calc(100vw - 32px);
    padding: 10px 12px;
    border: 1px solid #f0c27a;
    border-radius: 12px;
    color: var(--ink) !important;
    background: #f4f7f2;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translateY(-50%) translateX(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

#articlesTable_wrapper button.status-invalid .status-help-popover {
    color: #142014 !important;
    -webkit-text-fill-color: #142014 !important;
    text-shadow: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.status-invalid:hover .status-help-popover,
.status-invalid:focus-visible .status-help-popover {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

#articlesTable_wrapper button.status-icon {
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    min-height: 24px;
    max-height: 24px;
    padding: 0;
}

.delete-article-button,
button.delete-article-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

#articlesTable_wrapper button.delete-article-button,
.config-table-wrap button.delete-article-button {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    padding: 0;
}

.delete-article-button:hover {
    background: rgba(220, 38, 38, 0.12);
}

.delete-article-button img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.missing {
    background: inherit;
}

.editable-cell {
    cursor: text;
    position: relative;
}

.editable-cell:hover {
    outline: 2px solid rgba(47, 125, 50, 0.45);
    outline-offset: -2px;
}

#articlesTable tbody td.readonly-cell,
#articlesTable tbody tr:nth-child(even) td.readonly-cell,
#articlesTable tbody tr:hover td.readonly-cell {
    background: var(--readonly);
    border-left: 0;
    border-right: 1px solid var(--readonly-border);
    color: #334033;
    font-weight: 600;
}

.editable-cell.saving {
    opacity: 0.65;
}

.inline-editor {
    width: 100%;
    min-width: 0;
    height: 30px;
    border: 2px solid var(--leaf);
    border-radius: 4px;
    padding: 4px 6px;
    background: #fff;
}

.alert-value {
    color: var(--danger);
    font-weight: 700;
}

#articlesTable tbody td.economy-status-ok,
#articlesTable tbody tr:nth-child(even) td.economy-status-ok,
#articlesTable tbody tr:hover td.economy-status-ok {
    color: #16823a;
    font-weight: 700;
}

#articlesTable tbody td.economy-status-low,
#articlesTable tbody tr:nth-child(even) td.economy-status-low,
#articlesTable tbody tr:hover td.economy-status-low {
    color: #055ffc;
    font-weight: 700;
}

#articlesTable tbody td.economy-status-high,
#articlesTable tbody tr:nth-child(even) td.economy-status-high,
#articlesTable tbody tr:hover td.economy-status-high {
    color: #c0392b;
    font-weight: 700;
}

#articlesTable tbody tr.row-attention td,
#articlesTable tbody tr.row-attention:hover td,
#articlesTable tbody tr:nth-child(even).row-attention td {
    background-color: var(--fruit-soft) !important;
}

#articlesTable tbody td.cell-attention {
    outline: 3px solid var(--fruit);
    outline-offset: -3px;
    box-shadow: inset 0 0 0 2px rgba(232, 93, 4, 0.2);
}

.dt-search input,
.dt-length select {
    border-color: #9ab98f;
    height: 38px;
	min-width: 55px;
}

#articlesTable_wrapper > .dt-layout-row:not(.dt-layout-table),
#articlesTable_wrapper > .table-controls-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

#articlesTable_wrapper .table-controls-left {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 12px;
    margin-right: 0 !important;
    text-align: left !important;
}

#articlesTable_wrapper > .table-controls-row > .dt-layout-start {
    margin-right: 0 !important;
}

#articlesTable_wrapper > .table-controls-row > .dt-layout-end {
    margin-left: auto !important;
}

#articlesTable_wrapper > .dt-layout-row:not(.dt-layout-table) > .dt-layout-cell {
    flex: 0 0 auto;
}

#articlesTable_wrapper > .dt-layout-row:not(.dt-layout-table) > .dt-layout-end {
    margin-left: auto;
}

.dt-paging-button.current {
    border-color: var(--leaf) !important;
    background: var(--leaf-soft) !important;
    color: #102510 !important;
}

dialog {
    width: min(920px, calc(100vw - 32px));
    border: 0;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    color: #fff;
    background: var(--green);
}

.dialog-header h2 {
    margin: 0;
}

.icon-button {
    padding: 4px 10px;
    border-radius: 50%;
    font-size: 24px;
    background: transparent;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 20px 22px;
}

#articleForm .form-grid {
    grid-template-columns: 1fr;
}

.sale-unit-field {
    display: grid;
    gap: 8px;
    margin: 0;
    border: 0;
    padding: 0;
    font-weight: 700;
}

.sale-unit-field legend {
    margin-bottom: 5px;
}

.sale-unit-field legend span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.sale-unit-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.sale-unit-field input {
    width: auto;
}

label {
    display: grid;
    gap: 5px;
    font-weight: 700;
	/* color: #fff; */
}

label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.poster-packaging-measure-field > .field-label-text {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

label span.is-required,
.sale-unit-field legend span.is-required,
.config-test-result .is-required {
    color: var(--danger);
    font-weight: 400;
}

label span.is-optional,
.sale-unit-field legend span.is-optional,
.config-test-result .is-optional {
    color: var(--muted);
}

label.wide {
    grid-column: span 2;
}

input,
select {
    width: 100%;
    border: 1px solid #b8c5b3;
    border-radius: 7px;
    padding: 9px 10px;
    background: #fff;
}

select {
    padding-right: 38px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23314437' d='M1 0l4 4 4-4 1 1-5 5-5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

input:required:placeholder-shown {
    /* background: var(--yellow); */
}

.form-errors {
    margin: 16px 22px 0;
    padding: 12px;
    border-radius: 8px;
    color: #721c12;
    background: #f8d7da;
}

.form-success {
    padding: 12px;
    border-radius: 8px;
    color: #14532d;
    background: #dcfce7;
}

.dialog-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 16px 16px 22px;
}

#articleDialog .dialog-actions,
#posterCreateForm .dialog-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

#posterCreateForm .dialog-actions span {
    display: none;
}

#posterCreateForm .dialog-actions button {
    width: auto;
    /* min-width: 112px; */
    padding: 10px 16px;
}

.action-dialog {
    width: min(520px, calc(100vw - 32px));
}

.action-dialog .dialog-header {
    background: var(--fruit);
}

.action-dialog-body {
    padding: 22px 24px 8px;
    color: #1f2a1f;
    font-size: 16px;
    line-height: 1.45;
}

.action-dialog-body p {
    margin: 0;
}

.action-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 24px 24px;
}

.header-admin-view-link.is-user-visual-mode {
    background: rgba(237, 139, 24, 0.28);
}

.post-harvest-dialog-body {
    display: grid;
    gap: 12px;
}

.post-harvest-choice {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
    color: #142014;
    font-weight: 800;
}

.post-harvest-choice input,
.post-harvest-treatments input {
    width: auto;
}

.post-harvest-treatments {
    display: grid;
    gap: 8px;
    max-height: 210px;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8faf7;
}

.post-harvest-treatments label {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 9px;
    color: #314437;
}

.post-harvest-add-link {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 800;
}

.post-harvest-add-link a {
    color: var(--leclerc-blue);
    text-decoration: none;
}

.post-harvest-add-link a:hover {
    text-decoration: underline;
}

.toast-container {
    position: fixed;
    top: 22px;
    left: 50%;
    z-index: 1000;
    display: grid;
    gap: 10px;
    width: min(460px, calc(100vw - 32px));
    transform: translateX(-50%);
    pointer-events: none;
}

.toast {
    padding: 12px 14px;
    border-left: 5px solid var(--green-dark);
    border-radius: 10px;
    color: #142014;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    font-weight: 700;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: auto;
}

.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-hiding {
    opacity: 0;
    transform: translateY(8px);
}

.toast-success {
    border-left-color: #16823a;
}

.toast-warning {
    border-left-color: var(--fruit);
}

.toast-error {
    border-left-color: var(--danger);
}

.print-frame {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.auth-card {
    width: min(460px, 100%);
    padding: 28px;
    border-radius: 18px;
    background: var(--green-dark);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto 22px;
}

.auth-brand .brand-logo {
    width: min(260px, calc(100% - 70px));
    height: auto;
    max-height: 115px;
    display: block;
    object-fit: contain;
}

.auth-card h1 {
    margin: 0;
    text-align: center;
    color: #ffffff;
}

.auth-card > p {
    margin: 8px 0 22px;
    color: #ffffff;
    text-align: center;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form label {
    color: #ffffff;
}

.auth-form label span {
    color: rgba(255, 255, 255, 0.78);
}

.auth-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #c8d4c1;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-weight: 700;
}

.auth-form button {
    width: 100%;
    margin-top: 4px;
}

.auth-errors {
    margin: 0 0 16px;
}

.auth-switch {
    margin-bottom: 0 !important;
}

.auth-switch a {
    color: var(--leclerc-blue);
    font-weight: 700;
}

.profile-card {
    width: min(520px, 100%);
}

.logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px dashed #b8c5b3;
    border-radius: 14px;
    /* background: #f8faf7; */
}

.logo-preview img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
}

.auth-back-link {
    text-align: center;
}

.maintenance-card {
    margin: 0 0 18px;
    padding: 20px 22px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.maintenance-card h1,
.maintenance-card h2 {
    margin: 0 0 12px;
}

.maintenance-card p {
    margin: 0 0 10px;
    color: var(--muted);
}

.maintenance-card code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #eef1ec;
}

.maintenance-actions {
    margin-top: 16px;
}

.image-admin-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.image-admin-stat {
    --stat-color: var(--green-dark);
    --stat-bg: #ffffff;
    --stat-soft: rgba(93, 125, 79, 0.14);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 40px;
    padding: 7px 11px;
    border: 1px solid var(--stat-soft);
    border-radius: 9px;
    background: color-mix(in srgb, var(--stat-bg) 48%, #fff);
    box-shadow: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.image-admin-stat:hover,
.image-admin-stat:focus-visible,
.image-admin-stat.is-active {
    border-color: color-mix(in srgb, var(--stat-color) 45%, transparent);
    box-shadow: 0 3px 10px color-mix(in srgb, var(--stat-color) 12%, transparent);
    transform: translateY(-1px);
}

.image-admin-stat:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--stat-color) 26%, transparent);
    outline-offset: 2px;
}

.image-admin-stat.is-server {
    --stat-color: #1d4ed8;
    --stat-bg: #dbeafe;
    --stat-soft: #bfdbfe;
}

.image-admin-stat.is-user {
    --stat-color: #6d28d9;
    --stat-bg: #ede9fe;
    --stat-soft: #ddd6fe;
}

.image-admin-stat.is-lotable {
    --stat-color: #047857;
    --stat-bg: #d1fae5;
    --stat-soft: #a7f3d0;
}

.image-admin-stat.is-convert {
    --stat-color: #0369a1;
    --stat-bg: #e0f2fe;
    --stat-soft: #bae6fd;
}

.image-admin-stat.is-missing {
    --stat-color: #b45309;
    --stat-bg: #fef3c7;
    --stat-soft: #fde68a;
}

.image-admin-stat.is-orphan {
    --stat-color: #c2410c;
    --stat-bg: #ffedd5;
    --stat-soft: #fed7aa;
}

.image-admin-stat.is-total {
    --stat-color: #334155;
    --stat-bg: #e2e8f0;
    --stat-soft: #cbd5e1;
}

.image-admin-stats strong {
    color: var(--stat-color);
    font-size: 16px;
    line-height: 1;
}

.image-admin-stats span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

#articlesTable tbody td:has(.table-edit),
#articlesTable tbody td:has(.table-inline-radio) {
    overflow: visible;
    text-overflow: clip;
}

.image-admin-panel {
    display: grid;
    gap: 16px;
}

.image-convert-panel {
    border-color: rgba(3, 105, 161, 0.18);
    background: linear-gradient(135deg, #f0f9ff, #ffffff 58%);
}

.image-convert-action {
    margin: 0;
}

.image-convert-action .primary-action {
    min-width: 0;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    color: #075985;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
}

.image-convert-action .primary-action:hover,
.image-convert-action .primary-action:focus-visible {
    border-color: #7dd3fc;
    background: #bae6fd;
    outline: none;
}

.converter-file-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.converter-file-card {
    display: grid;
    gap: 9px;
    padding: 10px;
    border: 1px solid rgba(3, 105, 161, 0.16);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(3, 105, 161, 0.07);
}

.converter-file-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #e0f2fe;
}

.converter-file-card-body {
    display: grid;
    gap: 4px;
    text-align: left;
}

.converter-file-card-body strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.converter-file-card-body span,
.converter-file-card-body code {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.converter-file-card-body code {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 3px 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-admin-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.image-admin-panel-header h3,
.image-admin-panel-header p {
    margin-right: 0;
    margin-left: 0;
}

.image-admin-filters {
    display: flex;
    align-self: flex-end;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.product-image-add-form {
    margin: 0;
}

.product-image-add-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid #a7d99a;
    border-radius: 9px;
    color: #246b19;
    background: #f2faef;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.product-image-add-button > span {
    font-size: 18px;
    font-weight: 500;
    line-height: 0.8;
}

.product-image-add-button:hover,
.product-image-add-button:focus-within {
    border-color: var(--green);
    color: var(--green-dark);
    background: var(--leaf-soft);
}

.product-image-add-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.image-admin-filters input[type="search"] {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.image-admin-filters input[type="search"] {
    min-width: min(280px, 100%);
}

.product-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.product-image-card {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(93, 125, 79, 0.16);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.product-image-card:hover {
    z-index: 3;
}

.product-image-card[hidden] {
    display: none;
}

.product-image-card > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #eef1ec;
}

.product-image-card-body {
    display: grid;
    gap: 4px;
}

.product-image-card-body strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-image-card-body span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.product-image-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.image-quality-badge {
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px !important;
    font-weight: 900 !important;
}

.image-quality-badge.is-ok {
    color: #166534;
    background: #dcfce7;
}

.image-quality-badge.is-warning {
    color: #9a3412;
    background: #ffedd5;
}

.image-scope-badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px !important;
    font-weight: 900 !important;
}

.image-scope-badge.is-server {
    color: #1d4ed8;
    background: #dbeafe;
}

.image-scope-badge.is-user {
    color: #6d28d9;
    background: #ede9fe;
}

.product-image-popover {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    z-index: 4;
    display: grid;
    gap: 6px;
    aspect-ratio: 4 / 3;
    max-height: none;
    padding: 10px 11px;
    overflow: auto;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(23, 35, 24, 0.78);
    box-shadow: 0 12px 24px rgba(20, 32, 20, 0.18);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.product-image-popover strong {
    color: var(--leclerc-orange);
    font-size: 13px;
    font-weight: 900;
}

.product-image-popover span {
    color: rgba(255, 255, 255, 0.9);
}

.product-image-popover ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-left: 15px;
}

.product-image-popover li small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
}

.product-image-card:hover .product-image-popover,
.product-image-card:focus-within .product-image-popover {
    opacity: 1;
    transform: translateY(0);
}

.product-image-card-actions,
.product-image-inline-upload {
    margin: 0;
}

.product-image-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 7px;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #f8fafc;
}

.product-image-file-button:hover,
.product-image-file-button:focus-within {
    border: 1px solid #94a3b8;
    color: #1e293b;
    background: #f1f5f9;
}

.product-image-card-actions {
    display: block;
}

.product-image-card-actions .product-image-file-button {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--leclerc-blue);
    font-size: inherit;
    font-weight: inherit;
}

.product-image-card-actions .product-image-file-button:hover,
.product-image-card-actions .product-image-file-button:focus-within {
    color: #fff;
    background: var(--leclerc-blue);
}

.product-image-copy-button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid #a7d99a;
    border-radius: 8px;
    color: #246b19;
    background: #f2faef;
    font-size: 12px;
    font-weight: 800;
}

.product-image-copy-button:hover,
.product-image-copy-button:focus-visible {
    border-color: var(--green);
    color: var(--green-dark);
    background: var(--leaf-soft);
    outline: none;
}

.image-missing-table .product-image-file-button {
    white-space: nowrap;
}

.product-image-file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.product-image-delete-form {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
}

.image-missing-table th,
.image-missing-table td {
    vertical-align: middle;
}

.user-images-card {
    display: grid;
    gap: 16px;
}

.user-images-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #0b4a76;
    background: #dff1ff;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.user-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}

.user-image-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(93, 125, 79, 0.16);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.user-image-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: cover;
    background: #eef1ec;
}

.user-image-card figcaption {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-missing-image-table .button {
    min-width: 0;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    color: #475569;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.user-missing-image-table .button:hover,
.user-missing-image-table .button:focus-visible {
    border-color: #94a3b8;
    color: #1e293b;
    background: #f1f5f9;
    outline: none;
}

.maintenance-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.maintenance-table th,
.maintenance-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.maintenance-table th {
    color: #fff;
    background: var(--leaf);
}

.maintenance-table .row-success td {
    background: #ecfdf3;
}

.maintenance-table .row-error td {
    background: #fee2e2;
}

.config-main {
    padding: 28px 18px 42px;
}

.config-card {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.config-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.config-heading.compact {
    margin-top: 4px;
}

.config-heading h1,
.index-heading h1 {
    margin: 0 0 6px;
    color: var(--ink);
}

.config-heading p,
.config-actions p,
.index-heading p {
    margin: 0;
    color: var(--muted);
}

.config-readonly-badge {
    padding: 8px 12px;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffedd5;
    font-weight: 800;
}

.config-message {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
}

.config-message.success {
    color: #166534;
    background: #dcfce7;
}

.config-message.error {
    color: #991b1b;
    background: #fee2e2;
}

.config-tabs {
    display: flex;
    gap: 10px;
    margin: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

.config-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    color: var(--muted);
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    font-weight: 800;
    text-decoration: none;
}

.config-tabs a.is-active {
    color: var(--blue);
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.config-tab-panel[hidden] {
    display: none;
}

.config-test {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 160px minmax(280px, 1.2fr);
    align-items: start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 14px;
    background: #f6faf4;
}

.regulation-test-card {
    padding: 18px;
    border: 1px solid rgba(11, 112, 181, 0.14);
    border-radius: 18px;
    background: linear-gradient(135deg, #eef7ff 0%, #f6faf4 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.config-test label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.regulation-test-card input {
    border-color: #bfd0b7;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.regulation-test-card input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(11, 112, 181, 0.12);
    outline: none;
}

.config-test-result-field {
    display: grid;
    gap: 6px;
}

.config-test-result-label {
    font-weight: 800;
}

.config-test-result {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    margin: 0;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
}

.regulation-test-card .config-test-result {
    border: 1px solid rgba(11, 112, 181, 0.12);
    background: #fff;
}

.config-test-reason {
    flex-basis: 100%;
}

#configTestParticularity {
	font-style: italic;
}

.regulation-family-summary {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(26, 115, 67, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, #f6faf4 0%, #eef7ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.regulation-family-summary h3 {
    margin: 0 0 12px;
    color: var(--ink);
}

.regulation-family-summary-list {
    display: grid;
    gap: 8px;
}

.regulation-family-summary-list p {
    position: relative;
    margin: 0;
    padding: 11px 14px 11px 18px;
    border: 1px solid rgba(26, 115, 67, 0.12);
    border-left: 6px solid #1a7343;
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    line-height: 1.45;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.regulation-family-summary-list p:nth-child(4n + 2) {
    border-left-color: #0b70b5;
    background: #f7fbff;
}

.regulation-family-summary-list p:nth-child(4n + 3) {
    border-left-color: #f28c00;
    background: #fffaf2;
}

.regulation-family-summary-list p:nth-child(4n + 4) {
    border-left-color: #7bbf5f;
    background: #f7fcf4;
}

.regulation-admin-editor {
    margin-top: 18px;
    padding: 14px;
    border: 1px dashed rgba(11, 112, 181, 0.35);
    border-radius: 16px;
    background: #f8fbff;
}

.regulation-admin-editor summary {
    cursor: pointer;
    color: var(--blue);
    font-weight: 900;
}

.regulation-admin-editor form {
    margin-top: 14px;
}

.config-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.config-table-wrap--domains {
    overflow: visible;
}

.config-table-wrap--rules {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
}

.config-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
}

#localAlliancesTable {
    min-width: 0;
    table-layout: fixed;
}

#localAlliancesTable th,
#localAlliancesTable td {
    padding: 6px 8px;
}

#localAlliancesTable th:nth-child(1),
#localAlliancesTable td:nth-child(1) {
    width: 58px;
    text-align: center;
}

#localAlliancesTable th:nth-child(2),
#localAlliancesTable td:nth-child(2),
#localAlliancesTable th:nth-child(4),
#localAlliancesTable td:nth-child(4) {
    width: 34%;
    text-align: left;
}

#localAlliancesTable th:nth-child(3),
#localAlliancesTable td:nth-child(3) {
    width: 92px;
    text-align: left;
}

#localAlliancesTable th:nth-child(5),
#localAlliancesTable td:nth-child(5) {
    width: 64px;
    text-align: center;
}

#localAlliancesTable_wrapper {
    max-width: 100%;
    overflow: hidden;
	padding: 20px;
}

#localAlliancesTable_wrapper .dt-layout-row {
    max-width: 100%;
}

#allowedEmailDomainsTable {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

#allowedEmailDomainsTable th,
#allowedEmailDomainsTable td {
    padding: 6px 8px;
}

#allowedEmailDomainsTable th:nth-child(2),
#allowedEmailDomainsTable td:nth-child(2),
#allowedEmailDomainsTable th:nth-child(3),
#allowedEmailDomainsTable td:nth-child(3) {
    width: 18%;
}

#allowedEmailDomainsTable th:nth-child(1),
#allowedEmailDomainsTable td:nth-child(1),
#allowedEmailDomainsTable th:nth-child(2),
#allowedEmailDomainsTable td:nth-child(2),
#allowedEmailDomainsTable th:nth-child(3),
#allowedEmailDomainsTable td:nth-child(3) {
    text-align: left;
	padding-left: 15px;
}

#allowedEmailDomainsTable th:last-child,
#allowedEmailDomainsTable td:last-child{
	text-align: left;
}

#allowedEmailDomainsTable_wrapper,
#postHarvestTreatmentsTable_wrapper {
    max-width: 100%;
    overflow: visible;
    padding: 20px;
}

#postHarvestTreatmentsTable th,
#postHarvestTreatmentsTable td {
    padding-left: 15px;
    text-align: left !important;
}

#allowedEmailDomainsTable_wrapper .dt-layout-row {
    max-width: 100%;
}

#allowedEmailDomainsTable thead th {
    position: sticky !important;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 0 var(--line);
}

.config-table th,
.config-table td {
    padding-left: 12px;
    vertical-align: middle;
    text-align: center;
}

.config-table th:nth-child(1){
    text-align: left;
}

.config-table thead th {
    color: #fff;
    background: var(--leaf);
    white-space: nowrap;
}

.config-rules-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: 0 2px 0 var(--line);
}

.config-table tbody th {
    min-width: 150px;
    color: var(--ink);
}

.config-table tbody th span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.config-table textarea {
    width: 100%;
    min-height: 108px;
    resize: vertical;
    font: inherit;
}

.config-mini-label {
    display: grid;
    gap: 5px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.config-mini-label:last-child {
    margin-bottom: 0;
}

.config-field-helper {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    text-align: left;
}

.config-mini-label textarea {
    min-height: 66px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}

.config-rules-table textarea[data-family-keywords],
.config-rules-table textarea {
    height: 48px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid #c8d4c1;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    resize: vertical;
}

.config-rules-table textarea[data-family-keywords] {
    height: 70px;
    min-height: 70px;
}

.config-rules-table textarea[data-family-keywords]:focus,
.config-rules-table textarea:focus {
    height: 110px;
    min-height: 110px;
    border-color: var(--leclerc-orange);
    box-shadow: 0 0 0 3px rgba(11, 112, 181, 0.12);
    outline: none;
    overflow: auto;
}

.config-category-exception-input {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #c8d4c1;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.config-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.config-table-input {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #c8d4c1;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-weight: 700;
}

.config-editable-cell {
    font-weight: 500;
    cursor: text;
}

.config-editable-cell:hover {
    background: #f6faf4;
}

.config-table-input--small {
    max-width: 120px;
}

.config-table-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(11, 112, 181, 0.12);
    outline: 0;
}

.config-alliance-table tbody tr.is-saving .config-table-input {
    background: #eff6ff;
}

.config-domain-table tbody tr.is-saving .config-table-input,
.config-domain-table tbody tr.is-saving .config-domain-editable-cell {
    background: #eff6ff;
}

.config-alliance-table tbody tr.is-error .config-table-input {
    border-color: #dc2626;
    background: #fff1f2;
}

.config-domain-table tbody tr.is-error .config-table-input,
.config-domain-table tbody tr.is-error .config-domain-editable-cell {
    border-color: #dc2626;
    background: #fff1f2;
}

.config-active-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
    cursor: pointer;
}


.config-logo-panel {
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(280px, 1fr);
    align-items: center;
    gap: 24px;
    margin-top: 18px;
}

.config-logo-preview {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 12px;
}

.config-logo-preview > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.config-poster-logo-preview {
    width: 300px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.config-poster-logo-preview--default {
    padding-bottom: 0;
}

.config-poster-logo-preview img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.config-logo-form {
    display: grid;
    gap: 14px;
    max-width: 520px;
}

.config-file-label {
    display: grid;
    gap: 8px;
    color: #314437;
    font-weight: 800;
}

.config-file-label input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #b8c5b3;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-weight: 600;
}

.config-file-label small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.config-logo-form .primary-action {
    justify-self: start;
    padding: 10px 18px;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: 16px;
    margin-top: 18px;
}

.profile-flat {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.profile-flat h3,
.profile-flat h4,
.profile-flat p {
    margin: 0;
}

.profile-flat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}

.profile-flat-eyebrow {
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-flat-header h3 {
    margin-top: 4px;
    color: var(--green-dark);
    font-size: 22px;
}

.profile-flat-header p,
.profile-flat-section-heading p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.profile-flat-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-flat-header-actions a {
    color: var(--leclerc-blue);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.profile-status,
.profile-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    color: #246b19;
    background: var(--leaf-soft);
    font-size: 11px;
    font-weight: 800;
}

.profile-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.profile-flat-main {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(420px, 1.4fr);
}

.profile-flat-section {
    padding: 24px;
}

.profile-flat-section + .profile-flat-section {
    border-left: 1px solid var(--line);
}

.profile-flat-section h4,
.profile-flat-activity h4 {
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.profile-flat-identity dl {
    display: grid;
    gap: 0;
    margin: 12px 0 0;
}

.profile-flat-identity dl div {
    padding: 12px 0;
    border-bottom: 1px solid #edf1ea;
}

.profile-flat-identity dl div:last-child {
    border-bottom: 0;
}

.profile-flat-identity dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.profile-flat-identity dd {
    margin: 4px 0 0;
    color: #172318;
    font-size: 14px;
    font-weight: 800;
}

.profile-flat-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.profile-flat-section-heading small,
.profile-flat-logo-form small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.profile-flat-logo-content {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(220px, 1fr);
    align-items: center;
    gap: 24px;
    margin-top: 18px;
}

.profile-flat-logo-form {
    display: grid;
    justify-items: start;
    gap: 9px;
}

.profile-flat-file-button,
.profile-flat-logo-form button {
    min-width: 0;
    padding: 8px 11px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.profile-flat-file-button {
    border: 1px solid #b8c5b3;
    color: #314437;
    background: #fff;
}

.profile-flat-file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.profile-flat-logo-form button {
    color: #fff;
    background: var(--green);
}

.profile-flat-activity {
    padding: 20px 24px;
    border-top: 1px solid var(--line);
}

.profile-flat-activity > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 14px;
}

.profile-flat-activity p {
    padding: 4px 20px;
    border-left: 1px solid var(--line);
}

.profile-flat-activity p:first-child {
    padding-left: 0;
    border-left: 0;
}

.profile-flat-activity strong,
.profile-flat-activity span {
    display: block;
}

.profile-flat-activity strong {
    color: var(--green);
    font-size: 25px;
    line-height: 1;
}

.profile-flat-activity span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .profile-flat-main,
    .profile-flat-logo-content {
        grid-template-columns: 1fr;
    }

    .profile-flat-section + .profile-flat-section {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 620px) {
    .profile-flat-header,
    .profile-flat-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-flat-activity > div {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 0;
    }

    .profile-flat-activity p:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }
}

.profile-card-block {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8faf7;
}

.profile-card-block h3 {
    margin: 0;
    color: #172318;
    font-size: 17px;
}

.profile-card-block p {
    margin: 0;
}
.profile-details {
    display: grid;
    gap: 10px;
    margin: 0;
}

.profile-details div {
    display: grid;
    gap: 3px;
}

.profile-details dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-details dd {
    margin: 0;
    font-weight: 800;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
	text-align: center;
}

.profile-stats div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}

.profile-stats strong {
    display: block;
    color: var(--green);
    font-size: 28px;
    line-height: 1;
}

.profile-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.profile-product-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
    max-height: 280px;
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.profile-product-image-grid figure {
    display: grid;
    gap: 6px;
    margin: 0;
    min-width: 0;
}

.profile-product-image-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    object-fit: cover;
    background: #eef1ec;
}

.profile-product-image-grid figcaption {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-muted {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.profile-link-button {
    justify-self: start;
    padding: 10px 14px;
}

@media (max-width: 760px) {
    .config-logo-panel {
        grid-template-columns: 1fr;
    }

    .profile-grid,
    .profile-stats {
        grid-template-columns: 1fr;
    }

    .profile-card-block--logo {
        grid-column: auto;
    }
}

.poster-theme-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.poster-theme-list .maintenance-card {
    margin: 0;
}

.poster-theme-card {
    display: grid;
    gap: 16px;
}

.config-main .maintenance-card.poster-theme-add-panel {
    width: 100%;
    background: #dff2f7;
}

.poster-theme-add-form {
    width: 100%;
    max-width: 650px;
    box-sizing: border-box;
}

.poster-theme-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.poster-theme-card-heading h3,
.poster-theme-card-heading p {
    margin: 0;
}

.poster-theme-card-heading p {
    margin-top: 4px;
    font-size: 12px;
}

.poster-theme-preview {
    display: grid;
    grid-template-rows: 52px 12px;
    flex: 0 0 92px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.poster-theme-preview i {
    display: block;
}

.poster-theme-preview strong {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 18px;
}

.poster-theme-name {
    display: grid;
    gap: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.poster-theme-name input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px 12px;
    background: #fff;
}

.poster-theme-colors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.poster-theme-colors label {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.poster-theme-colors label span {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    font-weight: 500;
}

.poster-theme-colors input[type="color"] {
    grid-column: 1 / -1;
    width: 100%;
    height: 44px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
}

.poster-theme-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 1100px) {
    .poster-theme-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .poster-theme-list,
    .poster-theme-colors {
        grid-template-columns: 1fr;
    }
}

/* Galerie simplifiée des thèmes */
.poster-theme-list {
    grid-template-columns: repeat(auto-fill, 120px);
    align-items: start;
    justify-content: start;
}

.poster-theme-tile {
    position: relative;
    width: 120px;
    min-width: 0;
}

.poster-theme-tile .poster-theme-preview,
.poster-theme-preview--poster {
    position: relative;
    width: 100%;
    aspect-ratio: 210 / 297;
    grid-template-rows: 92% 8%;
    flex: none;
    min-height: 0;
    border-color: var(--theme-main);
}

.poster-theme-tile .poster-theme-preview strong,
.poster-theme-preview--poster strong,
.poster-theme-dialog .poster-theme-preview--poster strong {
    box-sizing: border-box;
    grid-template-rows: 55% 45%;
    place-items: center;
    padding: 0;
    background: var(--theme-main);
    font-size: 14px;
}

.poster-theme-tile .poster-theme-preview strong::before,
.poster-theme-preview--poster strong::before,
.poster-theme-dialog .poster-theme-preview--poster strong::before {
    content: '';
    width: 100%;
    height: 100%;
    background: #fff url('../images/poisson.png') center / 54% auto no-repeat;
}

.poster-theme-preview strong {
    padding: 10px;
    background: var(--theme-main);
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.12;
}

.poster-theme-preview i {
    background: var(--theme-band);
}

.poster-theme-preview-button {
    appearance: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.poster-theme-preview-button:hover,
.poster-theme-preview-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 52, 74, 0.14);
}

.poster-theme-preview-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--theme-main) 45%, white);
    outline-offset: 3px;
}

.poster-theme-delete-form {
    display: flex;
    justify-content: center;
    margin-top: 7px;
}

.config-main .poster-theme-delete-form button {
    display: grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    padding: 5px;
    background: transparent;
    cursor: pointer;
}

.config-main .poster-theme-delete-form button:hover {
    background: rgba(190, 45, 55, 0.1);
}

.config-main .poster-theme-delete-form img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.poster-theme-create-action {
    display: flex;
    margin-bottom: 18px;
}

.poster-theme-dialog {
    width: min(440px, calc(100% - 32px));
    padding: 0;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(13, 38, 57, 0.28);
}

.poster-theme-dialog::backdrop {
    background: rgba(8, 27, 42, 0.52);
}

.poster-theme-dialog .poster-theme-form {
    padding: 22px;
}

.poster-theme-dialog .poster-theme-preview {
    width: 100%;
    grid-template-rows: 72px 14px;
}

.poster-theme-dialog .poster-theme-preview--poster {
    justify-self: center;
    width: 120px;
    grid-template-rows: 92% 8%;
}

.poster-theme-dialog .poster-theme-colors {
    grid-template-columns: 1fr;
}

.poster-theme-dialog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.poster-theme-dialog-heading h3 {
    margin: 0;
}

.config-main .poster-theme-dialog-close {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.config-main .poster-theme-dialog-close:hover {
    background: rgba(127, 127, 127, 0.1);
}

.poster-theme-dialog .poster-theme-actions {
    gap: 10px;
}

@media (max-width: 520px) {
    .poster-theme-list {
        grid-template-columns: repeat(auto-fill, 105px);
    }

    .poster-theme-tile {
        width: 105px;
    }
}

.config-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
}

.config-alliance-form {
    display: grid;
    grid-template-columns: 320px 130px 260px auto;
    gap: 12px;
    align-items: end;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid rgba(11, 112, 181, 0.14);
    border-radius: 18px;
    background: linear-gradient(135deg, #eef7ff 0%, #f6faf4 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.config-domain-form {
    display: grid;
    grid-template-columns: 230px 360px auto;
    gap: 12px;
    align-items: end;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid rgba(11, 112, 181, 0.14);
    border-radius: 18px;
    background: linear-gradient(135deg, #eef7ff 0%, #f6faf4 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.config-treatment-form {
    display: grid;
    grid-template-columns: 230px 360px auto;
    gap: 12px;
    align-items: end;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid rgba(11, 112, 181, 0.14);
    border-radius: 18px;
    background: linear-gradient(135deg, #eef7ff 0%, #f6faf4 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.config-domain-form label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.config-logo-form {
    padding: 18px;
    border: 1px solid rgba(11, 112, 181, 0.14);
    border-radius: 18px;
    background: linear-gradient(135deg, #eef7ff 0%, #f6faf4 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.config-alliance-form .floating-field,
.config-domain-form .floating-field,
.config-treatment-form .floating-field,
.config-logo-form .config-file-label {
    padding: 0;
    border: 0;
    background: transparent;
}

.config-alliance-form input,
.config-domain-form input,
.config-treatment-form input,
.config-treatment-form select {
    border-color: #bfd0b7;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.config-alliance-form input:required:placeholder-shown,
.config-domain-form input:required:placeholder-shown,
.config-treatment-form input:required:placeholder-shown {
    background: #fff;
}

.config-alliance-form input:focus,
.config-domain-form input:focus,
.config-treatment-form input:focus,
.config-treatment-form select:focus,
.config-logo-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(11, 112, 181, 0.12);
    outline: none;
}

.floating-field {
    position: relative;
    display: block;
    min-width: 0;
}

.floating-field input,
.floating-field select {
    width: 100%;
    min-height: 40px;
    padding: 15px 12px 5px;
    border: 1px solid #b8c5b3;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-weight: 700;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.floating-field span {
    position: absolute;
    left: 13px;
    top: 50%;
    padding: 0 4px;
    color: var(--muted);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    opacity: 0.85;
    pointer-events: none;
    transform: translateY(-50%);
    transform-origin: left center;
    transition: top 0.16s ease, transform 0.16s ease, color 0.16s ease, font-size 0.16s ease, opacity 0.16s ease;
}

.floating-field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(11, 112, 181, 0.14);
    outline: 0;
}

.floating-field select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(11, 112, 181, 0.14);
    outline: 0;
}

.floating-field input:focus + span,
.floating-field input:not(:placeholder-shown) + span,
.floating-field select:focus + span,
.floating-field select:valid + span {
    top: 5px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    opacity: 1;
    transform: translateY(0);
}

.config-alliance-table {
    min-width: 0;
}

.config-domain-table {
    min-width: 0;
    table-layout: fixed;
}

.config-domain-table th:first-child,
.config-domain-table td:first-child {
    width: 15%;
}

.config-muted {
    color: var(--muted);
    font-weight: 700;
}

.config-email-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.config-email-address {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.config-email-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.config-email-item .delete-article-button {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    padding: 4px;
}

.config-admin-role-form label,
.config-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(34, 122, 186, 0.12);
    color: var(--poisika-blue-dark);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.config-admin-role-form label {
    cursor: pointer;
}

.config-admin-role-form input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--poisika-blue);
}

.config-stat-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 0;
    list-style: none;
    text-align: center;
    font-weight: 800;
}

.config-domain-table th:nth-child(n+5),
.config-domain-table td:nth-child(n+5) {
    width: 92px;
    text-align: center;
}

.config-domain-table th:nth-child(4),
.config-domain-table td:nth-child(4) {
    width: 145px;
    text-align: center;
}

.config-last-login-list {
    white-space: nowrap;
    font-size: 12px;
}

.config-inline-form {
    margin: 0;
}

@media (max-width: 900px) {
    .config-test {
        grid-template-columns: 1fr;
    }

    .config-heading,
    .config-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .config-alliance-form,
    .config-domain-form,
    .config-treatment-form {
        grid-template-columns: 1fr;
    }
}


.contact-main {
    padding: 28px 18px 42px;
}

.contact-card {
    width: min(920px, 100%);
    margin: 0 auto 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(8, 39, 26, 0.10);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: #314437;
    font-weight: 800;
}

.contact-form label span em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #b8c5b3;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    color: #142014;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    opacity: 0.85;
}

.contact-form textarea {
    min-height: 170px;
    resize: vertical;
}

.contact-form-wide {
    grid-column: 1 / -1;
}

.contact-actions {
    display: flex;
    justify-self: end;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: auto;
}

.contact-actions .button,
.contact-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    text-align: center;
    line-height: 1;
}

.contact-actions .button.secondary {
    background: var(--leclerc-orange);
}

.contact-actions .primary-action {
    background: var(--green);
}

.contact-admin-count {
    color: #2d4b35;
    border-color: var(--line);
    background: var(--leaf-soft);
}

.contact-message-list {
    display: grid;
    gap: 12px;
}

.contact-message-item {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8faf7;
}

.contact-message-item h3 {
    margin: 8px 0;
    color: #142014;
    font-size: 18px;
}

.contact-message-item p {
    margin: 0;
    color: #2d3c31;
    line-height: 1.45;
}

.contact-message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.contact-message-meta span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef5ea;
}

.contact-page-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--leclerc-blue);
    font-weight: 800;
}

@media (max-width: 760px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
}

/* Harmonisation des en-têtes avec le tableau principal de l'index. */
table:not(#articlesTable) thead th {
    height: 54px;
    min-height: 54px;
    border-bottom: 3px solid var(--fruit) !important;
    vertical-align: middle;
}

/* Flat design commun à l'ensemble des onglets de configuration. */
.config-main .config-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: none;
}

.config-main .config-tabs {
    gap: 4px;
}

.config-main .config-tabs a {
    padding: 9px 12px;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
}

.config-main .config-tabs a.is-active {
    color: var(--green-dark);
    border-color: var(--line);
    border-bottom-color: #fff;
    box-shadow: none;
}

.config-main .config-tab-panel > .config-heading.compact {
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.config-main .config-tab-panel > .config-heading.compact h2 {
    color: var(--green-dark);
    font-size: 21px;
}

.fishing-area-heading {
    align-items: center;
    gap: 20px;
}

.fishing-area-count {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 122, 186, 0.12);
    color: var(--poisika-blue-dark);
    font-size: 13px;
    font-weight: 800;
}

.fishing-area-card {
    overflow-x: auto;
}

.fishing-area-table td:last-child,
.fishing-area-table th:last-child {
    width: 120px;
    text-align: center;
}

.fishing-area-main td {
    background: rgba(34, 122, 186, 0.08);
}

.fishing-area-subarea td:first-child {
    padding-left: 30px;
}

.fishing-area-toggle-form {
    display: inline-block;
    margin: 0;
}

.fishing-area-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.fishing-area-toggle input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--poisika-blue);
}

.fishing-area-switch {
    position: relative;
    width: 44px;
    min-height: 26px;
    padding: 0;
}

.fishing-area-switch input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.fishing-area-switch::before {
    position: absolute;
    left: 0;
    width: 44px;
    height: 24px;
    box-sizing: border-box;
    border: 1px solid #9daab5;
    border-radius: 24px;
    background: #cbd3da;
    content: "";
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.fishing-area-switch::after {
    position: absolute;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(18, 48, 71, 0.3);
    content: "";
    transition: transform 0.2s ease;
}

.fishing-area-switch:has(input:checked)::before {
    border-color: #174f8f;
    background: #326cb3;
}

.fishing-area-switch:has(input:checked)::after {
    transform: translateX(20px);
}

.fishing-area-switch:has(input:focus-visible)::before {
    outline: 3px solid rgba(50, 108, 179, 0.2);
    outline-offset: 2px;
}

.fishing-area-inline-editor {
    display: grid;
    gap: 4px;
    min-width: 175px;
}

.fishing-area-inline-editor input,
.fishing-area-inline-editor select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.fishing-area-accordion-list {
    display: grid;
    gap: 10px;
}

.fishing-area-accordion {
    overflow: hidden;
    border: 1px solid rgba(34, 122, 186, 0.2);
    border-radius: 12px;
    background: #fff;
}

.fishing-area-accordion > summary {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(34, 122, 186, 0.08);
    cursor: pointer;
    list-style: none;
}

.fishing-area-accordion > summary::-webkit-details-marker {
    display: none;
}

.fishing-area-accordion > summary::before {
    content: '›';
    grid-column: 1;
    position: absolute;
    margin-left: -2px;
    color: var(--poisika-blue);
    font-size: 22px;
    font-weight: 900;
    transform: rotate(0deg);
    transition: transform 0.15s ease;
}

.fishing-area-accordion[open] > summary::before {
    transform: rotate(90deg);
}

.fishing-area-accordion-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-left: 22px;
}

.fishing-area-accordion-title strong {
    color: var(--poisika-blue-dark);
}

.fishing-area-accordion-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.fishing-area-accordion .fishing-area-table {
    width: 100%;
    margin: 0;
}

.fishing-gear-table td:last-child,
.fishing-gear-table th:last-child {
    width: 140px;
    text-align: center;
}

@media (max-width: 760px) {
    .fishing-area-accordion > summary {
        grid-template-columns: 1fr auto;
    }

    .fishing-area-accordion-count {
        grid-column: 1 / -1;
        padding-left: 22px;
    }
}

.fishing-area-inline-editor select {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 12px;
}

.config-main .maintenance-card,
.config-main .config-test,
.config-main .regulation-test-card,
.config-main .profile-card-block,
.config-main .config-empty-state {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.config-empty-state {
	padding:15px;
}

.fishing-gear-add-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
    align-items: end;
    gap: 22px;
}

.fishing-gear-add-card h3 {
    margin: 0 0 6px;
}

.fishing-gear-add-card p {
    margin: 0;
}

.fishing-gear-add-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    align-items: end;
}

.fishing-gear-add-form label {
    grid-column: 1 / -1;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.fishing-gear-add-form input {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px 12px;
    background: #fff;
}

.fishing-gear-edit-hint {
    margin: 0 0 10px;
    font-size: 13px;
}

.fishing-gear-edit-status {
    min-height: 20px;
    margin: 0 0 8px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 700;
}

.fishing-gear-edit-status.is-error {
    color: var(--danger);
}

.fishing-gear-editable-cell {
    cursor: text;
}

.fishing-gear-editable-cell:hover {
    background: #f3f8fb;
}

.fishing-gear-editable-cell input {
    width: 100%;
    border: 1px solid var(--blue);
    border-radius: 7px;
    padding: 8px 10px;
    background: #fff;
    font: inherit;
    font-weight: 700;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(11, 112, 181, 0.12);
}

@media (max-width: 760px) {
    .fishing-gear-add-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

.config-main .maintenance-card h3,
.config-main .image-admin-panel-header h3 {
    color: var(--green-dark);
    font-size: 15px;
}

.config-main .config-alliance-form,
.config-main .config-domain-form,
.config-main .config-treatment-form,
.config-main .config-logo-form {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8faf7;
    box-shadow: none;
}

.config-main .floating-field input,
.config-main .floating-field select,
.config-main .config-table-input,
.config-main .config-category-exception-input,
.config-main .config-rules-table textarea,
.config-main .image-admin-filters input[type="search"] {
    border-radius: 7px;
    box-shadow: none;
}

.config-main .config-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.config-main .config-table,
.config-main .maintenance-table {
    border-collapse: separate;
    border-spacing: 0;
}

.config-main .config-table thead th:first-child,
.config-main .maintenance-table thead th:first-child {
    border-top-left-radius: 10px;
}

.config-main .config-table thead th:last-child,
.config-main .maintenance-table thead th:last-child {
    border-top-right-radius: 10px;
}

.config-main .image-admin-stat {
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
}

.config-main .image-admin-stat:hover,
.config-main .image-admin-stat:focus-visible,
.config-main .image-admin-stat.is-active {
    box-shadow: none;
    transform: none;
}

.config-main .image-convert-panel {
    background: #f8fbfd;
}

.config-main .converter-file-card,
.config-main .product-image-card,
.config-main .user-image-card {
    border-radius: 10px;
    box-shadow: none;
}

.config-main .converter-file-card img,
.config-main .product-image-card > img,
.config-main .user-image-card img {
    border-radius: 7px;
}

.config-main .image-quality-badge,
.config-main .image-scope-badge,
.config-main .user-images-count {
    border-radius: 6px;
}

.config-main button,
.config-main .button {
    border-radius: 7px;
}

.config-main .config-message {
    border: 1px solid currentColor;
    border-radius: 8px;
}

/* Champs de contrôle DataTables. */
.dt-container input,
.dt-container select,
.dt-container .dt-search input,
.dt-container .dt-length select {
    border-radius: 8px !important;
}

/* Filtres Images : tuiles plates harmonisées avec le thème global. */
.config-main .image-admin-stats {
    gap: 8px;
}

.config-main .image-admin-stat {
    --stat-color: var(--green-dark);
    --stat-soft: var(--line);
    position: relative;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 3px;
    min-height: 54px;
    width: 120px;
    height: 54px;
    flex: 0 0 120px;
    padding: 8px 13px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-dark);
    background: #fff;
    text-align: left;
}

@media (max-width: 620px) {
    .config-main .image-admin-stat {
        width: calc(50% - 4px);
        flex-basis: calc(50% - 4px);
    }
}

.config-main .image-admin-stat::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--green);
    content: "";
    opacity: 0;
}

.config-main .image-admin-stat:hover,
.config-main .image-admin-stat:focus-visible {
    border-color: #9fc694;
    background: #f8faf7;
}

.config-main .image-admin-stat.is-active {
    border-color: #a7d99a;
    background: var(--leaf-soft);
}

.config-main .image-admin-stat.is-active::after {
    opacity: 1;
}

.config-main .image-admin-stats strong {
    color: var(--green-dark);
    font-size: 18px;
    font-weight: 900;
}

.config-main .image-admin-stats span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.image-gallery-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.image-gallery-title-row > span {
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    background: #f8faf7;
    font-size: 10px;
    font-weight: 800;
}

.image-gallery-count {
    color: #246b19 !important;
    border-color: #a7d99a !important;
    background: var(--leaf-soft) !important;
}

.image-gallery-count strong {
    font-size: 12px;
}

.config-main .image-admin-stat[data-image-stat-toggle-all] {
    align-content: center;
}

.config-main .image-admin-stat[data-image-stat-toggle-all] span {
    color: var(--green-dark);
    font-weight: 800;
}

.config-main .image-admin-stat.is-missing strong,
.config-main .image-admin-stat.is-orphan strong {
    color: var(--leclerc-orange);
}

.config-main .image-admin-stat.is-missing.is-active::after,
.config-main .image-admin-stat.is-orphan.is-active::after {
    background: var(--leclerc-orange);
}
.config-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.config-toggle-switch input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.config-toggle-switch::before {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    border: 1px solid #9daab5;
    border-radius: 24px;
    background: #cbd3da;
    content: "";
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.config-toggle-switch::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(18, 48, 71, 0.3);
    content: "";
    transition: transform 0.2s ease;
}

.config-toggle-switch:has(input:checked)::before {
    border-color: #174f8f;
    background: #326cb3;
}

.config-toggle-switch:has(input:checked)::after {
    transform: translateX(20px);
}

.config-toggle-switch:has(input:focus-visible)::before {
    outline: 3px solid rgba(50, 108, 179, 0.2);
    outline-offset: 2px;
}
