:root {
    --orange: #f26732;
    --orange-dark: #dc501c;
    --cream: #fff7ee;
    --ink: #202631;
    --muted: #78808e;
    --border: #e9ebee;
    --green: #198c62;
    --shadow: 0 3px 18px #26262604;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font:
        14px/1.5 Inter,
        Segoe UI,
        Arial,
        sans-serif;
}
a {
    color: var(--orange-dark);
    text-decoration: none;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--orange);
    color: white;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 10px 17px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}
button:hover,
.button:hover {
    background: var(--orange-dark);
}
button:disabled {
    opacity: 0.55;
    cursor: wait;
}
.secondary {
    background: white;
    color: var(--ink);
    border-color: var(--border);
}
.secondary:hover {
    background: #fff2e6;
    color: var(--orange-dark);
}
.small {
    padding: 5px 10px;
    font-size: 12px;
}
svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: 30px;
    letter-spacing: -1px;
    margin-bottom: 5px;
}
h2 {
    font-size: 18px;
    margin-bottom: 14px;
}
h3 {
    font-size: 15px;
    margin: 20px 0 10px;
}
.muted,
small {
    color: var(--muted);
}
small {
    display: block;
    font-size: 12px;
}
.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--orange-dark);
    margin-bottom: 7px;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 236px;
    background: #1f242c;
    color: #fff;
    padding: 24px 15px;
    display: flex;
    flex-direction: column;
    z-index: 20;
}
.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 19px;
    font-weight: 700;
    color: white;
    padding: 0 8px 20px;
    letter-spacing: -0.5px;
}
.brand-mark {
    display: inline-grid;
    place-items: center;
    background: var(--orange);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: white;
    font-size: 22px;
    font-weight: 800;
}
.nav-label {
    color: #959ca7;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
    margin: 8px;
}
.sidebar nav {
    overflow: auto;
    flex: 1;
    padding-right: 3px;
}
.sidebar nav a {
    display: flex;
    gap: 11px;
    align-items: center;
    color: #ced2d9;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin: 3px 0;
}
.sidebar nav a:hover {
    background: #ffffff0c;
}
.sidebar nav a.selected {
    background: var(--orange);
    color: white;
}
.sidebar-footer {
    border-top: 1px solid #ffffff14;
    padding: 16px 10px 0;
    color: #c9ced7;
    font-size: 12px;
}
.sidebar-footer small {
    color: #818998;
}
.workspace {
    margin-left: 236px;
}
.topbar {
    height: 76px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}
.breadcrumb {
    color: var(--muted);
    font-size: 12px;
}
.breadcrumb span {
    margin: 0 15px;
}
.top-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
}
.avatar {
    width: 37px;
    height: 37px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffe3d2;
    color: var(--orange-dark);
    font-weight: 700;
}
.notification-link {
    color: var(--ink);
    padding: 9px;
}
.icon-button {
    padding: 7px;
}
.inline {
    margin: 0;
}
.menu-button {
    display: none;
}
main {
    padding: 30px 32px;
    max-width: 1900px;
    margin: auto;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.page-heading p.muted {
    margin: 0;
}
.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}
.badge.orange {
    color: #d85623;
    background: #fff0e3;
}
.badge.green {
    color: #188559;
    background: #e5f8ee;
}
.badge.red {
    color: #c84949;
    background: #ffeded;
}
.badge.gray {
    color: #6d7580;
    background: #f1f3f5;
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 13px;
    padding: 23px;
    margin-bottom: 23px;
    min-width: 0;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.card-header h2 {
    margin: 0;
}
.card-header .muted {
    font-size: 12px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 23px;
}
.stats article {
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 21px;
    box-shadow: var(--shadow);
}
.stats article p {
    margin: 4px 0 6px;
    color: var(--muted);
    font-size: 12px;
}
.stats article h2 {
    font-size: 26px;
    margin: 0 0 8px;
    letter-spacing: -0.6px;
}
.stat-icon {
    background: #fff0e5;
    color: var(--orange);
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 23px;
}
.status-bars > div {
    display: grid;
    grid-template-columns: 130px 1fr 40px;
    gap: 15px;
    align-items: center;
    margin: 16px 0;
}
.status-bars span {
    text-transform: capitalize;
    color: var(--muted);
    font-size: 12px;
}
progress {
    width: 100%;
    height: 9px;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    accent-color: var(--orange);
}
progress::-webkit-progress-bar {
    background: #f2f3f6;
}
progress::-webkit-progress-value {
    background: var(--orange);
}
.checklist {
    padding: 0;
    list-style: none;
}
.checklist li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}
.checklist li::before {
    content: '✓';
    color: var(--green);
    margin-right: 9px;
}
.filters {
    display: flex;
    gap: 13px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 23px;
}
.filters label {
    min-width: 130px;
    flex: 0 1 180px;
    margin: 0;
}
.filters button,
.filters .button {
    height: 40px;
}
label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin: 14px 0;
}
label input,
label select,
label textarea {
    margin-top: 6px;
}
input,
select,
textarea {
    width: 100%;
    display: block;
    padding: 10px 12px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: white;
    color: var(--ink);
    outline: none;
    min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px #f2673214;
}
input:disabled {
    background: #f6f7f8;
}
textarea {
    resize: vertical;
}
label small {
    margin: 5px 0;
    font-weight: 400;
}
.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    gap: 15px;
}
.search {
    display: flex;
    gap: 9px;
    width: 400px;
    max-width: 100%;
}
.table-wrap {
    overflow: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}
