:root {
    --bg: #eff2f6;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #667085;
    --border: #e5e7eb;
    --shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    --radius: 18px;
    --accent-a: #833ab4;
    --accent-b: #fd1d1d;
    --accent-c: #fcb045;
    --ring: rgba(253, 29, 29, 0.24);
    --topbar-h: 50px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    background-color: var(--bg);
    position: relative;
}

html::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-color: #eff2f6;
    background-image: radial-gradient(1200px 560px at 12% -8%, rgba(131, 58, 180, 0.16), rgba(131, 58, 180, 0) 62%), radial-gradient(980px 520px at 92% 4%, rgba(252, 176, 69, 0.18), rgba(252, 176, 69, 0) 64%), linear-gradient(180deg, #f8fafd 0%, #edf1f7 100%);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: auto, auto, cover;
    background-position: 0 0, 100% 0, center;
}

body {
    margin: 0;
    font-size: 100%;
    font-family: "Manrope", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background: transparent;
    color: var(--text);
}

a {
    color: rgba(253, 29, 29, 0.48);
}

a:hover {}

.auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}


/* --- Signup password layout --- */

.pw-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
}

.pw-col {
    display: flex;
    flex-direction: column;
}

.signup-user-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.signup-user-row>div {
    display: grid;
    gap: 6px;
}

.pw {
    margin-top: 10px;
}

