:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#15345d;background:#ecf3ff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(at 90% 0,#c7dcff,transparent 60%),linear-gradient(135deg,#f7faff,#e7efff)}header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:24px 4vw;background:linear-gradient(110deg,#17396c,#245ed3);color:white}h1{margin:8px 0;font-size:30px;letter-spacing:-.7px}h2{font-size:21px;margin:0 0 20px}h3{font-size:16px;margin:0 0 18px}p{color:#617695;line-height:1.6}header a{color:white}.eyebrow{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:2px}nav,.toolbar,.section-title{display:flex;gap:12px;align-items:center;justify-content:space-between}nav form{margin:0}main{max-width:1700px;margin:auto;padding:24px 4vw}main>section{margin:28px 0}.panel,.ticket,.request,.login-panel{border:1px solid #fff;border-radius:20px;background:#ffffffbd;box-shadow:0 12px 30px #2447800b;backdrop-filter:blur(14px);padding:24px}.panel{margin:24px 0}.panel summary{cursor:pointer;font-weight:700;padding:4px}.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:28px}.settings-grid form+form{border-left:1px solid #dbe5f6;padding-left:24px}label{display:block;font-size:13px;font-weight:600;margin:14px 0}input,select,textarea{display:block;width:100%;min-height:44px;border:1px solid #cbdaf1;border-radius:10px;padding:11px;font:inherit;color:inherit;background:white;margin-top:8px}input:focus,select:focus{outline:2px solid #91b4ff}input:invalid:not(:placeholder-shown){border-color:#db8590}.check{display:flex;gap:10px;align-items:center}.check input{width:18px;min-height:18px;margin:0}button{background:#2457cb;color:white;border:1px solid transparent;border-radius:11px;min-height:44px;padding:10px 17px;font:inherit;font-size:14px;font-weight:600;cursor:pointer}button:disabled{opacity:.5;cursor:wait}.secondary{background:#f0f5ff;color:#204e9c;border-color:#d4e0f5}.danger{background:#fff0f0;color:#a22938}.success{background:#188454}button+button{margin-left:6px}.board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.board>section{background:#dbe7f666;padding:16px;border-radius:22px;min-height:200px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}.lane{display:grid;gap:16px}.ticket{padding:20px}.ticket.ready{border-top:4px solid #19986c}.ticket.preparing{border-top:4px solid #ecac43}.ticket.accepted{border-top:4px solid #3877ed}.ticket strong{font-size:19px}.ticket small{display:block;margin:8px 0;color:#627897}.ticket ul,.request ul{padding-left:20px;line-height:1.9}.ticket footer{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.ticket footer button{margin:0}.empty{font-size:14px;color:#6c80a0;padding:20px 0}.notice,#notice{padding:15px 20px;border-radius:12px;background:#e1f6e8;margin:16px 0}.error,#notice.error{background:#fff0f0;color:#ad2639}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:13px;border-bottom:1px solid #dce6f6}dialog{border:1px solid #d4e0f5;border-radius:20px;max-width:550px;padding:28px}dialog::backdrop{background:#0d234e99;backdrop-filter:blur(4px)}dialog textarea{height:110px;overflow-wrap:anywhere}.login{display:grid;place-items:center;background:linear-gradient(130deg,#15345d,#2762c9)}.login-panel{width:min(440px,92vw);margin:40px auto}.login-panel form button{width:100%}@media(max-width:900px){.settings-grid,.board{grid-template-columns:1fr}.settings-grid form+form{border-left:0;border-top:1px solid #dbe5f6;padding:24px 0 0}header{align-items:flex-start}nav{flex-wrap:wrap}h1{font-size:24px}main{padding:18px}header{padding:20px}table{min-width:560px}}

