.merchant-app{min-height:100dvh;background:#f8f5fc;color:#24123d}.merchant-topbar{position:sticky;top:0;z-index:40;height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 max(22px,calc((100vw - 1180px)/2));background:#fff;border-bottom:1px solid #eadff3}.merchant-brand{display:flex;align-items:center;gap:11px;padding:0;border:0;background:transparent;color:#24123d;text-align:left}.merchant-brand img{width:42px;height:42px;object-fit:contain}.merchant-brand span{display:grid}.merchant-brand strong{font-size:21px;line-height:1}.merchant-brand small{margin-top:4px;color:#756682;font-size:11px;font-weight:700}.merchant-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:260px}.merchant-signout{flex:0 0 92px;width:92px;min-height:40px;border:1px solid #dfcfeb;border-radius:12px;background:#fff;color:#651a89;font-weight:800}.merchant-approval{display:inline-flex;align-items:center;min-height:31px;padding:6px 10px;border-radius:9px;background:#fff3dc;color:#855300;font-size:12px;font-weight:800}.merchant-approval.is-approved{background:#e0f7e9;color:#14713b}.merchant-nav{position:sticky;top:76px;z-index:35;display:flex;gap:8px;padding:9px max(22px,calc((100vw - 1180px)/2));background:rgba(255,255,255,.96);border-bottom:1px solid #eadff3}.merchant-nav button{min-height:39px;padding:8px 15px;border:0;border-radius:11px;background:transparent;color:#71627d;font-weight:800}.merchant-nav button.active{background:#f4e6fb;color:#9e1bb4}.merchant-main{width:min(1180px,100%);min-height:calc(100dvh - 134px);margin:auto;padding:32px 22px 52px}.merchant-welcome{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:34px;border-radius:22px;background:#32105f;color:#fff}.merchant-welcome h1{margin:6px 0 8px;color:#fff!important;font-size:clamp(30px,5vw,46px)}.merchant-welcome p{margin:0;color:#efe5f8!important}.merchant-kicker{color:#dc9eea!important;font-size:11px;font-weight:900;letter-spacing:.14em}.merchant-logo{flex:0 0 auto;width:104px;height:104px;border-radius:22px;object-fit:cover;background:#fff;box-shadow:0 14px 35px rgba(15,0,35,.28)}.merchant-logo-fallback{display:grid;place-items:center;background:#e22cbd;color:#fff;font-size:42px;font-weight:900}.merchant-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.merchant-stats article{padding:22px;border:1px solid #eadff3;border-radius:16px;background:#fff}.merchant-stats span{display:block;color:#756682;font-weight:700}.merchant-stats strong{display:block;margin-top:8px;font-size:30px}.merchant-home-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.merchant-action-card{display:flex;align-items:center;justify-content:space-between;gap:20px}.merchant-action-card h2,.merchant-action-card p{margin:0}.merchant-action-card p{margin-top:6px}.merchant-recent,.merchant-menu-list{margin-top:28px}.merchant-preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.merchant-preview-item{display:grid;grid-template-columns:64px 1fr auto;align-items:center;gap:12px;padding:12px;border:1px solid #eadff3;border-radius:14px;background:#fff}.merchant-preview-item img,.merchant-preview-item>span{width:64px;height:64px;border-radius:11px;object-fit:cover}.merchant-preview-item>span{display:grid;place-items:center;background:#f5e9fa;color:#7d249e;font-size:24px;font-weight:900}.merchant-preview-item small{display:block;margin-top:4px;color:#756682}.is-live,.is-off{padding:5px 8px;border-radius:8px;background:#e0f7e9;color:#14713b;font-size:11px;font-weight:800}.is-off{background:#f1edf4;color:#6e6277}.merchant-empty{padding:34px;margin-top:22px;border:1px dashed #d8c7e4;border-radius:17px;background:#fff;text-align:center}.merchant-empty h2,.merchant-empty h3,.merchant-empty p{margin:0}.merchant-empty p{margin:7px 0 17px;color:#756682}.merchant-page>.head{margin-bottom:20px}.merchant-page>.head h1{margin:5px 0 4px;font-size:34px}.merchant-count{padding:7px 10px;border-radius:9px;background:#f0e5f6;color:#6f258d;font-size:12px;font-weight:800}.merchant-add-card{margin-bottom:25px}.merchant-add-card h2{margin-top:0}.merchant-menu-list>h2{margin-bottom:14px}.merchant-menu-item{display:grid;grid-template-columns:190px minmax(0,1fr);gap:22px;margin-bottom:15px;padding:18px;border:1px solid #eadff3;border-radius:18px;background:#fff}.merchant-menu-item>img,.merchant-food-fallback{width:190px;height:100%;min-height:210px;border-radius:14px;object-fit:cover}.merchant-food-fallback{display:grid;place-items:center;background:#f3e8f8;color:#81219f;font-size:48px;font-weight:900}.merchant-item-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.merchant-item-title h3,.merchant-item-title p{margin:0}.merchant-item-title p{margin-top:4px;color:#756682}.merchant-item-actions{display:flex;gap:10px;margin-top:15px}.merchant-delete{border:1px solid #efc8cf!important;background:#fff2f4!important;color:#a91d38!important;box-shadow:none!important}.merchant-profile-grid{display:grid;gap:16px}.merchant-logo-card{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:22px}.merchant-logo-card .merchant-logo{width:112px;height:112px}.merchant-logo-card form{display:grid;gap:10px}.merchant-logo-card h2,.merchant-logo-card p{margin:0}.merchant-document-card small{display:block;margin-top:11px;color:#756682}.merchant-document-card form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
@media(max-width:700px){.merchant-topbar{height:68px;padding:0 13px}.merchant-brand img{width:36px;height:36px}.merchant-brand strong{font-size:18px}.merchant-brand small{display:none}.merchant-top-actions{min-width:0;gap:7px}.merchant-top-actions>.merchant-approval{display:none}.merchant-signout{flex-basis:80px;width:80px;min-height:37px;font-size:12px}.merchant-nav{top:68px;padding:8px 12px}.merchant-nav button{flex:1;padding:7px 8px;font-size:12px}.merchant-main{padding:18px 13px 34px}.merchant-welcome{padding:23px 20px}.merchant-welcome .merchant-logo{width:72px;height:72px;border-radius:16px}.merchant-stats{gap:8px}.merchant-stats article{padding:15px 12px}.merchant-stats span{font-size:11px}.merchant-stats strong{font-size:23px}.merchant-home-grid,.merchant-preview-grid{grid-template-columns:1fr}.merchant-action-card{align-items:flex-start;flex-direction:column}.merchant-menu-item{grid-template-columns:1fr;padding:14px}.merchant-menu-item>img,.merchant-food-fallback{width:100%;height:190px;min-height:0}.merchant-logo-card{grid-template-columns:1fr}.merchant-item-actions{justify-content:space-between}.merchant-item-actions .button{flex:1}.merchant-page>.head{align-items:flex-start}.merchant-page>.head h1{font-size:29px}}
.merchant-nav.customer-nav{position:sticky!important;top:76px!important;bottom:auto!important;justify-content:flex-start;padding:9px max(22px,calc((100vw - 1180px)/2))!important;background:rgba(255,255,255,.96)!important;border-bottom:1px solid #eadff3!important;box-shadow:none!important}.merchant-main.container{width:min(1180px,100%);max-width:1180px;margin:auto;padding:32px 22px 52px!important;background:transparent!important;box-shadow:none!important}
@media(max-width:700px){.merchant-nav.customer-nav{position:sticky!important;top:68px!important;bottom:auto!important;padding:8px 12px!important}.merchant-main.container{padding:18px 13px 34px!important}}
.merchant-order-list{display:grid;gap:14px}.merchant-order-card{display:grid;gap:15px}.merchant-order-card small{display:block;color:var(--muted);margin-top:4px}.merchant-order-customer{display:flex;justify-content:space-between;gap:12px;padding:13px;border-radius:12px;background:#f5f0f8}.merchant-order-customer a{color:#9d168d;font-weight:800;text-decoration:none}.merchant-order-lines{display:grid;gap:7px;padding:12px 0;border-block:1px solid #ece2f1}.merchant-order-lines>div{display:flex;justify-content:space-between;gap:12px}

/* Restaurant workspace navigation and live order workflow */
.merchant-topbar{z-index:54;padding-inline:22px}.merchant-layout{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:calc(100dvh - 76px)}.merchant-sidebar{position:sticky;top:76px;height:calc(100dvh - 76px);box-sizing:border-box;display:flex;flex-direction:column;padding:22px 16px;border-right:1px solid #eadff3;background:#fff}.merchant-identity{display:grid;grid-template-columns:50px minmax(0,1fr);align-items:center;gap:11px;padding:7px 7px 21px;border-bottom:1px solid #eee4f4}.merchant-identity .merchant-logo{width:50px;height:50px;border-radius:14px;box-shadow:none}.merchant-identity div{display:grid;min-width:0}.merchant-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.merchant-identity small{margin-top:4px;color:#756682;font-size:11px}.merchant-sidebar nav{display:grid;gap:6px;padding:20px 0}.merchant-sidebar nav button{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:0 14px;border:0;border-radius:12px;background:transparent;color:#71627d;font:inherit;font-weight:800;text-align:left}.merchant-sidebar nav button:hover{background:#faf5fc}.merchant-sidebar nav button.active{background:#32105f;color:#fff}.merchant-sidebar nav button b{display:grid;min-width:23px;height:23px;place-items:center;border-radius:999px;background:#e52dbd;color:#fff;font-size:11px}.merchant-sidebar-foot{display:grid;gap:4px;margin-top:auto;padding:15px 12px;border-radius:13px;background:#f6eff9}.merchant-sidebar-foot span{font-size:12px;font-weight:850}.merchant-sidebar-foot small{color:#756682}.merchant-menu-toggle,.merchant-menu-scrim{display:none}.merchant-main.container{width:min(1180px,100%);max-width:1180px;min-width:0;box-sizing:border-box;min-height:calc(100dvh - 76px);margin:auto;padding:32px 22px 52px!important;background:transparent!important;box-shadow:none!important}.merchant-stats button{margin-top:8px;padding:0;border:0;background:none;color:#8d169e;font-weight:850}
.merchant-live-state{display:grid;grid-template-columns:auto auto;align-items:center;gap:2px 7px;text-align:right}.merchant-live-state i{width:9px;height:9px;border-radius:50%;background:#1fb86b;box-shadow:0 0 0 5px rgba(31,184,107,.12)}.merchant-live-state span{font-weight:850}.merchant-live-state small{grid-column:1/3;color:#756682}.merchant-order-heading,.merchant-order-total{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.merchant-order-heading>div{display:grid}.merchant-order-heading>div>small{font-size:10px;letter-spacing:.1em}.merchant-order-heading>div>strong{margin-top:3px;font-size:20px}.merchant-order-heading>div>span{margin-top:4px;color:#756682;font-size:12px}.merchant-stage{padding:7px 10px;border-radius:999px;background:#f3edf6;color:#66596f;font-size:11px;font-weight:900}.merchant-stage.stage-preparing{background:#fff2ce;color:#805500}.merchant-stage.stage-ready{background:#ddf7e9;color:#116f3a}.merchant-order-lines>div{align-items:center;padding:7px 0}.merchant-order-lines>div+div{border-top:1px solid #f2eaf6}.merchant-order-lines span{display:grid}.merchant-order-lines small{font-size:11px}.merchant-order-total span{display:grid;color:#756682}.merchant-order-total small{font-size:11px}.merchant-order-total>strong{font-size:22px}.merchant-order-actions{display:flex;justify-content:flex-end}.merchant-order-actions .button{min-width:180px}
.merchant-order-notice{margin:0;padding:11px 13px;border-radius:11px;background:#f2edf5;color:#65586e;font-size:13px;font-weight:800}.merchant-order-notice.is-picked{background:#e3f7ec;color:#126d3d}.merchant-stage.stage-picked_up,.merchant-stage.stage-delivered{background:#ddf5e9;color:#176b4d}.merchant-stage.stage-cancelled{background:#fde8ec;color:#9b2741}
@media(max-width:820px){.merchant-topbar{height:68px;padding-inline:13px;gap:9px}.merchant-menu-toggle{display:grid;width:40px;height:40px;flex:0 0 40px;place-content:center;gap:4px;border:1px solid #dfcfeb;border-radius:11px;background:#fff}.merchant-menu-toggle span{display:block;width:18px;height:2px;border-radius:2px;background:#32105f}.merchant-brand{margin-right:auto}.merchant-layout{display:block;min-height:calc(100dvh - 68px)}.merchant-sidebar{position:fixed;z-index:53;top:68px;bottom:0;left:0;width:min(82vw,300px);height:auto;transform:translateX(-105%);transition:transform .22s ease;box-shadow:18px 0 45px rgba(35,10,52,.2)}.merchant-menu-scrim{position:fixed;z-index:52;inset:68px 0 0;border:0;background:rgba(27,11,38,.48)}.merchant-app.menu-open .merchant-sidebar{transform:translateX(0)}.merchant-app.menu-open .merchant-menu-scrim{display:block}.merchant-main.container{min-height:calc(100dvh - 68px);padding:18px 13px 34px!important}}
@media(max-width:520px){.merchant-order-actions .button{width:100%}.merchant-live-state{margin-top:8px;text-align:left}.merchant-page>.head{display:block}}