.pw__row {
    height: 10px;
    width: 100%;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.pw__bar {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef447a 0%, #ffc35c 40%, #8ee3b8 100%);
    transition: width 160ms ease;
}

.signup-actions {
    margin-top: 22px;
}


/* Responsive : sur mobile étroit on repasse en colonne */

@media (max-width: 520px) {
    .signup-user-row {
        grid-template-columns: 1fr;
    }
    .pw-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

.card__header {
    padding: 18px 18px 10px;
}

.card__content {
    padding: 14px 18px 18px;
}


/* Logo */

.logo {
    --logo-size: clamp(22px, 4.5vw, 52px);
    display: grid;
    justify-items: start;
    width: 100%;
    line-height: 1;
}

.logo__img {
    display: block;
    width: 200px;
    height: auto;
    max-width: 100%;
    margin: 0;
    justify-self: start;
}

.logo__text {
    font-size: var(--logo-size);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
    background: linear-gradient(90deg, #833ab4 0%, #b3358d 24%, #fd1d1d 54%, #fc5b3f 76%, #fcb045 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    white-space: nowrap;
    display: inline-block;
}

.logo__subtitle {
    display: block;
    margin: 0 auto;
    width: 100%;
    font-size: clamp(12px, 2.2vw, 14px);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-align: center;
}

.card__header .logo {
    margin-bottom: 10px;
}


/* Tabs: light pill-tabs */

.tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    margin: 0 auto 10px auto;
    width: calc(100% - 40px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
}

.tab {
    flex: 1;
    height: 40px;
    border: 0;
    background: transparent;
    font-weight: 700;
    font-size: 13px;
    color: var(--muted);
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.tab--active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0px 14px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.tab:hover {
    background: rgba(15, 23, 42, 0.04);
}

.form {
    display: none;
    gap: 10px;
}

.form--active {
    display: grid;
}

.label {
    font-size: 12px;
    color: #59657a;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-top: 2px;
}

.input {
    display: block;
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1px solid #cfd8e6;
    padding: 0 12px;
    font-size: 16px;
    outline: none;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.input:hover {
    border-color: #b7c4d9;
}

select.input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    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='%23707a8a' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 10px 6px;
    background-position: right 14px center;
    padding-right: 40px;
}

.input::placeholder {
    color: rgba(102, 112, 133, 0.52);
}

.input:focus {
    border-color: rgba(253, 29, 29, 0.45);
    box-shadow: 0 0 0 3px var(--ring);
    background: #fff;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    -webkit-appearance: none;
    appearance: none;
    color: inherit;
    font: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    border: 0;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    padding: 0 15px;
    cursor: pointer;
    text-decoration: none;
    vertical-align: middle;
}

.btn:hover {
    transform: translateY(-1px);
    transition: transform 140ms ease, box-shadow 180ms ease;
}

.btn--primary {
    color: #161e50;
    background: transparent;
    border: 0;
    box-shadow: none;
    position: relative;
    isolation: isolate;
}

.btn--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(90deg, rgba(131, 58, 180, 0.95) 0%, rgba(253, 29, 29, 0.95) 55%, rgba(252, 176, 69, 0.95) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.btn--primary:active {
    background: rgba(252, 176, 69, 0.18);
    transform: translateY(1px);
}

.btn--ghost {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn--loading {
    opacity: 0.85;
    cursor: wait;
}

.btn--block {
    width: 100%;
}

.mt-16 {
    margin-top: 16px;
}

.mt-10 {
    margin-top: 10px;
}

.btn:focus-visible,
.input:focus-visible,
.tab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--ring);
}

.hint {
    font-size: 14px;
    color: #8a8a8a;
    margin-top: 6px;
}

.link {
    color: #df5876;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link--muted {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
    display: inline-block;
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 12px;
    user-select: none;
}

.check__box {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.check__text {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.35;
}

.check__text .link {
    color: var(--text);
}

.toast {
    margin-top: 12px;
    font-size: 13px;
    color: #fff;
    background: #0b1220;
    border-radius: 14px;
    padding: 10px 12px;
    display: none;
}

.toast--show {
    display: block;
}


/* App shell */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    height: 50px;
    padding: 0 14px;
    background: linear-gradient(90deg, rgba(131, 58, 180, 0.74) 0%, rgba(253, 29, 29, 0.78) 50%, rgba(252, 176, 69, 0.8) 100%);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
}

.topbar__title {
    font-weight: 800;
    color: #fff;
    letter-spacing: .01em;
    font-size: 25px;
}

.topbar__left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.topbar__center {
    display: flex;
    justify-content: center;
    flex: 1;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    justify-content: flex-end;
}

.topbar__brand {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: .01em;
}

.topbar__user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 999px;
    padding: 6px 10px;
}

.topbar__fullscreen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    cursor: pointer;
}

.topbar__home {
    display: none;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 44px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
}

.topbar__home svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar__fullscreen:hover {
    background: rgba(0, 0, 0, 0.3);
}

.topbar__fullscreen-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar__fullscreen-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar__user:hover {
    background: rgba(0, 0, 0, 0.3);
}

.topbar__user-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar__user-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pill {
    font-size: 12px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff;
}

.app {
    padding: 18px 16px;
    display: grid;
    place-items: start center;
}

.p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}


/* Footer légal */

.site-footer {
    margin-top: 34px;
    padding: 18px 16px 28px;
}

.site-footer__inner {
    max-width: none;
    margin: 0;
    padding: 14px 14px;
    text-align: left;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

main.auth+.site-footer .site-footer__inner {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}


/* Lignes (si utilisées dans le HTML) */

.site-footer__line {
    margin-top: 6px;
}

.site-footer__line:first-child {
    margin-top: 0;
}

.site-footer__brand {
    font-weight: 700;
    color: var(--text);
}

.site-footer__sep {
    margin: 0 6px;
    color: rgba(102, 112, 133, 0.9);
}

.site-footer .link {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.18);
    padding-bottom: 1px;
}

.site-footer .link:hover {
    border-bottom-color: rgba(15, 23, 42, 0.35);
}

.site-footer [x-apple-data-detectors],
.site-footer a[x-apple-data-detectors],
.site-footer a[href^="tel"] {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

@media (min-width: 640px) {
    .site-footer {
        padding-bottom: 34px;
    }
    .site-footer__inner {
        font-size: 13px;
        border-top: 1px solid rgba(15, 23, 42, 0.07);
    }
}


/* App menu + shared app pages */

.app-wrap {
    max-width: none;
    margin: 0;
    margin-top: 0;
    padding: calc(8px + var(--topbar-h)) 10px 16px;
    container-type: inline-size;
    container-name: app-wrap;
    opacity: 1;
    transform: none;
    transition: opacity 140ms ease;
}

.app-wrap.app-wrap--swap-out {
    opacity: 0.35;
    transform: none;
}

.app-wrap.app-wrap--swap-in {
    opacity: 0;
    transform: none;
}

@media (max-width: 860px) {
    .app-wrap {
        transition: opacity 180ms ease;
        transform: none;
    }
    .app-wrap.app-wrap--swap-out {
        opacity: 0;
        transform: none;
    }
    .app-wrap.app-wrap--swap-in {
        opacity: 0;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-wrap {
        transition: none;
    }
}

html.ajax-nav-loading body::after {
    content: "";
    position: fixed;
    left: 0;
    top: 50px;
    width: 32%;
    max-width: 360px;
    height: 2px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 1600;
    background: linear-gradient(90deg, rgba(131, 58, 180, 0.98) 0%, rgba(253, 29, 29, 0.98) 60%, rgba(252, 176, 69, 0.98) 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 2px 8px rgba(131, 58, 180, 0.2);
    animation: ajax-top-progress 1.05s ease-in-out infinite;
}

@keyframes ajax-top-progress {
    0% {
        transform: translateX(-130%);
        opacity: 0.8;
    }
    55% {
        opacity: 1;
    }
    100% {
        transform: translateX(340%);
        opacity: 0.55;
    }
}

.menu-dropdown {
    position: relative;
}

.app-sidebar {
    display: none;
}

.app-quick-rail {
    display: none;
}

.menu-dropdown__toggle {
    height: 36px;
    width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 20px;
    line-height: 0;
    cursor: pointer;
}

.menu-dropdown__toggle-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-dropdown__toggle-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-dropdown__panel {
    position: absolute;
    left: 0;
    right: auto;
    top: calc(100% + 8px);
    min-width: 0;
    width: min(92vw, 320px);
    max-height: 72vh;
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.75) inset;
    padding: 8px;
    display: none;
    z-index: 80;
}

.menu-dropdown--open .menu-dropdown__panel {
    display: grid;
    gap: 4px;
}

.menu-search {
    padding: 6px 4px 10px;
    display: grid;
    grid-template-columns: 1fr 38px;
    gap: 6px;
}

.menu-search__input {
    width: 100%;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    padding: 0 10px;
    font-size: 14px;
}

.menu-search__input::placeholder {
    color: rgba(102, 112, 133, 0.52);
}

.menu-search__input:focus,
.menu-search__input:focus-visible {
    outline: none;
    border-color: rgba(231, 108, 141, 0.55);
    box-shadow: 0 0 0 3px rgba(231, 108, 141, 0.2);
}

.menu-search__btn {
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.96);
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-search__btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-group {
    display: grid;
    gap: 4px;
}

.menu-group__title {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #667085;
    font-weight: 800;
    padding: 8px 10px 4px;
}

.menu-group__title--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.menu-group__toggle {
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.menu-group__toggle:hover {
    color: #344054;
}

.menu-group__items {
    display: grid;
    gap: 4px;
}

.menu-group__items[hidden] {
    display: none !important;
}

.menu-dropdown__link {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    gap: 8px;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 10px 12px;
}

.menu-dropdown__link:hover {
    background: rgba(15, 23, 42, 0.05);
}

.menu-dropdown__link--active {
    background: rgba(131, 58, 180, 0.12);
    border: 1px solid rgba(131, 58, 180, 0.24);
}

.menu-dropdown__link--danger {
    color: #344054;
}

.menu-parent__toggle {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.menu-caret {
    font-size: 13px;
    opacity: 0.72;
    transform: rotate(-90deg);
    transition: transform 180ms ease;
}

.menu-tree--open .menu-caret {
    transform: rotate(0deg);
}

.menu-submenu {
    display: none;
    margin: 2px 0 4px 12px;
    padding: 2px 0 2px 16px;
    border-left: 2px dotted rgba(125, 132, 151, 0.48);
}

.menu-submenu--open {
    display: grid;
}

.menu-submenu__link {
    position: relative;
    display: block;
    margin-top: 4px;
    text-decoration: none;
    color: #495163;
    font-size: 15px;
    font-weight: 600;
    border-radius: 9px;
    padding: 8px 10px 8px 14px;
}

.menu-submenu__link::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 50%;
    width: 12px;
    border-top: 2px dotted rgba(125, 132, 151, 0.5);
    transform: translateY(-50%);
}

.menu-submenu__link:hover {
    background: rgba(15, 23, 42, 0.05);
}

.menu-submenu__link--active {
    background: rgba(231, 108, 141, 0.12);
    color: #7c3450;
}

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--menu-tone, #a068c3);
    color: #fff;
    box-shadow: 0 4px 10px rgba(180, 35, 24, 0.09);
}

.menu-icon svg {
    width: 14px;
    height: 14px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-grid {
    display: grid;
    gap: 12px;
}

.app-grid--cards {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.app-card-link {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    text-decoration: none;
    color: var(--text);
    display: grid;
    gap: 6px;
}

.app-card-link__title {
    font-weight: 800;
    font-size: 14px;
}

.app-card-link__hint {
    font-size: 12px;
    color: var(--muted);
}

.home-layout {
    display: grid;
    gap: 12px;
}

.home-main-col,
.home-side-col {
    display: grid;
    gap: 12px;
    min-width: 0;
}

@media (min-width: 861px) {
    @container app-wrap (min-width: 751px) {
        .home-layout {
            grid-template-columns: minmax(0, 1fr) minmax(220px, 250px);
            align-items: start;
        }
        .home-layout>.home-cta-wrap {
            grid-column: 1 / -1;
        }
        .home-layout>.home-main-col {
            grid-column: 1;
            width: 100%;
            max-width: none;
        }
        .home-layout>.home-side-col {
            grid-column: 2;
            max-width: 250px;
            width: 100%;
            justify-self: end;
        }
    }
}

.panel.onboarding-panel {
    margin-top: 5px;
}

.onboarding-panel .panel__body {
    display: grid;
    gap: 14px;
    font-size: 100%;
}

.onboarding-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
}

.onboarding-panel__head-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.onboarding-panel__close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #475467;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.onboarding-panel__close:hover {
    background: #f8fafc;
}

.onboarding-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
    border: 1px solid #e8decd;
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(140deg, #fffdf8 0%, #fff7f0 100%);
}

.onboarding-hero__subtitle {
    margin-bottom: 0;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .01em;
    background: linear-gradient(90deg, rgba(131, 58, 180, 0.95) 0%, rgba(253, 29, 29, 0.95) 50%, rgba(252, 176, 69, 0.95) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.onboarding-hero h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.onboarding-hero p {
    margin: 0;
    color: #5d556a;
    max-width: 780px;
}

.onboarding-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 236px;
    height: 48px;
    border-radius: 14px;
    color: #344054;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1;
    text-decoration: none;
    text-align: center;
    background: #fff;
    border: 1px solid #d0d5dd;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.onboarding-hero__cta:hover {
    background: #f9fafb;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10);
}

.onboarding-steps {
    display: grid;
    gap: 8px;
    font-size: 15px;
}

.onboarding-step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #344054;
    border: 1px solid #e8e8ef;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

.onboarding-step__label {
    flex: 1;
    min-width: 0;
}

.onboarding-step__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--icon-grad-start, #833ab4) 0%, var(--icon-grad-end, #fcb045) 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(180, 35, 24, 0.09);
}

.onboarding-step__icon svg {
    width: 14px;
    height: 14px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.onboarding-step--done {
    border-color: #cfe8d1;
    background: #f8fff8;
}

.onboarding-step__done {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcfbdb;
    color: #09b649;
    border: 1px solid rgba(9, 182, 73, 0.25);
    margin-left: auto;
    flex: 0 0 22px;
}

.onboarding-step__done svg {
    width: 13px;
    height: 13px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 760px) {
    .onboarding-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .onboarding-hero h2 {
        font-size: 17px;
    }
    .onboarding-hero__cta {
        font-size: 15px;
    }
}

.home-actions {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 10px;
    align-items: start;
}

.home-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.home-tabs.establishment-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.home-tabs.establishment-tabs .home-tab {
    flex: 0 0 auto;
    white-space: nowrap;
}

.home-tab {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 12px;
    text-decoration: none;
    cursor: pointer;
}

.home-tab--active {
    background: #22172d;
    color: #fff;
}

.home-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 6px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(231, 108, 141, 0.16);
    border: 1px solid rgba(231, 108, 141, 0.38);
    color: #ca4971;
    font-size: 13px;
    font-weight: 800;
}

.home-tab-badge--zero {
    background: #eceff3;
    border-color: #d1d5db;
    color: #6b7280;
}

.home-order-list {
    display: grid;
    gap: 8px;
}

.home-orders-by-name {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-orders-by-name-toggle {
    min-height: 30px;
    height: 30px;
    font-size: 12px;
    padding: 0 10px;
}

.home-order-name-chip {
    border: 1px solid #e7dcc8;
    background: #fff;
    color: #4a3621;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
}

.home-order-name-chip__count {
    font-size: 12px;
    font-weight: 700;
    color: #8a6a45;
}

.home-order-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 15px;
    display: grid;
    gap: 6px;
    margin-bottom: 15px;
}

.home-order-card--unpaid {
    background: #fff7f7;
    border-color: #e76c8d;
}

.home-order-card--paid {
    border-color: #b8cc16;
    background: #fafbf3;
}

.home-order-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.home-order-title {
    font-weight: 800;
    font-size: 17px;
}

.home-order-right {
    margin-left: auto;
    display: grid;
    justify-items: end;
    text-align: right;
    gap: 2px;
}

.home-order-price {
    font-weight: 900;
    font-size: 18px;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-order-owner {
    font-size: 13px;
    color: #111;
    font-weight: 600;
}

.home-order-meta {
    font-size: 14px;
    color: #111;
}

.home-order-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.home-order-foot {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-order-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e7dcc8;
    background: transparent;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 13px;
    color: #754f2a;
}

.home-order-badge--danger {
    border-color: rgba(231, 108, 141, 0.45);
    background: rgba(231, 108, 141, 0.1);
    color: #ca4971;
}

.home-order-badge svg {
    width: 13px;
    height: 13px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-pay-icon,
.home-service-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}

.home-pay-icon--badge {
    width: 18px;
    height: 18px;
}

.table-pay-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}

.home-order-list a.home-order-card,
.home-order-list a.home-order-card .home-order-head,
.home-order-list a.home-order-card .home-order-title,
.home-order-list a.home-order-card .home-order-price,
.home-order-list a.home-order-card .home-order-owner,
.home-order-list a.home-order-card .home-order-ticket,
.home-order-list a.home-order-card .home-order-badge {
    color: var(--text);
}

.home-order-ticket {
    margin-left: auto;
    font-size: 14px;
    font-weight: 500;
    color: #a89e92;
    white-space: nowrap;
}

.home-prep-list {
    display: grid;
    gap: 0;
    background: #fffaf1;
    border: 1px solid #f3d9b1;
    border-radius: 12px;
    padding: 0 10px;
}

.home-prep-item {
    border: 0;
    border-bottom: 1px solid #f5d9ad;
    border-radius: 0;
    background: #fff;
    padding: 10px 0;
}

.home-prep-item:last-child {
    border-bottom: 0;
}

.home-prep-item--prio-low {
    background: #fff;
}

.home-prep-item--prio-mid {
    background: #fff;
}

.home-prep-item--prio-high {
    background: #fff;
}

.home-prep-row {
    display: grid;
    grid-template-columns: fit-content(140px) minmax(0, 1.4fr) minmax(0, 1fr) 82px 34px;
    gap: 8px;
    align-items: center;
}

.home-prep-order {
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
}

.home-prep-line {
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-prep-comment {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid rgba(208, 90, 7, 0.34);
    background: rgba(255, 237, 213, 0.85);
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

.home-prep-qty {
    color: #d05a07;
}

.home-prep-check {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #7fb436;
    background: #e7f8d1;
    color: #5b8b1f;
    font-weight: 900;
    cursor: pointer;
}

.home-prep-seller {
    min-width: 0;
    font-size: 13px;
    color: #6e6b64;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-prep-time {
    font-size: 13px;
    color: #8a5d2f;
    text-align: right;
    white-space: nowrap;
}

.home-prep-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.home-prep-filter {
    border: 1px solid #f5a427;
    background: #fff;
    color: #d05a07;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    cursor: pointer;
}

.home-prep-filter--active {
    background: #fff0d1;
}

.home-prep-loader {
    display: inline-block;
    width: 26px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(208, 90, 7, 0.15) 0%, rgba(208, 90, 7, 0.55) 50%, rgba(208, 90, 7, 0.15) 100%);
    background-size: 200% 100%;
    margin-left: 4px;
}

.home-prep-loader--pulse {
    animation: prep-loader 560ms linear;
}

.home-prep-refresh-label {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #9a6532;
}

.home-orders-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel__head--orders {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-user-filter {
    margin-left: auto;
    position: relative;
}

.home-user-filter__summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 11px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.home-user-filter__summary::-webkit-details-marker {
    display: none;
}

.home-user-filter__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: min(280px, 82vw);
    max-height: 280px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
    z-index: 35;
}

.home-user-filter:not([open]) .home-user-filter__panel {
    display: none;
}

.home-user-filter__item {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: #344054;
    margin: 4px 0;
}

.home-orders-toolbar #home-orders-count {
    margin-left: auto;
    text-align: right;
}

@keyframes prep-loader {
    from {
        background-position: 120% 0;
    }
    to {
        background-position: -20% 0;
    }
}

.home-prep-panel {
    background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
    border: 2px solid rgba(116, 66, 150, 0.34);
}

.home-prep-panel .panel__head {
    background: linear-gradient(90deg, rgba(74, 37, 102, 0.95) 0%, rgba(98, 50, 130, 0.95) 100%);
    border-bottom-color: rgba(74, 37, 102, 0.4);
    color: #fff;
}

.home-prep-panel .panel__head .menu-icon {
    background: rgba(255, 255, 255, 0.18) !important;
}

.home-prep-panel .home-prep-loader {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0.18) 100%);
}

.home-prep-panel .home-prep-refresh-label {
    color: rgba(255, 255, 255, 0.88);
}

.home-prep-panel .home-prep-filter {
    border-color: rgba(255, 255, 255, 0.46);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.home-prep-panel .home-prep-filter--active {
    background: #fff;
    color: #000;
}

.home-prep-panel #home-prep-filters {
    margin-left: auto;
}

.home-prep-panel .panel__head-actions {
    margin-left: 0;
    gap: 6px;
}

.home-prep-panel .panel__head-actions::before {
    content: "|";
    color: rgba(255, 255, 255, 0.68);
    font-weight: 700;
    line-height: 1;
}

#home-prep-panel {
    margin-top: 0px;
}

