:root{--green:#8A4F21;--green-dark:#633615;--orange:#C98345;--ink:#17211c;--muted:#6d7872;--line:#e7ece9;--bg:#FBF8F5;--white:#fff;--danger:#c63f3f;--shadow:0 12px 35px rgba(20,40,30,.09)}*{box-sizing:border-box}html,body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}body{min-height:100vh}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.muted{color:var(--muted)}.center{text-align:center}.grow{flex:1}.full{width:100%}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:var(--green)}.eyebrow.light{color:#FFF2E7}.brand{display:flex;gap:11px;align-items:center}.brandmark{width:42px;height:42px;border-radius:12px;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:900;font-size:22px}.brand div{display:flex;flex-direction:column}.brand strong{font-size:19px}.brand small{font-size:11px;color:var(--muted)}.btn{border:0;border-radius:11px;padding:12px 16px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn.primary{background:var(--green);color:white}.btn.primary:hover{background:var(--green-dark)}.btn.warning{background:var(--orange);color:#fff}.btn.light{background:#fff;color:var(--green-dark)}.btn.ghost{background:#F5E9DE;color:var(--ink)}.btn.small{padding:9px 12px;font-size:12px}.alert{padding:12px 14px;border-radius:10px;margin:0 0 16px;font-weight:700}.alert.danger{background:#fff0f0;color:var(--danger)}.alert.success{background:#F5ECE4;color:var(--green-dark)}label{display:block;font-size:12px;font-weight:800;color:#47534d;margin-bottom:14px}input,select,textarea{width:100%;margin-top:7px;border:1px solid #dce4df;background:#fff;border-radius:10px;padding:12px 13px;outline:0;color:var(--ink)}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(15,139,95,.1)}.auth-bg{display:grid;place-items:center;padding:24px;background:#FAF5F0}.auth-card,.install-card{background:#fff;width:min(440px,100%);border-radius:22px;padding:30px;box-shadow:var(--shadow)}.install-card{width:min(760px,100%)}.auth-card h1,.install-card h1{font-size:28px;margin:28px 0 7px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.form-grid h3,.form-grid .full{grid-column:1/-1}.form-grid h3{margin:22px 0 12px;border-top:1px solid var(--line);padding-top:20px}.success-box{text-align:center;padding:22px 0}.success-box h1{margin-top:10px}.sidebar{position:fixed;left:0;top:0;bottom:0;width:238px;background:#fff;border-right:1px solid var(--line);padding:22px 16px;z-index:20;display:flex;flex-direction:column}.navbrand{padding:0 8px 24px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav a{padding:11px 12px;border-radius:10px;color:#55615b;font-weight:700;display:flex;gap:11px;align-items:center}.sidebar nav a.active,.sidebar nav a:hover{background:#FBF7F2;color:var(--green-dark)}.sidebar-foot{margin-top:auto;border-top:1px solid var(--line);padding:16px 9px 0;display:flex;align-items:center;justify-content:space-between;font-size:12px}.user-chip{display:flex;flex-direction:column}.user-chip small{color:var(--muted)}.app-shell{margin-left:238px;min-height:100vh}.topbar{height:82px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px}.topbar h2{font-size:19px;margin:2px 0 0}.topbar small{color:var(--muted);font-size:11px}.preview-link{font-size:12px;font-weight:800;color:var(--green)}.menu-toggle{display:none;border:0;background:#FAF5F0;border-radius:8px;padding:8px}.content{padding:28px;max-width:1440px;margin:auto}.hero{background:var(--green);color:#fff;border-radius:20px;padding:28px 30px;display:flex;justify-content:space-between;align-items:center}.hero h1{font-size:30px;margin:6px 0}.hero p{margin:0;color:#F2E3D6}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.stats article{background:#fff;border:1px solid var(--line);border-radius:16px;padding:19px;display:flex;flex-direction:column;box-shadow:0 5px 18px rgba(20,40,30,.04)}.stats small{color:var(--muted);font-weight:700}.stats strong{font-size:26px;margin:8px 0}.stats span{font-size:11px;color:#93a09a}.panel{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 6px 20px rgba(25,48,37,.04);overflow:hidden}.panel.compact{padding:20px;overflow:visible}.panel-head{padding:20px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.panel-head h3{margin:3px 0 0}.panel-head a{font-size:12px;color:var(--green);font-weight:800}.pill{background:#FBF7F2;border-radius:99px;padding:6px 10px;font-size:11px;font-weight:800;color:var(--green-dark)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px 18px;border-bottom:1px solid var(--line);font-size:13px}th{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#89948e;background:#fafcfb}.empty{text-align:center;color:var(--muted);padding:34px}.status{display:inline-block;border-radius:99px;padding:5px 9px;font-size:10px;font-weight:900}.status.pending{background:#fff2df;color:#9b5b0f}.status.accepted{background:#e8f2ff;color:#2e6fac}.status.preparing{background:#fff0dc;color:#b76511}.status.ready{background:#F4E9DF;color:#147249}.status.served{background:#edf0ef;color:#617068}.status.cancelled{background:#ffe8e8;color:#b03c3c}.page-grid{display:grid;grid-template-columns:1fr 330px;gap:18px}.menu-admin-list article,.request-list article{display:flex;align-items:center;gap:13px;padding:15px 20px;border-bottom:1px solid var(--line)}.food-icon,.request-icon{width:44px;height:44px;background:#F7F1EB;border-radius:12px;display:grid;place-items:center;font-size:20px}.menu-admin-list .grow,.request-list .grow{display:flex;flex-direction:column}.menu-admin-list small,.request-list small{font-size:11px;color:var(--muted);margin-top:3px}.menu-admin-list>article>strong{font-size:12px}.availability{border:0;border-radius:99px;padding:7px 10px;font-size:10px;font-weight:900}.availability.on{background:#F4E9DF;color:var(--green-dark)}.availability.off{background:#f1f1f1;color:#777}.qr-grid{padding:20px;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.qr-card{border:1px solid var(--line);border-radius:15px;text-align:center;padding:18px}.qr-frame{background:#fff;border:1px solid var(--line);padding:8px;display:inline-block;border-radius:10px}.qr-frame img{display:block;width:150px;height:150px}.qr-card h3{margin:12px 0 3px}.qr-card p{font-size:11px;color:var(--muted);margin:0 0 12px}.qr-actions{display:flex;justify-content:center;gap:6px}.live-dot{display:inline-block;width:8px;height:8px;background:#20c675;border-radius:50%;margin-right:6px;box-shadow:0 0 0 5px rgba(32,198,117,.12)}.order-cards{padding:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.order-card{border:1px solid var(--line);border-top:4px solid #c4ccc8;border-radius:14px;padding:16px}.order-card.pending{border-top-color:var(--orange)}.order-card.ready{border-top-color:var(--green)}.order-top{display:flex;justify-content:space-between}.order-top small{font-size:10px;color:var(--muted)}.order-top h3{font-size:20px;margin:3px 0}.order-top span{font-size:10px;color:var(--muted)}.order-items{border-top:1px dashed var(--line);border-bottom:1px dashed var(--line);padding:10px 0;margin:12px 0}.order-items div,.order-total{display:flex;justify-content:space-between;font-size:12px;padding:4px 0}.note{background:#fff7e9;padding:9px;border-radius:8px;font-size:11px;color:#745423}.order-total strong{font-size:15px}.status-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:12px}.status-btn{border:0;background:#F5E9DE;border-radius:7px;padding:7px 4px;font-size:9px;font-weight:800;cursor:pointer}.empty-card{padding:34px;border:1px dashed #ccd8d1;border-radius:14px;text-align:center;color:var(--muted);display:flex;flex-direction:column;gap:5px}.empty-card.wide{grid-column:1/-1}.kitchen-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px}.kitchen-head h1{margin:5px 0}.kitchen-head p{margin:0;color:var(--muted)}.clock{font-size:30px;font-weight:800}.kds-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.kds-ticket{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}.kds-ticket header{background:#1e2924;color:#fff;display:flex;justify-content:space-between;padding:15px}.kds-ticket header h2{margin:3px 0 0}.kds-ticket header small{color:#a9b7b0}.ticket-items{padding:15px}.ticket-items div{display:flex;gap:10px;padding:8px 0;border-bottom:1px dashed var(--line)}.kds-ticket form,.kds-ticket .note{margin:0 15px 15px}.guest-body{background:#FCF9F6}.guest-hero{background:var(--green);color:#fff;padding:18px 18px 32px;border-radius:0 0 26px 26px}.guest-brand{display:flex;align-items:center;gap:8px;font-weight:800;font-size:13px}.guest-brand .brandmark{width:31px;height:31px;border-radius:9px;background:#fff;color:var(--green);font-size:16px}.table-pill{float:right;margin-top:-30px;background:#fff;color:var(--green-dark);border-radius:99px;padding:7px 11px;font-size:11px;font-weight:900}.guest-hero>div:last-child{margin-top:35px}.guest-hero h1{font-size:29px;margin:4px 0}.guest-hero p{margin:0;color:#F2E3D6}.guest-content{max-width:680px;margin:auto;padding:0 14px}.service-strip{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:15px;margin-top:-14px;display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden}.service-strip button{border:0;background:#fff;padding:13px 6px;font-size:10px;font-weight:800;color:#52605a;border-right:1px solid var(--line)}.service-strip button:last-child{border-right:0}.service-strip span{display:block;font-size:20px;margin-bottom:3px}.section-title{display:flex;justify-content:space-between;align-items:end;margin:26px 2px 8px}.section-title h2{margin:2px 0}.cart-count{font-size:11px;color:var(--muted)}.guest-category h3{font-size:15px;margin:18px 2px 8px}.guest-items{display:flex;flex-direction:column;gap:9px}.guest-item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px;display:flex;gap:11px;align-items:center}.food-visual{width:62px;height:62px;border-radius:12px;background:#FAF7F4;display:grid;place-items:center;font-size:25px}.item-info{flex:1;min-width:0}.item-info h4{margin:0;font-size:14px}.item-info p{font-size:10px;color:var(--muted);margin:4px 0;line-height:1.35}.item-info strong{font-size:12px;color:var(--green-dark)}.qty{display:flex;align-items:center;gap:4px;background:#F8F3EE;border-radius:9px;padding:3px}.qty button{width:27px;height:27px;border:0;background:#fff;border-radius:7px;font-weight:900;color:var(--green);box-shadow:0 1px 4px rgba(0,0,0,.06)}.qty input{width:24px;padding:0;border:0;background:transparent;text-align:center;margin:0;font-size:12px;box-shadow:none}.note-box{margin-top:16px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px}.note-box label{margin:0}.guest-spacer{height:96px}.cart-bar{position:fixed;left:50%;bottom:12px;transform:translateX(-50%);width:min(650px,calc(100% - 28px));background:#1c2822;color:#fff;border-radius:15px;padding:11px 12px 11px 16px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 16px 40px rgba(0,0,0,.24);z-index:20}.cart-bar div{display:flex;flex-direction:column}.cart-bar small{color:#aab9b2;font-size:9px}.cart-bar strong{font-size:14px}.cart-bar button{border:0;background:var(--orange);color:#fff;border-radius:10px;padding:11px 15px;font-weight:900}.cart-bar button:disabled{opacity:.35}.toast{position:fixed;top:18px;left:50%;transform:translate(-50%,-20px);background:#17231d;color:#fff;padding:11px 16px;border-radius:10px;font-size:12px;font-weight:800;opacity:0;transition:.2s;z-index:50}.toast.show{opacity:1;transform:translate(-50%,0)}.status-page{max-width:480px;margin:0 auto;padding:55px 18px}.success-check{width:70px;height:70px;border-radius:50%;background:#F4E9DF;color:var(--green);font-size:34px;font-weight:900;display:grid;place-items:center;margin-bottom:20px}.status-page h1{font-size:32px;margin:4px 0}.status-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px;margin:25px 0}.status-head{display:flex;justify-content:space-between;padding-bottom:12px;border-bottom:1px solid var(--line)}.timeline{padding-top:13px}.timeline-step{display:flex;gap:11px;min-height:51px;position:relative}.timeline-step>span{width:16px;height:16px;border-radius:50%;border:2px solid #d2dbd6;margin-top:2px;position:relative}.timeline-step:not(:last-child)>span:after{content:"";position:absolute;width:2px;height:34px;background:#dce4df;left:5px;top:14px}.timeline-step.done>span{background:var(--green);border-color:var(--green)}.timeline-step.done:not(:last-child)>span:after{background:var(--green)}.timeline-step div{display:flex;flex-direction:column}.timeline-step small{font-size:9px;color:var(--green)}
@media(max-width:1000px){.stats{grid-template-columns:repeat(2,1fr)}.qr-grid{grid-template-columns:repeat(2,1fr)}.order-cards,.kds-grid{grid-template-columns:repeat(2,1fr)}.page-grid{grid-template-columns:1fr}}
@media(max-width:700px){.sidebar{transform:translateX(-100%);transition:.2s}.nav-open .sidebar{transform:none}.app-shell{margin-left:0}.menu-toggle{display:block}.topbar{padding:0 15px}.topbar>div{flex:1;margin-left:10px}.preview-link{display:none}.content{padding:16px}.hero{padding:22px;align-items:flex-start}.hero h1{font-size:24px}.hero .btn{display:none}.stats{grid-template-columns:1fr 1fr;gap:9px}.stats article{padding:14px}.stats strong{font-size:20px}.qr-grid,.order-cards,.kds-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid h3,.form-grid .full{grid-column:auto}.auth-card,.install-card{padding:22px}.status-actions{grid-template-columns:repeat(2,1fr)}}
/* Marlitable brand palette derived from approved reference: teal #8A4F21, coral #C98345, white. */
:root{--green:#8A4F21;--green-dark:#633615;--orange:#C98345;--brand-teal:#8A4F21;--brand-coral:#C98345}
.owner-body{background:#FBF8F5;min-height:100vh}.owner-top{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:20}.owner-user{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:800}.owner-content{max-width:1450px;margin:0 auto;padding:26px}.owner-hero{background:var(--green);color:#fff;border-radius:22px;padding:28px;display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.owner-hero h1{font-size:34px;margin:6px 0}.owner-hero p{margin:0;color:#F1E2D5}.owner-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:18px 0}.owner-stats article{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.owner-stats small{color:var(--muted);font-weight:800}.owner-stats strong{display:block;font-size:29px;margin:8px 0}.owner-stats span{font-size:10px;color:#8b9892}.subscription{display:inline-flex;border-radius:99px;padding:6px 9px;font-size:10px;font-weight:900}.subscription.active{background:#e4f5f2;color:#633615}.subscription.trial{background:#fff1ee;color:#b93a2f}.subscription.suspended,.subscription.expired{background:#f1f1f1;color:#696969}.inline-status{display:flex;align-items:center;gap:6px;min-width:210px}.inline-status select{margin:0;padding:8px;width:110px}.install-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.auth-foot{text-align:center;margin:18px 0 0;font-size:12px;color:var(--green);font-weight:800}
@media(max-width:1050px){.owner-stats{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.owner-top{padding:0 14px}.owner-user span{display:none}.owner-content{padding:14px}.owner-hero{padding:22px;align-items:flex-start;gap:16px;flex-direction:column}.owner-hero h1{font-size:27px}.owner-stats{grid-template-columns:1fr 1fr}.owner-stats article:last-child{grid-column:1/-1}}

.brandmark{background-color:#fff;background-image:url('../images/marlitable-logo.jpeg');background-size:cover;background-position:center;background-repeat:no-repeat;color:transparent!important;overflow:hidden}

/* ===== Marlitable approved warm-theme owner sidebar ===== */
.owner-body{background:#FBF7F2}
.owner-sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:#3B281D;color:#fff;padding:22px 16px;z-index:40;display:flex;flex-direction:column}
.owner-brand{display:flex;flex-direction:column;padding:0 8px 24px;border-bottom:1px solid rgba(255,255,255,.10);margin-bottom:16px}
.owner-brand img{height:62px;width:165px;object-fit:contain;object-position:left center;background:#fff;border-radius:12px;padding:5px}
.owner-brand small{margin-top:8px;color:#DABEA8;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.owner-sidebar nav{display:flex;flex-direction:column;gap:5px}
.owner-sidebar nav a{padding:12px;border-radius:10px;color:#EAD8CA;font-weight:750;display:flex;align-items:center;gap:11px}
.owner-sidebar nav a:hover,.owner-sidebar nav a.active{background:#8A4F21;color:#fff}
.owner-side-foot{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding:16px 9px 0;display:flex;flex-direction:column;gap:12px}
.owner-side-foot div{display:flex;flex-direction:column}.owner-side-foot small{color:#CDB4A1;margin-top:3px}
.owner-side-foot>a{color:#F0C9AA;font-size:12px;font-weight:800}
.owner-shell{margin-left:252px;min-height:100vh}
.owner-top{height:78px;background:#FFFCF9;border-bottom:1px solid var(--line);padding:0 28px;position:sticky;top:0;z-index:20}
.owner-top>div:first-of-type{display:flex;flex-direction:column}.owner-top h2{font-size:19px;margin:2px 0}.owner-top small{color:var(--muted);font-size:11px}
.owner-menu-toggle{display:none;border:0;background:#F5E9DE;color:#633615;border-radius:9px;padding:9px 11px;font-weight:900}
.owner-content{max-width:1450px;margin:0 auto;padding:26px}
.owner-hero{background:#8A4F21}.owner-hero p{color:#F7E5D6}
.owner-stats article{border-color:#EADFD4;box-shadow:0 5px 18px rgba(99,54,21,.04)}
.subscription.active{background:#F4E8DC;color:#633615}.subscription.trial{background:#FFF1DF;color:#9B5B0F}
@media(max-width:700px){
 .owner-sidebar{transform:translateX(-100%);transition:.2s}.owner-nav-open .owner-sidebar{transform:none}
 .owner-shell{margin-left:0}.owner-menu-toggle{display:block}.owner-top{padding:0 14px;gap:10px}
 .owner-top>div:first-of-type{flex:1}.owner-user span{display:none}.owner-content{padding:14px}
}
/* Centered Marlitable logo on every table QR, WhatsApp-style */
.qr-frame{position:relative}
.qr-center-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:36px!important;height:36px!important;object-fit:cover;background:#fff;border:4px solid #fff;border-radius:9px;box-shadow:0 1px 5px rgba(0,0,0,.12);z-index:2}

/* ===== Marlitable perfected UI: approved sidebar + native theme icons ===== */
:root{
 --brand:#8A4F21;--brand-dark:#633615;--accent:#C98345;
 --sidebar:#572F18;--cream:#FBF7F2;--soft:#F5E9DE;
}
.sidebar{background:#572F18!important;color:#fff}
.sidebar .brand,.sidebar .side-user{color:#fff}
.sidebar nav a{color:#F4E8DE}
.sidebar nav a:hover,.sidebar nav a.active{background:#C98345!important;color:#fff}
.sidebar .side-user{border-top-color:rgba(255,255,255,.16)}
.sidebar .side-user small{color:#D8BFAE}
.sidebar .side-user a{color:#F3C8A5}

.owner-sidebar{background:#572F18!important}
.owner-sidebar nav a.active,.owner-sidebar nav a:hover{background:#C98345!important}
.owner-body,.shell,body{background-color:#FBF7F2}
.topbar,.owner-top{background:#FFFCF9}

/* CSS/SVG-like theme icons: no generated/AI imagery */
.mi{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px}
.mi svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.action-icon{width:25px;height:25px;margin:0 auto 6px;color:#633615}
.action-icon svg{width:25px;height:25px}
.service-actions .action-button,.quick-actions .action-button{text-align:center}

/* =========================================================
   MARLITABLE MENU IMAGES
   ========================================================= */

.menu-admin-item {
    display: flex;
    align-items: center;
    gap: 14px;
}


/* Menu thumbnail */

.menu-admin-image {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;

    border-radius: 12px;
    overflow: hidden;

    background: #F5E9DE;
    border: 1px solid #E2C5AD;
}


.menu-admin-image img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
}


/* No-image icon */

.menu-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8A4F21;
}


.menu-image-placeholder svg {
    width: 30px;
    height: 30px;
}


/* Price */

.menu-admin-price {
    color: #633615;
    white-space: nowrap;
}


/* Separator */

.menu-separator {
    margin: 0 5px;
    color: #C98345;
}


/* =========================================================
   IMAGE UPLOAD
   ========================================================= */

.menu-image-upload {
    display: block;
}


.image-upload-box {
    position: relative;

    margin-top: 7px;

    border: 1.5px dashed #C98345;
    border-radius: 14px;

    background: #FBF7F2;

    min-height: 130px;

    overflow: hidden;
}


.image-upload-box input {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    cursor: pointer;

    z-index: 2;
}


.image-upload-content {
    min-height: 130px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 20px;

    color: #633615;
}


.image-upload-content svg {
    width: 30px;
    height: 30px;

    margin-bottom: 8px;

    color: #8A4F21;
}


.image-upload-content span {
    font-weight: 800;
}


.image-upload-content small {
    margin-top: 4px;
    color: #8A6E59;
}


/* Preview */

.menu-image-preview {
    margin-bottom: 16px;

    border-radius: 14px;
    overflow: hidden;

    border: 1px solid #E2C5AD;
}


.menu-image-preview img {
    display: block;

    width: 100%;
    height: 180px;

    object-fit: cover;
}


/* Hover */

.image-upload-box:hover {
    background: #F7EFE8;
    border-color: #8A4F21;
}


/* Mobile */

@media (max-width: 700px) {

    .menu-admin-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .menu-admin-image {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }

    .menu-admin-item .grow {
        min-width: calc(100% - 80px);
    }

    .menu-admin-price {
        margin-left: 74px;
    }

}

/* =========================================================
   GUEST MENU FOOD IMAGES
   ========================================================= */

.guest-item .food-visual {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;

    padding: 0;
    overflow: hidden;

    border-radius: 16px;

    background: #F5E9DE;
    border: 1px solid #E2C5AD;
}


/* Actual image uploaded by hotel */

.guest-item .food-visual img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Theme placeholder when item has no image */

.menu-food-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8A4F21;
}


.menu-food-placeholder svg {
    width: 36px;
    height: 36px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Mobile */

@media (max-width: 600px) {

    .guest-item .food-visual {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
        border-radius: 14px;
    }

}
/* =========================================================
   MARLITABLE MENU CATEGORY FILTERS
   ========================================================= */

.menu-catalog-head {
    margin-bottom: 14px;
}


/* ---------------------------------------------------------
   CATEGORY BAR
   --------------------------------------------------------- */

.menu-category-filters {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 18px;
    padding-bottom: 4px;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: thin;
    scrollbar-color: #D7B89F transparent;

    -webkit-overflow-scrolling: touch;
}


.menu-category-filters::-webkit-scrollbar {
    height: 4px;
}


.menu-category-filters::-webkit-scrollbar-thumb {
    background: #D7B89F;
    border-radius: 20px;
}


/* ---------------------------------------------------------
   CATEGORY BUTTON
   --------------------------------------------------------- */

.menu-category-filter {
    flex: 0 0 auto;

    min-height: 40px;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 8px 13px;

    border: 1px solid #E2C5AD;
    border-radius: 11px;

    background: #FFFFFF;
    color: #633615;

    font-family: inherit;
    font-size: 13px;
    font-weight: 750;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}


.menu-category-filter:hover {
    border-color: #C98345;
    background: #FBF7F2;
}


.menu-category-filter.active {
    border-color: #8A4F21;

    background: #8A4F21;
    color: #FFFFFF;

    box-shadow:
        0 5px 14px
        rgba(138,79,33,.14);
}


/* ---------------------------------------------------------
   CATEGORY COUNT
   --------------------------------------------------------- */

.menu-category-filter small {
    min-width: 21px;
    height: 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 6px;

    border-radius: 999px;

    background: #F5E9DE;
    color: #8A4F21;

    font-size: 10px;
    font-weight: 900;
}


.menu-category-filter.active small {
    background: rgba(255,255,255,.18);
    color: #FFFFFF;
}


/* ---------------------------------------------------------
   FILTER ANIMATION
   --------------------------------------------------------- */

.menu-admin-item {
    transition:
        opacity .16s ease,
        transform .16s ease;
}


.menu-admin-item.menu-filter-hidden {
    display: none !important;
}


/* ---------------------------------------------------------
   EMPTY CATEGORY
   --------------------------------------------------------- */

.category-empty-state {
    padding: 34px 20px;

    border: 1px dashed #D9B99F;
    border-radius: 15px;

    background: #FBF7F2;

    text-align: center;
}


.category-empty-state[hidden] {
    display: none !important;
}


.category-empty-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 10px;

    border-radius: 14px;

    background: #F5E9DE;
    color: #8A4F21;
}


.category-empty-icon svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.category-empty-state strong {
    display: block;

    color: #633615;
    font-size: 14px;
}


.category-empty-state span {
    display: block;

    margin-top: 5px;

    color: #8A6E59;
    font-size: 12px;
}


/* =========================================================
   MOBILE MENU CATEGORY VIEW
   ========================================================= */

@media (max-width: 700px) {

    /*
     * Keep categories in ONE horizontal row.
     * The user swipes left/right instead of categories
     * taking several lines of screen space.
     */

    .menu-category-filters {
        width: calc(100% + 24px);

        margin-left: -12px;

        padding:
            0 12px 8px;

        gap: 7px;

        scrollbar-width: none;
    }


    .menu-category-filters::-webkit-scrollbar {
        display: none;
    }


    .menu-category-filter {
        min-height: 38px;

        padding:
            7px 11px;

        border-radius: 10px;

        font-size: 12px;
    }


    .menu-category-filter small {
        min-width: 19px;
        height: 19px;

        font-size: 9px;
    }


    /*
     * Menu row remains clean on narrow phones.
     */

    .menu-admin-item {
        position: relative;

        display: grid;

        grid-template-columns:
            58px minmax(0,1fr);

        gap: 10px;

        padding:
            13px 0;
    }


    .menu-admin-image {
        width: 58px !important;
        height: 58px !important;

        flex-basis: 58px !important;

        border-radius: 11px;
    }


    .menu-admin-item .grow {
        min-width: 0 !important;
    }


    .menu-admin-item .grow b {
        display: block;

        color: #633615;

        font-size: 14px;
    }


    .menu-admin-item .grow small {
        display: block;

        margin-top: 3px;

        overflow: hidden;

        color: #8A6E59;

        font-size: 11px;

        line-height: 1.35;

        text-overflow: ellipsis;
    }


    .menu-admin-price {
        grid-column: 2;

        margin: 0 !important;

        color: #8A4F21;

        font-size: 13px;
    }


    /*
     * Actions stay beneath the item instead of crushing
     * name/price/image into one tiny horizontal row.
     */

    .menu-admin-item > a.btn {
        grid-column: 2;

        justify-self: start;
    }


    .menu-admin-item > form {
        grid-column: 2;

        margin: 0;
    }


    .menu-admin-item .availability {
        min-height: 34px;
    }

}
/* =========================================================
   MARLITABLE APPLICATION TOOLBAR
   ========================================================= */

.marlitable-toolbar {
    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 72px;

    padding:
        10px 18px;

    background: #FFFFFF;

    border-bottom:
        1px solid #EAD9CA;
}


/* ---------------------------------------------------------
   PAGE TITLE
   --------------------------------------------------------- */

.toolbar-page-title {
    min-width: 160px;
    margin-right: auto;
}


.toolbar-page-title small {
    display: block;

    color: #9A7A64;

    font-size: 11px;
    font-weight: 700;
}


.toolbar-page-title h2 {
    margin: 2px 0 0;

    color: #633615;

    font-size: 18px;
}


/* ---------------------------------------------------------
   TOOLBAR ACTION AREA
   --------------------------------------------------------- */

.toolbar-actions {
    display: flex;
    align-items: center;

    gap: 6px;
}


/* ---------------------------------------------------------
   GENERAL BUTTON
   --------------------------------------------------------- */

.toolbar-btn {
    position: relative;

    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding:
        8px 11px;

    border: 1px solid #E2C5AD;
    border-radius: 10px;

    background: #FFFFFF;
    color: #633615;

    font-family: inherit;
    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform .15s ease,
        border-color .15s ease,
        background .15s ease;
}


.toolbar-btn:hover {
    transform: translateY(-1px);

    border-color: #C98345;

    background: #FBF7F2;
}


.toolbar-btn .mi {
    width: 18px;
    height: 18px;
}


.toolbar-btn .mi svg {
    width: 18px;
    height: 18px;
}


/* ---------------------------------------------------------
   PENDING
   --------------------------------------------------------- */

.toolbar-pending {
    border-color: #C98345;

    background: #C98345;
    color: #FFFFFF;
}


.toolbar-pending:hover {
    border-color: #8A4F21;

    background: #8A4F21;
    color: #FFFFFF;
}


/* ---------------------------------------------------------
   COMPLETED
   --------------------------------------------------------- */

.toolbar-completed {
    border-color: #8A4F21;

    background: #8A4F21;
    color: #FFFFFF;
}


.toolbar-completed:hover {
    border-color: #633615;

    background: #633615;
    color: #FFFFFF;
}


/* ---------------------------------------------------------
   HOME
   --------------------------------------------------------- */

.toolbar-home {
    border-color: #633615;

    background: #633615;
    color: #FFFFFF;
}


.toolbar-home:hover {
    background: #572F18;
    color: #FFFFFF;
}


/* ---------------------------------------------------------
   FULLSCREEN
   --------------------------------------------------------- */

.toolbar-fullscreen {
    border-color: #C98345;

    background: #C98345;
    color: #FFFFFF;
}


/* ---------------------------------------------------------
   COUNTER
   --------------------------------------------------------- */

.toolbar-count {
    min-width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 5px;

    border-radius: 999px;

    background: #FFFFFF;
    color: #8A4F21;

    font-size: 10px;
    font-weight: 900;
}


/* ---------------------------------------------------------
   USER
   --------------------------------------------------------- */

.toolbar-user {
    display: flex;
    align-items: center;

    gap: 8px;

    padding-left: 10px;

    border-left:
        1px solid #EAD9CA;
}


.toolbar-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #F5E9DE;
    color: #8A4F21;

    font-size: 14px;
    font-weight: 900;
}


.toolbar-user-info strong,
.toolbar-user-info small {
    display: block;
}


.toolbar-user-info strong {
    max-width: 110px;

    overflow: hidden;

    color: #633615;

    font-size: 12px;

    white-space: nowrap;
    text-overflow: ellipsis;
}


.toolbar-user-info small {
    margin-top: 1px;

    color: #9A7A64;

    font-size: 10px;
}


.toolbar-user > .mi {
    width: 15px;
    height: 15px;

    color: #8A4F21;
}


/* =========================================================
   MOBILE QUICK TOOLBAR
   ========================================================= */

.mobile-toolbar {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .toolbar-label {
        display: none;
    }


    .toolbar-btn {
        width: 40px;
        min-width: 40px;

        padding:
            8px;
    }


    .toolbar-pending,
    .toolbar-completed {
        width: auto;

        padding:
            8px 10px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    /*
     * Desktop header becomes compact.
     */

    .marlitable-toolbar {
        min-height: 62px;

        padding:
            8px 12px;

        gap: 9px;
    }


    .toolbar-page-title {
        min-width: 0;
        flex: 1;
    }


    .toolbar-page-title small {
        display: none;
    }


    .toolbar-page-title h2 {
        max-width: 180px;

        overflow: hidden;

        font-size: 16px;

        white-space: nowrap;
        text-overflow: ellipsis;
    }


    /*
     * Desktop controls would overcrowd a phone.
     */

    .toolbar-actions {
        display: none;
    }


    .toolbar-user {
        padding-left: 0;

        border-left: 0;
    }


    .toolbar-user-info,
    .toolbar-user > .mi {
        display: none;
    }


    .toolbar-avatar {
        width: 35px;
        height: 35px;
    }


    /*
     * Mobile operational toolbar.
     */

    .mobile-toolbar {
        position: sticky;
        top: 0;
        z-index: 50;

        display: grid;

        grid-template-columns:
            repeat(5, 1fr);

        min-height: 58px;

        border-bottom:
            1px solid #EAD9CA;

        background: #FFFFFF;

        box-shadow:
            0 4px 15px
            rgba(99,54,21,.06);
    }


    .mobile-toolbar-action {
        position: relative;

        min-width: 0;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 2px;

        padding:
            7px 3px;

        border: 0;

        background: transparent;
        color: #633615;

        font-family: inherit;

        text-decoration: none;

        cursor: pointer;
    }


    .mobile-toolbar-action .mi {
        width: 20px;
        height: 20px;
    }


    .mobile-toolbar-action .mi svg {
        width: 20px;
        height: 20px;
    }


    .mobile-toolbar-action small {
        font-size: 9px;
        font-weight: 800;
    }


    .mobile-action-icon {
        position: relative;

        display: inline-flex;
    }


    .mobile-action-icon b {
        position: absolute;

        top: -7px;
        right: -10px;

        min-width: 17px;
        height: 17px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0 4px;

        border-radius: 999px;

        background: #C98345;
        color: #FFFFFF;

        font-size: 8px;
        font-weight: 900;
    }

}
/* =========================================================
   MARLITABLE HEADER ACCOUNT DROPDOWN
   ========================================================= */

.toolbar-account {
    position: relative;

    flex: 0 0 auto;
}


/* ---------------------------------------------------------
   USER BUTTON
   --------------------------------------------------------- */

.toolbar-account .toolbar-user {
    display: flex;
    align-items: center;

    gap: 8px;

    min-height: 44px;

    padding:
        4px 7px 4px 5px;

    border: 0;
    border-left: 1px solid #EAD9CA;

    background: transparent;

    font-family: inherit;

    cursor: pointer;
}


.toolbar-account .toolbar-user:hover {
    background: #FBF7F2;

    border-radius: 10px;
}


.toolbar-user-chevron {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #8A4F21;

    transition:
        transform .18s ease;
}


.toolbar-user-chevron .mi,
.toolbar-user-chevron svg {
    width: 15px;
    height: 15px;
}


.toolbar-user[aria-expanded="true"]
.toolbar-user-chevron {
    transform: rotate(180deg);
}


/* ---------------------------------------------------------
   DROPDOWN
   --------------------------------------------------------- */

.toolbar-account-menu {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    z-index: 1000;

    width: 270px;

    padding: 8px;

    border: 1px solid #E2C5AD;
    border-radius: 15px;

    background: #FFFFFF;

    box-shadow:
        0 18px 45px
        rgba(99,54,21,.16);
}


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


/* ---------------------------------------------------------
   ACCOUNT SUMMARY
   --------------------------------------------------------- */

.toolbar-account-summary {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px;
}


.toolbar-dropdown-avatar {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #F5E9DE;
    color: #8A4F21;

    font-size: 15px;
    font-weight: 900;
}


.toolbar-account-summary strong {
    display: block;

    color: #633615;

    font-size: 13px;
}


.toolbar-account-summary small {
    display: block;

    margin-top: 2px;

    color: #9A7A64;

    font-size: 11px;
}


.toolbar-account-divider {
    height: 1px;

    margin: 4px 5px;

    background: #F0E2D7;
}


/* ---------------------------------------------------------
   OPTIONS
   --------------------------------------------------------- */

.toolbar-account-option {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px;

    border-radius: 10px;

    color: #633615;

    text-decoration: none;

    transition:
        background .16s ease,
        color .16s ease;
}


.toolbar-account-option:hover {
    background: #FBF7F2;
}


.toolbar-option-icon {
    width: 35px;
    height: 35px;

    flex: 0 0 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #F5E9DE;
    color: #8A4F21;
}


.toolbar-option-icon svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.toolbar-account-option strong {
    display: block;

    color: inherit;

    font-size: 12px;
}


.toolbar-account-option small {
    display: block;

    margin-top: 2px;

    color: #9A7A64;

    font-size: 10px;
}


/* ---------------------------------------------------------
   LOGOUT
   --------------------------------------------------------- */

.toolbar-account-logout:hover {
    background: #FFF5F3;
    color: #A33A2B;
}


.toolbar-account-logout:hover
.toolbar-option-icon {
    background: #FCE8E4;
    color: #A33A2B;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .toolbar-account .toolbar-user {
        min-height: 38px;

        padding: 2px;

        border-left: 0;
    }


    .toolbar-account
    .toolbar-user-info,

    .toolbar-account
    .toolbar-user-chevron {
        display: none;
    }


    .toolbar-account-menu {
        position: fixed;

        top: 62px;
        right: 10px;
        left: auto;

        width: min(
            280px,
            calc(100vw - 20px)
        );
    }

}
/* =========================================================
   MARLITABLE SHARED LAYOUT FIX
   Keeps the existing 237px desktop sidebar
   ========================================================= */

:root {
    --sidebar-width: 237px;
}


/* Main application wrapper */

.shell {
    min-height: 100vh;
    width: 100%;
    background: #FBF7F2;
}


/* Sidebar */

.shell > .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    width: var(--sidebar-width);
    height: 100vh;

    z-index: 1000;

    overflow-y: auto;
}


/* Everything to the right of sidebar */

.shell > .main {
    min-height: 100vh;

    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));

    background: #FBF7F2;
}


/* Header */

.shell > .main > .topbar {
    position: sticky;
    top: 0;

    z-index: 900;

    width: 100%;
}


/* Main page content */

.shell > .main > .content {
    width: 100%;
    max-width: none;

    margin: 0;

    padding: 28px 28px 40px;

    box-sizing: border-box;
}


/* Prevent page components from overflowing */

.shell *,
.shell *::before,
.shell *::after {
    box-sizing: border-box;
}


/* =========================================================
   PROFILE PAGE FIX
   ========================================================= */

.profile-hero {
    width: 100%;

    margin:
        0
        0
        20px;
}


.profile-layout {
    display: grid;
    width: 100%;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(320px, .75fr);

    gap: 18px;
}


.profile-main-panel,
.profile-side-column,
.profile-side-column .panel {
    min-width: 0;
}


.profile-form-grid {
    width: 100%;
}


.profile-form-grid input,
.profile-password-form input {
    max-width: 100%;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

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

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    :root {
        --sidebar-width: 0px;
    }


    .shell > .sidebar {
        width: 260px;

        transform: translateX(-100%);

        transition: transform .22s ease;

        z-index: 3000;
    }


    .shell > .sidebar.open,
    body.sidebar-open
    .shell > .sidebar {
        transform: translateX(0);
    }


    .shell > .main {
        width: 100%;

        margin-left: 0;
    }


    .shell > .main > .content {
        padding:
            16px
            14px
            30px;
    }


    .profile-layout {
        display: block;
    }


    .profile-side-column {
        margin-top: 16px;
    }


    .profile-hero {
        padding: 17px;
    }


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


    .profile-account-meta {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   MARLITABLE UI.PHP COMPATIBILITY — FINAL
   Matches the current shared sidebar/header markup.
   ========================================================= */

:root {
    --sidebar-width: 238px;
}

/* Sidebar brand used by current ui.php */
.sidebar .navbrand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px 24px;
}

.sidebar .brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #FFFFFF;
    color: #8A4F21;
    font-size: 20px;
    font-weight: 900;
}

.sidebar .brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar .brand-copy strong {
    color: #FFFFFF;
    font-size: 18px;
    line-height: 1.15;
}

.sidebar .brand-copy small {
    margin-top: 4px;
    overflow: hidden;
    color: #D8BFAE;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Sidebar navigation */
.sidebar nav {
    flex: 0 0 auto;
}

.sidebar nav a {
    position: relative;
}

.side-nav-badge {
    min-width: 20px;
    height: 20px;
    margin-left: auto;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #FFFFFF;
    color: #8A4F21;
    font-size: 10px;
    font-weight: 900;
}

.sidebar nav a.active .side-nav-badge,
.sidebar nav a:hover .side-nav-badge {
    background: rgba(255,255,255,.92);
    color: #633615;
}

/* Account section at bottom of sidebar */
.sidebar .side-user {
    margin-top: auto;
    padding: 16px 9px 0;
    border-top: 1px solid rgba(255,255,255,.16);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar .side-user > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar .side-user strong {
    overflow: hidden;
    color: #FFFFFF;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar .side-user small {
    margin-top: 2px;
    font-size: 10px;
}

.sidebar .side-user > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
}

/* Current shared shell */
.shell {
    width: 100%;
    min-height: 100vh;
}

.shell > .sidebar {
    width: var(--sidebar-width);
}

.shell > .main {
    width: calc(100% - var(--sidebar-width));
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

/* Current topbar structure */
.shell > .main > .topbar {
    min-height: 72px;
    height: auto;
    padding: 10px 22px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.topbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.topbar-title {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar-title strong {
    overflow: hidden;
    color: #633615;
    font-size: 17px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.topbar-title small {
    margin-top: 2px;
    overflow: hidden;
    color: #9A7A64;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Header profile images */
.toolbar-avatar,
.toolbar-dropdown-avatar {
    overflow: hidden;
}

.toolbar-avatar img,
.toolbar-dropdown-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Main content */
.shell > .main > .content {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px;
}

/* Profile page */
.profile-layout {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
    gap: 18px;
}

.profile-main-panel,
.profile-side-column,
.profile-side-column .panel {
    min-width: 0;
}

.profile-form-grid,
.profile-account-meta {
    min-width: 0;
}

.profile-form-grid input,
.profile-form-grid select,
.profile-form-grid textarea,
.profile-password-form input {
    max-width: 100%;
}

/* Tablet */
@media (max-width: 1050px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 760px) {
    :root {
        --sidebar-width: 0px;
    }

    .shell > .sidebar {
        width: 260px;
        transform: translateX(-100%);
        transition: transform .22s ease;
        z-index: 3000;
    }

    .shell > .sidebar.open,
    body.sidebar-open .shell > .sidebar {
        transform: translateX(0);
    }

    .shell > .main {
        width: 100%;
        margin-left: 0;
    }

    .shell > .main > .topbar {
        min-height: 62px;
        padding: 8px 12px;
    }

    .topbar-left {
        flex: 1;
        min-width: 0;
    }

    .topbar-title strong {
        font-size: 15px;
    }

    .topbar-title small {
        display: none;
    }

    .shell > .main > .content {
        max-width: none;
        padding: 16px 14px 30px;
    }

    .profile-layout {
        display: block;
    }

    .profile-side-column {
        margin-top: 16px;
    }

    .profile-form-grid,
    .profile-account-meta {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MARLITABLE SUPER ADMIN — PHASE 1
   Dashboard + tenant management
   ========================================================= */
.owner-nav{overflow-y:auto;padding-bottom:12px}
.owner-nav-label{display:block;padding:14px 12px 5px;color:#C9A991;font-size:9px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.owner-sidebar nav a small{margin-left:auto;color:#D8BFAE;font-size:9px;font-weight:800}
.owner-sidebar nav a.active small,.owner-sidebar nav a:hover small{color:#fff}
.owner-nav-disabled{opacity:.88}
.owner-hero-dashboard{gap:24px}
.owner-hero-actions{display:flex;gap:9px;flex-wrap:wrap}
.owner-outline-light{border:1px solid rgba(255,255,255,.38);background:transparent;color:#fff}
.owner-outline-light:hover{background:rgba(255,255,255,.10)}
.owner-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:18px 0}
.owner-kpi{min-width:0;display:flex;align-items:center;gap:14px;padding:18px;background:#fff;border:1px solid #EADFD4;border-radius:16px;box-shadow:0 5px 18px rgba(99,54,21,.04)}
.owner-kpi:hover{border-color:#D8B89E;transform:translateY(-1px)}
.owner-kpi-icon{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:13px;background:#F5E9DE;color:#8A4F21}
.owner-kpi-icon .mi,.owner-kpi-icon svg{width:22px;height:22px}
.owner-kpi div{min-width:0}.owner-kpi small,.owner-kpi span{display:block;color:#8B7564}.owner-kpi small{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.owner-kpi strong{display:block;margin:3px 0;color:#633615;font-size:28px}.owner-kpi span{font-size:10px}
.owner-secondary-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}
.owner-secondary-stats article{display:flex;align-items:center;gap:10px;padding:12px 15px;background:#FFF9F4;border:1px solid #EAD9CA;border-radius:13px}
.owner-secondary-stats article>span{color:#C98345}.owner-secondary-stats b,.owner-secondary-stats small{display:block}.owner-secondary-stats b{color:#633615;font-size:17px}.owner-secondary-stats small{margin-top:1px;color:#92745F;font-size:10px}
.owner-dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px;align-items:start}
.owner-dashboard-side{display:grid;gap:16px}.owner-side-title{margin:4px 0 14px;color:#633615}
.owner-health-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #F0E2D7;font-size:12px}.owner-health-row b{color:#633615}.owner-mt{margin-top:14px}
.owner-quick-panel>a{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid #F0E2D7;color:#633615}.owner-quick-panel>a:last-child{border-bottom:0}.owner-quick-panel>a>.mi{color:#C98345}.owner-quick-panel>a span{display:flex;flex-direction:column}.owner-quick-panel>a small{margin-top:2px;color:#92745F;font-size:10px}
.owner-business-list{display:flex;flex-direction:column}
.owner-business-row{display:grid;grid-template-columns:42px minmax(170px,1fr) auto 58px 58px 20px;gap:12px;align-items:center;padding:13px 20px;border-bottom:1px solid #F0E8E1}
.owner-business-row:last-child{border-bottom:0}.owner-business-row:hover{background:#FFFAF6}
.owner-business-avatar,.owner-hotel-name>span{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#F5E9DE;color:#8A4F21;font-weight:900}
.owner-business-main{min-width:0}.owner-business-main b,.owner-business-main small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.owner-business-main b{color:#633615;font-size:13px}.owner-business-main small{margin-top:3px;color:#92745F;font-size:10px}
.owner-business-metric{text-align:center}.owner-business-metric b,.owner-business-metric small{display:block}.owner-business-metric b{color:#633615}.owner-business-metric small{color:#92745F;font-size:9px}
.owner-business-row>.mi{color:#C98345}
.owner-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:4px 0 18px}.owner-page-heading h1{margin:4px 0;color:#633615;font-size:30px}.owner-page-heading p{margin:0;color:#8A6E59;font-size:12px}
.owner-filter-tabs{display:flex;gap:7px;overflow-x:auto;margin-bottom:13px;padding-bottom:2px}.owner-filter-tabs a{white-space:nowrap;padding:9px 12px;border:1px solid #E2C5AD;border-radius:10px;background:#fff;color:#633615;font-size:11px;font-weight:800}.owner-filter-tabs a b{margin-left:5px;color:#C98345}.owner-filter-tabs a.active{background:#8A4F21;border-color:#8A4F21;color:#fff}.owner-filter-tabs a.active b{color:#fff}
.owner-hotel-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;border-bottom:1px solid var(--line)}
.owner-search-form{display:flex;align-items:center;gap:8px;flex:1}.owner-search-box{width:min(520px,100%);position:relative}.owner-search-box>.mi{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#9A7A64}.owner-search-box input{margin:0;padding-left:40px}
.owner-hotels-table{min-width:1120px}.owner-hotel-name{display:flex;align-items:center;gap:10px;min-width:220px}.owner-hotel-name>div{min-width:0}.owner-hotel-name b,.owner-hotel-name small,.owner-cell-small{display:block}.owner-hotel-name b{color:#633615}.owner-hotel-name small,.owner-cell-small{margin-top:3px;color:#92745F;font-size:10px}
.owner-usage{display:flex;flex-direction:column;gap:3px;white-space:nowrap;font-size:10px;color:#8A6E59}.owner-usage b{color:#633615}
.owner-status-form{min-width:205px}
@media(max-width:1150px){.owner-kpi-grid{grid-template-columns:repeat(2,1fr)}.owner-dashboard-grid{grid-template-columns:1fr}.owner-dashboard-side{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.owner-secondary-stats{grid-template-columns:1fr 1fr}.owner-business-row{grid-template-columns:42px minmax(0,1fr) auto 20px}.owner-business-metric{display:none}.owner-dashboard-side{grid-template-columns:1fr}}
@media(max-width:700px){.owner-kpi-grid{grid-template-columns:1fr 1fr;gap:8px}.owner-kpi{padding:13px;gap:9px}.owner-kpi-icon{width:36px;height:36px;flex-basis:36px}.owner-kpi strong{font-size:21px}.owner-kpi span{display:none}.owner-secondary-stats{grid-template-columns:1fr 1fr}.owner-page-heading{align-items:flex-start;flex-direction:column}.owner-page-heading h1{font-size:25px}.owner-hotel-toolbar{align-items:stretch;flex-direction:column}.owner-search-form{align-items:stretch;flex-wrap:wrap}.owner-search-box{width:100%}.owner-search-form .btn{flex:1}.owner-business-row{padding:12px;grid-template-columns:36px minmax(0,1fr) auto}.owner-business-row>.mi{display:none}.owner-business-avatar{width:34px;height:34px}.owner-business-row .subscription{font-size:8px}.owner-hero-actions{width:100%}.owner-hero-actions .btn{flex:1}.owner-nav-label{padding-top:11px}}

/* Tables & QR manager */
.table-manager{margin-bottom:18px}.table-manager-head{align-items:flex-start}.table-manager-intro{max-width:720px;margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.table-create-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px;border-top:1px solid var(--line)}.table-create-card{border:1px solid var(--line);border-radius:16px;padding:18px;background:#fff}.table-create-card h4{font-size:18px;margin:4px 0}.table-create-card p{font-size:11px;color:var(--muted);margin:0 0 15px}.table-create-card label{font-size:11px;font-weight:800}.table-create-card input{margin-top:6px}.table-create-card>.btn{margin-top:12px;width:100%}.bulk-fields{display:grid;grid-template-columns:1.5fr .7fr .7fr;gap:9px}.managed-qr-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.marlitable-qr-card .qr-frame{position:relative}.marlitable-qr-card .qr-frame>.table-qr{width:180px;height:180px}.marlitable-qr-card .qr-center-logo{position:absolute;width:36px;height:36px;object-fit:contain;background:#fff;padding:3px;border-radius:7px;left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:0 1px 6px rgba(0,0,0,.12)}.qr-actions-wrap{flex-wrap:wrap}.table-edit-details{margin-top:13px;border-top:1px solid var(--line);padding-top:10px;text-align:left}.table-edit-details summary{cursor:pointer;font-size:11px;font-weight:900;color:#765038;text-align:center}.table-rename-form{display:flex;gap:6px;margin-top:10px}.table-rename-form input{margin:0;min-width:0}.table-delete-btn{width:100%;margin-top:7px;border:0;background:transparent;color:#b43a31;font-size:10px;font-weight:800;cursor:pointer;padding:7px}.table-delete-btn:hover{text-decoration:underline}
@media(max-width:1000px){.managed-qr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.table-create-grid{grid-template-columns:1fr}}
@media(max-width:700px){.managed-qr-grid{grid-template-columns:1fr}.table-create-grid{padding:14px}.bulk-fields{grid-template-columns:1fr 1fr}.bulk-fields label:first-child{grid-column:1/-1}.marlitable-qr-card .qr-frame>.table-qr{width:200px;height:200px}.table-rename-form{flex-direction:column}}

/* =========================================================
   MARLITABLE PRODUCTION UI REFINEMENT — 2026-10
   Unified spacing, forms, cards and semantic colours.
   ========================================================= */
:root{
 --brand:#8A4F21;--brand-dark:#633615;--accent:#C98345;
 --ink:#2D211A;--muted:#806F63;--line:#E8DED5;--bg:#F8F5F1;--white:#fff;
 --success:#2F7D5B;--success-bg:#EAF5EF;--warning:#A86417;--warning-bg:#FFF3DF;
 --danger:#B84B43;--danger-bg:#FCECEB;--info:#416C8C;--info-bg:#EDF4F8;
 --shadow:0 10px 30px rgba(67,43,27,.06);--shadow-hover:0 16px 38px rgba(67,43,27,.10);
 --radius:16px;
}
html{font-size:16px} body{color:var(--ink);background:var(--bg);line-height:1.45}
.content{padding:28px 30px 40px}.panel{border-color:var(--line);border-radius:18px;box-shadow:var(--shadow);background:#fff}
.panel-head{padding:20px 22px;min-height:78px}.panel-head h3{font-size:18px;color:var(--ink)}
.eyebrow{color:var(--brand);font-size:10px;letter-spacing:.17em}.muted{color:var(--muted)}

/* Forms: compact, aligned and consistent */
label{font-size:12px;font-weight:750;color:#59483C;margin:0;line-height:1.35}
input:not([type="checkbox"]):not([type="radio"]),select,textarea{
 appearance:none;width:100%;height:44px;margin-top:7px;padding:10px 12px;border:1px solid #D9CEC4;
 border-radius:10px;background:#fff;color:var(--ink);font-size:14px;line-height:1.2;outline:none;
 transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
textarea{height:auto;min-height:104px;resize:vertical;line-height:1.45}
select{padding-right:34px;background-image:linear-gradient(45deg,transparent 50%,#8A6E59 50%),linear-gradient(135deg,#8A6E59 50%,transparent 50%);background-position:calc(100% - 16px) 18px,calc(100% - 11px) 18px;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
input::placeholder,textarea::placeholder{color:#A59488}
input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(201,131,69,.14);background:#FFFEFD}
input:disabled,select:disabled,textarea:disabled{background:#F3EFEB;color:#9B8D83;cursor:not-allowed}

.form-grid{gap:16px}.form-grid h3{color:var(--brand-dark)}
.btn{min-height:40px;border-radius:10px;padding:10px 15px;font-size:13px;font-weight:800;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}
.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--brand)}.btn.primary:hover{background:var(--brand-dark);box-shadow:0 7px 18px rgba(99,54,21,.16)}
.btn.warning{background:var(--accent);color:#fff}.btn.ghost{background:#F6EEE7;color:var(--brand-dark);border:1px solid #E8D8CA}.btn.light{border:1px solid var(--line)}
.btn.small{min-height:34px;padding:7px 11px;font-size:11px}
.alert{border:1px solid transparent;font-size:13px}.alert.success{background:var(--success-bg);color:var(--success);border-color:#CDE7D8}.alert.danger{background:var(--danger-bg);color:var(--danger);border-color:#F1D1CE}

/* Top navigation */
.topbar{height:82px;background:#FFFCF9;border-color:var(--line);padding:0 28px}.topbar h2{color:var(--brand-dark);font-weight:800}
.sidebar{background:#633617!important}.sidebar nav a{min-height:46px;border-radius:10px;color:#F7EDE6;font-size:14px}.sidebar nav a.active,.sidebar nav a:hover{background:#C98345!important}

/* Tables and operational cards */
th{background:#FBF8F5;color:#89786C;font-weight:800}th,td{border-color:#EEE5DE}.stats article,.qr-card,.order-card,.kds-ticket{border-color:var(--line);box-shadow:0 4px 14px rgba(67,43,27,.035)}
.status{padding:5px 9px;font-weight:850}.status.pending{background:var(--warning-bg);color:var(--warning)}.status.accepted{background:var(--info-bg);color:var(--info)}.status.preparing{background:#FFF0E5;color:#A95A20}.status.ready,.status.served{background:var(--success-bg);color:var(--success)}.status.cancelled{background:var(--danger-bg);color:var(--danger)}
.pill,.staff-pill{background:#F6EEE7;color:var(--brand-dark)}

/* Staff page production layout */
.staff-layout{grid-template-columns:minmax(330px,390px) minmax(0,1fr)!important;gap:20px!important}
.staff-form{padding:20px 22px 24px!important;gap:16px!important}.staff-form .two{gap:12px!important}
.staff-form .btn.full{margin-top:2px;min-height:46px}
.staff-list{padding:14px!important;gap:10px!important}
.staff-card{padding:15px!important;border-color:var(--line)!important;border-radius:14px!important;box-shadow:none;transition:box-shadow .15s ease,border-color .15s ease}
.staff-card:hover{border-color:#DCC8B7!important;box-shadow:0 8px 20px rgba(67,43,27,.05)}
.staff-avatar{width:44px!important;height:44px!important;background:#F4E7DC!important;color:var(--brand)!important}
.staff-copy b{color:var(--ink)!important;font-size:14px}.staff-copy small{color:var(--muted)!important;font-size:11px}
.staff-meta{gap:5px!important;margin-top:6px!important}.staff-pill{padding:4px 7px!important;font-size:9px!important;letter-spacing:.02em}
.staff-pill.inactive{background:var(--danger-bg)!important;color:var(--danger)!important}
.staff-actions{gap:8px!important}.reset-box{gap:7px!important}.reset-box input{width:118px!important;height:34px!important;min-height:34px!important;margin:0!important;padding:6px 9px!important;font-size:12px!important}
.staff-actions .btn{margin:0}.staff-actions .btn.warning{background:#F3E2D3;color:#8A4F21;border:1px solid #E6C9B1}.staff-actions .btn.warning:hover{background:#EED5C1}

/* QR management */
.qr-grid{gap:18px;padding:20px}.qr-card{padding:20px;border-radius:16px}.qr-frame{border-color:#E8D9CC}.qr-actions{flex-wrap:wrap;gap:7px}

/* Better desktop density */
@media(min-width:1200px){.content{max-width:1500px}.panel-head{padding-left:22px;padding-right:22px}}
@media(max-width:900px){.staff-layout{grid-template-columns:1fr!important}}
@media(max-width:700px){
 .content{padding:14px 12px 28px}.panel{border-radius:14px}.panel-head{padding:16px;min-height:auto}
 input:not([type="checkbox"]):not([type="radio"]),select,textarea{font-size:16px} /* prevents iOS zoom */
 .staff-form{padding:16px!important}.staff-list{padding:10px!important}.staff-card{grid-template-columns:auto minmax(0,1fr)!important}
 .staff-actions{grid-column:1/-1!important;justify-content:stretch!important}.reset-box{display:grid!important;grid-template-columns:1fr 1fr auto!important;width:100%}.reset-box input{width:100%!important}
}

/* =========================================================
   MARLITABLE UI SYSTEM v3 — balanced production palette
   Applied globally across hotel/admin/operational screens.
   ========================================================= */
:root{
 --brand:#F47A00;--brand-dark:#D96500;--brand-soft:#FFF1E5;
 --nav:#171A1D;--nav-2:#24282C;--ink:#202428;--muted:#72777D;
 --line:#E6E8EA;--bg:#F5F6F7;--surface:#FFFFFF;
 --success:#65B32E;--success-dark:#397B18;--success-bg:#EEF8E8;
 --warning:#F0A126;--warning-bg:#FFF5E4;--danger:#C94B45;--danger-bg:#FDEDEC;
 --info:#377D9F;--info-bg:#EDF6FA;--shadow:0 8px 24px rgba(20,24,28,.055);
}
body{background:var(--bg);color:var(--ink)}
.sidebar{background:var(--nav)!important;border-right:0!important}.sidebar nav a{color:#E8EAEC!important}.sidebar nav a.active,.sidebar nav a:hover{background:var(--brand)!important;color:#fff!important}.sidebar-foot{border-color:#34383C!important;color:#fff}.sidebar-foot small{color:#AEB3B7!important}.sidebar .brandmark{background:var(--brand)!important}.topbar{background:#fff;border-color:var(--line)}.topbar h2{color:var(--ink)}
.panel,.stats article,.qr-card,.order-card,.kds-ticket{border-color:var(--line);box-shadow:var(--shadow)}
.eyebrow{color:var(--brand)}.preview-link,.panel-head a{color:var(--brand)}

/* Never let controls touch their card/div borders. */
.panel.compact{padding:22px!important}.panel>form:not(.no-panel-pad){padding:20px 22px 24px}.panel>.form-grid{padding:20px 22px 24px}.panel-head+form,.panel-head+.form-grid{padding-top:20px}
.form-grid{column-gap:16px;row-gap:18px}.form-grid label,.staff-form label,.table-create-card label{display:block;margin:0;min-width:0}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea{height:44px;margin-top:7px;padding:10px 13px;border:1px solid #D9DDE0;border-radius:10px;background:#fff;color:var(--ink);box-shadow:none}
textarea{height:auto;min-height:104px}input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(244,122,0,.12)}

/* Semantic buttons: orange = primary action, black = neutral/navigation, green = successful completion. */
.btn.primary{background:var(--brand)!important;color:#fff!important}.btn.primary:hover{background:var(--brand-dark)!important}.btn.warning{background:var(--warning)!important;color:#fff!important}.btn.success,.btn.complete{background:var(--success)!important;color:#fff!important}.btn.dark{background:var(--nav)!important;color:#fff!important}.btn.ghost{background:#F1F2F3!important;color:#34383C!important;border:1px solid #E0E3E5}.btn.light{background:#fff!important;color:#34383C!important;border:1px solid #DDE0E2}
.status.pending{background:var(--warning-bg);color:#9A6100}.status.accepted{background:var(--info-bg);color:var(--info)}.status.preparing{background:var(--brand-soft);color:#B85800}.status.ready,.status.served,.status.completed,.status.done{background:var(--success-bg);color:var(--success-dark)}.status.cancelled{background:var(--danger-bg);color:var(--danger)}
.live-dot{background:var(--success);box-shadow:0 0 0 5px rgba(101,179,46,.13)}

/* Operational/request cards */
.request-list{padding:14px!important}.request-list article{margin-bottom:10px;border:1px solid var(--line)!important;border-radius:14px!important;padding:15px 16px!important;background:#fff}.request-list article:last-child{margin-bottom:0}.request-icon,.food-icon{background:#FFF3E8;color:var(--brand-dark)}
.request-list article .btn:not(.success):not(.complete){background:var(--brand);color:#fff}.request-list article .btn.complete,.request-list article [name="complete"],.request-list article button[value="done"]{background:var(--success)!important;color:#fff!important}
.kds-ticket header{background:var(--nav)}.kds-ticket .btn.warning{background:var(--brand)!important}.kds-ticket .btn.primary{background:var(--success)!important}
.order-card.pending{border-top-color:var(--brand)}.order-card.ready{border-top-color:var(--success)}

/* Staff and management */
.staff-form{padding:22px!important}.staff-list{padding:16px!important}.staff-card{background:#fff!important}.staff-avatar{background:var(--brand-soft)!important;color:var(--brand-dark)!important}.staff-pill{background:#F1F2F3!important;color:#4E5459!important}.staff-pill.inactive{background:var(--danger-bg)!important;color:var(--danger)!important}
.table-create-grid{padding:22px!important;gap:18px}.table-create-card{border-color:var(--line);padding:20px}.table-create-card>.btn{background:var(--brand)!important}.qr-grid{padding:22px!important}

/* Dashboard accents */
.stats article strong{color:var(--ink)}.stats article:nth-child(1){border-top:3px solid var(--brand)}.stats article:nth-child(2){border-top:3px solid var(--nav)}.stats article:nth-child(3){border-top:3px solid var(--success)}.stats article:nth-child(4){border-top:3px solid var(--warning)}

/* Guest app keeps the same brand but gains balanced status colours. */
.guest-hero{background:#8A4F21!important}.guest-brand .brandmark{color:#8A4F21!important}.item-info strong{color:var(--brand-dark)}.qty button{color:var(--brand)}.cart-bar{background:var(--nav)}.cart-bar button{background:var(--brand)}.timeline-step.done>span{background:var(--success);border-color:var(--success)}.timeline-step.done:not(:last-child)>span:after{background:var(--success)}.success-check{background:var(--success-bg);color:var(--success)}

@media(max-width:700px){.panel>form:not(.no-panel-pad),.panel>.form-grid{padding:16px}.panel.compact{padding:16px!important}.table-create-grid,.qr-grid{padding:14px!important}}

/* =========================================================
   MARLITABLE HEADER COLOUR REFINEMENT — 2026-10-02
   Keep original coffee-brown sidebar; use black application header.
   ========================================================= */
.sidebar{background:#633617!important;border-right:0!important}
.sidebar nav a{color:#F7EDE6!important}
.sidebar nav a.active,.sidebar nav a:hover{background:#C98345!important;color:#fff!important}
.sidebar-foot{border-color:rgba(255,255,255,.16)!important;color:#fff!important}
.sidebar-foot small{color:#D8BFAE!important}
.sidebar .brandmark{background:#fff!important;color:#633617!important}

.topbar{background:#171A1D!important;border-bottom-color:#2D3237!important;color:#fff!important}
.topbar .topbar-title strong{color:#fff!important}
.topbar .topbar-title small{color:#BFC4C8!important}
.topbar .menu-toggle{background:#2A2E32!important;color:#fff!important}

/* =========================================================
   MARLITABLE SPACING POLISH — 2026-10-02
   Keep nested bordered elements visually separated from parent borders.
   ========================================================= */
.panel > .table-detail-summary{
    margin:18px 20px 22px!important;
    gap:14px!important;
}
.panel > .table-activity-section{
    margin:24px 20px 26px!important;
}
.catalog-search-wrap{
    margin:0!important;
    padding:18px 20px 12px!important;
}
.menu-category-filters{
    padding-left:20px!important;
    padding-right:20px!important;
    padding-bottom:16px!important;
    gap:10px!important;
}
.reception-summary{
    margin:0 20px 20px!important;
    padding-top:18px!important;
    gap:14px!important;
}
.panel > .request-list{
    padding:16px 18px 18px!important;
}
.panel > .activity-card-grid{
    padding:0 20px 20px!important;
}
.panel > .stats{
    margin-left:20px!important;
    margin-right:20px!important;
}
.table-detail-summary > div,.reception-stat,.activity-card,.menu-category-filter{
    background-clip:padding-box;
}
@media(max-width:700px){
    .panel > .table-detail-summary{margin:14px!important;gap:10px!important}
    .panel > .table-activity-section{margin:20px 14px 22px!important}
    .catalog-search-wrap{padding:14px 14px 10px!important}
    .menu-category-filters{padding-left:14px!important;padding-right:14px!important}
    .reception-summary{margin:0 14px 16px!important;padding-top:14px!important}
}

/* =========================================================
   PAGE EDGE SPACING FIX — Service Requests + Live Orders
   Keeps bordered child controls/cards away from parent borders.
   ========================================================= */
/* Service Requests */
.panel > .dispatch-filter{
    margin:0!important;
    padding:16px 20px 0!important;
}
.panel > .dispatch-filter select{
    margin-top:7px!important;
}
.panel > .call-sound-bar{
    margin:16px 20px 0!important;
}
.panel > .dispatch-grid{
    margin:18px 20px 22px!important;
    gap:12px!important;
}

/* Live Orders */
.live-panel > .reception-summary{
    margin:0 20px 20px!important;
    padding-top:18px!important;
}
.live-panel > .table-order-grid{
    padding:0 20px 22px!important;
    gap:16px!important;
}
.live-panel > .table-order-grid > .table-order-card,
.live-panel > .table-order-grid > .empty-card{
    min-width:0;
}

@media(max-width:700px){
    .panel > .dispatch-filter{padding:14px 14px 0!important}
    .panel > .call-sound-bar{margin:14px 14px 0!important}
    .panel > .dispatch-grid{margin:14px 14px 18px!important;gap:10px!important}
    .live-panel > .reception-summary{margin:0 14px 16px!important;padding-top:14px!important}
    .live-panel > .table-order-grid{padding:0 14px 18px!important;gap:12px!important}
}

/* === Location-aware guest service model === */
.location-type-chip{display:inline-flex;align-items:center;gap:6px;margin:0 0 10px;padding:6px 10px;border-radius:999px;background:#171b1d;color:#fff;font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.table-create-card select{width:100%;min-height:44px;margin-top:6px;border:1px solid #e1c6b0;border-radius:11px;background:#fff;padding:0 12px;color:#2b211b}
.room-service-welcome{margin:0 0 18px;padding:20px;border:1px solid #e4c8b1;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#fbf5ef 100%);box-shadow:0 8px 24px rgba(64,38,20,.06)}
.room-service-welcome h2{margin:5px 0 6px;color:#241b16;font-size:22px}.room-service-welcome p{margin:0;color:#715d50;line-height:1.55}
.room-service-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.room-service-tags span{padding:7px 10px;border-radius:999px;background:#171b1d;color:#fff;font-size:11px;font-weight:750}.room-service-tags span:nth-child(2),.room-service-tags span:nth-child(4){background:#ef7d00}.room-service-tags span:nth-child(3){background:#2e8b62}
@media(max-width:640px){.room-service-welcome{padding:16px}.room-service-welcome h2{font-size:19px}}

/* Item-level QR location visibility */
.item-location-fieldset{border:1px solid #ead7c7;border-radius:14px;padding:14px 15px;margin:4px 0 14px;background:#fffaf6;min-width:0}
.item-location-fieldset legend{font-weight:800;color:#2b211b;padding:0 6px}
.item-location-help{font-size:12px;color:#75675e;margin:0 0 10px;line-height:1.45}
.item-location-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.item-location-grid label{display:flex;align-items:center;gap:8px;border:1px solid #eadfd6;background:#fff;border-radius:10px;padding:9px 10px;margin:0;cursor:pointer;font-size:12px;font-weight:700}
.item-location-grid input{width:16px;height:16px;accent-color:#f57c00;flex:0 0 auto}
@media(max-width:640px){.item-location-grid{grid-template-columns:1fr}}

/* Item-level QR location visibility */
.item-location-fieldset{border:1px solid #ead7c7;border-radius:14px;padding:14px 15px;margin:4px 0 14px;background:#fffaf6;min-width:0}
.item-location-fieldset legend{font-weight:800;color:#2b211b;padding:0 6px}
.item-location-help{font-size:12px;color:#75675e;margin:0 0 10px;line-height:1.45}
.item-location-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.item-location-grid label{display:flex;align-items:center;gap:8px;border:1px solid #eadfd6;background:#fff;border-radius:10px;padding:9px 10px;margin:0;cursor:pointer;font-size:12px;font-weight:700}
.item-location-grid input{width:16px;height:16px;accent-color:#f57c00;flex:0 0 auto}
@media(max-width:640px){.item-location-grid{grid-template-columns:1fr}}
/* Marlitable responsive hardening 2026-10-09: loaded after legacy styles. */
html{max-width:100%;overflow-x:clip;-webkit-text-size-adjust:100%}
body{max-width:100%;overflow-x:clip}
img,video,svg,canvas{max-width:100%}
.app-shell,.owner-shell,.owner-main,.content,.owner-content,.oa-main,.panel,.guest-content{min-width:0;box-sizing:border-box}
.panel,.table-wrap,.oa-table-wrap{max-width:100%}
.table-wrap,.oa-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.content>*,.owner-content>*,.oa-main>*,.page-grid>*,.stats>*,.owner-dashboard-grid>*{min-width:0}
@media(max-width:700px){
 .app-shell,.owner-shell,.owner-main{margin-left:0!important;width:100%!important;max-width:100%!important;left:auto!important;transform:none!important}
 .content,.owner-content,.oa-main{padding:clamp(12px,3.5vw,20px)!important;width:100%!important;max-width:100%!important}
 .sidebar,.owner-sidebar{max-width:min(290px,86vw)}
 .page-grid,.owner-dashboard-grid,.oa-grid{grid-template-columns:minmax(0,1fr)!important}
 .stats,.owner-stats,.owner-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .form-grid,.table-create-grid{grid-template-columns:minmax(0,1fr)!important}
 .panel-head{flex-wrap:wrap;gap:10px}
 .btn,button{max-width:100%}
 input:not([type=checkbox]):not([type=radio]),select,textarea{max-width:100%;min-width:0}
 .qr-grid,.kds-grid,.order-cards{grid-template-columns:minmax(0,1fr)!important}
 .status-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:360px){.stats,.owner-stats,.owner-kpi-grid,.owner-secondary-stats{grid-template-columns:minmax(0,1fr)!important}.topbar h2,.owner-top h2{font-size:clamp(14px,4.5vw,19px)}}
/* Guest catalogue: card content never competes horizontally with quantity input. */
.guest-body .guest-content{width:100%;max-width:680px;min-width:0}
.guest-body .guest-items{min-width:0}
.guest-body .guest-item{display:grid!important;grid-template-columns:clamp(70px,22vw,94px) minmax(0,1fr)!important;align-items:start!important;gap:10px 12px!important;width:100%;min-width:0;max-width:100%;padding:12px!important}
.guest-body .guest-item .food-visual{grid-column:1;grid-row:1;width:100%!important;height:auto!important;aspect-ratio:1/1;flex-basis:auto!important;min-width:0}
.guest-body .guest-item .item-info{grid-column:2;grid-row:1;min-width:0!important;width:100%;overflow-wrap:anywhere}
.guest-body .guest-item .item-info h4{font-size:clamp(14px,3.7vw,17px);line-height:1.3;overflow-wrap:break-word}
.guest-body .guest-item .item-info p{font-size:12px!important;line-height:1.45;overflow-wrap:break-word}
.guest-body .guest-item .item-info strong{display:block;margin-top:7px;font-size:13px;line-height:1.4}
.guest-body .guest-item .qty{grid-column:1/-1;grid-row:2;display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;gap:8px!important;align-items:center;width:100%!important;max-width:100%;min-width:0;padding:5px!important;border-radius:12px}
.guest-body .guest-item .qty button{width:44px!important;height:42px!important;min-width:0;display:grid;place-items:center;font-size:20px}
.guest-body .guest-item .qty input{width:100%!important;min-width:0!important;max-width:100%!important;height:42px!important;min-height:0!important;padding:0 5px!important;margin:0!important;border:1px solid #e3ded8!important;border-radius:9px!important;background:#fff!important;text-align:center!important;font-size:16px!important;box-shadow:none!important}
.guest-body .cart-bar{bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;width:calc(100% - 24px)!important;max-width:650px;padding:11px 12px!important;gap:10px}
.guest-body .cart-bar>div{min-width:0}
.guest-body .cart-bar button{flex:0 1 auto;min-height:44px;white-space:normal;text-align:center}
.guest-body .guest-spacer{height:calc(115px + env(safe-area-inset-bottom,0px))}
.guest-body .service-strip{grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
.guest-body .service-strip button{min-width:0;overflow-wrap:break-word;line-height:1.3}
.guest-body .section-title{gap:10px;min-width:0}
.guest-body .section-title h2{font-size:clamp(21px,5.4vw,29px);overflow-wrap:break-word}
@media(max-width:380px){.guest-body .guest-item{grid-template-columns:72px minmax(0,1fr)!important;gap:9px!important;padding:10px!important}.guest-body .guest-item .qty{grid-template-columns:40px minmax(0,1fr) 40px!important}.guest-body .guest-item .qty button{width:40px!important}.guest-body .cart-bar button{font-size:13px;padding:10px!important}}


/* Hotel dashboard: official Marli Table sidebar logo and readable account identity */
.sidebar .navbrand .brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 3px;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar .navbrand .hotel-brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}
.topbar .toolbar-account .toolbar-user-info strong {
    color: #fff !important;
    max-width: 170px;
    font-weight: 800;
}
.topbar .toolbar-account .toolbar-user-info small {
    color: #d5d9dd !important;
}
@media (max-width: 760px) {
    .topbar .toolbar-account .toolbar-user-info {
        display: block !important;
        min-width: 0;
    }
    .topbar .toolbar-account .toolbar-user-info strong {
        max-width: 100px;
        font-size: 11px;
    }
    .topbar .toolbar-account .toolbar-user-info small {
        font-size: 9px;
    }
}
@media (max-width: 390px) {
    .topbar .toolbar-account .toolbar-user-info strong { max-width: 72px; }
}