th {
    background: #fafbfd;
    color: #6b7482;
    font-weight: 600;
    white-space: nowrap;
}
th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid #eef0f3;
    vertical-align: middle;
}
td {
    max-width: 270px;
    overflow-wrap: anywhere;
}
td small {
    font-size: 10px;
}
tbody tr:hover {
    background: #fffcf9;
}
.row-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}
.pagination {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
    font-size: 12px;
    color: var(--muted);
    padding-top: 20px;
}
.empty {
    padding: 30px;
    text-align: center;
    color: var(--muted);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}
.editor {
    max-width: 950px;
}
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.form-error {
    color: #be3e3e;
    font-size: 13px;
    white-space: pre-wrap;
    margin: 12px 0;
}
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
    gap: 23px;
}
.detail-grid .api-form {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.totals {
    max-width: 350px;
    margin: 25px 0 25px auto;
}
.totals p {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    margin-bottom: 3px;
    color: var(--muted);
}
.totals .total {
    border-top: 1px solid var(--border);
    color: var(--ink);
    font-size: 18px;
    padding-top: 15px;
}
.timeline {
    list-style: none;
    padding: 0 0 0 16px;
}
.timeline li {
    position: relative;
    border-left: 2px solid #ffdfcc;
    padding: 0 0 18px 20px;
}
.timeline li::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: var(--orange);
    border-radius: 50%;
}
.timeline strong {
    text-transform: capitalize;
}
.timeline p {
    font-size: 12px;
    margin-top: 5px;
}
.back-link {
    display: block;
    margin-bottom: 15px;
}
.reply {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.reply p {
    margin: 10px 0;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 25px 0;
}
.product-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 17px;
}
.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}
.product-placeholder {
    height: 100px;
    display: grid;
    place-items: center;
    background: #fff1e5;
    color: var(--orange);
    border-radius: 8px;
    font-size: 45px;
    font-weight: 700;
}
.product-card h3 {
    margin: 15px 0 7px;
}
.product-card select {
    margin: 10px 0;
}
.product-card button {
    margin-top: 12px;
    width: 100%;
}
.addon-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}
.addon-check input {
    width: auto;
    margin: 0;
}
.cart-line {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
#checkout-form {
    max-width: 600px;
}
footer {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    margin-top: 35px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}
dialog {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    width: 450px;
    max-width: 95vw;
}
dialog::backdrop {
    background: #20263166;
}
#toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: white;
    border-radius: 10px;
    padding: 13px 22px;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.15s;
    max-width: 90vw;
}
#toast.show {
    opacity: 1;
}
.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse at 20% 20%, #ffe0c4, transparent 60%),
        var(--cream);
    padding: 30px;
}
.login-card {
    width: 440px;
    max-width: 100%;
    background: white;
    padding: 42px;
    border-radius: 20px;
    box-shadow: 0 25px 100px #58391f0c;
    border: 1px solid #fff;
}
.login-card > .brand-mark {
    margin-bottom: 25px;
    width: 48px;
    height: 48px;
}
.login-card button {
    width: 100%;
    margin-top: 12px;
}
.login-card details {
    margin: 25px 0;
    font-size: 12px;
}
.login-card summary {
    cursor: pointer;
}
.login-card > small {
    margin-top: 20px;
}
.compact {
    padding: 18px;
}
.compact .filters {
    margin-bottom: 10px;
}
@media (min-width: 1600px) {
    .stats article {
        padding: 26px;
    }
    .stats article h2 {
        font-size: 30px;
    }
}
@media (max-width: 1150px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .topbar,
    main {
        padding-left: 22px;
        padding-right: 22px;
    }
    .sidebar {
        width: 215px;
    }
    .workspace {
        margin-left: 215px;
    }
}
@media (max-width: 760px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s;
    }
    .nav-open .sidebar {
        transform: translateX(0);
    }
    .workspace {
        margin-left: 0;
    }
    .menu-button {
        display: block;
    }
    .breadcrumb {
        display: none;
    }
    .topbar {
        padding: 0 15px;
    }
    .top-actions {
        gap: 7px;
    }
    .stats {
        gap: 10px;
    }
    .stats article {
        padding: 15px;
    }
    .stats article h2 {
        font-size: 22px;
    }
    .page-heading {
        align-items: flex-start;
    }
    .page-heading > .badge {
        display: none;
    }
    main {
        padding: 22px 15px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .list-toolbar {
        flex-wrap: wrap;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card {
        padding: 18px;
    }
    .status-bars > div {
        grid-template-columns: 100px 1fr 25px;
    }
    .top-actions strong {
        max-width: 120px;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .filters label {
        flex: 1 1 140px;
    }
    footer span {
        display: none;
    }
}
@media (max-width: 420px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .login-card {
        padding: 28px;
    }
    .stats article h2 {
        font-size: 19px;
    }
}

.record-modal{width:min(900px,94vw);max-height:90vh;overflow:auto;border:0;border-radius:20px;padding:24px;box-shadow:0 24px 80px #0004}.record-modal::backdrop{background:#17202bb3}.record-modal .editor{margin:0;border:0;box-shadow:none;padding:12px 0}.modal-close{display:block;margin-left:auto}@media(max-width:600px){.record-modal{padding:16px}.record-modal .form-grid{grid-template-columns:1fr}}

.customer-cuisines{display:flex;gap:12px;overflow:auto;padding:12px 0}.cuisine-filter{display:flex;flex-direction:column;align-items:center;background:transparent;color:var(--ink);padding:7px;border:1px solid transparent;flex:0 0 90px;gap:7px;font-size:12px}.cuisine-filter.selected{border-color:var(--orange);color:var(--orange);background:#fff7ef}.cuisine-filter img,.cuisine-filter-icon{width:58px;height:58px;border-radius:50%;object-fit:cover;background:#fff7ef}.cuisine-filter-icon{display:grid;place-items:center}.customer-store-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:15px;margin:15px 0}.customer-store-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;background:#fff;color:var(--ink);border:1px solid #eee;padding:10px;gap:5px;box-shadow:0 3px 15px #00000006}.customer-store-card>span{font-size:12px;color:var(--muted)}.customer-store-brand{height:125px;position:relative;background:#fff7ef;border-radius:12px;overflow:hidden;margin-bottom:5px}.store-cover{width:100%;height:100%;object-fit:cover}.store-logo{position:absolute;bottom:6px;left:6px;width:43px;height:43px;object-fit:contain;background:white;padding:3px;border-radius:10px}.customer-store-card .store-status{color:#dd541f;font-weight:600}