.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 15px;
}

.pannel {
    margin-bottom: 30px;
}

.panel__head {
    border-bottom: 1px solid var(--border);
    padding: 12px 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel__head-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.panel__body {
    padding: 12px 14px;
    display: grid;
    gap: 10px;
}

.panel[hidden],
.panel__body[hidden] {
    display: none !important;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.form-grid>div {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.establishment-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    align-items: start;
}

.establishment-grid .label {
    display: block;
    margin: 0 0 6px;
    line-height: 1.2;
}

.establishment-tabs {
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 12px;
    background: linear-gradient(90deg, #e7e5f2 0%, #f1eae0 100%);
}

.establishment-form__actions {
    margin-top: 12px;
}

.establishment-ai-hint {
    border: 1px solid #eadfcb;
    background: #f7efe2;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.establishment-ai-hint__title {
    font-size: 14px;
    font-weight: 800;
    color: #3d2b37;
}

.establishment-ai-hint__text {
    font-size: 14px;
    color: #5f4d57;
}

.establishment-ai-hint .btn {
    justify-self: start;
}

.establishment-section {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.establishment-section__head {
    font-size: 14px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 10px;
}

.establishment-section__body {
    gap: 10px;
}

.establishment-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 22px;
    align-items: start;
}

.establishment-settings-col {
    display: grid;
    gap: 20px;
    padding-right: 20px;
    align-content: start;
}

.establishment-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 10px;
}

.establishment-contact-grid>div {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.input-labeled {
    position: relative;
}

.input-labeled .input {
    padding-left: 40px;
}

.input-labeled__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #7b818a;
    pointer-events: none;
}

.input-labeled__icon svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.establishment-payments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px 12px;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.establishment-payments .check-picto {
    width: auto;
    height: auto;
    justify-content: flex-start;
    align-items: center;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.establishment-payments .check-picto__icon {
    border-radius: 999px;
    flex: 0 0 22px;
}

.table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.products-form-row {
    display: grid;
    grid-template-columns: minmax(200px, 1.4fr) minmax(170px, 1.2fr) minmax(170px, 1.2fr) 120px 120px 110px 95px auto;
    gap: 8px;
    align-items: center;
}

.products-form-row--add-product {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    align-items: start;
}

.products-form-row__actions {
    grid-column: 4;
    display: flex;
    justify-content: flex-end;
}

.products-form-row--add-product .products-form-row__actions {
    grid-column: 3;
    grid-row: 4;
    align-self: end;
}

.products-form-field {
    display: grid;
    gap: 4px;
}

.products-form-field .label {
    margin-bottom: 0;
}

.products-form-field .hint {
    margin-top: 1px;
    font-size: 12px;
}

.products-form-field--product {
    grid-column: 1;
    grid-row: 1;
}

.products-form-field--category {
    grid-column: 2;
    grid-row: 1;
}

.products-form-field--supplier {
    grid-column: 3;
    grid-row: 1;
}

.products-form-field--stock-zone {
    grid-column: 1;
    grid-row: 2;
}

.products-form-field--stock-equipment {
    grid-column: 2;
    grid-row: 2;
}

.products-form-field--prep-zone {
    grid-column: 1;
    grid-row: 3;
}

.products-form-field--volume {
    grid-column: 2;
    grid-row: 3;
}

.products-form-field--price {
    grid-column: 1;
    grid-row: 4;
}

.products-form-field--purchase {
    grid-column: 2;
    grid-row: 4;
}

.products-price-tva {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.products-tva-select {
    min-width: 90px;
    max-width: 100px;
}

.products-filters-form {
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    align-items: end;
    gap: 8px;
    margin-bottom: 6px;
}

.products-filters-form__search {
    grid-column: 1 / -1;
}

.products-bulk-form {
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    align-items: end;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: #fff;
}

.products-bulk-form__title {
    grid-column: 1 / -1;
    font-weight: 700;
    font-size: 13px;
    color: #344054;
}

.products-bulk-form__actions {
    display: flex;
    justify-content: flex-end;
}

:root {
    --products-col-supplier-bg: #deecff;
    --products-col-supplier-border: #bdd8ff;
    --products-col-prep-bg: #ddf2e4;
    --products-col-prep-border: #b9dfc5;
    --products-col-stock-bg: #ffe8d3;
    --products-col-stock-border: #efc8a7;
    --products-col-equipment-bg: #e8e0ff;
    --products-col-equipment-border: #cdc0f6;
}

.products-bulk-select--supplier {
    background: var(--products-col-supplier-bg);
    border-color: var(--products-col-supplier-border);
}

.products-bulk-select--prep-zone {
    background: var(--products-col-prep-bg);
    border-color: var(--products-col-prep-border);
}

.products-bulk-select--stock-zone {
    background: var(--products-col-stock-bg);
    border-color: var(--products-col-stock-border);
}

.products-bulk-select--equipment {
    background: var(--products-col-equipment-bg);
    border-color: var(--products-col-equipment-border);
}

.stock-movement-form {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
}

.stock-movement-form__zone {
    grid-column: 1 / span 4;
    grid-row: 1;
}

.stock-movement-form__equipment {
    grid-column: 5 / span 4;
    grid-row: 1;
}

.stock-movement-form__product {
    grid-column: 9 / span 4;
    grid-row: 1;
}

.stock-movement-form__type {
    grid-column: 1 / span 3;
    grid-row: 2;
}

.stock-movement-form__qty {
    grid-column: 4 / span 2;
    grid-row: 2;
}

.stock-movement-form__comment {
    grid-column: 6 / span 5;
    grid-row: 2;
}

.stock-movement-form__submit {
    grid-column: 11 / span 2;
    grid-row: 2;
    display: flex;
    justify-content: flex-end;
}

.stock-movements-filters {
    grid-template-columns: minmax(160px, 1fr) 180px minmax(200px, 1fr) 170px 170px;
    margin-bottom: 10px;
}

.stock-zone-filters {
    grid-template-columns: minmax(170px, 280px) minmax(180px, 280px) minmax(220px, 1fr);
    margin-bottom: 10px;
}

.table--stock-movements {
    min-width: 1240px;
}

.table--stock-movements th:nth-child(1),
.table--stock-movements td:nth-child(1) {
    min-width: 165px;
    white-space: nowrap;
}

.table--stock-movements th:nth-child(2),
.table--stock-movements td:nth-child(2),
.table--stock-movements th:nth-child(3),
.table--stock-movements td:nth-child(3) {
    min-width: 170px;
}

.table--stock-movements th:nth-child(4),
.table--stock-movements td:nth-child(4) {
    min-width: 220px;
}

.table--stock-movements th:nth-child(5),
.table--stock-movements td:nth-child(5),
.table--stock-movements th:nth-child(6),
.table--stock-movements td:nth-child(6) {
    min-width: 110px;
    text-align: center;
    white-space: nowrap;
}

.table--stock-movements th:nth-child(7),
.table--stock-movements td:nth-child(7) {
    min-width: 130px;
}

.table--stock-movements th:nth-child(8),
.table--stock-movements td:nth-child(8) {
    min-width: 300px;
}

.stock-delta {
    font-weight: 700;
}

.stock-delta-cell {
    text-align: center;
}

.stock-type-cell {
    text-align: center;
}

.stock-qty-cell {
    text-align: center;
}

.stock-delta--plus {
    color: #1eb419;
}

.stock-delta--minus {
    color: #d82e21;
}

.import-col-num {
    text-align: right !important;
}

.import-cell-error {
    border-color: rgba(216, 46, 33, 0.58) !important;
    background: rgba(216, 46, 33, 0.08) !important;
}

.import-analyze-form {
    grid-template-columns: minmax(320px, 1fr) auto;
    align-items: end;
}

.import-sources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.import-source-card {
    border: 1px solid #e4e7ee;
    border-radius: 10px;
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.import-source-card--disabled {
    opacity: 0.62;
}

.import-source-card--disabled .import-file-input,
.import-source-card--disabled .btn {
    cursor: not-allowed;
}

.import-source-card__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #344054;
}

.import-source-accordion {
    display: grid;
    gap: 0;
}

.import-source-accordion[open] {
    gap: 8px;
}

.import-source-accordion__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 10px;
    cursor: pointer;
}

.import-source-accordion__summary::-webkit-details-marker {
    display: none;
}

.import-source-accordion__summary:hover {
    background: rgba(15, 23, 42, 0.03);
}

.import-source-accordion__body {
    padding: 0 12px 12px;
    display: grid;
    gap: 8px;
}

.import-source-accordion__chevron {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid #d6dcea;
    color: #64748b;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    transition: transform 180ms ease;
}

.import-source-accordion__chevron svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.import-source-accordion[open] .import-source-accordion__chevron {
    transform: rotate(180deg);
}

.import-source-card__icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid #e0e5ef;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
    color: #6a7a95;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
}

.import-source-card__icon svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.import-analyze-form--menu {
    align-items: start;
}

.import-analyze-form--menu .import-analyze-form__action {
    align-self: start;
}

.import-intro {
    color: #475467;
    font-size: 15px;
}

.import-intro strong {
    color: #c75c91;
}

.import-file-note {
    margin-top: 10px;
    font-size: 12px;
    color: #7a7a7a;
}

.import-file-input {
    height: auto;
    min-height: 46px;
    padding: 6px;
    border-style: dashed;
    border-color: #d8dbe3;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    cursor: pointer;
}

.import-file-input::file-selector-button {
    margin-right: 10px;
    height: 34px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: #344054;
    font-weight: 700;
    cursor: pointer;
}

.import-file-input::-webkit-file-upload-button {
    margin-right: 10px;
    height: 34px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: #344054;
    font-weight: 700;
    cursor: pointer;
}

.import-file-input:hover {
    border-color: #b8b7f2;
    background: linear-gradient(180deg, #ffffff 0%, #f4f3ff 100%);
}

.import-file-input:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.import-file-input:disabled::file-selector-button,
.import-file-input:disabled::-webkit-file-upload-button {
    cursor: not-allowed;
    opacity: 0.8;
}

.import-analyze-wait {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    color: #475467;
    font-size: 14px;
    font-weight: 600;
}

.import-analyze-wait[hidden] {
    display: none;
}

.import-analyze-wait__spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(160, 104, 195, 0.28);
    border-top-color: #a068c3;
    animation: import-spin 0.75s linear infinite;
}

@keyframes import-spin {
    to {
        transform: rotate(360deg);
    }
}

.products-inline-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-affix {
    position: relative;
}

.input-affix .input {
    padding-right: 30px;
}

.input-affix span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #8a7f74;
    pointer-events: none;
}

.table--products {
    min-width: 1600px;
    table-layout: fixed;
}

.table-wrap--products {
    max-height: min(72vh, 780px);
    overflow-y: auto;
}

.table--products td {
    vertical-align: middle;
    white-space: nowrap;
}

.table--products th {
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 3;
}

.table--products .input {
    width: 100%;
    min-width: 80px;
}

.table--products select[name="taux_tva"] {
    min-width: 100px;
}

.table--products .input.is-empty,
.table--products select.input.is-empty {
    color: #a4a4a4;
    font-style: italic;
    background: #fafafa;
}

.table--products th:nth-child(2),
.table--products th:nth-child(3),
.table--products th:nth-child(7),
.table--products th:nth-child(8),
.table--products th:nth-child(9),
.table--products th:nth-child(10),
.table--products td:nth-child(2),
.table--products td:nth-child(3),
.table--products td:nth-child(7),
.table--products td:nth-child(8),
.table--products td:nth-child(9),
.table--products td:nth-child(10) {
    min-width: 200px;
    width: 200px;
}

.table--products th:nth-child(1),
.table--products th:nth-child(4),
.table--products th:nth-child(5),
.table--products th:nth-child(6),
.table--products td:nth-child(1),
.table--products td:nth-child(4),
.table--products td:nth-child(5),
.table--products td:nth-child(6) {
    min-width: 90px;
    width: 90px;
    text-align: center;
}

.table--products th:nth-child(6),
.table--products td:nth-child(6) {
    min-width: 100px;
    width: 100px;
}

.table--products .products-col-delete {
    min-width: 64px;
    width: 64px;
    text-align: center;
}

.table--products .products-col-purchase {
    min-width: 90px;
    width: 90px;
    text-align: center;
}

.table--products td.products-col-supplier {
    background: var(--products-col-supplier-bg);
}

.table--products td.products-col-prep-zone {
    background: var(--products-col-prep-bg);
}

.table--products td.products-col-stock-zone {
    background: var(--products-col-stock-bg);
}

.table--products td.products-col-equipment {
    background: var(--products-col-equipment-bg);
}

.table--products tbody tr:hover td.products-col-supplier {
    background: #e5f0ff;
}

.table--products tbody tr:hover td.products-col-prep-zone {
    background: #e5f5ea;
}

.table--products tbody tr:hover td.products-col-stock-zone {
    background: #ffeada;
}

.table--products tbody tr:hover td.products-col-equipment {
    background: #ece4ff;
}

.input-affix--narrow {
    min-width: 90px;
    max-width: 100px;
}

.table--depots-zones {
    min-width: 760px;
    table-layout: fixed;
}

.table--depots-zones th:nth-child(2),
.table--depots-zones th:nth-child(3),
.table--depots-zones th:nth-child(4),
.table--depots-zones th:nth-child(5),
.table--depots-zones th:nth-child(6),
.table--depots-zones td:nth-child(2),
.table--depots-zones td:nth-child(3),
.table--depots-zones td:nth-child(4),
.table--depots-zones td:nth-child(5),
.table--depots-zones td:nth-child(6) {
    width: 92px;
    text-align: center;
}

.table--depots-zones .input {
    width: 100%;
    min-width: 0;
}

.table--depots-equipments {
    min-width: 860px;
    table-layout: fixed;
}

.table--depots-equipments th:nth-child(1),
.table--depots-equipments td:nth-child(1) {
    width: 220px;
}

.table--depots-equipments th:nth-child(3),
.table--depots-equipments th:nth-child(4),
.table--depots-equipments th:nth-child(5),
.table--depots-equipments td:nth-child(3),
.table--depots-equipments td:nth-child(4),
.table--depots-equipments td:nth-child(5) {
    width: 92px;
    text-align: center;
}

.table--depots-equipments td:nth-child(2) {
    min-width: 0;
}

.table--depots-equipments .input,
.table--depots-equipments select.input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.table--suppliers {
    min-width: 980px;
    table-layout: auto;
}

.table--suppliers th:nth-child(4),
.table--suppliers th:nth-child(5),
.table--suppliers td:nth-child(4),
.table--suppliers td:nth-child(5) {
    width: 92px;
    text-align: center;
}

.table--suppliers th:nth-child(3),
.table--suppliers td:nth-child(3) {
    min-width: 280px;
}

.table--suppliers td:nth-child(2) .input {
    min-width: 0;
    width: 100%;
}

.table--suppliers td:nth-child(3) .input {
    min-width: 0;
    width: 100%;
}

.table--supplier-order-lines th:nth-child(2),
.table--supplier-order-lines td:nth-child(2) {
    text-align: center;
}

.table--supplier-order-lines th:nth-child(3),
.table--supplier-order-lines th:nth-child(4),
.table--supplier-order-lines th:nth-child(5),
.table--supplier-order-lines th:nth-child(6),
.table--supplier-order-lines td:nth-child(3),
.table--supplier-order-lines td:nth-child(4),
.table--supplier-order-lines td:nth-child(5),
.table--supplier-order-lines td:nth-child(6) {
    text-align: right;
}

.table--supplier-order-lines th:nth-child(7),
.table--supplier-order-lines td:nth-child(7) {
    text-align: center;
}

.table--supplier-orders-list th:nth-child(6),
.table--supplier-orders-list td:nth-child(6) {
    text-align: right;
}

.table--supplier-orders-list th:nth-child(3),
.table--supplier-orders-list th:nth-child(4),
.table--supplier-orders-list th:nth-child(5),
.table--supplier-orders-list th:nth-child(7),
.table--supplier-orders-list th:nth-child(8),
.table--supplier-orders-list td:nth-child(3),
.table--supplier-orders-list td:nth-child(4),
.table--supplier-orders-list td:nth-child(5),
.table--supplier-orders-list td:nth-child(7),
.table--supplier-orders-list td:nth-child(8) {
    text-align: center;
}

.btn--pdf {
    color: #d82e21;
}

.table--users-access {
    min-width: 1040px;
    width: max-content;
}

.users-access-user {
    display: grid;
    gap: 2px;
}

.users-access-login {
    font-size: 12px;
    color: #000;
    line-height: 1.25;
}

.users-access-th-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.1;
}

