:root {
    --bg: #f6f7f8;
    --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);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-size: 100%;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    background: radial-gradient(1200px 500px at 20% 0%, rgba(131, 58, 180, 0.09), transparent 55%), radial-gradient(900px 450px at 90% 10%, rgba(252, 176, 69, 0.12), transparent 60%), var(--bg);
    color: var(--text);
}

.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;
}

.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) {
    .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: inline-block;
    line-height: 1;
}

.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-top: 6px;
    font-size: clamp(12px, 2.2vw, 14px);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.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: 14px;
    color: var(--muted);
    margin-top: 2px;
}

.input {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 0 12px;
    font-size: 18px;
    outline: none;
    background: #fff;
}

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 4px var(--ring);
}

.btn {
    height: 48px;
    border-radius: 16px;
    border: 0;
    font-weight: 700;
    font-size: 18px;
    padding: 0 15px;
    cursor: pointer;
}

.btn--primary {
    color: var(--text);
    background: transparent;
    border: 2px solid rgba(253, 29, 29, 0.48);
    box-shadow: 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: 15px;
    color: #8a8a8a;
    margin-top: 6px;
}

.link {
    color: var(--text);
    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: sticky;
    top: 0;
    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: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 6px 10px;
}

.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);
    }
}


/* 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, #fcf8ff);
    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: var(--muted);
}

.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-flex;
    align-items: center;
    gap: 6px;
}

.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__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-namepad__toggle {
    display: none;
}

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

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

.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: 15px;
    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;
}

.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__list {
    display: grid;
    gap: 8px;
}

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

.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-value {
    font-size: 19px;
    font-weight: 800;
}

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

.orders-onboarding {
    max-width: 900px;
    margin: 0 auto;
}

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

.orders-name-summary__btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: #344054;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.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;
}

.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: 6vh auto 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;
}

.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-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-meta,
    .orders-payment-row,
    .orders-money-grid {
        grid-template-columns: 1fr;
    }
    .orders-cart-main {
        grid-template-columns: 1fr;
    }
    .orders-items-table {
        min-width: 560px;
    }
}


/* App menu + shared app pages */

.app-wrap {
    max-width: none;
    margin: 0;
    padding: 16px 22px;
}

.menu-dropdown {
    position: relative;
}

.app-sidebar {
    display: none;
}

.menu-dropdown__toggle {
    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;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.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-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;
    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: #b42318;
}

.menu-parent__toggle {
    width: 100%;
    border: 0;
    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;
}

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

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

.onboarding-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 16px;
    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: 20px;
}

.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: 16px;
}

.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__check {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #6b6f86;
    font-weight: 700;
}

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

.onboarding-step--done .onboarding-step__check {
    background: #d8f6db;
    color: #1f7a32;
}

@media (max-width: 760px) {
    .onboarding-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

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

.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: rgba(252, 176, 69, 0.2);
    border-color: rgba(252, 176, 69, 0.55);
}

.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-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: #fff;
    border-color: #e76c8d;
}

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

.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: 14px;
    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-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: 64px 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: 44px;
}

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

.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;
}

.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;
}

.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: rgba(255, 255, 255, 0.22);
}

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

.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-bottom: 25px;
}

.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;
    gap: 8px;
}

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

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

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

.establishment-contact-card {
    grid-column: 1 / -1;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px;
}

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

.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-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;
}

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

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

.import-sources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 12px;
}

.import-source-card {
    border: 1px solid #e4e7ee;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    display: grid;
    gap: 8px;
}

.import-source-card__title {
    font-weight: 700;
    color: #344054;
}

.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: 90px;
}

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

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

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

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

.table--products th:nth-child(11),
.table--products td:nth-child(11) {
    min-width: 64px;
    width: 64px;
    text-align: center;
}

.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--users-access th:nth-child(1),
.table--users-access th:nth-child(3),
.table--users-access th:nth-child(4),
.table--users-access th:nth-child(5),
.table--users-access th:nth-child(6),
.table--users-access th:nth-child(7),
.table--users-access td:nth-child(1),
.table--users-access td:nth-child(3),
.table--users-access td:nth-child(4),
.table--users-access td:nth-child(5),
.table--users-access td:nth-child(6),
.table--users-access td:nth-child(7) {
    width: 92px;
    text-align: center;
}

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

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

.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;
}

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

.confirm-modal__dialog {
    position: relative;
    max-width: 420px;
    margin: 18vh auto 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: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 120;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    animation: flash-slide-in 220ms ease;
    min-width: 220px;
    max-width: min(420px, calc(100vw - 24px));
}

.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;
}

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

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

.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: #e8f8ee;
    color: #15803d;
}

.check-picto input:focus-visible+.check-picto__icon {
    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: #fff;
    padding: 10px;
}

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

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

.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;
}

.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;
}

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

@media (max-width: 860px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .home-actions {
        grid-template-columns: 1fr;
    }
    .topbar {
        padding: 0 8px;
        gap: 8px;
    }
    .topbar__left,
    .topbar__right {
        min-width: 0;
    }
    .topbar__center {
        display: none;
    }
    .topbar__right {
        display: none;
    }
    .topbar__brand {
        font-size: 16px;
        padding-left: 5px;
    }
    .home-cta {
        min-width: 0;
    }
    .app-wrap {
        padding: 12px 8px;
    }
    .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__actions {
        grid-template-columns: 1fr 1fr;
    }
    .orders-close {
        grid-template-columns: 1fr;
    }
    .home-prep-row {
        grid-template-columns: 56px minmax(0, 1fr) 86px 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-orders-toolbar {
        flex-wrap: wrap;
    }
    .home-orders-toolbar #home-orders-count {
        display: none;
    }
    .table {
        min-width: 0;
    }
    .products-form-row,
    .categories-add-form {
        grid-template-columns: 1fr;
    }
    .establishment-contact-grid {
        grid-template-columns: 1fr;
    }
    .products-form-row__actions {
        grid-column: auto;
        justify-content: flex-start;
    }
    .flash {
        right: 10px;
        left: 10px;
        bottom: 10px;
        max-width: none;
    }
    .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;
    }
}

.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(170px, 260px) minmax(170px, 260px) auto auto;
    align-items: center;
}

.table-plans-edit-form {
    grid-template-columns: minmax(180px, 320px) minmax(180px, 320px);
    align-items: center;
}

.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 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.table-plans-canvas {
    min-width: 0;
}

.table-plans-editor-wrap {
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

.table-plans-editor {
    position: relative;
    width: 100%;
    min-width: 880px;
    min-height: 560px;
    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;
}

.plan-item {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #9aa8be;
    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--selected {
    box-shadow: 0 0 0 2px #f39b6b;
    z-index: 2;
}

.plan-item__label {
    padding: 0 18px 0 8px;
    line-height: 1.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;
}

.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;
}

.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(100% - 24px));
    margin: 7vh auto 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-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 (min-width: 861px) {
    .btn {
        max-width: 400px;
        font-size: 16px;
    }
    .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: 50px;
        padding: 16px 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;
    }
    .table-plans-editor {
        min-height: 620px;
    }
}

@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;
    }
    .products-filters-form {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
    .products-filters-form__search {
        grid-column: 1 / -1;
    }
    .import-sources-grid {
        grid-template-columns: 1fr;
    }
}

@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 {
        min-width: 720px;
        min-height: 420px;
    }
}