[hidden]{display:none!important}.settings-grid{display:block;margin-top:24px}.settings-grid form{max-width:760px}.settings-grid form+form{border:0;padding:0}.setup-tabs{justify-content:flex-start;flex-wrap:wrap;border-bottom:1px solid #d6e2f5;padding-bottom:16px}.form-result{padding:12px 16px;border-radius:10px;background:#e1f6e8;margin-top:14px}.form-result.error{background:#fff0f0;color:#a22938}.field-error{color:#a22938;display:block;margin-top:6px} [aria-invalid=true]{border-color:#ce3048!important}.board>section{min-height:150px}.empty{padding:12px 0}.setup{border-top:3px solid #2860d5}

.saved-list{margin:20px 0 28px}.staff-row{display:flex;align-items:center;gap:14px;border:1px solid #d4e1f5;background:white;padding:14px;border-radius:14px;margin:8px 0}.staff-row>div{flex:1}.staff-row small{display:block;margin-top:4px}.access-badge{font-size:12px;color:#28508a}.staff-row button{padding:8px 14px}@media(max-width:600px){.staff-row{flex-wrap:wrap}.staff-row>div{min-width:60%}}

/* Integrated kitchen surface and cleaner restaurant team UI */
body.embedded-team{background:#fff!important;min-height:0;color:#183655}
.embedded-team>header{display:none!important}
.embedded-team main{max-width:none!important;padding:0!important;margin:0!important}
.embedded-team main>section{margin:20px 0!important}
.embedded-team .toolbar{background:#f6f9fe;border:1px solid #e4ebf5;border-radius:12px;padding:12px 16px;margin:0 0 16px;flex-wrap:wrap}
.embedded-team .board{gap:14px}
.embedded-team .board>section{border:1px solid #e2e9f3;background:#f7f9fd!important;border-radius:16px;padding:18px;min-width:0}
.embedded-team .board h3{font-size:15px;color:#183657}
.embedded-team .ticket,.embedded-team .request{background:white;border:1px solid #e2e8f1;box-shadow:0 3px 12px #16365b0a;border-radius:12px;padding:18px}
.embedded-team .setup{display:none!important}
.embedded-team .setup.setup-visible{display:block!important;background:#f8faff;border:1px solid #e1e8f3}
#team-setup-toggle{display:none}
.embedded-team #team-setup-toggle{display:inline-flex;float:right;margin:0 0 12px;border-radius:10px;border:1px solid #d9e4f3;background:#eef4ff;color:#194a8c;padding:10px 16px;font-weight:700;cursor:pointer}
.embedded-team .section-title{clear:both}
.embedded-team h2{font-size:20px;color:#173354;margin-bottom:14px}
.embedded-team .panel{box-shadow:none;border:1px solid #e0e7f0}
@media(max-width:800px){.embedded-team .board{grid-template-columns:1fr!important}.embedded-team main>section{margin:16px 0!important}}

/* Operations v2: keep kitchen requests separate from admin utilities. */
.embedded-team:not(.admin-embed) #team-setup-toggle,
.embedded-team:not(.admin-embed) .setup,
.embedded-team:not(.admin-embed) main>details.panel{display:none!important}
.embedded-team.admin-embed #team-setup-toggle,
.embedded-team.admin-embed #requests-section,
.embedded-team.admin-embed main>section:has(.board),
.embedded-team.admin-embed .toolbar{display:none!important}
.embedded-team.admin-embed .setup{display:block!important;margin:4px 0 18px!important}
.embedded-team.admin-embed main>details.panel{display:block!important;margin:20px 0!important}
.embedded-team.admin-embed main{padding:5px!important}
.embedded-team.admin-embed .setup{border:1px solid #dce5f1;border-radius:15px;background:#fff}
.embedded-team.admin-embed .panel summary{padding:10px 3px;color:#15385e}
.embedded-team.admin-embed .setup-tabs{justify-content:flex-start}

/* Hide administrative sections on standalone kitchen/counter pages too. */
body:not(.admin-embed) .setup,body:not(.admin-embed) main>details.panel,body:not(.admin-embed) #team-setup-toggle{display:none!important}

/* v6: embedded kitchen content has no artificial footer/scroll area. */
.embedded-team:not(.admin-embed) main{min-height:0!important;height:auto!important;overflow:visible!important;padding:0!important}
.embedded-team:not(.admin-embed) main>section:last-of-type{margin-bottom:0!important}
.embedded-team:not(.admin-embed) .board{margin-bottom:0!important}
.embedded-team:not(.admin-embed) #team-setup-toggle,.embedded-team:not(.admin-embed) .setup,.embedded-team:not(.admin-embed) main>details{display:none!important}

/* VillageWheels POS Complete v3 — restaurant setup embedded inside Admin Settings */
body:has(.setup){background:#fff!important;background-image:none!important;color:#183657!important}
body:has(.setup) main{max-width:none!important;padding:8px 8px 25px!important;margin:0!important}
body:has(.setup) .setup{padding:16px!important;border:0!important;background:#fff!important;box-shadow:none!important;margin:0!important;border-radius:0!important}
body:has(.setup) .setup>h2{display:none!important}
body:has(.setup) .setup>p:first-of-type{font-size:12px!important;color:#69809a!important;margin:0 0 16px!important}
body:has(.setup) .setup-tabs{display:flex!important;justify-content:flex-start!important;gap:8px!important;border-bottom:1px solid #e1eaf2!important;padding:0 0 15px!important;margin:0 0 22px!important}
body:has(.setup) .setup-tabs button{border-radius:9px!important;background:#f1f5fa;color:#365977;border:1px solid #dce6f0;font-size:13px;padding:9px 17px;min-height:42px}
body:has(.setup) .setup-tabs button:not(.secondary){background:#1657b8!important;border-color:#1657b8!important;color:#fff!important}
body:has(.setup) .settings-grid{margin:0!important;max-width:920px}
body:has(.setup) .settings-grid form{max-width:820px!important}
body:has(.setup) h2{font-size:20px!important;letter-spacing:-.35px;color:#153657;margin:0 0 16px}
body:has(.setup) label{margin:15px 0 0!important;color:#365372;font-size:12px;font-weight:650}
body:has(.setup) input:not([type=checkbox]),body:has(.setup) select{background:#f8fafc!important;min-height:44px!important;border-color:#dce6f0!important}
body:has(.setup) button:not(.secondary){background:#1d5ab9;color:#fff}
body:has(.setup) .saved-list .staff-row{box-shadow:none;border:1px solid #e2eaf2;border-radius:11px}
body:has(.setup) details.panel{margin:18px 8px!important;padding:16px!important;background:#fff!important;border:1px solid #dce6f0!important;box-shadow:none!important}
body:has(.setup) details.panel summary{font-size:14px;color:#234a75}
@media(max-width:700px){body:has(.setup) main{padding:3px!important}body:has(.setup) .setup{padding:10px!important}}

/* VillageWheels POS Professional v4.2: embedded administrator workspace (no duplicate headings) */
body[data-admin-view="1"]{background:#fff!important;background-image:none!important;color:#163352!important}
body[data-admin-view="1"] main{max-width:none!important;padding:0!important;margin:0!important}
body[data-admin-view="1"] .setup{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
body[data-admin-view="1"] .setup>h2,body[data-admin-view="1"] .setup>p:first-of-type{display:none!important}
body[data-admin-view="1"] .setup-tabs{display:flex!important;align-items:center!important;gap:0!important;flex-wrap:wrap!important;margin:0 0 26px!important;padding:0!important;border-bottom:1px solid #dfe8f1!important}
body[data-admin-view="1"] .setup-tabs button{border:0!important;border-radius:0!important;background:transparent!important;color:#617793!important;font-size:14px!important;padding:14px 22px!important;min-height:51px!important;margin:0!important;box-shadow:none!important;font-weight:700!important}
body[data-admin-view="1"] .setup-tabs button:not(.secondary){background:linear-gradient(#fff,#f5f9ff)!important;color:#174e98!important;box-shadow:inset 0 -3px #f28c28!important}
body[data-admin-view="1"] .settings-grid{max-width:none!important;margin:0!important;padding:0 4px!important}
body[data-admin-view="1"] .settings-grid form{max-width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;row-gap:14px;align-items:start}
body[data-admin-view="1"] .settings-grid form[hidden]{display:none!important}
body[data-admin-view="1"] .settings-grid form h2,body[data-admin-view="1"] .settings-grid form>p,body[data-admin-view="1"] .settings-grid form .saved-list{grid-column:1/-1!important}
body[data-admin-view="1"] .settings-grid form h2{font-size:17px!important;margin:0!important;letter-spacing:-.3px;color:#16385d}
body[data-admin-view="1"] .settings-grid form>p{font-size:12px!important;color:#728397!important;margin:0!important}
body[data-admin-view="1"] label{font-size:13px!important;font-weight:650!important;color:#24496c!important;margin:0!important}
body[data-admin-view="1"] input:not([type=checkbox]),body[data-admin-view="1"] select{min-height:47px!important;background:#fff!important;border:1px solid #d2e0ec!important;border-radius:10px!important;color:#173859}
body[data-admin-view="1"] .check{grid-column:1/-1!important;padding:12px 16px!important;background:#f6fafc!important;border:1px solid #e2ebf2!important;border-radius:10px!important}
body[data-admin-view="1"] .check input{accent-color:#1d5ec2!important}
body[data-admin-view="1"] button:not(.secondary){background:#1858b7!important;color:#fff!important}
body[data-admin-view="1"] .settings-grid form>button:not(.secondary){justify-self:start;min-width:168px;margin:4px 0!important}
body[data-admin-view="1"] .saved-list{border:1px solid #dce7ee!important;border-radius:12px!important;padding:10px!important}
body[data-admin-view="1"] #requests-section,body[data-admin-view="1"] .board,body[data-admin-view="1"] .section-title{display:none!important}
body[data-admin-view="1"] details.panel{margin:30px 3px 0!important;padding:0!important;border:1px solid #dee7f1!important;border-radius:12px!important;background:#fff!important}
body[data-admin-view="1"] details.panel summary{padding:17px 19px!important;font-size:14px!important;color:#24496c!important}
body[data-admin-view="1"] details.panel[open]>p,body[data-admin-view="1"] details.panel[open]>.table-wrap{margin:14px 19px!important}
@media(max-width:720px){body[data-admin-view="1"] .settings-grid form{grid-template-columns:1fr!important}body[data-admin-view="1"] .setup-tabs button{padding:12px!important}}

body[data-admin-view="1"] header,body[data-admin-view="1"] .toolbar,body[data-admin-view="1"] main>section:has(.board){display:none!important}
body[data-admin-view="1"] main>section.panel{margin-top:18px!important}

/* v4.3 embedded admin height and selected state corrections */
html:has(body[data-admin-view="1"]){height:auto!important;min-height:0!important;background:#fff!important}
body[data-admin-view="1"],body.embedded-team.admin-embed{
 height:auto!important;min-height:0!important;overflow:visible!important;
 background:#fff!important;
}
body[data-admin-view="1"] main{height:auto!important;min-height:0!important;overflow:visible!important;padding:0!important}
body[data-admin-view="1"] .setup-tabs button:not(.secondary){box-shadow:inset 0 -3px #f28c28!important}
body[data-admin-view="1"] .setup-tabs button:not(.secondary){background:#fff7f0!important;color:#a74b09!important}
body[data-admin-view="1"] main>details.panel{margin-bottom:0!important}