.users-access-th-icon {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    box-shadow: none;
}

.users-access-th-icon svg {
    width: 12px;
    height: 12px;
}

.table--users-access th:nth-child(1),
.table--users-access td:nth-child(1),
.table--users-access th:nth-child(3),
.table--users-access td:nth-child(3) {
    width: 92px;
    text-align: center;
}

.table--users-access th:nth-child(2),
.table--users-access td:nth-child(2) {
    min-width: 220px;
    text-align: left;
}

.table--users-access th:nth-child(4),
.table--users-access td:nth-child(4) {
    min-width: 170px;
    width: 170px;
}

.table--users-access th:nth-child(5),
.table--users-access td:nth-child(5) {
    min-width: 360px;
}

.users-access-list {
    display: grid;
    gap: 6px;
}

.users-access-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
    align-items: center;
    gap: 8px;
}

.users-access-item__left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f2937;
    font-weight: 700;
}

.users-access-item__left .users-access-th-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
}

.users-access-item__left .users-access-th-icon svg {
    width: 11px;
    height: 11px;
}

.users-access-item__state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table--users-access .check-picto,
.table--users-access .users-lock-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 0;
}

.table--users-access td:nth-child(1) .check-picto,
.table--users-access .users-access-item .check-picto {
    display: flex;
    width: 30px;
    height: 24px;
    justify-content: center;
    align-items: center;
}

.table--users-access .js-live-access-form {
    display: none;
}

.table--users-access .check-picto input:not(:checked)+.check-picto__icon {
    border-color: transparent;
    background: transparent;
    color: transparent;
    width: 22px;
    height: 22px;
}

.table--users-access .check-picto input:not(:checked)+.check-picto__icon svg {
    display: none;
}

.table--users-access .check-picto input:not(:checked)+.check-picto__icon::before {
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
}

.table--users-access .check-picto input:not(:checked)+.check-picto__icon::before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5.2' y='9' width='9.6' height='7' rx='1.6'/%3E%3Cpath d='M7.3 9V7a2.7 2.7 0 0 1 5.4 0v2'/%3E%3C/svg%3E");
}

.table--users-access .users-lock-chip {
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    color: #667085;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table--users-access .users-lock-chip svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.users-add-account-cta {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.users-add-account-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.users-edit-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    line-height: 1;
}

.users-add-accesses {
    grid-column: 1 / -1;
}

.users-add-mode-row {
    grid-column: 1 / -1;
}

.users-add-login-mode {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.users-add-accesses__list {
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.users-add-accesses__list .check-picto--label {
    min-height: 28px;
}

.users-add-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    margin-top: 6px;
}

.users-add-credentials-preview {
    grid-column: 1 / -1;
    border: 1px solid #eadfcb;
    background: #f7efe2;
    color: #2e2a25;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.45;
}

.users-add-credentials-preview__title {
    font-weight: 800;
    margin-bottom: 4px;
}

.users-add-credentials-preview code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    background: #fff;
    border: 1px solid #dfd2bc;
    border-radius: 6px;
    padding: 4px 10px;
    color: #1e1b18;
}

.categories-add-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 140px 180px auto;
    gap: 8px;
    align-items: center;
}

.table--categories {
    min-width: 820px;
}

.table--categories th:nth-child(1),
.table--categories td:nth-child(1) {
    width: 300px;
    max-width: 300px;
}

.table--categories td:nth-child(1) .input {
    max-width: 300px;
}

.table--categories th:nth-child(3),
.table--categories td:nth-child(3) {
    min-width: 220px;
    width: 220px;
    white-space: nowrap;
}

.table--categories td:nth-child(3) .color-picker {
    flex-wrap: nowrap;
    width: max-content;
}

.table--stats-sales {
    min-width: 760px;
}

.table--stats-sales th:nth-child(1),
.table--stats-sales td:nth-child(1) {
    min-width: 160px;
}

.table--stats-sales th:nth-child(2),
.table--stats-sales td:nth-child(2) {
    min-width: 220px;
}

.table--stats-sales th:nth-child(3),
.table--stats-sales td:nth-child(3) {
    min-width: 80px;
    text-align: right;
}

.table--stats-sales th:nth-child(4),
.table--stats-sales th:nth-child(5),
.table--stats-sales th:nth-child(6),
.table--stats-sales td:nth-child(4),
.table--stats-sales td:nth-child(5),
.table--stats-sales td:nth-child(6) {
    min-width: 120px;
    text-align: right;
    white-space: nowrap;
}

.stats-sort-btn {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stats-sort-btn::after {
    content: "↕";
    font-size: 11px;
    color: #8b93a6;
}

.stats-sort-btn--right {
    justify-content: flex-end;
    width: 100%;
}

.stats-sort-btn--active::after {
    color: #3f4b66;
}

.stats-sort-btn--asc::after {
    content: "↑";
}

.stats-sort-btn--desc::after {
    content: "↓";
}

.table--temperatures-history th:nth-child(4),
.table--temperatures-history th:nth-child(5),
.table--temperatures-history td:nth-child(4),
.table--temperatures-history td:nth-child(5) {
    text-align: center;
}

.category-order-actions {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.category-order-actions .btn {
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn--icon-only {
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn--icon-only svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
}

.table-icon-form {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0 !important;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 16px;
}

.confirm-modal[hidden] {
    display: none !important;
}

.confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
}

.confirm-modal__dialog {
    position: relative;
    max-width: 420px;
    width: min(420px, calc(100vw - 32px));
    margin: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    display: grid;
    gap: 10px;
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.2);
}

.confirm-modal__actions {
    display: flex;
    gap: 8px;
    justify-content: end;
}

.categories-emoji-select {
    font-size: 18px !important;
    line-height: 1;
}

.color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-picker__btn {
    border: 0;
    padding: 0;
    background: transparent;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    cursor: pointer;
}

.color-picker__dot {
    display: inline-block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, 0.08);
    background: var(--swatch, #fff);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.color-picker__btn.is-active .color-picker__dot {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.table td .check-picto {
    margin: 0 auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
    table-layout: auto;
}

.table th,
.table td {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    text-align: left;
    vertical-align: top;
}

.table th {
    white-space: normal;
}

.table .input {
    height: 40px;
    font-size: 15px;
    border-radius: 10px;
}

.table .btn {
    height: 40px;
    font-size: 15px;
    border-radius: 10px;
}

.table td form {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

.table th {
    background: #22172a;
    font-weight: 700;
    color: #fff;
}

.table tbody tr:nth-child(even) {
    background: #f7f7f7;
}

.table tbody tr:hover {
    background: #fff1d8;
}

.flash {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    animation: flash-slide-in 220ms ease;
    margin-bottom: 10px;
    width: fit-content;
    max-width: min(720px, 100%);
}

.flash--ok {
    border: 1px solid rgba(22, 163, 74, 0.35);
    background: linear-gradient(120deg, rgba(240, 253, 244, 0.98), rgba(232, 250, 238, 0.98));
    color: #166534;
}

.flash--err {
    border: 1px solid rgba(225, 29, 72, 0.35);
    background: linear-gradient(120deg, rgba(255, 241, 242, 0.98), rgba(255, 232, 236, 0.98));
    color: #9f1239;
}

.homescreen-banner {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1700;
    border: 1px solid #d8dfeb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
    padding: 10px 12px;
    display: grid;
    gap: 8px;
}

.homescreen-banner__text {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.homescreen-banner__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.homescreen-banner__btn {
    height: 34px;
    border-radius: 10px;
    border: 1px solid #d0d7e4;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    padding: 0 12px;
    cursor: pointer;
}

.homescreen-banner__btn--primary {
    border-color: transparent;
    background: linear-gradient(90deg, rgba(131, 58, 180, 0.95) 0%, rgba(253, 29, 29, 0.95) 55%, rgba(252, 176, 69, 0.95) 100%);
    color: #fff;
}

.homescreen-banner__btn--ghost {
    background: #f8fafc;
}

.homescreen-modal {
    position: fixed;
    inset: 0;
    z-index: 1800;
}

.homescreen-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.homescreen-modal__card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(680px, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    overflow: auto;
    border-radius: 16px;
    border: 1px solid #d7deea;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
}

.homescreen-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.homescreen-modal__close {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #d0d7e4;
    background: #fff;
    color: #334155;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.homescreen-modal__body {
    padding: 12px 14px 14px;
    display: grid;
    gap: 12px;
}

.homescreen-guide {
    border: 1px solid #e3e8f1;
    border-radius: 12px;
    background: #f8fafd;
    padding: 10px 12px;
}

.homescreen-guide h4 {
    margin: 0 0 8px;
    font-size: 14px;
}

.homescreen-steps {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 5px;
    color: #475467;
    font-size: 13px;
}

.homescreen-modal__install-row {
    display: flex;
    justify-content: flex-end;
}

.check-picto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    position: relative;
}

.check-picto--label {
    width: auto;
    height: auto;
    justify-content: flex-start;
    gap: 10px;
}

.check-picto--label>span:last-child {
    white-space: nowrap;
}

.check-picto input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.check-picto input+.users-lock-chip {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd4dc;
    background: #f4f5f7;
    color: #667085;
    transition: all 160ms ease;
}

.check-picto input+.users-lock-chip svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.check-picto__icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd4dc;
    background: #f4f5f7;
    color: #667085;
    transition: all 160ms ease;
}

.check-picto__icon svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.check-picto input:checked+.check-picto__icon {
    border-color: #9ad9ac;
    background: #dcfbdb;
    color: #09b649;
}

.check-picto input:focus-visible+.check-picto__icon {
    box-shadow: 0 0 0 3px rgba(231, 108, 141, 0.22);
}

.check-picto input:checked+.users-lock-chip {
    border-color: #9ad9ac;
    background: #dcfbdb;
    color: #09b649;
}

.check-picto input:focus-visible+.users-lock-chip {
    box-shadow: 0 0 0 3px rgba(231, 108, 141, 0.22);
}

.users-lock-chip {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #667085;
}

.users-lock-chip svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.kpi {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    padding: 10px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.kpi--link {
    text-decoration: none;
    color: inherit;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.kpi--link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.kpi__label {
    font-size: 13px;
    color: var(--muted);
}

.kpi__value {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 800;
}

.kpi-trend {
    margin-top: 6px;
    font-size: 12px;
    color: #667085;
}

.kpi-trend--up {
    color: #15803d;
    font-weight: 700;
}

.kpi-trend--down {
    color: #ca4a72;
    font-weight: 700;
}

.kpi--premium-active {
    border-color: rgba(21, 128, 61, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #f3fff7 100%);
}

.kpi--premium-warning {
    border-color: rgba(245, 158, 11, 0.58);
    background: linear-gradient(180deg, #fffdf6 0%, #fff6dd 100%);
}

.kpi--premium-expired {
    border-color: rgba(220, 38, 38, 0.52);
    background: linear-gradient(180deg, #fff7f7 0%, #ffe8e8 100%);
}

.kpi-renew {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 180px;
    padding: 6px 0px;
    border-radius: 999px;
    color: #8a4b11;
    font-size: 12px;
    font-weight: 700;
}

.kpi-renew__icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.kpi-renew__icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mini-bars {
    display: grid;
    gap: 8px;
}

.mini-bars__row {
    display: grid;
    grid-template-columns: 120px 1fr 90px;
    gap: 8px;
    align-items: center;
}

.mini-bars__bar {
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #833ab4 0%, #fd1d1d 55%, #fcb045 100%);
}

.home-cta-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 56px;
    min-width: 320px;
    max-width: 420px;
    width: 100%;
    gap: 10px;
    margin: 0 auto;
}

@media (min-width: 1001px) {
    .home-cta {
        min-width: 0;
        max-width: 400px;
    }
}

@media (max-width: 860px) {
    .btn {
        font-size: 16px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .home-actions {
        grid-template-columns: 1fr;
    }
    .topbar {
        padding: 0 8px;
        gap: 8px;
        justify-content: flex-start;
    }
    .topbar__left,
    .topbar__right {
        min-width: 0;
    }
    .topbar__left {
        width: 100%;
    }
    .topbar__center {
        display: none;
    }
    .topbar__right {
        display: flex;
        margin-left: auto;
    }
    .topbar__home {
        display: inline-flex;
    }
    .topbar__fullscreen,
    .topbar__user {
        display: none;
    }
    .topbar__brand {
        font-size: 16px;
        padding-left: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100% - 96px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
    }
    .home-cta {
        min-width: 0;
    }
    .app-wrap {
        padding: calc(12px + var(--topbar-h)) 8px 12px;
    }
    .home-order-card {
        gap: 4px;
    }
    .home-order-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
        align-items: start;
    }
    .home-order-title {
        font-size: 18px;
    }
    .home-order-right {
        gap: 0;
    }
    .home-order-price {
        font-size: 19px;
    }
    .home-order-owner {
        font-size: 14px;
    }
    .home-order-meta {
        font-size: 15px;
    }
    .home-order-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .home-order-badge {
        min-width: 0;
        padding: 2px 7px;
        font-size: 15px;
    }
    .home-order-ticket {
        font-size: 15px;
    }
    .orders-namepad__keys {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .orders-namepad__display {
        grid-template-columns: 1fr;
    }
    .orders-namepad__display--start {
        grid-template-columns: minmax(0, 1fr) 96px;
        align-items: end;
    }
    .orders-namepad__actions {
        grid-template-columns: 1fr 1fr;
    }
    .orders-close {
        grid-template-columns: 1fr;
    }
    .home-prep-row {
        grid-template-columns: 56px minmax(0, 1fr) 34px;
        gap: 6px;
    }
    .home-prep-line {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    .home-prep-filters,
    .home-prep-refresh-label,
    .home-prep-time {
        display: none;
    }
    .home-prep-panel .panel__head-actions {
        margin-left: auto;
    }
    .home-prep-panel .panel__head-actions::before {
        display: none;
    }
    .home-prep-check {
        justify-self: end;
    }
    .home-orders-toolbar {
        flex-wrap: wrap;
    }
    .home-orders-toolbar #home-orders-count {
        display: none;
    }
    .panel__head--orders {
        flex-wrap: wrap;
    }
    .home-user-filter {
        margin-left: auto;
    }
    .table {
        min-width: 0;
    }
    .products-form-row,
    .categories-add-form {
        grid-template-columns: 1fr;
    }
    .products-form-row--add-product {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }
    .products-form-row--add-product .products-form-field {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .products-form-row--add-product .products-form-field--price {
        grid-column: 1;
    }
    .products-form-row--add-product .products-form-row__actions {
        grid-column: 2;
        justify-content: flex-end;
        align-self: end;
        grid-row: auto;
    }
    .depots-equipments-add-form {
        grid-template-columns: 1fr !important;
    }
    .establishment-settings-grid {
        grid-template-columns: 1fr;
    }
    .establishment-contact-grid {
        grid-template-columns: 1fr;
    }
    .products-form-row__actions {
        grid-column: auto;
        justify-content: flex-start;
    }
    .stock-movement-form,
    .stock-movements-filters,
    .stock-zone-filters {
        grid-template-columns: 1fr;
    }
    .stock-movement-form__zone,
    .stock-movement-form__equipment,
    .stock-movement-form__product,
    .stock-movement-form__type,
    .stock-movement-form__qty,
    .stock-movement-form__comment,
    .stock-movement-form__submit {
        grid-column: 1 / -1;
    }
    .stock-movement-form__submit {
        justify-content: flex-start;
    }
    .home-prep-seller {
        display: none;
    }
    .flash {
        width: 100%;
        max-width: 100%;
    }
    .menu-dropdown .menu-dropdown__link--active,
    .menu-dropdown .menu-parent__toggle.menu-dropdown__link--active {
        background: rgba(203, 213, 225, 0.38);
        border: 1px solid rgba(148, 163, 184, 0.45);
    }
    .menu-dropdown .menu-submenu__link--active {
        background: rgba(203, 213, 225, 0.34);
        color: #475467;
    }
}

@keyframes flash-slide-in {
    from {
        transform: translateY(8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-ptr {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translate(-50%, -110%);
    opacity: 0;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.pwa-ptr__spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(100, 116, 139, 0.28);
    border-top-color: #334155;
    animation: pwa-ptr-spin 760ms linear infinite;
}

.pwa-ptr--ready .pwa-ptr__spinner {
    border-top-color: #0f766e;
}

@keyframes pwa-ptr-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 861px) {
    .btn {
        max-width: 400px;
        font-size: 15px;
    }
    .btn--block {
        max-width: 400px;
    }
    .input,
    select.input {
        font-size: 15px;
    }
    .menu-dropdown {
        display: none;
    }
    .app-sidebar {
        display: block;
        position: fixed;
        top: 50px;
        left: 0;
        height: calc(100vh - 50px);
        width: 300px;
        background-color: #121417;
        background-image: radial-gradient(900px 500px at 20% 15%, rgba(131, 58, 180, 0.18) 0%, rgba(255, 255, 255, 0) 60%), radial-gradient(700px 420px at 85% 75%, rgba(253, 29, 29, 0.14) 0%, rgba(255, 255, 255, 0) 62%), linear-gradient(180deg, #0f1114 0%, #17131a 55%, #130f13 100%);
        background-attachment: fixed, fixed, fixed;
        background-repeat: no-repeat;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        padding: 10px 8px;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
        z-index: 30;
    }
    .topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 40;
        backdrop-filter: blur(12px) saturate(120%);
        -webkit-backdrop-filter: blur(12px) saturate(120%);
    }
    .app-sidebar::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
    .app-sidebar__nav {
        display: grid;
        gap: 4px;
    }
    .menu-footer {
        margin-top: 10px;
        padding: 10px 10px 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        display: grid;
        gap: 4px;
        font-size: 12px;
        color: rgba(236, 240, 248, 0.74);
    }
    .menu-footer a {
        color: rgba(236, 240, 248, 0.9);
        text-decoration: none;
    }
    .menu-footer a:hover {
        text-decoration: underline;
    }
.app-sidebar .menu-dropdown__link {
    color: #ecf0f8;
}

.app-sidebar .menu-submenu {
    border-left-color: rgba(236, 240, 248, 0.34);
}
    .app-sidebar .menu-submenu__link {
        color: rgba(236, 240, 248, 0.92);
    }
    .app-sidebar .menu-submenu__link::before {
        border-top-color: rgba(236, 240, 248, 0.34);
    }
    .app-sidebar .menu-submenu__link:hover {
        background: rgba(255, 255, 255, 0.09);
    }
    .app-sidebar .menu-submenu__link--active {
        background: rgba(231, 108, 141, 0.2);
        color: #fff;
    }
    .app-sidebar .menu-group__title {
        color: rgba(236, 240, 248, 0.62);
    }
    .app-sidebar .menu-search__input {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.18);
    }
    .app-sidebar .menu-search__input::placeholder {
        color: rgba(236, 240, 248, 0.74);
    }
    .app-sidebar .menu-search__btn {
        background: rgba(255, 255, 255, 0.14);
        border-color: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
    .app-sidebar .menu-search__input:focus,
    .app-sidebar .menu-search__input:focus-visible {
        border-color: rgba(231, 108, 141, 0.6);
        box-shadow: 0 0 0 3px rgba(231, 108, 141, 0.22);
    }
    .app-sidebar .menu-dropdown__link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    .app-sidebar .menu-dropdown__link--active {
        background: rgba(255, 255, 255, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.24);
    }
    .app-wrap {
        margin-left: 300px;
        margin-top: 0;
        padding: calc(10px + var(--topbar-h)) 10px 16px;
    }
    .topbar {
        padding: 0 16px;
    }
    .topbar__left {
        min-width: 0;
    }
    .app-wrap+.site-footer {
        margin-left: 300px;
        padding: 18px 16px 28px;
    }
    .products-filters-form {
        grid-template-columns: repeat(5, minmax(120px, 1fr));
    }
    .products-filters-form__search {
        grid-column: 1 / -1;
    }
    .products-bulk-form {
        grid-template-columns: repeat(5, minmax(120px, 1fr));
    }
    .table-plans-editor {
        min-height: 620px;
    }
}

.input[type="date"],
.input[type="datetime-local"],
.input[type="time"] {
    min-height: 46px;
    line-height: 1.2;
    padding-top: 0;
    padding-bottom: 0;
}

@media (min-width: 861px) and (max-width: 1000px) {
    .topbar {
        padding: 0 10px;
    }
    .topbar__brand {
        font-size: 16px;
    }
    .app-sidebar {
        display: none;
    }
    .menu-dropdown {
        display: block;
    }
    .app-quick-rail {
        display: grid;
        position: fixed;
        top: 50px;
        left: 0;
        height: calc(100vh - 50px);
        align-content: start;
        z-index: 36;
        gap: 10px;
        width: 64px;
        padding: 12px 10px;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        background-color: #121417;
        background-image: radial-gradient(900px 500px at 20% 15%, rgba(131, 58, 180, 0.18) 0%, rgba(255, 255, 255, 0) 60%), radial-gradient(700px 420px at 85% 75%, rgba(253, 29, 29, 0.14) 0%, rgba(255, 255, 255, 0) 62%), linear-gradient(180deg, #0f1114 0%, #17131a 55%, #130f13 100%);
        background-repeat: no-repeat;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
    }
    .app-quick-rail::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
    .app-quick-rail__link {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        border: 1px solid transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        background: transparent;
    }
    .app-quick-rail__link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    .app-quick-rail__link .menu-icon {
        width: 24px;
        height: 24px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(180, 35, 24, 0.09);
    }
    .app-quick-rail__link--active {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.24);
    }
    .app-wrap {
        margin-left: 64px;
    }
    .app-wrap+.site-footer {
        margin-left: 84px;
    }
}

@media (max-width: 1024px) {
    .orders-namepad__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .menu-dropdown__panel {
        margin-top: 11px;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
    }
    .menu-dropdown__panel::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
    .menu-dropdown .menu-parent__toggle {
        color: var(--text);
    }
    .menu-dropdown .menu-parent__toggle.menu-dropdown__link--active {
        color: #344054;
    }
    .menu-footer {
        margin: 6px 4px 0;
        border-top: 1px solid rgba(15, 23, 42, 0.12);
        color: #667085;
    }
    .menu-footer a {
        color: #475467;
    }
    .menu-footer a[href*="mentions-legales"] {
        display: inline-block;
        max-width: 84px;
        line-height: 1.2;
    }
    .products-filters-form {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
    .products-filters-form__search {
        grid-column: 1 / -1;
    }
    .products-bulk-form {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
    .products-bulk-form__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
    .import-sources-grid {
        grid-template-columns: 1fr;
    }}

@media (max-width: 1280px) {
    .import-sources-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .panel {
        margin-bottom: 5px;
    }}

/* Admin UI */

.admin-body {
    background: radial-gradient(1100px 380px at 12% -2%, rgba(208, 226, 255, 0.34) 0%, rgba(255, 255, 255, 0) 46%), linear-gradient(180deg, #f8fafd 0%, #f1f4f9 100%);
}

.admin-shell-head {
    background: linear-gradient(140deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-shell-head__title {
    font-size: 18px;
    font-weight: 800;
    color: #1e2433;
}

.admin-shell-head__subtitle {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.admin-shell-head__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-body .admin-card {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.admin-body .admin-menu__link {
    transition: all 140ms ease;
}

.admin-body .admin-menu__link:hover {
    border-color: rgba(103, 182, 198, 0.52);
    background: rgba(103, 182, 198, 0.08);
}

@media (max-width: 860px) {
    .admin-shell-head {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ===== Restored from orders.css ===== */
/* Orders */

.orders-layout {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.orders-panel.card {
    max-width: none;
    width: 100%;
}

.orders-panel--cart {
    min-width: 0;
}

.orders-panel .card__content {
    display: grid;
    gap: 12px;
}

.orders-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.orders-cat-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.orders-cat-btn--active {
    background: rgba(252, 176, 69, 0.2);
    border-color: rgba(252, 176, 69, 0.55);
}

.orders-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.orders-product {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #f9fbff);
    min-height: 82px;
    text-align: left;
    padding: 12px;
    cursor: pointer;
}

.orders-product__name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.orders-product__price {
    margin-top: 6px;
    font-size: 13px;
    color: inherit;
    opacity: 0.86;
}

.orders-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.orders-header-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.orders-header-tools {
    display: inline-grid;
    justify-items: end;
    gap: 4px;
}

.orders-header-tools__top {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.orders-total-inline {
    font-size: 15px;
    font-weight: 800;
    color: #344054;
    white-space: nowrap;
}

.orders-assigned {
    margin-top: 2px;
    font-size: 12px;
}

#order-table-association {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#order-table-association .btn {
    min-height: 28px;
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
}

#order-table-label {
    color: #000;
    font-weight: 700;
}

.orders-btn-delete {
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
}

.orders-namepad {
    border: 1px solid #f2d7ba;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    display: grid;
    gap: 10px;
}

.orders-namepad__display {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 8px;
}

.orders-namepad__display--start {
    grid-template-columns: minmax(0, 1fr) 96px;
}

.orders-namepad__keys {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 6px;
}

.orders-key {
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

.orders-namepad__actions {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 8px;
}

.orders-start-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.orders-plan-chip {
    width: auto;
    min-width: 68px;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.orders-start-plan {
    display: grid;
    gap: 8px;
}

.orders-start-plan__wrap {
    border: 1px solid #e1e5ee;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: auto;
    max-width: 100%;
    max-height: calc(100vh - 220px);
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.orders-start-plan__canvas {
    position: relative;
    width: 100%;
    min-width: 360px;
    min-height: 320px;
    background: #e7e5f230;
}

.orders-start-plan__table {
    position: absolute;
    border: 1px solid #00000059;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #22324a;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    z-index: 3;
    text-decoration: none;
}

.orders-start-plan__table:hover {
    box-shadow: 0 0 0 2px rgba(243, 155, 107, 0.45);
}

.orders-start-plan__shape {
    position: absolute;
    border: 1px solid #9aa8be;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #22324a;
    user-select: none;
    pointer-events: none;
}

.orders-start-plan__shape--rect {
    background: #f6f7fc;
    border-style: dashed;
    z-index: 1;
}

.orders-start-plan__shape--wall {
    background: #495668;
    border-color: #313a47;
    z-index: 2;
}

.orders-start-plan__shape--text {
    border-style: none;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
    z-index: 4;
}

.orders-start-plan__label {
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.orders-start-plan__shape--wall .orders-start-plan__label {
    display: none;
}

.orders-start-plan__seat {
    position: absolute;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -6px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65);
    pointer-events: none;
    z-index: 5;
}

.prep-plan-wrap {
    max-width: 100%;
}

.prep-plan-canvas {
    min-width: 100%;
    min-height: 320px;
}

.prep-plan-table {
    transition: box-shadow 120ms ease, transform 120ms ease;
}

.orders-namepad__toggle {
    display: none;
}

.orders-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: end;
}

.orders-meta__full {
    grid-column: 1 / -1;
}

.orders-items {
    border: 1px solid #e8decd;
    border-radius: 12px;
    background: #fff;
    min-height: 200px;
    max-height: 50vh;
    overflow: auto;
    padding: 0;
}

.orders-empty-state {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
}

.orders-items-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.orders-items-table th,
.orders-items-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0e7da;
    text-align: left;
    vertical-align: middle;
}

.orders-items-table th {
    background: #f7efe2;
    font-size: 13px;
    color: #6f6254;
    font-weight: 800;
}

.orders-item__name {
    font-size: 13px;
    font-weight: 700;
}

.orders-item__line {
    font-size: 14px;
    color: #344054;
    font-weight: 700;
}

.orders-item__sub {
    font-size: 13px;
    color: #475467;
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.orders-item__service {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6e6b64;
    font-size: 12px;
    font-weight: 700;
}

.orders-item__service-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.orders-item__service-icon svg {
    width: 14px;
    height: 14px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orders-item__qty {
    font-size: 14px;
    color: #344054;
    font-weight: 700;
}

.orders-item__actions {
    display: inline-grid;
    grid-template-columns: 28px 52px 28px 28px;
    gap: 4px;
    align-items: center;
}

.orders-item__actions button {
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 0;
}

.orders-item__actions input {
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
    width: 52px;
    padding: 0 4px;
}

.orders-total {
    border: 1px solid #eadfcb;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 18px;
    background: #fff;
}

.orders-payments {
    display: grid;
    gap: 10px;
}

.orders-payments-card {
    background: #fff;
    width: 100%;
    max-width: none;
}

.orders-payments-card.card {
    width: 100%;
    max-width: none;
}

.orders-payments__head {
    font-weight: 800;
    font-size: 16px;
}

.orders-payments__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.orders-payments__header .btn {
    max-width: none;
    min-height: 36px;
    font-size: 12px;
}

.orders-status-badge {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(22, 163, 74, 0.35);
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.orders-status-badge[hidden] {
    display: none !important;
}

.orders-payments__list {
    display: grid;
    gap: 8px;
}

.orders-payment-row {
    display: grid;
    grid-template-columns: 160px 120px minmax(0, 1fr) 44px;
    gap: 8px;
}

.orders-payment-row--head {
    align-items: end;
}

.orders-payment-row--head .label {
    margin-bottom: 0;
}

.orders-payment-row--head .btn {
    width: 100%;
    max-width: none;
    min-height: 38px;
}

.orders-money-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.orders-money-card {
    border: 1px solid #efe6d7;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    display: grid;
    gap: 6px;
}

.orders-money-card--paid,
.orders-money-card--remaining {
    background: #f7efe2;
}

.orders-money-card--received,
.orders-money-card--change {
    background: #fff;
}

.orders-money-value {
    font-size: 19px;
    font-weight: 800;
}

.orders-receipt-email {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.orders-receipt-email__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.orders-receipt-email__field .label {
    margin-bottom: 6px;
}

.orders-workspace {
    display: grid;
    gap: 14px;
    max-width: 1280px;
    margin: 0 auto;
}

.orders-onboarding {
    width: 100%;
    max-width: none;
}

.orders-switch-card {
    max-width: none;
}

.orders-switch-card__content {
    padding: 14px 18px 5px;
}

.orders-name-summary {
    border: 1px solid #eadfcb;
    border-radius: 12px;
    background: #f7efe2;
    padding: 8px 10px;
}

.orders-name-summary__btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: #344054;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.orders-name-summary__edit {
    font-weight: 500;
    color: #667085;
    margin-left: auto;
}

.orders-cart-main {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    gap: 12px;
    align-items: start;
}

.orders-main-info {
    display: grid;
    gap: 10px;
}

.orders-modal[hidden] {
    display: none !important;
}

.orders-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 16px;
}

.orders-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.orders-modal__dialog {
    position: relative;
    width: min(550px, calc(100vw - 28px));
    margin: 0;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e7e0d3;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    display: grid;
    gap: 0;
    max-height: calc(100vh - 32px);
}

.orders-modal__head,
.orders-modal__foot {
    padding: 12px 14px;
    border-bottom: 1px solid #efe6d8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.orders-modal__head .btn,
.orders-modal__foot .btn {
    padding-left: 16px;
    padding-right: 16px;
}

.orders-modal__foot {
    border-bottom: 0;
    border-top: 1px solid #efe6d8;
    justify-content: flex-end;
}

.orders-modal__body {
    padding: 12px 14px;
    display: grid;
    gap: 10px;
}

.orders-meta__full {
    grid-column: 1 / -1;
}

.orders-prep-fallback {
    display: flex;
    gap: 8px;
    align-items: end;
}

.orders-prep-fallback__field {
    min-width: 0;
}

.orders-prep-fallback__field:first-child {
    flex: 1 1 auto;
    overflow: hidden;
}

.orders-prep-fallback__field:last-child {
    flex: 0 0 128px;
    max-width: 128px;
}

.orders-prep-fallback__label {
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 12px;
}

.orders-prep-fallback .input {
    height: 46px;
    min-height: 46px;
    line-height: 1.2;
    padding-top: 0;
    padding-bottom: 0;
    width: 100%;
    min-width: 0;
}

.orders-date-shell {
    position: relative;
    min-width: 0;
    width: 100%;
}

.orders-date-shell__ghost {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(102, 112, 133, 0.45);
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}

.orders-date-shell.has-value .orders-date-shell__ghost {
    display: none;
}

#modal-prep-date::-webkit-datetime-edit,
#modal-prep-date::-webkit-date-and-time-value {
    min-height: 46px;
    line-height: 46px;
}

#modal-prep-date::-webkit-date-and-time-value {
    text-align: left;
}

#modal-prep-date,
#modal-prep-time {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

#modal-prep-date {
    padding-right: 10px;
}

.orders-prep-fallback[hidden] {
    display: none !important;
}

#modal-prep-at[hidden] {
    display: none !important;
}

.orders-modal__product-name {
    font-size: 18px;
    font-weight: 800;
}

.orders-modal__product-price {
    font-size: 15px;
    color: #6b7280;
}

.orders-modal__product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

@media (max-width: 980px) {
    .orders-prep-fallback {
        display: flex;
        gap: 6px;
    }
    .orders-prep-fallback__field:last-child {
        flex-basis: 112px;
        max-width: 112px;
    }
    .orders-payment-row {
        grid-template-columns: 1fr;
    }
    .orders-main-info .orders-meta {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .orders-main-info .orders-meta__full {
        grid-column: 1 / -1;
    }
    .orders-money-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .orders-payment-row--head {
        display: none;
    }
    .orders-payment-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 104px 34px;
        grid-template-areas: "mode montant remove" "comment comment comment";
        gap: 6px;
        align-items: end;
    }
    .orders-payment-row [data-pay-field="moyen"] {
        grid-area: mode;
    }
    .orders-payment-row [data-pay-field="montant"] {
        grid-area: montant;
    }
    .orders-payment-row [data-pay-field="commentaire"] {
        grid-area: comment;
    }
    .orders-payment-row [data-pay-remove] {
        grid-area: remove;
        width: 34px;
        min-height: 46px;
        height: 46px;
        padding: 0;
    }
    select.input {
        color: var(--text) !important;
        -webkit-text-fill-color: var(--text);
    }
    select.input option {
        color: var(--text);
    }
    .orders-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 2px;
    }
    .orders-cat-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .orders-cart-main {
        grid-template-columns: 1fr;
    }
    .orders-receipt-email__row {
        grid-template-columns: 1fr;
    }
    .orders-items-table {
        min-width: 560px;
    }
}

@media (max-width: 520px) {
    .orders-prep-fallback {
        display: flex;
        gap: 8px;
    }
    .orders-prep-fallback__field:last-child {
        flex-basis: 104px;
        max-width: 104px;
    }
    .orders-prep-fallback__label {
        margin-bottom: 3px;
    }
    #modal-prep-date,
    #modal-prep-time {
        height: 44px;
        min-height: 44px;
        line-height: 44px;
        padding-top: 0;
        padding-bottom: 0;
    }
}




/* ===== Restored from plans.css ===== */
/* Plans de tables + rendu plan */

.orders-start-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.orders-plan-chip {
    width: auto;
    min-width: 68px;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.orders-start-plan {
    display: grid;
    gap: 8px;
}

.orders-start-plan__wrap {
    border: 1px solid #e1e5ee;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: auto;
    max-width: 100%;
    max-height: calc(100vh - 220px);
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.orders-start-plan__canvas {
    position: relative;
    width: 100%;
    min-width: 360px;
    min-height: 320px;
    background: #e7e5f230;
}

.orders-start-plan__table {
    position: absolute;
    border: 1px solid #00000059;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #22324a;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    z-index: 3;
    text-decoration: none;
}

.orders-start-plan__table:hover {
    box-shadow: 0 0 0 2px rgba(243, 155, 107, 0.45);
}

.orders-start-plan__shape {
    position: absolute;
    border: 1px solid #9aa8be;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #22324a;
    user-select: none;
    pointer-events: none;
}

.orders-start-plan__shape--rect {
    background: #f6f7fc;
    border-style: dashed;
    z-index: 1;
}

.orders-start-plan__shape--wall {
    background: #495668;
    border-color: #313a47;
    z-index: 2;
}

.orders-start-plan__shape--text {
    border-style: none;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
    z-index: 4;
}

.orders-start-plan__label {
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.orders-start-plan__shape--wall .orders-start-plan__label {
    display: none;
}

.orders-start-plan__seat {
    position: absolute;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -6px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65);
    pointer-events: none;
    z-index: 5;
}

.prep-plan-wrap {
    max-width: 100%;
}

.prep-plan-canvas {
    min-width: 100%;
    min-height: 320px;
}

.prep-plan-table {
    transition: box-shadow 120ms ease, transform 120ms ease;
}


.table-plans-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 10px;
}

.table-plans-create-form {
    grid-template-columns: minmax(220px, 360px) auto auto;
    align-items: center;
}

.table-plans-edit-form {
    grid-template-columns: minmax(220px, 420px) auto 1fr;
    align-items: center;
}

.table-plans-edit-save-btn {
    max-width: none;
}

.table-plans-inline-check {
    display: inline-flex;
    position: relative;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-height: 38px;
}

.table-plans-inline-check>input[type="checkbox"] {
    position: static;
    inset: auto;
}

.table-plans-create-btn {
    height: 38px;
}

.table-plans-toolbar,
.table-plans-edit-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-plans-edit-tools {
    justify-content: flex-end;
}

.table-plans-canvas {
    min-width: 0;
    display: flex;
    justify-content: center;
}

.table-plans-editor-wrap {
    width: 100%;
    position: relative;
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 260px);
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

.table-plans-editor {
    position: relative;
    width: max(900px, 100%);
    min-width: 900px;
    min-height: 900px;
    aspect-ratio: 1 / 1;
    border: 1px solid #d5d9e2;
    border-radius: 10px;
    background-color: #fff;
    background-image: linear-gradient(to right, #f1f3f8 1px, transparent 1px), linear-gradient(to bottom, #f1f3f8 1px, transparent 1px);
    background-size: 22px 22px;
    overflow: hidden;
}

.table-plans-save {
    display: flex;
    justify-content: flex-end;
}

.table-plans-save--top {
    margin: 8px 0 10px;
}

.plan-item {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #00000063;
    border-radius: 8px;
    user-select: none;
    cursor: move;
    background: #e7eef9;
    color: #22324a;
    font-weight: 700;
    font-size: 12px;
    z-index: 2;
}

.plan-item--rect {
    background: #f6f7fc;
    border-style: dashed;
    z-index: 1;
}

.plan-item--wall {
    background: #495668;
    color: #fff;
    border-color: #313a47;
    z-index: 2;
}

.plan-item--table {
    z-index: 3;
}

.plan-item--text {
    border: 0;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
    z-index: 4;
}

.plan-item--selected {
    box-shadow: 0 0 0 2px #f39b6b;
    z-index: 2;
}

.plan-item--locked {
    cursor: default;
}

.plan-item--locked::before {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(22, 30, 80, 0.78);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.plan-item__label {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    line-height: 1;
    text-align: center;
    pointer-events: none;
}

.plan-item__resize {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.2);
    cursor: nwse-resize;
}

.plan-seat {
    position: absolute;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    margin-top: -7px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.58);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
    cursor: move;
    z-index: 6;
    padding: 0;
}

.plan-seat--active {
    border-color: #f39b6b;
    box-shadow: 0 0 0 2px rgba(243, 155, 107, 0.24);
}

.plan-marquee {
    position: absolute;
    border: 1px dashed rgba(22, 30, 80, 0.72);
    background: rgba(22, 30, 80, 0.08);
    pointer-events: none;
    z-index: 10;
}

.table--plans .table-plans-cell-center,
.table--plans th.table-plans-cell-center,
.table--plans td.table-plans-cell-center {
    text-align: center;
    vertical-align: middle;
}

.table--plans .table-plans-cell-center form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.home-tab--plan-open {
    justify-content: center;
    min-width: 96px;
    text-decoration: none;
}

.plan-item-modal[hidden] {
    display: none !important;
}

.plan-item-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 14px;
}

.plan-item-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
}

.plan-item-modal__dialog {
    position: relative;
    width: min(430px, calc(100vw - 28px));
    margin: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #d8deea;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    padding: 14px;
    display: grid;
    gap: 8px;
}

.plan-item-modal__row {
    display: grid;
    gap: 10px;
}

.plan-item-modal__row--2 {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.plan-item-modal__row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-item-modal__colors {
    margin-top: 2px;
}

.plan-context-menu[hidden] {
    display: none !important;
}

.plan-context-menu {
    position: fixed;
    z-index: 125;
    min-width: 140px;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #d8deea;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.22);
    display: grid;
    gap: 4px;
}

.plan-context-menu button {
    appearance: none;
    border: 0;
    background: transparent;
    text-align: left;
    border-radius: 8px;
    padding: 8px 10px;
    color: #344054;
    cursor: pointer;
}

.plan-context-menu button:hover {
    background: #f3f4f7;
}


@media (max-width: 640px) {
    .plan-item-modal__row--2,
    .plan-item-modal__row--3 {
        grid-template-columns: minmax(0, 1fr);
    }
    .orders-start-plan__wrap.prep-plan-wrap {
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 210px);
    }
}

@media (max-width: 860px) {
    .table-plans-workspace {
        grid-template-columns: 1fr;
    }
    .table-plans-create-form,
    .table-plans-edit-form {
        grid-template-columns: 1fr;
    }
    .table-plans-inline-check {
        justify-content: flex-start;
    }
    .table-plans-editor {
        width: max(760px, 100%);
        min-width: 760px;
        min-height: 760px;
    }
}


/* ===== Restored from reservations.css ===== */
.reservations-cards {
    display: grid;
    gap: 10px;
}

.reservations-card {
    border: 1px solid #d7deea;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.reservations-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.reservations-card__hour {
    font-size: 22px;
    font-weight: 800;
    color: #1e2433;
}

.reservations-card__badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.reservations-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border-radius: 999px;
    border: 1px solid #d0d5dd;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.reservations-status--confirmee {
    background: #eef4ff;
    border-color: #c7d5f3;
    color: #24406f;
}

.reservations-status--arrivee {
    background: #edfff1;
    border-color: #bfe7c7;
    color: #126532;
}

.reservations-status--no_show {
    background: #f4f5f7;
    border-color: #d5dae3;
    color: #475467;
}

.reservations-status--annulee {
    background: #fff3f1;
    border-color: #f3c4be;
    color: #9f2d20;
}

.reservations-late-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 10px;
    border: 1px solid #f3b8aa;
    background: #fff2ef;
    color: #b42318;
    font-size: 12px;
    font-weight: 800;
}

.reservations-status-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.reservations-head-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-left: auto;
}

.reservations-head-filters .home-tabs {
    flex-wrap: nowrap;
}

.reservations-head-filters .home-tab {
    min-height: 38px;
}

.reservations-head-filters .input[name="status"] {
    flex: 0 0 150px;
    width: 150px;
}

.table-wrap--reservations {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.reservations-add-grid .reservations-add-col--hint,
.reservations-add-grid .reservations-add-col--plan {
    grid-column: 1 / -1;
}

.reservations-add-grid .reservations-add-col--actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.reservations-plan-picker {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.reservations-plan-wrap {
    max-height: 460px;
}

.reservations-plan-canvas {
    min-width: 100%;
    min-height: 320px;
}

#reservation-new-arrival-at {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 46px;
    min-height: 46px;
    line-height: 46px;
    padding-top: 0;
    padding-bottom: 0;
}

#reservation-new-arrival-at::-webkit-date-and-time-value {
    min-height: 44px;
    line-height: 44px;
}

.reservations-plan-table {
    -webkit-appearance: none;
    appearance: none;
    border-width: 1px;
    outline: none;
    background-clip: padding-box;
    transition: opacity 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.reservations-plan-table--disabled {
    opacity: 0.34;
    filter: saturate(0.35);
    cursor: not-allowed;
}

.reservations-plan-table--unavailable {
    opacity: 0.2;
    filter: saturate(0.35);
    cursor: not-allowed;
}

.reservations-plan-seat--unavailable {
    opacity: 0.2;
}

.reservations-plan-table--selected {
    box-shadow: 0 0 0 2px rgba(243, 155, 107, 0.75);
}

.table--reservations-planning {
    min-width: 1240px;
    width: max-content;
}

.table--reservations-planning th:nth-child(6),
.table--reservations-planning th:nth-child(7),
.table--reservations-planning td:nth-child(6),
.table--reservations-planning td:nth-child(7) {
    text-align: center;
}

.reservations-row-note td {
    font-size: 13px;
    color: #475467;
    background: #fcfbf8;
    border-top: 0;
    padding-top: 8px;
    padding-bottom: 10px;
}

.reservations-row-note__label {
    font-weight: 700;
    color: #344054;
    margin-right: 6px;
}

.reservations-status-select--confirmee {
    background-color: #eef4ff;
    border-color: #c7d5f3;
    color: #24406f;
}

.reservations-status-select--arrivee {
    background-color: #edfff1;
    border-color: #bfe7c7;
    color: #126532;
}

.reservations-status-select--no_show {
    background-color: #f4f5f7;
    border-color: #d5dae3;
    color: #475467;
}

.reservations-status-select--annulee {
    background-color: #fff3f1;
    border-color: #f3c4be;
    color: #9f2d20;
}

.reservations-card__client {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.reservations-card__client strong {
    font-size: 18px;
}

.reservations-card__people {
    color: #667085;
    font-weight: 700;
    white-space: nowrap;
}

.reservations-card__row {
    display: grid;
    gap: 6px;
}

.reservations-card__inline-form {
    display: grid;
    gap: 6px;
}

.reservations-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (min-width: 861px) {
    .reservations-add-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .reservations-add-grid .reservations-add-col--name {
        grid-column: 1 / 2;
    }
    .reservations-add-grid .reservations-add-col--phone {
        grid-column: 2 / 3;
    }
    .reservations-add-grid .reservations-add-col--people {
        grid-column: 3 / 4;
    }
    .reservations-add-grid .reservations-add-col--duration {
        grid-column: 4 / 5;
    }
    .reservations-add-grid .reservations-add-col--arrival {
        grid-column: 1 / 2;
    }
    .reservations-add-grid .reservations-add-col--table {
        grid-column: 2 / 3;
    }
    .reservations-add-grid .reservations-add-col--comment {
        grid-column: 3 / 5;
    }
    .reservations-add-grid .reservations-add-col--hint {
        grid-column: 1 / 4;
    }
    .reservations-add-grid .reservations-add-col--actions {
        grid-column: 4 / 5;
    }
    .reservations-add-grid .reservations-add-col--plan {
        grid-column: 1 / -1;
    }
    .reservations-cards {
        grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    }
}

@media (max-width: 860px) {
    .reservations-add-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .reservations-add-grid .reservations-add-col--name {
        grid-column: 1;
    }
    .reservations-add-grid .reservations-add-col--phone {
        grid-column: 2;
    }
    .reservations-add-grid .reservations-add-col--people {
        grid-column: 1;
    }
    .reservations-add-grid .reservations-add-col--duration {
        grid-column: 2;
    }
    .reservations-add-grid .reservations-add-col--arrival,
    .reservations-add-grid .reservations-add-col--table,
    .reservations-add-grid .reservations-add-col--hint,
    .reservations-add-grid .reservations-add-col--plan,
    .reservations-add-grid .reservations-add-col--comment,
    .reservations-add-grid .reservations-add-col--actions {
        grid-column: 1 / -1;
    }
    .reservations-add-grid .reservations-add-col--arrival {
        min-width: 0;
    }
    #reservation-new-arrival-at {
        max-width: 100%;
        width: 100%;
        min-width: 0;
    }
    .reservations-add-grid .reservations-add-col--actions {
        justify-content: flex-start;
    }
    .reservations-head-filters {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .reservations-head-filters .home-tabs {
        flex-wrap: wrap;
    }
    .reservations-card__head {
        align-items: flex-start;
        flex-direction: column;
    }
    .reservations-card__badges {
        justify-content: flex-start;
    }
}
